@elizaos/cli 1.0.0-beta.38 → 1.0.0-beta.40
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/assets/{index-cj723OSS.js → index-B5znFY2d.js} +943 -1058
- package/dist/assets/index-B5znFY2d.js.br +0 -0
- package/dist/assets/index-B5znFY2d.js.map +1 -0
- package/dist/assets/{index-YYp46qbN.js → index-BkzA2dJ_.js} +2 -2
- package/dist/assets/index-BkzA2dJ_.js.br +0 -0
- package/dist/assets/{index-YYp46qbN.js.map → index-BkzA2dJ_.js.map} +1 -1
- package/dist/assets/index-mg0QuWxE.css +1 -0
- package/dist/assets/index-mg0QuWxE.css.br +0 -0
- package/dist/{chunk-3IBURI2H.js → chunk-2EUOR5FI.js} +20 -20
- package/dist/{chunk-KMH4CVHI.js → chunk-2HHNA565.js} +13 -13
- package/dist/{chunk-BQKD6MOZ.js → chunk-3H2PFOMZ.js} +1 -1
- package/dist/{chunk-LSDYTGWY.js → chunk-7PB2AIL2.js} +16 -16
- package/dist/{chunk-NAL7T6RK.js → chunk-D3N7D2TO.js} +89 -18
- package/dist/{chunk-NLWK4JTW.js → chunk-E35J5HH2.js} +17 -17
- package/dist/{chunk-SXGYVT2J.js → chunk-EBFNSJCE.js} +15 -15
- package/dist/{chunk-ESCHK6RE.js → chunk-GYN654GU.js} +17 -17
- package/dist/{chunk-V6H27NYB.js → chunk-L6UCBZPV.js} +4423 -3965
- package/dist/{chunk-24453GFY.js → chunk-MXJ6WCEW.js} +3 -3
- package/dist/{chunk-GZSBSX6U.js → chunk-ODYKZZQC.js} +8 -8
- package/dist/{chunk-7PJ3O5PU.js → chunk-OJUV6Y33.js} +50 -50
- package/dist/{chunk-JGA2U3ZP.js → chunk-P4ZTKXRO.js} +74 -74
- package/dist/{chunk-TXV7QMFN.js → chunk-PQ3RQJEY.js} +24521 -24574
- package/dist/{chunk-2GEXMWRP.js → chunk-TDSOTSIO.js} +1 -1
- package/dist/{chunk-IRTCPQWZ.js → chunk-VG2GRTJA.js} +1 -1
- package/dist/{chunk-YS7BOVIQ.js → chunk-ZBQQNTJW.js} +45 -32
- package/dist/{chunk-VLUGQ3EQ.js → chunk-ZK6SFCLW.js} +45 -45
- package/dist/commands/agent.js +2 -2
- package/dist/commands/create.js +6 -6
- package/dist/commands/dev.js +4 -4
- package/dist/commands/env.js +3 -3
- package/dist/commands/install.js +3 -3
- package/dist/commands/plugins.js +7 -7
- package/dist/commands/publish.js +4 -4
- package/dist/commands/start.js +9 -9
- package/dist/commands/test.js +10 -10
- package/dist/commands/update-cli.js +4 -4
- package/dist/commands/update.js +4 -4
- package/dist/index.html +2 -2
- package/dist/index.js +24 -24
- package/dist/{registry-37MDGH7I.js → registry-EITOCXZK.js} +2 -2
- package/drizzle/extension.sql +3 -0
- package/drizzle/migrations/{20250302132443_init.sql → 0000_low_anita_blake.sql} +8 -5
- package/drizzle/migrations/meta/{0001_snapshot.json → 0000_snapshot.json} +41 -2
- package/drizzle/migrations/meta/_journal.json +2 -9
- package/package.json +6 -6
- package/templates/plugin-starter/package.json +1 -1
- package/templates/project-starter/.env.example +46 -0
- package/templates/project-starter/package.json +6 -6
- package/dist/assets/index-BfT1ktFh.css +0 -1
- package/dist/assets/index-BfT1ktFh.css.br +0 -0
- package/dist/assets/index-YYp46qbN.js.br +0 -0
- package/dist/assets/index-cj723OSS.js.br +0 -0
- package/dist/assets/index-cj723OSS.js.map +0 -1
- package/drizzle/migrations/0001_third_tyger_tiger.sql +0 -4
- package/drizzle/migrations/meta/20250302132443_snapshot.json +0 -1285
|
@@ -18,15 +18,15 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
var _focused, _cleanup, _setup, _a, _online, _cleanup2, _setup2, _b, _gcTimeout, _c, _initialState, _revertState, _cache, _client, _retryer, _defaultOptions, _abortSignalConsumed, _Query_instances, dispatch_fn, _d, _queries, _e, _observers, _mutationCache, _retryer2, _Mutation_instances, dispatch_fn2, _f, _mutations, _scopes, _mutationId, _g, _queryCache, _mutationCache2, _defaultOptions2, _queryDefaults, _mutationDefaults, _mountCount, _unsubscribeFocus, _unsubscribeOnline, _h, _client2, _currentQuery, _currentQueryInitialState, _currentResult, _currentResultState, _currentResultOptions, _currentThenable, _selectError, _selectFn, _selectResult, _lastQueryWithDefinedData, _staleTimeoutId, _refetchIntervalId, _currentRefetchInterval, _trackedProps, _QueryObserver_instances, executeFetch_fn, updateStaleTimeout_fn, computeRefetchInterval_fn, updateRefetchInterval_fn, updateTimers_fn, clearStaleTimeout_fn, clearRefetchInterval_fn, updateQuery_fn, notify_fn, _i2, _client3, _currentResult2, _currentMutation, _mutateOptions, _MutationObserver_instances, updateResult_fn, notify_fn2, _j, _k;
|
|
21
|
-
function _mergeNamespaces(
|
|
21
|
+
function _mergeNamespaces(n2, m) {
|
|
22
22
|
for (var i = 0; i < m.length; i++) {
|
|
23
23
|
const e = m[i];
|
|
24
24
|
if (typeof e !== "string" && !Array.isArray(e)) {
|
|
25
25
|
for (const k in e) {
|
|
26
|
-
if (k !== "default" && !(k in
|
|
26
|
+
if (k !== "default" && !(k in n2)) {
|
|
27
27
|
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
28
28
|
if (d) {
|
|
29
|
-
Object.defineProperty(
|
|
29
|
+
Object.defineProperty(n2, k, d.get ? d : {
|
|
30
30
|
enumerable: true,
|
|
31
31
|
get: () => e[k]
|
|
32
32
|
});
|
|
@@ -35,7 +35,7 @@ function _mergeNamespaces(n, m) {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
return Object.freeze(Object.defineProperty(
|
|
38
|
+
return Object.freeze(Object.defineProperty(n2, Symbol.toStringTag, { value: "Module" }));
|
|
39
39
|
}
|
|
40
40
|
(function polyfill() {
|
|
41
41
|
const relList = document.createElement("link").relList;
|
|
@@ -78,25 +78,25 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
|
78
78
|
function getDefaultExportFromCjs(x) {
|
|
79
79
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
80
80
|
}
|
|
81
|
-
function getAugmentedNamespace(
|
|
82
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
83
|
-
var
|
|
84
|
-
if (typeof
|
|
81
|
+
function getAugmentedNamespace(n2) {
|
|
82
|
+
if (Object.prototype.hasOwnProperty.call(n2, "__esModule")) return n2;
|
|
83
|
+
var f = n2.default;
|
|
84
|
+
if (typeof f == "function") {
|
|
85
85
|
var a = function a2() {
|
|
86
86
|
if (this instanceof a2) {
|
|
87
|
-
return Reflect.construct(
|
|
87
|
+
return Reflect.construct(f, arguments, this.constructor);
|
|
88
88
|
}
|
|
89
|
-
return
|
|
89
|
+
return f.apply(this, arguments);
|
|
90
90
|
};
|
|
91
|
-
a.prototype =
|
|
91
|
+
a.prototype = f.prototype;
|
|
92
92
|
} else a = {};
|
|
93
93
|
Object.defineProperty(a, "__esModule", { value: true });
|
|
94
|
-
Object.keys(
|
|
95
|
-
var d = Object.getOwnPropertyDescriptor(
|
|
94
|
+
Object.keys(n2).forEach(function(k) {
|
|
95
|
+
var d = Object.getOwnPropertyDescriptor(n2, k);
|
|
96
96
|
Object.defineProperty(a, k, d.get ? d : {
|
|
97
97
|
enumerable: true,
|
|
98
98
|
get: function() {
|
|
99
|
-
return
|
|
99
|
+
return n2[k];
|
|
100
100
|
}
|
|
101
101
|
});
|
|
102
102
|
});
|
|
@@ -402,11 +402,11 @@ function requireReact_production() {
|
|
|
402
402
|
);
|
|
403
403
|
},
|
|
404
404
|
count: function(children) {
|
|
405
|
-
var
|
|
405
|
+
var n2 = 0;
|
|
406
406
|
mapChildren(children, function() {
|
|
407
|
-
|
|
407
|
+
n2++;
|
|
408
408
|
});
|
|
409
|
-
return
|
|
409
|
+
return n2;
|
|
410
410
|
},
|
|
411
411
|
toArray: function(children) {
|
|
412
412
|
return mapChildren(children, function(child) {
|
|
@@ -12131,17 +12131,17 @@ function getElementRef$1(element) {
|
|
|
12131
12131
|
return element.props.ref || element.ref;
|
|
12132
12132
|
}
|
|
12133
12133
|
function r(e) {
|
|
12134
|
-
var t,
|
|
12135
|
-
if ("string" == typeof e || "number" == typeof e)
|
|
12134
|
+
var t, f, n2 = "";
|
|
12135
|
+
if ("string" == typeof e || "number" == typeof e) n2 += e;
|
|
12136
12136
|
else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
12137
12137
|
var o = e.length;
|
|
12138
|
-
for (t = 0; t < o; t++) e[t] && (
|
|
12139
|
-
} else for (
|
|
12140
|
-
return
|
|
12138
|
+
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n2 && (n2 += " "), n2 += f);
|
|
12139
|
+
} else for (f in e) e[f] && (n2 && (n2 += " "), n2 += f);
|
|
12140
|
+
return n2;
|
|
12141
12141
|
}
|
|
12142
12142
|
function clsx() {
|
|
12143
|
-
for (var e, t,
|
|
12144
|
-
return
|
|
12143
|
+
for (var e, t, f = 0, n2 = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n2 && (n2 += " "), n2 += t);
|
|
12144
|
+
return n2;
|
|
12145
12145
|
}
|
|
12146
12146
|
const falsyToString = (value2) => typeof value2 === "boolean" ? `${value2}` : value2 === 0 ? "0" : value2;
|
|
12147
12147
|
const cx = clsx;
|
|
@@ -12215,48 +12215,48 @@ function requireDayjs_min() {
|
|
|
12215
12215
|
!function(t, e) {
|
|
12216
12216
|
module.exports = e();
|
|
12217
12217
|
}(dayjs_min, function() {
|
|
12218
|
-
var t = 1e3, e = 6e4,
|
|
12219
|
-
var e2 = ["th", "st", "nd", "rd"],
|
|
12220
|
-
return "[" + t2 + (e2[(
|
|
12221
|
-
} }, m = function(t2, e2,
|
|
12222
|
-
var
|
|
12223
|
-
return !
|
|
12224
|
-
},
|
|
12225
|
-
var e2 = -t2.utcOffset(),
|
|
12226
|
-
return (e2 <= 0 ? "+" : "-") + m(
|
|
12227
|
-
}, m: function t2(e2,
|
|
12228
|
-
if (e2.date() <
|
|
12229
|
-
var
|
|
12230
|
-
return +(-(
|
|
12218
|
+
var t = 1e3, e = 6e4, n2 = 36e5, r2 = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h2 = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
|
|
12219
|
+
var e2 = ["th", "st", "nd", "rd"], n3 = t2 % 100;
|
|
12220
|
+
return "[" + t2 + (e2[(n3 - 20) % 10] || e2[n3] || e2[0]) + "]";
|
|
12221
|
+
} }, m = function(t2, e2, n3) {
|
|
12222
|
+
var r3 = String(t2);
|
|
12223
|
+
return !r3 || r3.length >= e2 ? t2 : "" + Array(e2 + 1 - r3.length).join(n3) + t2;
|
|
12224
|
+
}, v2 = { s: m, z: function(t2) {
|
|
12225
|
+
var e2 = -t2.utcOffset(), n3 = Math.abs(e2), r3 = Math.floor(n3 / 60), i2 = n3 % 60;
|
|
12226
|
+
return (e2 <= 0 ? "+" : "-") + m(r3, 2, "0") + ":" + m(i2, 2, "0");
|
|
12227
|
+
}, m: function t2(e2, n3) {
|
|
12228
|
+
if (e2.date() < n3.date()) return -t2(n3, e2);
|
|
12229
|
+
var r3 = 12 * (n3.year() - e2.year()) + (n3.month() - e2.month()), i2 = e2.clone().add(r3, c), s2 = n3 - i2 < 0, u2 = e2.clone().add(r3 + (s2 ? -1 : 1), c);
|
|
12230
|
+
return +(-(r3 + (n3 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
|
|
12231
12231
|
}, a: function(t2) {
|
|
12232
12232
|
return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
|
|
12233
12233
|
}, p: function(t2) {
|
|
12234
|
-
return { M: c, y:
|
|
12234
|
+
return { M: c, y: h2, w: o, d: a, D: d, h: u, m: s, s: i, ms: r2, Q: f }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
|
|
12235
12235
|
}, u: function(t2) {
|
|
12236
12236
|
return void 0 === t2;
|
|
12237
12237
|
} }, g = "en", D = {};
|
|
12238
12238
|
D[g] = M;
|
|
12239
|
-
var p = "$isDayjsObject",
|
|
12239
|
+
var p = "$isDayjsObject", S = function(t2) {
|
|
12240
12240
|
return t2 instanceof _ || !(!t2 || !t2[p]);
|
|
12241
|
-
}, w = function t2(e2,
|
|
12241
|
+
}, w = function t2(e2, n3, r3) {
|
|
12242
12242
|
var i2;
|
|
12243
12243
|
if (!e2) return g;
|
|
12244
12244
|
if ("string" == typeof e2) {
|
|
12245
12245
|
var s2 = e2.toLowerCase();
|
|
12246
|
-
D[s2] && (i2 = s2),
|
|
12246
|
+
D[s2] && (i2 = s2), n3 && (D[s2] = n3, i2 = s2);
|
|
12247
12247
|
var u2 = e2.split("-");
|
|
12248
12248
|
if (!i2 && u2.length > 1) return t2(u2[0]);
|
|
12249
12249
|
} else {
|
|
12250
12250
|
var a2 = e2.name;
|
|
12251
12251
|
D[a2] = e2, i2 = a2;
|
|
12252
12252
|
}
|
|
12253
|
-
return !
|
|
12253
|
+
return !r3 && i2 && (g = i2), i2 || !r3 && g;
|
|
12254
12254
|
}, O = function(t2, e2) {
|
|
12255
|
-
if (
|
|
12256
|
-
var
|
|
12257
|
-
return
|
|
12258
|
-
}, b =
|
|
12259
|
-
b.l = w, b.i =
|
|
12255
|
+
if (S(t2)) return t2.clone();
|
|
12256
|
+
var n3 = "object" == typeof e2 ? e2 : {};
|
|
12257
|
+
return n3.date = t2, n3.args = arguments, new _(n3);
|
|
12258
|
+
}, b = v2;
|
|
12259
|
+
b.l = w, b.i = S, b.w = function(t2, e2) {
|
|
12260
12260
|
return O(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
|
12261
12261
|
};
|
|
12262
12262
|
var _ = function() {
|
|
@@ -12266,15 +12266,15 @@ function requireDayjs_min() {
|
|
|
12266
12266
|
var m2 = M2.prototype;
|
|
12267
12267
|
return m2.parse = function(t2) {
|
|
12268
12268
|
this.$d = function(t3) {
|
|
12269
|
-
var e2 = t3.date,
|
|
12269
|
+
var e2 = t3.date, n3 = t3.utc;
|
|
12270
12270
|
if (null === e2) return /* @__PURE__ */ new Date(NaN);
|
|
12271
12271
|
if (b.u(e2)) return /* @__PURE__ */ new Date();
|
|
12272
12272
|
if (e2 instanceof Date) return new Date(e2);
|
|
12273
12273
|
if ("string" == typeof e2 && !/Z$/i.test(e2)) {
|
|
12274
|
-
var
|
|
12275
|
-
if (
|
|
12276
|
-
var i2 =
|
|
12277
|
-
return
|
|
12274
|
+
var r3 = e2.match($);
|
|
12275
|
+
if (r3) {
|
|
12276
|
+
var i2 = r3[2] - 1 || 0, s2 = (r3[7] || "0").substring(0, 3);
|
|
12277
|
+
return n3 ? new Date(Date.UTC(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s2)) : new Date(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s2);
|
|
12278
12278
|
}
|
|
12279
12279
|
}
|
|
12280
12280
|
return new Date(e2);
|
|
@@ -12287,50 +12287,50 @@ function requireDayjs_min() {
|
|
|
12287
12287
|
}, m2.isValid = function() {
|
|
12288
12288
|
return !(this.$d.toString() === l);
|
|
12289
12289
|
}, m2.isSame = function(t2, e2) {
|
|
12290
|
-
var
|
|
12291
|
-
return this.startOf(e2) <=
|
|
12290
|
+
var n3 = O(t2);
|
|
12291
|
+
return this.startOf(e2) <= n3 && n3 <= this.endOf(e2);
|
|
12292
12292
|
}, m2.isAfter = function(t2, e2) {
|
|
12293
12293
|
return O(t2) < this.startOf(e2);
|
|
12294
12294
|
}, m2.isBefore = function(t2, e2) {
|
|
12295
12295
|
return this.endOf(e2) < O(t2);
|
|
12296
|
-
}, m2.$g = function(t2, e2,
|
|
12297
|
-
return b.u(t2) ? this[e2] : this.set(
|
|
12296
|
+
}, m2.$g = function(t2, e2, n3) {
|
|
12297
|
+
return b.u(t2) ? this[e2] : this.set(n3, t2);
|
|
12298
12298
|
}, m2.unix = function() {
|
|
12299
12299
|
return Math.floor(this.valueOf() / 1e3);
|
|
12300
12300
|
}, m2.valueOf = function() {
|
|
12301
12301
|
return this.$d.getTime();
|
|
12302
12302
|
}, m2.startOf = function(t2, e2) {
|
|
12303
|
-
var
|
|
12304
|
-
var i2 = b.w(
|
|
12305
|
-
return
|
|
12303
|
+
var n3 = this, r3 = !!b.u(e2) || e2, f2 = b.p(t2), l2 = function(t3, e3) {
|
|
12304
|
+
var i2 = b.w(n3.$u ? Date.UTC(n3.$y, e3, t3) : new Date(n3.$y, e3, t3), n3);
|
|
12305
|
+
return r3 ? i2 : i2.endOf(a);
|
|
12306
12306
|
}, $2 = function(t3, e3) {
|
|
12307
|
-
return b.w(
|
|
12308
|
-
}, y2 = this.$W, M3 = this.$M, m3 = this.$D,
|
|
12309
|
-
switch (
|
|
12310
|
-
case
|
|
12311
|
-
return
|
|
12307
|
+
return b.w(n3.toDate()[t3].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n3);
|
|
12308
|
+
}, y2 = this.$W, M3 = this.$M, m3 = this.$D, v3 = "set" + (this.$u ? "UTC" : "");
|
|
12309
|
+
switch (f2) {
|
|
12310
|
+
case h2:
|
|
12311
|
+
return r3 ? l2(1, 0) : l2(31, 11);
|
|
12312
12312
|
case c:
|
|
12313
|
-
return
|
|
12313
|
+
return r3 ? l2(1, M3) : l2(0, M3 + 1);
|
|
12314
12314
|
case o:
|
|
12315
12315
|
var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
|
|
12316
|
-
return l2(
|
|
12316
|
+
return l2(r3 ? m3 - D2 : m3 + (6 - D2), M3);
|
|
12317
12317
|
case a:
|
|
12318
12318
|
case d:
|
|
12319
|
-
return $2(
|
|
12319
|
+
return $2(v3 + "Hours", 0);
|
|
12320
12320
|
case u:
|
|
12321
|
-
return $2(
|
|
12321
|
+
return $2(v3 + "Minutes", 1);
|
|
12322
12322
|
case s:
|
|
12323
|
-
return $2(
|
|
12323
|
+
return $2(v3 + "Seconds", 2);
|
|
12324
12324
|
case i:
|
|
12325
|
-
return $2(
|
|
12325
|
+
return $2(v3 + "Milliseconds", 3);
|
|
12326
12326
|
default:
|
|
12327
12327
|
return this.clone();
|
|
12328
12328
|
}
|
|
12329
12329
|
}, m2.endOf = function(t2) {
|
|
12330
12330
|
return this.startOf(t2, false);
|
|
12331
12331
|
}, m2.$set = function(t2, e2) {
|
|
12332
|
-
var
|
|
12333
|
-
if (o2 === c || o2 ===
|
|
12332
|
+
var n3, o2 = b.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n3 = {}, n3[a] = f2 + "Date", n3[d] = f2 + "Date", n3[c] = f2 + "Month", n3[h2] = f2 + "FullYear", n3[u] = f2 + "Hours", n3[s] = f2 + "Minutes", n3[i] = f2 + "Seconds", n3[r2] = f2 + "Milliseconds", n3)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
|
|
12333
|
+
if (o2 === c || o2 === h2) {
|
|
12334
12334
|
var y2 = this.clone().set(d, 1);
|
|
12335
12335
|
y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
|
|
12336
12336
|
} else l2 && this.$d[l2]($2);
|
|
@@ -12339,34 +12339,34 @@ function requireDayjs_min() {
|
|
|
12339
12339
|
return this.clone().$set(t2, e2);
|
|
12340
12340
|
}, m2.get = function(t2) {
|
|
12341
12341
|
return this[b.p(t2)]();
|
|
12342
|
-
}, m2.add = function(
|
|
12342
|
+
}, m2.add = function(r3, f2) {
|
|
12343
12343
|
var d2, l2 = this;
|
|
12344
|
-
|
|
12345
|
-
var $2 = b.p(
|
|
12344
|
+
r3 = Number(r3);
|
|
12345
|
+
var $2 = b.p(f2), y2 = function(t2) {
|
|
12346
12346
|
var e2 = O(l2);
|
|
12347
|
-
return b.w(e2.date(e2.date() + Math.round(t2 *
|
|
12347
|
+
return b.w(e2.date(e2.date() + Math.round(t2 * r3)), l2);
|
|
12348
12348
|
};
|
|
12349
|
-
if ($2 === c) return this.set(c, this.$M +
|
|
12350
|
-
if ($2 ===
|
|
12349
|
+
if ($2 === c) return this.set(c, this.$M + r3);
|
|
12350
|
+
if ($2 === h2) return this.set(h2, this.$y + r3);
|
|
12351
12351
|
if ($2 === a) return y2(1);
|
|
12352
12352
|
if ($2 === o) return y2(7);
|
|
12353
|
-
var M3 = (d2 = {}, d2[s] = e, d2[u] =
|
|
12353
|
+
var M3 = (d2 = {}, d2[s] = e, d2[u] = n2, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r3 * M3;
|
|
12354
12354
|
return b.w(m3, this);
|
|
12355
12355
|
}, m2.subtract = function(t2, e2) {
|
|
12356
12356
|
return this.add(-1 * t2, e2);
|
|
12357
12357
|
}, m2.format = function(t2) {
|
|
12358
|
-
var e2 = this,
|
|
12359
|
-
if (!this.isValid()) return
|
|
12360
|
-
var
|
|
12361
|
-
return t3 && (t3[
|
|
12358
|
+
var e2 = this, n3 = this.$locale();
|
|
12359
|
+
if (!this.isValid()) return n3.invalidDate || l;
|
|
12360
|
+
var r3 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n3.weekdays, c2 = n3.months, f2 = n3.meridiem, h3 = function(t3, n4, i3, s3) {
|
|
12361
|
+
return t3 && (t3[n4] || t3(e2, r3)) || i3[n4].slice(0, s3);
|
|
12362
12362
|
}, d2 = function(t3) {
|
|
12363
12363
|
return b.s(s2 % 12 || 12, t3, "0");
|
|
12364
|
-
}, $2 =
|
|
12365
|
-
var
|
|
12366
|
-
return
|
|
12364
|
+
}, $2 = f2 || function(t3, e3, n4) {
|
|
12365
|
+
var r4 = t3 < 12 ? "AM" : "PM";
|
|
12366
|
+
return n4 ? r4.toLowerCase() : r4;
|
|
12367
12367
|
};
|
|
12368
|
-
return
|
|
12369
|
-
return
|
|
12368
|
+
return r3.replace(y, function(t3, r4) {
|
|
12369
|
+
return r4 || function(t4) {
|
|
12370
12370
|
switch (t4) {
|
|
12371
12371
|
case "YY":
|
|
12372
12372
|
return String(e2.$y).slice(-2);
|
|
@@ -12377,9 +12377,9 @@ function requireDayjs_min() {
|
|
|
12377
12377
|
case "MM":
|
|
12378
12378
|
return b.s(a2 + 1, 2, "0");
|
|
12379
12379
|
case "MMM":
|
|
12380
|
-
return
|
|
12380
|
+
return h3(n3.monthsShort, a2, c2, 3);
|
|
12381
12381
|
case "MMMM":
|
|
12382
|
-
return
|
|
12382
|
+
return h3(c2, a2);
|
|
12383
12383
|
case "D":
|
|
12384
12384
|
return e2.$D;
|
|
12385
12385
|
case "DD":
|
|
@@ -12387,9 +12387,9 @@ function requireDayjs_min() {
|
|
|
12387
12387
|
case "d":
|
|
12388
12388
|
return String(e2.$W);
|
|
12389
12389
|
case "dd":
|
|
12390
|
-
return
|
|
12390
|
+
return h3(n3.weekdaysMin, e2.$W, o2, 2);
|
|
12391
12391
|
case "ddd":
|
|
12392
|
-
return
|
|
12392
|
+
return h3(n3.weekdaysShort, e2.$W, o2, 3);
|
|
12393
12393
|
case "dddd":
|
|
12394
12394
|
return o2[e2.$W];
|
|
12395
12395
|
case "H":
|
|
@@ -12422,28 +12422,28 @@ function requireDayjs_min() {
|
|
|
12422
12422
|
});
|
|
12423
12423
|
}, m2.utcOffset = function() {
|
|
12424
12424
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
12425
|
-
}, m2.diff = function(
|
|
12426
|
-
var $2, y2 = this, M3 = b.p(d2), m3 = O(
|
|
12425
|
+
}, m2.diff = function(r3, d2, l2) {
|
|
12426
|
+
var $2, y2 = this, M3 = b.p(d2), m3 = O(r3), v3 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
|
|
12427
12427
|
return b.m(y2, m3);
|
|
12428
12428
|
};
|
|
12429
12429
|
switch (M3) {
|
|
12430
|
-
case
|
|
12430
|
+
case h2:
|
|
12431
12431
|
$2 = D2() / 12;
|
|
12432
12432
|
break;
|
|
12433
12433
|
case c:
|
|
12434
12434
|
$2 = D2();
|
|
12435
12435
|
break;
|
|
12436
|
-
case
|
|
12436
|
+
case f:
|
|
12437
12437
|
$2 = D2() / 3;
|
|
12438
12438
|
break;
|
|
12439
12439
|
case o:
|
|
12440
|
-
$2 = (g2 -
|
|
12440
|
+
$2 = (g2 - v3) / 6048e5;
|
|
12441
12441
|
break;
|
|
12442
12442
|
case a:
|
|
12443
|
-
$2 = (g2 -
|
|
12443
|
+
$2 = (g2 - v3) / 864e5;
|
|
12444
12444
|
break;
|
|
12445
12445
|
case u:
|
|
12446
|
-
$2 = g2 /
|
|
12446
|
+
$2 = g2 / n2;
|
|
12447
12447
|
break;
|
|
12448
12448
|
case s:
|
|
12449
12449
|
$2 = g2 / e;
|
|
@@ -12461,8 +12461,8 @@ function requireDayjs_min() {
|
|
|
12461
12461
|
return D[this.$L];
|
|
12462
12462
|
}, m2.locale = function(t2, e2) {
|
|
12463
12463
|
if (!t2) return this.$L;
|
|
12464
|
-
var
|
|
12465
|
-
return
|
|
12464
|
+
var n3 = this.clone(), r3 = w(t2, e2, true);
|
|
12465
|
+
return r3 && (n3.$L = r3), n3;
|
|
12466
12466
|
}, m2.clone = function() {
|
|
12467
12467
|
return b.w(this.$d, this);
|
|
12468
12468
|
}, m2.toDate = function() {
|
|
@@ -12475,13 +12475,13 @@ function requireDayjs_min() {
|
|
|
12475
12475
|
return this.$d.toUTCString();
|
|
12476
12476
|
}, M2;
|
|
12477
12477
|
}(), k = _.prototype;
|
|
12478
|
-
return O.prototype = k, [["$ms",
|
|
12478
|
+
return O.prototype = k, [["$ms", r2], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h2], ["$D", d]].forEach(function(t2) {
|
|
12479
12479
|
k[t2[1]] = function(e2) {
|
|
12480
12480
|
return this.$g(e2, t2[0], t2[1]);
|
|
12481
12481
|
};
|
|
12482
12482
|
}), O.extend = function(t2, e2) {
|
|
12483
12483
|
return t2.$i || (t2(e2, _, O), t2.$i = true), O;
|
|
12484
|
-
}, O.locale = w, O.isDayjs =
|
|
12484
|
+
}, O.locale = w, O.isDayjs = S, O.unix = function(t2) {
|
|
12485
12485
|
return O(1e3 * t2);
|
|
12486
12486
|
}, O.en = D[g], O.Ls = D, O.p = {}, O;
|
|
12487
12487
|
});
|
|
@@ -12501,19 +12501,19 @@ function requireLocalizedFormat() {
|
|
|
12501
12501
|
module.exports = t();
|
|
12502
12502
|
}(localizedFormat$1, function() {
|
|
12503
12503
|
var e = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" };
|
|
12504
|
-
return function(t, o,
|
|
12505
|
-
var
|
|
12506
|
-
|
|
12504
|
+
return function(t, o, n2) {
|
|
12505
|
+
var r2 = o.prototype, i = r2.format;
|
|
12506
|
+
n2.en.formats = e, r2.format = function(t2) {
|
|
12507
12507
|
void 0 === t2 && (t2 = "YYYY-MM-DDTHH:mm:ssZ");
|
|
12508
|
-
var o2 = this.$locale().formats,
|
|
12509
|
-
return t3.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(t4,
|
|
12510
|
-
var i2 =
|
|
12511
|
-
return
|
|
12508
|
+
var o2 = this.$locale().formats, n3 = function(t3, o3) {
|
|
12509
|
+
return t3.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(t4, n4, r3) {
|
|
12510
|
+
var i2 = r3 && r3.toUpperCase();
|
|
12511
|
+
return n4 || o3[r3] || e[r3] || o3[i2].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(e2, t5, o4) {
|
|
12512
12512
|
return t5 || o4.slice(1);
|
|
12513
12513
|
});
|
|
12514
12514
|
});
|
|
12515
12515
|
}(t2, void 0 === o2 ? {} : o2);
|
|
12516
|
-
return i.call(this,
|
|
12516
|
+
return i.call(this, n3);
|
|
12517
12517
|
};
|
|
12518
12518
|
};
|
|
12519
12519
|
});
|
|
@@ -15916,7 +15916,7 @@ function createFocusGuard() {
|
|
|
15916
15916
|
}
|
|
15917
15917
|
var __assign = function() {
|
|
15918
15918
|
__assign = Object.assign || function __assign2(t) {
|
|
15919
|
-
for (var s, i = 1,
|
|
15919
|
+
for (var s, i = 1, n2 = arguments.length; i < n2; i++) {
|
|
15920
15920
|
s = arguments[i];
|
|
15921
15921
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
15922
15922
|
}
|
|
@@ -17325,17 +17325,6 @@ const Ellipsis = createLucideIcon("Ellipsis", [
|
|
|
17325
17325
|
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
|
17326
17326
|
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
|
17327
17327
|
]);
|
|
17328
|
-
/**
|
|
17329
|
-
* @license lucide-react v0.469.0 - ISC
|
|
17330
|
-
*
|
|
17331
|
-
* This source code is licensed under the ISC license.
|
|
17332
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
17333
|
-
*/
|
|
17334
|
-
const ExternalLink = createLucideIcon("ExternalLink", [
|
|
17335
|
-
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
17336
|
-
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
17337
|
-
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
17338
|
-
]);
|
|
17339
17328
|
/**
|
|
17340
17329
|
* @license lucide-react v0.469.0 - ISC
|
|
17341
17330
|
*
|
|
@@ -17819,9 +17808,9 @@ const min = Math.min;
|
|
|
17819
17808
|
const max = Math.max;
|
|
17820
17809
|
const round = Math.round;
|
|
17821
17810
|
const floor = Math.floor;
|
|
17822
|
-
const createCoords = (
|
|
17823
|
-
x:
|
|
17824
|
-
y:
|
|
17811
|
+
const createCoords = (v2) => ({
|
|
17812
|
+
x: v2,
|
|
17813
|
+
y: v2
|
|
17825
17814
|
});
|
|
17826
17815
|
const oppositeSideMap = {
|
|
17827
17816
|
left: "right",
|
|
@@ -20419,13 +20408,13 @@ function isPointInPolygon$1(point, polygon) {
|
|
|
20419
20408
|
const { x, y } = point;
|
|
20420
20409
|
let inside = false;
|
|
20421
20410
|
for (let i = 0, j = polygon.length - 1; i < polygon.length; j = i++) {
|
|
20422
|
-
const
|
|
20411
|
+
const ii2 = polygon[i];
|
|
20423
20412
|
const jj = polygon[j];
|
|
20424
|
-
const xi2 =
|
|
20425
|
-
const
|
|
20413
|
+
const xi2 = ii2.x;
|
|
20414
|
+
const yi2 = ii2.y;
|
|
20426
20415
|
const xj = jj.x;
|
|
20427
20416
|
const yj = jj.y;
|
|
20428
|
-
const intersect =
|
|
20417
|
+
const intersect = yi2 > y !== yj > y && x < (xj - xi2) * (y - yi2) / (yj - yi2) + xi2;
|
|
20429
20418
|
if (intersect) inside = !inside;
|
|
20430
20419
|
}
|
|
20431
20420
|
return inside;
|
|
@@ -20447,9 +20436,9 @@ function getHullPresorted(points) {
|
|
|
20447
20436
|
for (let i = 0; i < points.length; i++) {
|
|
20448
20437
|
const p = points[i];
|
|
20449
20438
|
while (upperHull.length >= 2) {
|
|
20450
|
-
const
|
|
20451
|
-
const
|
|
20452
|
-
if ((
|
|
20439
|
+
const q2 = upperHull[upperHull.length - 1];
|
|
20440
|
+
const r2 = upperHull[upperHull.length - 2];
|
|
20441
|
+
if ((q2.x - r2.x) * (p.y - r2.y) >= (q2.y - r2.y) * (p.x - r2.x)) upperHull.pop();
|
|
20453
20442
|
else break;
|
|
20454
20443
|
}
|
|
20455
20444
|
upperHull.push(p);
|
|
@@ -20459,9 +20448,9 @@ function getHullPresorted(points) {
|
|
|
20459
20448
|
for (let i = points.length - 1; i >= 0; i--) {
|
|
20460
20449
|
const p = points[i];
|
|
20461
20450
|
while (lowerHull.length >= 2) {
|
|
20462
|
-
const
|
|
20463
|
-
const
|
|
20464
|
-
if ((
|
|
20451
|
+
const q2 = lowerHull[lowerHull.length - 1];
|
|
20452
|
+
const r2 = lowerHull[lowerHull.length - 2];
|
|
20453
|
+
if ((q2.x - r2.x) * (p.y - r2.y) >= (q2.y - r2.y) * (p.x - r2.x)) lowerHull.pop();
|
|
20465
20454
|
else break;
|
|
20466
20455
|
}
|
|
20467
20456
|
lowerHull.push(p);
|
|
@@ -20669,7 +20658,7 @@ const Sidebar = reactExports.forwardRef(
|
|
|
20669
20658
|
"div",
|
|
20670
20659
|
{
|
|
20671
20660
|
"data-sidebar": "sidebar",
|
|
20672
|
-
className: "flex m-4 rounded-md
|
|
20661
|
+
className: "flex m-4 rounded-md w-full flex-col group-data-[variant=floating]:rounded-md group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",
|
|
20673
20662
|
children
|
|
20674
20663
|
}
|
|
20675
20664
|
)
|
|
@@ -23975,8 +23964,8 @@ function getUrlBasedHistory(getLocation, createHref2, validateLocation, options
|
|
|
23975
23964
|
},
|
|
23976
23965
|
push,
|
|
23977
23966
|
replace: replace2,
|
|
23978
|
-
go(
|
|
23979
|
-
return globalHistory.go(
|
|
23967
|
+
go(n2) {
|
|
23968
|
+
return globalHistory.go(n2);
|
|
23980
23969
|
}
|
|
23981
23970
|
};
|
|
23982
23971
|
return history;
|
|
@@ -24103,7 +24092,7 @@ function computeScore(path, index2) {
|
|
|
24103
24092
|
);
|
|
24104
24093
|
}
|
|
24105
24094
|
function compareIndexes(a, b) {
|
|
24106
|
-
let siblings = a.length === b.length && a.slice(0, -1).every((
|
|
24095
|
+
let siblings = a.length === b.length && a.slice(0, -1).every((n2, i) => n2 === b[i]);
|
|
24107
24096
|
return siblings ? (
|
|
24108
24097
|
// If two routes are siblings, we should try to match the earlier sibling
|
|
24109
24098
|
// first. This allows people to have fine-grained control over the matching
|
|
@@ -24222,7 +24211,7 @@ function compilePath(path, caseSensitive = false, end = true) {
|
|
|
24222
24211
|
}
|
|
24223
24212
|
function decodePath(value2) {
|
|
24224
24213
|
try {
|
|
24225
|
-
return value2.split("/").map((
|
|
24214
|
+
return value2.split("/").map((v2) => decodeURIComponent(v2).replace(/\//g, "%2F")).join("/");
|
|
24226
24215
|
} catch (error) {
|
|
24227
24216
|
warning(
|
|
24228
24217
|
false,
|
|
@@ -25803,12 +25792,12 @@ function useFormAction(action, { relative } = {}) {
|
|
|
25803
25792
|
path.search = location2.search;
|
|
25804
25793
|
let params = new URLSearchParams(path.search);
|
|
25805
25794
|
let indexValues = params.getAll("index");
|
|
25806
|
-
let hasNakedIndexParam = indexValues.some((
|
|
25795
|
+
let hasNakedIndexParam = indexValues.some((v2) => v2 === "");
|
|
25807
25796
|
if (hasNakedIndexParam) {
|
|
25808
25797
|
params.delete("index");
|
|
25809
|
-
indexValues.filter((
|
|
25810
|
-
let
|
|
25811
|
-
path.search =
|
|
25798
|
+
indexValues.filter((v2) => v2).forEach((v2) => params.append("index", v2));
|
|
25799
|
+
let qs = params.toString();
|
|
25800
|
+
path.search = qs ? `?${qs}` : "";
|
|
25812
25801
|
}
|
|
25813
25802
|
}
|
|
25814
25803
|
if ((!action || action === ".") && match2.route.index) {
|
|
@@ -27737,7 +27726,7 @@ function findNextItem(items, search, currentItem) {
|
|
|
27737
27726
|
const currentItemIndex = currentItem ? items.indexOf(currentItem) : -1;
|
|
27738
27727
|
let wrappedItems = wrapArray$1(items, Math.max(currentItemIndex, 0));
|
|
27739
27728
|
const excludeCurrentItem = normalizedSearch.length === 1;
|
|
27740
|
-
if (excludeCurrentItem) wrappedItems = wrappedItems.filter((
|
|
27729
|
+
if (excludeCurrentItem) wrappedItems = wrappedItems.filter((v2) => v2 !== currentItem);
|
|
27741
27730
|
const nextItem = wrappedItems.find(
|
|
27742
27731
|
(item) => item.textValue.toLowerCase().startsWith(normalizedSearch.toLowerCase())
|
|
27743
27732
|
);
|
|
@@ -28904,7 +28893,7 @@ function CharacterForm({
|
|
|
28904
28893
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
28905
28894
|
"div",
|
|
28906
28895
|
{
|
|
28907
|
-
className: `space-y-2 ${field.name === "name" ? "agent-form-name" : ""} ${field.name === "system" ? "agent-form-system-prompt" : ""}`,
|
|
28896
|
+
className: `space-y-2 w-full ${field.name === "name" ? "agent-form-name" : ""} ${field.name === "system" ? "agent-form-system-prompt" : ""}`,
|
|
28908
28897
|
children: [
|
|
28909
28898
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsxRuntimeExports.jsx(TooltipProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Tooltip, { children: [
|
|
28910
28899
|
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Label$2, { htmlFor: field.name, className: "flex items-center gap-1", children: [
|
|
@@ -29038,7 +29027,7 @@ function CharacterForm({
|
|
|
29038
29027
|
},
|
|
29039
29028
|
[onReset, setCharacterValue]
|
|
29040
29029
|
);
|
|
29041
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "container
|
|
29030
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "container w-full mx-auto p-6", children: [
|
|
29042
29031
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center justify-between mb-6", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
29043
29032
|
/* @__PURE__ */ jsxRuntimeExports.jsx("h1", { className: "text-3xl font-bold", children: title || "Agent Settings" }),
|
|
29044
29033
|
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-muted-foreground mt-1", children: description || "Configure your agent settings" })
|
|
@@ -30746,7 +30735,7 @@ function requireParser() {
|
|
|
30746
30735
|
}
|
|
30747
30736
|
return token;
|
|
30748
30737
|
}
|
|
30749
|
-
var symbol, state2, action,
|
|
30738
|
+
var symbol, state2, action, r2, yyval = {}, p, len, newState, expected;
|
|
30750
30739
|
while (true) {
|
|
30751
30740
|
state2 = stack[stack.length - 1];
|
|
30752
30741
|
if (this.defaultActions[state2]) {
|
|
@@ -30796,9 +30785,9 @@ function requireParser() {
|
|
|
30796
30785
|
if (ranges) {
|
|
30797
30786
|
yyval._$.range = [lstack[lstack.length - (len || 1)].range[0], lstack[lstack.length - 1].range[1]];
|
|
30798
30787
|
}
|
|
30799
|
-
|
|
30800
|
-
if (typeof
|
|
30801
|
-
return
|
|
30788
|
+
r2 = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action[1], vstack, lstack);
|
|
30789
|
+
if (typeof r2 !== "undefined") {
|
|
30790
|
+
return r2;
|
|
30802
30791
|
}
|
|
30803
30792
|
if (len) {
|
|
30804
30793
|
stack = stack.slice(0, -1 * len * 2);
|
|
@@ -30867,7 +30856,7 @@ function requireParser() {
|
|
|
30867
30856
|
this.match = this.match.substr(0, this.match.length - 1);
|
|
30868
30857
|
this.matched = this.matched.substr(0, this.matched.length - 1);
|
|
30869
30858
|
if (lines.length - 1) this.yylineno -= lines.length - 1;
|
|
30870
|
-
var
|
|
30859
|
+
var r2 = this.yylloc.range;
|
|
30871
30860
|
this.yylloc = {
|
|
30872
30861
|
first_line: this.yylloc.first_line,
|
|
30873
30862
|
last_line: this.yylineno + 1,
|
|
@@ -30875,7 +30864,7 @@ function requireParser() {
|
|
|
30875
30864
|
last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
|
|
30876
30865
|
};
|
|
30877
30866
|
if (this.options.ranges) {
|
|
30878
|
-
this.yylloc.range = [
|
|
30867
|
+
this.yylloc.range = [r2[0], r2[0] + this.yyleng - len];
|
|
30879
30868
|
}
|
|
30880
30869
|
return this;
|
|
30881
30870
|
},
|
|
@@ -30883,8 +30872,8 @@ function requireParser() {
|
|
|
30883
30872
|
this._more = true;
|
|
30884
30873
|
return this;
|
|
30885
30874
|
},
|
|
30886
|
-
less: function less(
|
|
30887
|
-
this.unput(this.match.slice(
|
|
30875
|
+
less: function less(n2) {
|
|
30876
|
+
this.unput(this.match.slice(n2));
|
|
30888
30877
|
},
|
|
30889
30878
|
pastInput: function pastInput() {
|
|
30890
30879
|
var past = this.matched.substr(0, this.matched.length - this.match.length);
|
|
@@ -30952,9 +30941,9 @@ function requireParser() {
|
|
|
30952
30941
|
}
|
|
30953
30942
|
},
|
|
30954
30943
|
lex: function lex() {
|
|
30955
|
-
var
|
|
30956
|
-
if (typeof
|
|
30957
|
-
return
|
|
30944
|
+
var r2 = this.next();
|
|
30945
|
+
if (typeof r2 !== "undefined") {
|
|
30946
|
+
return r2;
|
|
30958
30947
|
} else {
|
|
30959
30948
|
return this.lex();
|
|
30960
30949
|
}
|
|
@@ -32925,22 +32914,22 @@ function requireQuickSort() {
|
|
|
32925
32914
|
function randomIntInRange(low, high) {
|
|
32926
32915
|
return Math.round(low + Math.random() * (high - low));
|
|
32927
32916
|
}
|
|
32928
|
-
function doQuickSort(ary, comparator2, p,
|
|
32929
|
-
if (p <
|
|
32930
|
-
var pivotIndex = randomIntInRange(p,
|
|
32917
|
+
function doQuickSort(ary, comparator2, p, r2) {
|
|
32918
|
+
if (p < r2) {
|
|
32919
|
+
var pivotIndex = randomIntInRange(p, r2);
|
|
32931
32920
|
var i = p - 1;
|
|
32932
|
-
swap(ary, pivotIndex,
|
|
32933
|
-
var pivot = ary[
|
|
32934
|
-
for (var j = p; j <
|
|
32921
|
+
swap(ary, pivotIndex, r2);
|
|
32922
|
+
var pivot = ary[r2];
|
|
32923
|
+
for (var j = p; j < r2; j++) {
|
|
32935
32924
|
if (comparator2(ary[j], pivot) <= 0) {
|
|
32936
32925
|
i += 1;
|
|
32937
32926
|
swap(ary, i, j);
|
|
32938
32927
|
}
|
|
32939
32928
|
}
|
|
32940
32929
|
swap(ary, i + 1, j);
|
|
32941
|
-
var
|
|
32942
|
-
doQuickSort(ary, comparator2, p,
|
|
32943
|
-
doQuickSort(ary, comparator2,
|
|
32930
|
+
var q2 = i + 1;
|
|
32931
|
+
doQuickSort(ary, comparator2, p, q2 - 1);
|
|
32932
|
+
doQuickSort(ary, comparator2, q2 + 1, r2);
|
|
32944
32933
|
}
|
|
32945
32934
|
}
|
|
32946
32935
|
quickSort.quickSort = function(ary, comparator2) {
|
|
@@ -35385,11 +35374,11 @@ const isAborted = (x) => x.status === "aborted";
|
|
|
35385
35374
|
const isDirty = (x) => x.status === "dirty";
|
|
35386
35375
|
const isValid$1 = (x) => x.status === "valid";
|
|
35387
35376
|
const isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
35388
|
-
function __classPrivateFieldGet(receiver, state2, kind,
|
|
35377
|
+
function __classPrivateFieldGet(receiver, state2, kind, f) {
|
|
35389
35378
|
if (typeof state2 === "function" ? receiver !== state2 || true : !state2.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
35390
35379
|
return state2.get(receiver);
|
|
35391
35380
|
}
|
|
35392
|
-
function __classPrivateFieldSet(receiver, state2, value2, kind,
|
|
35381
|
+
function __classPrivateFieldSet(receiver, state2, value2, kind, f) {
|
|
35393
35382
|
if (typeof state2 === "function" ? receiver !== state2 || true : !state2.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
35394
35383
|
return state2.set(receiver, value2), value2;
|
|
35395
35384
|
}
|
|
@@ -38852,7 +38841,7 @@ const coerce = {
|
|
|
38852
38841
|
date: (arg) => ZodDate.create({ ...arg, coerce: true })
|
|
38853
38842
|
};
|
|
38854
38843
|
const NEVER = INVALID;
|
|
38855
|
-
var z
|
|
38844
|
+
var z = /* @__PURE__ */ Object.freeze({
|
|
38856
38845
|
__proto__: null,
|
|
38857
38846
|
defaultErrorMap: errorMap,
|
|
38858
38847
|
setErrorMap,
|
|
@@ -39909,7 +39898,7 @@ function requireRe() {
|
|
|
39909
39898
|
const src2 = exports.src = [];
|
|
39910
39899
|
const safeSrc = exports.safeSrc = [];
|
|
39911
39900
|
const t = exports.t = {};
|
|
39912
|
-
let
|
|
39901
|
+
let R = 0;
|
|
39913
39902
|
const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
39914
39903
|
const safeRegexReplacements = [
|
|
39915
39904
|
["\\s", 1],
|
|
@@ -39924,7 +39913,7 @@ function requireRe() {
|
|
|
39924
39913
|
};
|
|
39925
39914
|
const createToken = (name, value2, isGlobal) => {
|
|
39926
39915
|
const safe = makeSafeRegex(value2);
|
|
39927
|
-
const index2 =
|
|
39916
|
+
const index2 = R++;
|
|
39928
39917
|
debug(name, index2, value2);
|
|
39929
39918
|
t[name] = index2;
|
|
39930
39919
|
src2[index2] = value2;
|
|
@@ -40174,8 +40163,8 @@ function requireSemver$1() {
|
|
|
40174
40163
|
throw new Error("invalid increment argument: identifier is empty");
|
|
40175
40164
|
}
|
|
40176
40165
|
if (identifier) {
|
|
40177
|
-
const
|
|
40178
|
-
const match2 = `-${identifier}`.match(
|
|
40166
|
+
const r2 = new RegExp(`^${this.options.loose ? src2[t.PRERELEASELOOSE] : src2[t.PRERELEASE]}$`);
|
|
40167
|
+
const match2 = `-${identifier}`.match(r2);
|
|
40179
40168
|
if (!match2 || match2[1] !== identifier) {
|
|
40180
40169
|
throw new Error(`invalid identifier: ${identifier}`);
|
|
40181
40170
|
}
|
|
@@ -40313,8 +40302,8 @@ function requireValid$1() {
|
|
|
40313
40302
|
hasRequiredValid$1 = 1;
|
|
40314
40303
|
const parse2 = requireParse();
|
|
40315
40304
|
const valid2 = (version2, options) => {
|
|
40316
|
-
const
|
|
40317
|
-
return
|
|
40305
|
+
const v2 = parse2(version2, options);
|
|
40306
|
+
return v2 ? v2.version : null;
|
|
40318
40307
|
};
|
|
40319
40308
|
valid_1 = valid2;
|
|
40320
40309
|
return valid_1;
|
|
@@ -40727,7 +40716,7 @@ function requireRange() {
|
|
|
40727
40716
|
this.loose = !!options.loose;
|
|
40728
40717
|
this.includePrerelease = !!options.includePrerelease;
|
|
40729
40718
|
this.raw = range2.trim().replace(SPACE_CHARACTERS, " ");
|
|
40730
|
-
this.set = this.raw.split("||").map((
|
|
40719
|
+
this.set = this.raw.split("||").map((r2) => this.parseRange(r2.trim())).filter((c) => c.length);
|
|
40731
40720
|
if (!this.set.length) {
|
|
40732
40721
|
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
40733
40722
|
}
|
|
@@ -40779,8 +40768,8 @@ function requireRange() {
|
|
|
40779
40768
|
return cached;
|
|
40780
40769
|
}
|
|
40781
40770
|
const loose = this.options.loose;
|
|
40782
|
-
const
|
|
40783
|
-
range2 = range2.replace(
|
|
40771
|
+
const hr = loose ? re2[t.HYPHENRANGELOOSE] : re2[t.HYPHENRANGE];
|
|
40772
|
+
range2 = range2.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
40784
40773
|
debug("hyphen replace", range2);
|
|
40785
40774
|
range2 = range2.replace(re2[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
40786
40775
|
debug("comparator trim", range2);
|
|
@@ -40891,9 +40880,9 @@ function requireRange() {
|
|
|
40891
40880
|
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
40892
40881
|
};
|
|
40893
40882
|
const replaceTilde = (comp, options) => {
|
|
40894
|
-
const
|
|
40895
|
-
return comp.replace(
|
|
40896
|
-
debug("tilde", comp, _, M, m, p,
|
|
40883
|
+
const r2 = options.loose ? re2[t.TILDELOOSE] : re2[t.TILDE];
|
|
40884
|
+
return comp.replace(r2, (_, M, m, p, pr) => {
|
|
40885
|
+
debug("tilde", comp, _, M, m, p, pr);
|
|
40897
40886
|
let ret;
|
|
40898
40887
|
if (isX(M)) {
|
|
40899
40888
|
ret = "";
|
|
@@ -40901,9 +40890,9 @@ function requireRange() {
|
|
|
40901
40890
|
ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
40902
40891
|
} else if (isX(p)) {
|
|
40903
40892
|
ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
40904
|
-
} else if (
|
|
40905
|
-
debug("replaceTilde pr",
|
|
40906
|
-
ret = `>=${M}.${m}.${p}-${
|
|
40893
|
+
} else if (pr) {
|
|
40894
|
+
debug("replaceTilde pr", pr);
|
|
40895
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
40907
40896
|
} else {
|
|
40908
40897
|
ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
40909
40898
|
}
|
|
@@ -40916,10 +40905,10 @@ function requireRange() {
|
|
|
40916
40905
|
};
|
|
40917
40906
|
const replaceCaret = (comp, options) => {
|
|
40918
40907
|
debug("caret", comp, options);
|
|
40919
|
-
const
|
|
40908
|
+
const r2 = options.loose ? re2[t.CARETLOOSE] : re2[t.CARET];
|
|
40920
40909
|
const z2 = options.includePrerelease ? "-0" : "";
|
|
40921
|
-
return comp.replace(
|
|
40922
|
-
debug("caret", comp, _, M, m, p,
|
|
40910
|
+
return comp.replace(r2, (_, M, m, p, pr) => {
|
|
40911
|
+
debug("caret", comp, _, M, m, p, pr);
|
|
40923
40912
|
let ret;
|
|
40924
40913
|
if (isX(M)) {
|
|
40925
40914
|
ret = "";
|
|
@@ -40931,16 +40920,16 @@ function requireRange() {
|
|
|
40931
40920
|
} else {
|
|
40932
40921
|
ret = `>=${M}.${m}.0${z2} <${+M + 1}.0.0-0`;
|
|
40933
40922
|
}
|
|
40934
|
-
} else if (
|
|
40935
|
-
debug("replaceCaret pr",
|
|
40923
|
+
} else if (pr) {
|
|
40924
|
+
debug("replaceCaret pr", pr);
|
|
40936
40925
|
if (M === "0") {
|
|
40937
40926
|
if (m === "0") {
|
|
40938
|
-
ret = `>=${M}.${m}.${p}-${
|
|
40927
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
|
|
40939
40928
|
} else {
|
|
40940
|
-
ret = `>=${M}.${m}.${p}-${
|
|
40929
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
40941
40930
|
}
|
|
40942
40931
|
} else {
|
|
40943
|
-
ret = `>=${M}.${m}.${p}-${
|
|
40932
|
+
ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
40944
40933
|
}
|
|
40945
40934
|
} else {
|
|
40946
40935
|
debug("no pr");
|
|
@@ -40964,9 +40953,9 @@ function requireRange() {
|
|
|
40964
40953
|
};
|
|
40965
40954
|
const replaceXRange = (comp, options) => {
|
|
40966
40955
|
comp = comp.trim();
|
|
40967
|
-
const
|
|
40968
|
-
return comp.replace(
|
|
40969
|
-
debug("xRange", comp, ret, gtlt, M, m, p,
|
|
40956
|
+
const r2 = options.loose ? re2[t.XRANGELOOSE] : re2[t.XRANGE];
|
|
40957
|
+
return comp.replace(r2, (ret, gtlt, M, m, p, pr) => {
|
|
40958
|
+
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
40970
40959
|
const xM = isX(M);
|
|
40971
40960
|
const xm = xM || isX(m);
|
|
40972
40961
|
const xp = xm || isX(p);
|
|
@@ -40974,7 +40963,7 @@ function requireRange() {
|
|
|
40974
40963
|
if (gtlt === "=" && anyX) {
|
|
40975
40964
|
gtlt = "";
|
|
40976
40965
|
}
|
|
40977
|
-
|
|
40966
|
+
pr = options.includePrerelease ? "-0" : "";
|
|
40978
40967
|
if (xM) {
|
|
40979
40968
|
if (gtlt === ">" || gtlt === "<") {
|
|
40980
40969
|
ret = "<0.0.0-0";
|
|
@@ -41005,13 +40994,13 @@ function requireRange() {
|
|
|
41005
40994
|
}
|
|
41006
40995
|
}
|
|
41007
40996
|
if (gtlt === "<") {
|
|
41008
|
-
|
|
40997
|
+
pr = "-0";
|
|
41009
40998
|
}
|
|
41010
|
-
ret = `${gtlt + M}.${m}.${p}${
|
|
40999
|
+
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
41011
41000
|
} else if (xm) {
|
|
41012
|
-
ret = `>=${M}.0.0${
|
|
41001
|
+
ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
41013
41002
|
} else if (xp) {
|
|
41014
|
-
ret = `>=${M}.${m}.0${
|
|
41003
|
+
ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
|
|
41015
41004
|
}
|
|
41016
41005
|
debug("xRange return", ret);
|
|
41017
41006
|
return ret;
|
|
@@ -41025,12 +41014,12 @@ function requireRange() {
|
|
|
41025
41014
|
debug("replaceGTE0", comp, options);
|
|
41026
41015
|
return comp.trim().replace(re2[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
41027
41016
|
};
|
|
41028
|
-
const hyphenReplace = (incPr) => ($0, from, fM, fm,
|
|
41017
|
+
const hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to2, tM, tm, tp, tpr) => {
|
|
41029
41018
|
if (isX(fM)) {
|
|
41030
41019
|
from = "";
|
|
41031
41020
|
} else if (isX(fm)) {
|
|
41032
41021
|
from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
|
|
41033
|
-
} else if (isX(
|
|
41022
|
+
} else if (isX(fp)) {
|
|
41034
41023
|
from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
|
|
41035
41024
|
} else if (fpr) {
|
|
41036
41025
|
from = `>=${from}`;
|
|
@@ -41109,8 +41098,8 @@ function requireComparator() {
|
|
|
41109
41098
|
debug("comp", this);
|
|
41110
41099
|
}
|
|
41111
41100
|
parse(comp) {
|
|
41112
|
-
const
|
|
41113
|
-
const m = comp.match(
|
|
41101
|
+
const r2 = this.options.loose ? re2[t.COMPARATORLOOSE] : re2[t.COMPARATOR];
|
|
41102
|
+
const m = comp.match(r2);
|
|
41114
41103
|
if (!m) {
|
|
41115
41104
|
throw new TypeError(`Invalid comparator: ${comp}`);
|
|
41116
41105
|
}
|
|
@@ -41233,10 +41222,10 @@ function requireMaxSatisfying() {
|
|
|
41233
41222
|
} catch (er) {
|
|
41234
41223
|
return null;
|
|
41235
41224
|
}
|
|
41236
|
-
versions.forEach((
|
|
41237
|
-
if (rangeObj.test(
|
|
41238
|
-
if (!max2 || maxSV.compare(
|
|
41239
|
-
max2 =
|
|
41225
|
+
versions.forEach((v2) => {
|
|
41226
|
+
if (rangeObj.test(v2)) {
|
|
41227
|
+
if (!max2 || maxSV.compare(v2) === -1) {
|
|
41228
|
+
max2 = v2;
|
|
41240
41229
|
maxSV = new SemVer(max2, options);
|
|
41241
41230
|
}
|
|
41242
41231
|
}
|
|
@@ -41262,10 +41251,10 @@ function requireMinSatisfying() {
|
|
|
41262
41251
|
} catch (er) {
|
|
41263
41252
|
return null;
|
|
41264
41253
|
}
|
|
41265
|
-
versions.forEach((
|
|
41266
|
-
if (rangeObj.test(
|
|
41267
|
-
if (!min2 || minSV.compare(
|
|
41268
|
-
min2 =
|
|
41254
|
+
versions.forEach((v2) => {
|
|
41255
|
+
if (rangeObj.test(v2)) {
|
|
41256
|
+
if (!min2 || minSV.compare(v2) === 1) {
|
|
41257
|
+
min2 = v2;
|
|
41269
41258
|
minSV = new SemVer(min2, options);
|
|
41270
41259
|
}
|
|
41271
41260
|
}
|
|
@@ -41445,10 +41434,10 @@ function requireIntersects() {
|
|
|
41445
41434
|
if (hasRequiredIntersects) return intersects_1;
|
|
41446
41435
|
hasRequiredIntersects = 1;
|
|
41447
41436
|
const Range = requireRange();
|
|
41448
|
-
const intersects2 = (r1,
|
|
41437
|
+
const intersects2 = (r1, r2, options) => {
|
|
41449
41438
|
r1 = new Range(r1, options);
|
|
41450
|
-
|
|
41451
|
-
return r1.intersects(
|
|
41439
|
+
r2 = new Range(r2, options);
|
|
41440
|
+
return r1.intersects(r2, options);
|
|
41452
41441
|
};
|
|
41453
41442
|
intersects_1 = intersects2;
|
|
41454
41443
|
return intersects_1;
|
|
@@ -41464,8 +41453,8 @@ function requireSimplify() {
|
|
|
41464
41453
|
const set = [];
|
|
41465
41454
|
let first = null;
|
|
41466
41455
|
let prev = null;
|
|
41467
|
-
const
|
|
41468
|
-
for (const version2 of
|
|
41456
|
+
const v2 = versions.sort((a, b) => compare2(a, b, options));
|
|
41457
|
+
for (const version2 of v2) {
|
|
41469
41458
|
const included = satisfies(version2, range2, options);
|
|
41470
41459
|
if (included) {
|
|
41471
41460
|
prev = version2;
|
|
@@ -41487,11 +41476,11 @@ function requireSimplify() {
|
|
|
41487
41476
|
for (const [min2, max2] of set) {
|
|
41488
41477
|
if (min2 === max2) {
|
|
41489
41478
|
ranges.push(min2);
|
|
41490
|
-
} else if (!max2 && min2 ===
|
|
41479
|
+
} else if (!max2 && min2 === v2[0]) {
|
|
41491
41480
|
ranges.push("*");
|
|
41492
41481
|
} else if (!max2) {
|
|
41493
41482
|
ranges.push(`>=${min2}`);
|
|
41494
|
-
} else if (min2 ===
|
|
41483
|
+
} else if (min2 === v2[0]) {
|
|
41495
41484
|
ranges.push(`<=${max2}`);
|
|
41496
41485
|
} else {
|
|
41497
41486
|
ranges.push(`${min2} - ${max2}`);
|
|
@@ -42264,32 +42253,32 @@ function requireQuickFormatUnescaped() {
|
|
|
42264
42253
|
}
|
|
42265
42254
|
}
|
|
42266
42255
|
quickFormatUnescaped = format2;
|
|
42267
|
-
function format2(
|
|
42256
|
+
function format2(f, args, opts) {
|
|
42268
42257
|
var ss = opts && opts.stringify || tryStringify;
|
|
42269
42258
|
var offset2 = 1;
|
|
42270
|
-
if (typeof
|
|
42259
|
+
if (typeof f === "object" && f !== null) {
|
|
42271
42260
|
var len = args.length + offset2;
|
|
42272
|
-
if (len === 1) return
|
|
42261
|
+
if (len === 1) return f;
|
|
42273
42262
|
var objects = new Array(len);
|
|
42274
|
-
objects[0] = ss(
|
|
42263
|
+
objects[0] = ss(f);
|
|
42275
42264
|
for (var index2 = 1; index2 < len; index2++) {
|
|
42276
42265
|
objects[index2] = ss(args[index2]);
|
|
42277
42266
|
}
|
|
42278
42267
|
return objects.join(" ");
|
|
42279
42268
|
}
|
|
42280
|
-
if (typeof
|
|
42281
|
-
return
|
|
42269
|
+
if (typeof f !== "string") {
|
|
42270
|
+
return f;
|
|
42282
42271
|
}
|
|
42283
42272
|
var argLen = args.length;
|
|
42284
|
-
if (argLen === 0) return
|
|
42273
|
+
if (argLen === 0) return f;
|
|
42285
42274
|
var str = "";
|
|
42286
42275
|
var a = 1 - offset2;
|
|
42287
42276
|
var lastPos = -1;
|
|
42288
|
-
var flen =
|
|
42277
|
+
var flen = f && f.length || 0;
|
|
42289
42278
|
for (var i = 0; i < flen; ) {
|
|
42290
|
-
if (
|
|
42279
|
+
if (f.charCodeAt(i) === 37 && i + 1 < flen) {
|
|
42291
42280
|
lastPos = lastPos > -1 ? lastPos : 0;
|
|
42292
|
-
switch (
|
|
42281
|
+
switch (f.charCodeAt(i + 1)) {
|
|
42293
42282
|
case 100:
|
|
42294
42283
|
// 'd'
|
|
42295
42284
|
case 102:
|
|
@@ -42297,7 +42286,7 @@ function requireQuickFormatUnescaped() {
|
|
|
42297
42286
|
break;
|
|
42298
42287
|
if (args[a] == null) break;
|
|
42299
42288
|
if (lastPos < i)
|
|
42300
|
-
str +=
|
|
42289
|
+
str += f.slice(lastPos, i);
|
|
42301
42290
|
str += Number(args[a]);
|
|
42302
42291
|
lastPos = i + 2;
|
|
42303
42292
|
i++;
|
|
@@ -42307,7 +42296,7 @@ function requireQuickFormatUnescaped() {
|
|
|
42307
42296
|
break;
|
|
42308
42297
|
if (args[a] == null) break;
|
|
42309
42298
|
if (lastPos < i)
|
|
42310
|
-
str +=
|
|
42299
|
+
str += f.slice(lastPos, i);
|
|
42311
42300
|
str += Math.floor(Number(args[a]));
|
|
42312
42301
|
lastPos = i + 2;
|
|
42313
42302
|
i++;
|
|
@@ -42321,7 +42310,7 @@ function requireQuickFormatUnescaped() {
|
|
|
42321
42310
|
break;
|
|
42322
42311
|
if (args[a] === void 0) break;
|
|
42323
42312
|
if (lastPos < i)
|
|
42324
|
-
str +=
|
|
42313
|
+
str += f.slice(lastPos, i);
|
|
42325
42314
|
var type = typeof args[a];
|
|
42326
42315
|
if (type === "string") {
|
|
42327
42316
|
str += "'" + args[a] + "'";
|
|
@@ -42343,14 +42332,14 @@ function requireQuickFormatUnescaped() {
|
|
|
42343
42332
|
if (a >= argLen)
|
|
42344
42333
|
break;
|
|
42345
42334
|
if (lastPos < i)
|
|
42346
|
-
str +=
|
|
42335
|
+
str += f.slice(lastPos, i);
|
|
42347
42336
|
str += String(args[a]);
|
|
42348
42337
|
lastPos = i + 2;
|
|
42349
42338
|
i++;
|
|
42350
42339
|
break;
|
|
42351
42340
|
case 37:
|
|
42352
42341
|
if (lastPos < i)
|
|
42353
|
-
str +=
|
|
42342
|
+
str += f.slice(lastPos, i);
|
|
42354
42343
|
str += "%";
|
|
42355
42344
|
lastPos = i + 2;
|
|
42356
42345
|
i++;
|
|
@@ -42362,9 +42351,9 @@ function requireQuickFormatUnescaped() {
|
|
|
42362
42351
|
++i;
|
|
42363
42352
|
}
|
|
42364
42353
|
if (lastPos === -1)
|
|
42365
|
-
return
|
|
42354
|
+
return f;
|
|
42366
42355
|
else if (lastPos < flen) {
|
|
42367
|
-
str +=
|
|
42356
|
+
str += f.slice(lastPos);
|
|
42368
42357
|
}
|
|
42369
42358
|
return str;
|
|
42370
42359
|
}
|
|
@@ -42787,7 +42776,7 @@ function requireBrowser$1() {
|
|
|
42787
42776
|
return browser$1.exports;
|
|
42788
42777
|
}
|
|
42789
42778
|
var browserExports = requireBrowser$1();
|
|
42790
|
-
const
|
|
42779
|
+
const Je = /* @__PURE__ */ getDefaultExportFromCjs(browserExports);
|
|
42791
42780
|
var _globalThis$3 = typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : typeof window === "object" ? window : typeof global === "object" ? global : {};
|
|
42792
42781
|
var VERSION$4 = "1.9.0";
|
|
42793
42782
|
var re$1 = /^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;
|
|
@@ -42811,12 +42800,12 @@ function _makeCompatibilityCheck(ownVersion) {
|
|
|
42811
42800
|
return globalVersion === ownVersion;
|
|
42812
42801
|
};
|
|
42813
42802
|
}
|
|
42814
|
-
function _reject(
|
|
42815
|
-
rejectedVersions.add(
|
|
42803
|
+
function _reject(v2) {
|
|
42804
|
+
rejectedVersions.add(v2);
|
|
42816
42805
|
return false;
|
|
42817
42806
|
}
|
|
42818
|
-
function _accept(
|
|
42819
|
-
acceptedVersions.add(
|
|
42807
|
+
function _accept(v2) {
|
|
42808
|
+
acceptedVersions.add(v2);
|
|
42820
42809
|
return true;
|
|
42821
42810
|
}
|
|
42822
42811
|
return function isCompatible2(globalVersion) {
|
|
@@ -42895,17 +42884,17 @@ function unregisterGlobal(type, diag2) {
|
|
|
42895
42884
|
delete api[type];
|
|
42896
42885
|
}
|
|
42897
42886
|
}
|
|
42898
|
-
var __read$4 = function(o,
|
|
42887
|
+
var __read$4 = function(o, n2) {
|
|
42899
42888
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
42900
42889
|
if (!m) return o;
|
|
42901
|
-
var i = m.call(o),
|
|
42890
|
+
var i = m.call(o), r2, ar = [], e;
|
|
42902
42891
|
try {
|
|
42903
|
-
while ((
|
|
42892
|
+
while ((n2 === void 0 || n2-- > 0) && !(r2 = i.next()).done) ar.push(r2.value);
|
|
42904
42893
|
} catch (error) {
|
|
42905
42894
|
e = { error };
|
|
42906
42895
|
} finally {
|
|
42907
42896
|
try {
|
|
42908
|
-
if (
|
|
42897
|
+
if (r2 && !r2.done && (m = i["return"])) m.call(i);
|
|
42909
42898
|
} finally {
|
|
42910
42899
|
if (e) throw e.error;
|
|
42911
42900
|
}
|
|
@@ -43006,17 +42995,17 @@ function createLogLevelDiagLogger(maxLevel, logger2) {
|
|
|
43006
42995
|
verbose: _filterFunc("verbose", DiagLogLevel.VERBOSE)
|
|
43007
42996
|
};
|
|
43008
42997
|
}
|
|
43009
|
-
var __read$3 = function(o,
|
|
42998
|
+
var __read$3 = function(o, n2) {
|
|
43010
42999
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
43011
43000
|
if (!m) return o;
|
|
43012
|
-
var i = m.call(o),
|
|
43001
|
+
var i = m.call(o), r2, ar = [], e;
|
|
43013
43002
|
try {
|
|
43014
|
-
while ((
|
|
43003
|
+
while ((n2 === void 0 || n2-- > 0) && !(r2 = i.next()).done) ar.push(r2.value);
|
|
43015
43004
|
} catch (error) {
|
|
43016
43005
|
e = { error };
|
|
43017
43006
|
} finally {
|
|
43018
43007
|
try {
|
|
43019
|
-
if (
|
|
43008
|
+
if (r2 && !r2.done && (m = i["return"])) m.call(i);
|
|
43020
43009
|
} finally {
|
|
43021
43010
|
if (e) throw e.error;
|
|
43022
43011
|
}
|
|
@@ -43096,17 +43085,17 @@ var DiagAPI = (
|
|
|
43096
43085
|
return DiagAPI2;
|
|
43097
43086
|
}()
|
|
43098
43087
|
);
|
|
43099
|
-
var __read$2 = function(o,
|
|
43088
|
+
var __read$2 = function(o, n2) {
|
|
43100
43089
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
43101
43090
|
if (!m) return o;
|
|
43102
|
-
var i = m.call(o),
|
|
43091
|
+
var i = m.call(o), r2, ar = [], e;
|
|
43103
43092
|
try {
|
|
43104
|
-
while ((
|
|
43093
|
+
while ((n2 === void 0 || n2-- > 0) && !(r2 = i.next()).done) ar.push(r2.value);
|
|
43105
43094
|
} catch (error) {
|
|
43106
43095
|
e = { error };
|
|
43107
43096
|
} finally {
|
|
43108
43097
|
try {
|
|
43109
|
-
if (
|
|
43098
|
+
if (r2 && !r2.done && (m = i["return"])) m.call(i);
|
|
43110
43099
|
} finally {
|
|
43111
43100
|
if (e) throw e.error;
|
|
43112
43101
|
}
|
|
@@ -43139,8 +43128,8 @@ var BaggageImpl = (
|
|
|
43139
43128
|
};
|
|
43140
43129
|
BaggageImpl2.prototype.getAllEntries = function() {
|
|
43141
43130
|
return Array.from(this._entries.entries()).map(function(_a2) {
|
|
43142
|
-
var _b2 = __read$2(_a2, 2), k = _b2[0],
|
|
43143
|
-
return [k,
|
|
43131
|
+
var _b2 = __read$2(_a2, 2), k = _b2[0], v2 = _b2[1];
|
|
43132
|
+
return [k, v2];
|
|
43144
43133
|
});
|
|
43145
43134
|
};
|
|
43146
43135
|
BaggageImpl2.prototype.setEntry = function(key, entry) {
|
|
@@ -43452,17 +43441,17 @@ var defaultTextMapSetter = {
|
|
|
43452
43441
|
carrier[key] = value2;
|
|
43453
43442
|
}
|
|
43454
43443
|
};
|
|
43455
|
-
var __read$1 = function(o,
|
|
43444
|
+
var __read$1 = function(o, n2) {
|
|
43456
43445
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
43457
43446
|
if (!m) return o;
|
|
43458
|
-
var i = m.call(o),
|
|
43447
|
+
var i = m.call(o), r2, ar = [], e;
|
|
43459
43448
|
try {
|
|
43460
|
-
while ((
|
|
43449
|
+
while ((n2 === void 0 || n2-- > 0) && !(r2 = i.next()).done) ar.push(r2.value);
|
|
43461
43450
|
} catch (error) {
|
|
43462
43451
|
e = { error };
|
|
43463
43452
|
} finally {
|
|
43464
43453
|
try {
|
|
43465
|
-
if (
|
|
43454
|
+
if (r2 && !r2.done && (m = i["return"])) m.call(i);
|
|
43466
43455
|
} finally {
|
|
43467
43456
|
if (e) throw e.error;
|
|
43468
43457
|
}
|
|
@@ -43505,17 +43494,17 @@ var NoopContextManager = (
|
|
|
43505
43494
|
return NoopContextManager2;
|
|
43506
43495
|
}()
|
|
43507
43496
|
);
|
|
43508
|
-
var __read = function(o,
|
|
43497
|
+
var __read = function(o, n2) {
|
|
43509
43498
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
43510
43499
|
if (!m) return o;
|
|
43511
|
-
var i = m.call(o),
|
|
43500
|
+
var i = m.call(o), r2, ar = [], e;
|
|
43512
43501
|
try {
|
|
43513
|
-
while ((
|
|
43502
|
+
while ((n2 === void 0 || n2-- > 0) && !(r2 = i.next()).done) ar.push(r2.value);
|
|
43514
43503
|
} catch (error) {
|
|
43515
43504
|
e = { error };
|
|
43516
43505
|
} finally {
|
|
43517
43506
|
try {
|
|
43518
|
-
if (
|
|
43507
|
+
if (r2 && !r2.done && (m = i["return"])) m.call(i);
|
|
43519
43508
|
} finally {
|
|
43520
43509
|
if (e) throw e.error;
|
|
43521
43510
|
}
|
|
@@ -44095,13 +44084,13 @@ var hasRequiredEvents;
|
|
|
44095
44084
|
function requireEvents() {
|
|
44096
44085
|
if (hasRequiredEvents) return events.exports;
|
|
44097
44086
|
hasRequiredEvents = 1;
|
|
44098
|
-
var
|
|
44099
|
-
var ReflectApply =
|
|
44087
|
+
var R = typeof Reflect === "object" ? Reflect : null;
|
|
44088
|
+
var ReflectApply = R && typeof R.apply === "function" ? R.apply : function ReflectApply2(target, receiver, args) {
|
|
44100
44089
|
return Function.prototype.apply.call(target, receiver, args);
|
|
44101
44090
|
};
|
|
44102
44091
|
var ReflectOwnKeys;
|
|
44103
|
-
if (
|
|
44104
|
-
ReflectOwnKeys =
|
|
44092
|
+
if (R && typeof R.ownKeys === "function") {
|
|
44093
|
+
ReflectOwnKeys = R.ownKeys;
|
|
44105
44094
|
} else if (Object.getOwnPropertySymbols) {
|
|
44106
44095
|
ReflectOwnKeys = function ReflectOwnKeys2(target) {
|
|
44107
44096
|
return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
|
|
@@ -44151,11 +44140,11 @@ function requireEvents() {
|
|
|
44151
44140
|
}
|
|
44152
44141
|
this._maxListeners = this._maxListeners || void 0;
|
|
44153
44142
|
};
|
|
44154
|
-
EventEmitter.prototype.setMaxListeners = function setMaxListeners(
|
|
44155
|
-
if (typeof
|
|
44156
|
-
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' +
|
|
44143
|
+
EventEmitter.prototype.setMaxListeners = function setMaxListeners(n2) {
|
|
44144
|
+
if (typeof n2 !== "number" || n2 < 0 || NumberIsNaN(n2)) {
|
|
44145
|
+
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n2 + ".");
|
|
44157
44146
|
}
|
|
44158
|
-
this._maxListeners =
|
|
44147
|
+
this._maxListeners = n2;
|
|
44159
44148
|
return this;
|
|
44160
44149
|
};
|
|
44161
44150
|
function _getMaxListeners(that) {
|
|
@@ -44397,9 +44386,9 @@ function requireEvents() {
|
|
|
44397
44386
|
EventEmitter.prototype.eventNames = function eventNames() {
|
|
44398
44387
|
return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];
|
|
44399
44388
|
};
|
|
44400
|
-
function arrayClone(arr,
|
|
44401
|
-
var copy = new Array(
|
|
44402
|
-
for (var i = 0; i <
|
|
44389
|
+
function arrayClone(arr, n2) {
|
|
44390
|
+
var copy = new Array(n2);
|
|
44391
|
+
for (var i = 0; i < n2; ++i)
|
|
44403
44392
|
copy[i] = arr[i];
|
|
44404
44393
|
return copy;
|
|
44405
44394
|
}
|
|
@@ -49561,97 +49550,97 @@ function requireSha1() {
|
|
|
49561
49550
|
};
|
|
49562
49551
|
Sha1.prototype.hash = function() {
|
|
49563
49552
|
var a = this.h0, b = this.h1, c = this.h2, d = this.h3, e = this.h4;
|
|
49564
|
-
var
|
|
49553
|
+
var f, j, t, blocks2 = this.blocks;
|
|
49565
49554
|
for (j = 16; j < 80; ++j) {
|
|
49566
49555
|
t = blocks2[j - 3] ^ blocks2[j - 8] ^ blocks2[j - 14] ^ blocks2[j - 16];
|
|
49567
49556
|
blocks2[j] = t << 1 | t >>> 31;
|
|
49568
49557
|
}
|
|
49569
49558
|
for (j = 0; j < 20; j += 5) {
|
|
49570
|
-
|
|
49559
|
+
f = b & c | ~b & d;
|
|
49571
49560
|
t = a << 5 | a >>> 27;
|
|
49572
|
-
e = t +
|
|
49561
|
+
e = t + f + e + 1518500249 + blocks2[j] << 0;
|
|
49573
49562
|
b = b << 30 | b >>> 2;
|
|
49574
|
-
|
|
49563
|
+
f = a & b | ~a & c;
|
|
49575
49564
|
t = e << 5 | e >>> 27;
|
|
49576
|
-
d = t +
|
|
49565
|
+
d = t + f + d + 1518500249 + blocks2[j + 1] << 0;
|
|
49577
49566
|
a = a << 30 | a >>> 2;
|
|
49578
|
-
|
|
49567
|
+
f = e & a | ~e & b;
|
|
49579
49568
|
t = d << 5 | d >>> 27;
|
|
49580
|
-
c = t +
|
|
49569
|
+
c = t + f + c + 1518500249 + blocks2[j + 2] << 0;
|
|
49581
49570
|
e = e << 30 | e >>> 2;
|
|
49582
|
-
|
|
49571
|
+
f = d & e | ~d & a;
|
|
49583
49572
|
t = c << 5 | c >>> 27;
|
|
49584
|
-
b = t +
|
|
49573
|
+
b = t + f + b + 1518500249 + blocks2[j + 3] << 0;
|
|
49585
49574
|
d = d << 30 | d >>> 2;
|
|
49586
|
-
|
|
49575
|
+
f = c & d | ~c & e;
|
|
49587
49576
|
t = b << 5 | b >>> 27;
|
|
49588
|
-
a = t +
|
|
49577
|
+
a = t + f + a + 1518500249 + blocks2[j + 4] << 0;
|
|
49589
49578
|
c = c << 30 | c >>> 2;
|
|
49590
49579
|
}
|
|
49591
49580
|
for (; j < 40; j += 5) {
|
|
49592
|
-
|
|
49581
|
+
f = b ^ c ^ d;
|
|
49593
49582
|
t = a << 5 | a >>> 27;
|
|
49594
|
-
e = t +
|
|
49583
|
+
e = t + f + e + 1859775393 + blocks2[j] << 0;
|
|
49595
49584
|
b = b << 30 | b >>> 2;
|
|
49596
|
-
|
|
49585
|
+
f = a ^ b ^ c;
|
|
49597
49586
|
t = e << 5 | e >>> 27;
|
|
49598
|
-
d = t +
|
|
49587
|
+
d = t + f + d + 1859775393 + blocks2[j + 1] << 0;
|
|
49599
49588
|
a = a << 30 | a >>> 2;
|
|
49600
|
-
|
|
49589
|
+
f = e ^ a ^ b;
|
|
49601
49590
|
t = d << 5 | d >>> 27;
|
|
49602
|
-
c = t +
|
|
49591
|
+
c = t + f + c + 1859775393 + blocks2[j + 2] << 0;
|
|
49603
49592
|
e = e << 30 | e >>> 2;
|
|
49604
|
-
|
|
49593
|
+
f = d ^ e ^ a;
|
|
49605
49594
|
t = c << 5 | c >>> 27;
|
|
49606
|
-
b = t +
|
|
49595
|
+
b = t + f + b + 1859775393 + blocks2[j + 3] << 0;
|
|
49607
49596
|
d = d << 30 | d >>> 2;
|
|
49608
|
-
|
|
49597
|
+
f = c ^ d ^ e;
|
|
49609
49598
|
t = b << 5 | b >>> 27;
|
|
49610
|
-
a = t +
|
|
49599
|
+
a = t + f + a + 1859775393 + blocks2[j + 4] << 0;
|
|
49611
49600
|
c = c << 30 | c >>> 2;
|
|
49612
49601
|
}
|
|
49613
49602
|
for (; j < 60; j += 5) {
|
|
49614
|
-
|
|
49603
|
+
f = b & c | b & d | c & d;
|
|
49615
49604
|
t = a << 5 | a >>> 27;
|
|
49616
|
-
e = t +
|
|
49605
|
+
e = t + f + e - 1894007588 + blocks2[j] << 0;
|
|
49617
49606
|
b = b << 30 | b >>> 2;
|
|
49618
|
-
|
|
49607
|
+
f = a & b | a & c | b & c;
|
|
49619
49608
|
t = e << 5 | e >>> 27;
|
|
49620
|
-
d = t +
|
|
49609
|
+
d = t + f + d - 1894007588 + blocks2[j + 1] << 0;
|
|
49621
49610
|
a = a << 30 | a >>> 2;
|
|
49622
|
-
|
|
49611
|
+
f = e & a | e & b | a & b;
|
|
49623
49612
|
t = d << 5 | d >>> 27;
|
|
49624
|
-
c = t +
|
|
49613
|
+
c = t + f + c - 1894007588 + blocks2[j + 2] << 0;
|
|
49625
49614
|
e = e << 30 | e >>> 2;
|
|
49626
|
-
|
|
49615
|
+
f = d & e | d & a | e & a;
|
|
49627
49616
|
t = c << 5 | c >>> 27;
|
|
49628
|
-
b = t +
|
|
49617
|
+
b = t + f + b - 1894007588 + blocks2[j + 3] << 0;
|
|
49629
49618
|
d = d << 30 | d >>> 2;
|
|
49630
|
-
|
|
49619
|
+
f = c & d | c & e | d & e;
|
|
49631
49620
|
t = b << 5 | b >>> 27;
|
|
49632
|
-
a = t +
|
|
49621
|
+
a = t + f + a - 1894007588 + blocks2[j + 4] << 0;
|
|
49633
49622
|
c = c << 30 | c >>> 2;
|
|
49634
49623
|
}
|
|
49635
49624
|
for (; j < 80; j += 5) {
|
|
49636
|
-
|
|
49625
|
+
f = b ^ c ^ d;
|
|
49637
49626
|
t = a << 5 | a >>> 27;
|
|
49638
|
-
e = t +
|
|
49627
|
+
e = t + f + e - 899497514 + blocks2[j] << 0;
|
|
49639
49628
|
b = b << 30 | b >>> 2;
|
|
49640
|
-
|
|
49629
|
+
f = a ^ b ^ c;
|
|
49641
49630
|
t = e << 5 | e >>> 27;
|
|
49642
|
-
d = t +
|
|
49631
|
+
d = t + f + d - 899497514 + blocks2[j + 1] << 0;
|
|
49643
49632
|
a = a << 30 | a >>> 2;
|
|
49644
|
-
|
|
49633
|
+
f = e ^ a ^ b;
|
|
49645
49634
|
t = d << 5 | d >>> 27;
|
|
49646
|
-
c = t +
|
|
49635
|
+
c = t + f + c - 899497514 + blocks2[j + 2] << 0;
|
|
49647
49636
|
e = e << 30 | e >>> 2;
|
|
49648
|
-
|
|
49637
|
+
f = d ^ e ^ a;
|
|
49649
49638
|
t = c << 5 | c >>> 27;
|
|
49650
|
-
b = t +
|
|
49639
|
+
b = t + f + b - 899497514 + blocks2[j + 3] << 0;
|
|
49651
49640
|
d = d << 30 | d >>> 2;
|
|
49652
|
-
|
|
49641
|
+
f = c ^ d ^ e;
|
|
49653
49642
|
t = b << 5 | b >>> 27;
|
|
49654
|
-
a = t +
|
|
49643
|
+
a = t + f + a - 899497514 + blocks2[j + 4] << 0;
|
|
49655
49644
|
c = c << 30 | c >>> 2;
|
|
49656
49645
|
}
|
|
49657
49646
|
this.h0 = this.h0 + a << 0;
|
|
@@ -50252,9 +50241,9 @@ function requireBuffer() {
|
|
|
50252
50241
|
}
|
|
50253
50242
|
}
|
|
50254
50243
|
Buffer2.prototype._isBuffer = true;
|
|
50255
|
-
function swap(b,
|
|
50256
|
-
const i = b[
|
|
50257
|
-
b[
|
|
50244
|
+
function swap(b, n2, m) {
|
|
50245
|
+
const i = b[n2];
|
|
50246
|
+
b[n2] = b[m];
|
|
50258
50247
|
b[m] = i;
|
|
50259
50248
|
}
|
|
50260
50249
|
Buffer2.prototype.swap16 = function swap16() {
|
|
@@ -51295,13 +51284,13 @@ function requireBuffer() {
|
|
|
51295
51284
|
}
|
|
51296
51285
|
function checkIntBI(value2, min2, max2, buf, offset2, byteLength3) {
|
|
51297
51286
|
if (value2 > max2 || value2 < min2) {
|
|
51298
|
-
const
|
|
51287
|
+
const n2 = typeof min2 === "bigint" ? "n" : "";
|
|
51299
51288
|
let range2;
|
|
51300
51289
|
{
|
|
51301
51290
|
if (min2 === 0 || min2 === BigInt(0)) {
|
|
51302
|
-
range2 = `>= 0${
|
|
51291
|
+
range2 = `>= 0${n2} and < 2${n2} ** ${(byteLength3 + 1) * 8}${n2}`;
|
|
51303
51292
|
} else {
|
|
51304
|
-
range2 = `>= -(2${
|
|
51293
|
+
range2 = `>= -(2${n2} ** ${(byteLength3 + 1) * 8 - 1}${n2}) and < 2 ** ${(byteLength3 + 1) * 8 - 1}${n2}`;
|
|
51305
51294
|
}
|
|
51306
51295
|
}
|
|
51307
51296
|
throw new errors.ERR_OUT_OF_RANGE("value", range2, value2);
|
|
@@ -51635,18 +51624,18 @@ function requireString_decoder() {
|
|
|
51635
51624
|
}
|
|
51636
51625
|
StringDecoder.prototype.write = function(buf) {
|
|
51637
51626
|
if (buf.length === 0) return "";
|
|
51638
|
-
var
|
|
51627
|
+
var r2;
|
|
51639
51628
|
var i;
|
|
51640
51629
|
if (this.lastNeed) {
|
|
51641
|
-
|
|
51642
|
-
if (
|
|
51630
|
+
r2 = this.fillLast(buf);
|
|
51631
|
+
if (r2 === void 0) return "";
|
|
51643
51632
|
i = this.lastNeed;
|
|
51644
51633
|
this.lastNeed = 0;
|
|
51645
51634
|
} else {
|
|
51646
51635
|
i = 0;
|
|
51647
51636
|
}
|
|
51648
|
-
if (i < buf.length) return
|
|
51649
|
-
return
|
|
51637
|
+
if (i < buf.length) return r2 ? r2 + this.text(buf, i) : this.text(buf, i);
|
|
51638
|
+
return r2 || "";
|
|
51650
51639
|
};
|
|
51651
51640
|
StringDecoder.prototype.end = utf8End;
|
|
51652
51641
|
StringDecoder.prototype.text = utf8Text;
|
|
@@ -51710,8 +51699,8 @@ function requireString_decoder() {
|
|
|
51710
51699
|
}
|
|
51711
51700
|
function utf8FillLast(buf) {
|
|
51712
51701
|
var p = this.lastTotal - this.lastNeed;
|
|
51713
|
-
var
|
|
51714
|
-
if (
|
|
51702
|
+
var r2 = utf8CheckExtraBytes(this, buf);
|
|
51703
|
+
if (r2 !== void 0) return r2;
|
|
51715
51704
|
if (this.lastNeed <= buf.length) {
|
|
51716
51705
|
buf.copy(this.lastChar, p, 0, this.lastNeed);
|
|
51717
51706
|
return this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
@@ -51728,24 +51717,24 @@ function requireString_decoder() {
|
|
|
51728
51717
|
return buf.toString("utf8", i, end);
|
|
51729
51718
|
}
|
|
51730
51719
|
function utf8End(buf) {
|
|
51731
|
-
var
|
|
51732
|
-
if (this.lastNeed) return
|
|
51733
|
-
return
|
|
51720
|
+
var r2 = buf && buf.length ? this.write(buf) : "";
|
|
51721
|
+
if (this.lastNeed) return r2 + "�";
|
|
51722
|
+
return r2;
|
|
51734
51723
|
}
|
|
51735
51724
|
function utf16Text(buf, i) {
|
|
51736
51725
|
if ((buf.length - i) % 2 === 0) {
|
|
51737
|
-
var
|
|
51738
|
-
if (
|
|
51739
|
-
var c =
|
|
51726
|
+
var r2 = buf.toString("utf16le", i);
|
|
51727
|
+
if (r2) {
|
|
51728
|
+
var c = r2.charCodeAt(r2.length - 1);
|
|
51740
51729
|
if (c >= 55296 && c <= 56319) {
|
|
51741
51730
|
this.lastNeed = 2;
|
|
51742
51731
|
this.lastTotal = 4;
|
|
51743
51732
|
this.lastChar[0] = buf[buf.length - 2];
|
|
51744
51733
|
this.lastChar[1] = buf[buf.length - 1];
|
|
51745
|
-
return
|
|
51734
|
+
return r2.slice(0, -1);
|
|
51746
51735
|
}
|
|
51747
51736
|
}
|
|
51748
|
-
return
|
|
51737
|
+
return r2;
|
|
51749
51738
|
}
|
|
51750
51739
|
this.lastNeed = 1;
|
|
51751
51740
|
this.lastTotal = 2;
|
|
@@ -51753,30 +51742,30 @@ function requireString_decoder() {
|
|
|
51753
51742
|
return buf.toString("utf16le", i, buf.length - 1);
|
|
51754
51743
|
}
|
|
51755
51744
|
function utf16End(buf) {
|
|
51756
|
-
var
|
|
51745
|
+
var r2 = buf && buf.length ? this.write(buf) : "";
|
|
51757
51746
|
if (this.lastNeed) {
|
|
51758
51747
|
var end = this.lastTotal - this.lastNeed;
|
|
51759
|
-
return
|
|
51748
|
+
return r2 + this.lastChar.toString("utf16le", 0, end);
|
|
51760
51749
|
}
|
|
51761
|
-
return
|
|
51750
|
+
return r2;
|
|
51762
51751
|
}
|
|
51763
51752
|
function base64Text(buf, i) {
|
|
51764
|
-
var
|
|
51765
|
-
if (
|
|
51766
|
-
this.lastNeed = 3 -
|
|
51753
|
+
var n2 = (buf.length - i) % 3;
|
|
51754
|
+
if (n2 === 0) return buf.toString("base64", i);
|
|
51755
|
+
this.lastNeed = 3 - n2;
|
|
51767
51756
|
this.lastTotal = 3;
|
|
51768
|
-
if (
|
|
51757
|
+
if (n2 === 1) {
|
|
51769
51758
|
this.lastChar[0] = buf[buf.length - 1];
|
|
51770
51759
|
} else {
|
|
51771
51760
|
this.lastChar[0] = buf[buf.length - 2];
|
|
51772
51761
|
this.lastChar[1] = buf[buf.length - 1];
|
|
51773
51762
|
}
|
|
51774
|
-
return buf.toString("base64", i, buf.length -
|
|
51763
|
+
return buf.toString("base64", i, buf.length - n2);
|
|
51775
51764
|
}
|
|
51776
51765
|
function base64End(buf) {
|
|
51777
|
-
var
|
|
51778
|
-
if (this.lastNeed) return
|
|
51779
|
-
return
|
|
51766
|
+
var r2 = buf && buf.length ? this.write(buf) : "";
|
|
51767
|
+
if (this.lastNeed) return r2 + this.lastChar.toString("base64", 0, 3 - this.lastNeed);
|
|
51768
|
+
return r2;
|
|
51780
51769
|
}
|
|
51781
51770
|
function simpleWrite(buf) {
|
|
51782
51771
|
return buf.toString(this.encoding);
|
|
@@ -51915,9 +51904,9 @@ function requireBuffer_list() {
|
|
|
51915
51904
|
}
|
|
51916
51905
|
_createClass2(BufferList, [{
|
|
51917
51906
|
key: "push",
|
|
51918
|
-
value: function push(
|
|
51907
|
+
value: function push(v2) {
|
|
51919
51908
|
var entry = {
|
|
51920
|
-
data:
|
|
51909
|
+
data: v2,
|
|
51921
51910
|
next: null
|
|
51922
51911
|
};
|
|
51923
51912
|
if (this.length > 0) this.tail.next = entry;
|
|
@@ -51927,9 +51916,9 @@ function requireBuffer_list() {
|
|
|
51927
51916
|
}
|
|
51928
51917
|
}, {
|
|
51929
51918
|
key: "unshift",
|
|
51930
|
-
value: function unshift(
|
|
51919
|
+
value: function unshift(v2) {
|
|
51931
51920
|
var entry = {
|
|
51932
|
-
data:
|
|
51921
|
+
data: v2,
|
|
51933
51922
|
next: this.head
|
|
51934
51923
|
};
|
|
51935
51924
|
if (this.length === 0) this.tail = entry;
|
|
@@ -51963,9 +51952,9 @@ function requireBuffer_list() {
|
|
|
51963
51952
|
}
|
|
51964
51953
|
}, {
|
|
51965
51954
|
key: "concat",
|
|
51966
|
-
value: function concat(
|
|
51955
|
+
value: function concat(n2) {
|
|
51967
51956
|
if (this.length === 0) return Buffer2.alloc(0);
|
|
51968
|
-
var ret = Buffer2.allocUnsafe(
|
|
51957
|
+
var ret = Buffer2.allocUnsafe(n2 >>> 0);
|
|
51969
51958
|
var p = this.head;
|
|
51970
51959
|
var i = 0;
|
|
51971
51960
|
while (p) {
|
|
@@ -51978,15 +51967,15 @@ function requireBuffer_list() {
|
|
|
51978
51967
|
// Consumes a specified amount of bytes or characters from the buffered data.
|
|
51979
51968
|
}, {
|
|
51980
51969
|
key: "consume",
|
|
51981
|
-
value: function consume(
|
|
51970
|
+
value: function consume(n2, hasStrings) {
|
|
51982
51971
|
var ret;
|
|
51983
|
-
if (
|
|
51984
|
-
ret = this.head.data.slice(0,
|
|
51985
|
-
this.head.data = this.head.data.slice(
|
|
51986
|
-
} else if (
|
|
51972
|
+
if (n2 < this.head.data.length) {
|
|
51973
|
+
ret = this.head.data.slice(0, n2);
|
|
51974
|
+
this.head.data = this.head.data.slice(n2);
|
|
51975
|
+
} else if (n2 === this.head.data.length) {
|
|
51987
51976
|
ret = this.shift();
|
|
51988
51977
|
} else {
|
|
51989
|
-
ret = hasStrings ? this._getString(
|
|
51978
|
+
ret = hasStrings ? this._getString(n2) : this._getBuffer(n2);
|
|
51990
51979
|
}
|
|
51991
51980
|
return ret;
|
|
51992
51981
|
}
|
|
@@ -51998,18 +51987,18 @@ function requireBuffer_list() {
|
|
|
51998
51987
|
// Consumes a specified amount of characters from the buffered data.
|
|
51999
51988
|
}, {
|
|
52000
51989
|
key: "_getString",
|
|
52001
|
-
value: function _getString(
|
|
51990
|
+
value: function _getString(n2) {
|
|
52002
51991
|
var p = this.head;
|
|
52003
51992
|
var c = 1;
|
|
52004
51993
|
var ret = p.data;
|
|
52005
|
-
|
|
51994
|
+
n2 -= ret.length;
|
|
52006
51995
|
while (p = p.next) {
|
|
52007
51996
|
var str = p.data;
|
|
52008
|
-
var nb =
|
|
51997
|
+
var nb = n2 > str.length ? str.length : n2;
|
|
52009
51998
|
if (nb === str.length) ret += str;
|
|
52010
|
-
else ret += str.slice(0,
|
|
52011
|
-
|
|
52012
|
-
if (
|
|
51999
|
+
else ret += str.slice(0, n2);
|
|
52000
|
+
n2 -= nb;
|
|
52001
|
+
if (n2 === 0) {
|
|
52013
52002
|
if (nb === str.length) {
|
|
52014
52003
|
++c;
|
|
52015
52004
|
if (p.next) this.head = p.next;
|
|
@@ -52028,18 +52017,18 @@ function requireBuffer_list() {
|
|
|
52028
52017
|
// Consumes a specified amount of bytes from the buffered data.
|
|
52029
52018
|
}, {
|
|
52030
52019
|
key: "_getBuffer",
|
|
52031
|
-
value: function _getBuffer(
|
|
52032
|
-
var ret = Buffer2.allocUnsafe(
|
|
52020
|
+
value: function _getBuffer(n2) {
|
|
52021
|
+
var ret = Buffer2.allocUnsafe(n2);
|
|
52033
52022
|
var p = this.head;
|
|
52034
52023
|
var c = 1;
|
|
52035
52024
|
p.data.copy(ret);
|
|
52036
|
-
|
|
52025
|
+
n2 -= p.data.length;
|
|
52037
52026
|
while (p = p.next) {
|
|
52038
52027
|
var buf = p.data;
|
|
52039
|
-
var nb =
|
|
52040
|
-
buf.copy(ret, ret.length -
|
|
52041
|
-
|
|
52042
|
-
if (
|
|
52028
|
+
var nb = n2 > buf.length ? buf.length : n2;
|
|
52029
|
+
buf.copy(ret, ret.length - n2, 0, nb);
|
|
52030
|
+
n2 -= nb;
|
|
52031
|
+
if (n2 === 0) {
|
|
52043
52032
|
if (nb === buf.length) {
|
|
52044
52033
|
++c;
|
|
52045
52034
|
if (p.next) this.head = p.next;
|
|
@@ -52772,8 +52761,8 @@ function require_stream_duplex() {
|
|
|
52772
52761
|
requireInherits_browser()(Duplex, Readable);
|
|
52773
52762
|
{
|
|
52774
52763
|
var keys = objectKeys2(Writable.prototype);
|
|
52775
|
-
for (var
|
|
52776
|
-
var method = keys[
|
|
52764
|
+
for (var v2 = 0; v2 < keys.length; v2++) {
|
|
52765
|
+
var method = keys[v2];
|
|
52777
52766
|
if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];
|
|
52778
52767
|
}
|
|
52779
52768
|
}
|
|
@@ -53342,55 +53331,55 @@ function require_stream_readable() {
|
|
|
53342
53331
|
return this;
|
|
53343
53332
|
};
|
|
53344
53333
|
var MAX_HWM = 1073741824;
|
|
53345
|
-
function computeNewHighWaterMark(
|
|
53346
|
-
if (
|
|
53347
|
-
|
|
53334
|
+
function computeNewHighWaterMark(n2) {
|
|
53335
|
+
if (n2 >= MAX_HWM) {
|
|
53336
|
+
n2 = MAX_HWM;
|
|
53348
53337
|
} else {
|
|
53349
|
-
|
|
53350
|
-
|
|
53351
|
-
|
|
53352
|
-
|
|
53353
|
-
|
|
53354
|
-
|
|
53355
|
-
|
|
53356
|
-
}
|
|
53357
|
-
return
|
|
53358
|
-
}
|
|
53359
|
-
function howMuchToRead(
|
|
53360
|
-
if (
|
|
53338
|
+
n2--;
|
|
53339
|
+
n2 |= n2 >>> 1;
|
|
53340
|
+
n2 |= n2 >>> 2;
|
|
53341
|
+
n2 |= n2 >>> 4;
|
|
53342
|
+
n2 |= n2 >>> 8;
|
|
53343
|
+
n2 |= n2 >>> 16;
|
|
53344
|
+
n2++;
|
|
53345
|
+
}
|
|
53346
|
+
return n2;
|
|
53347
|
+
}
|
|
53348
|
+
function howMuchToRead(n2, state2) {
|
|
53349
|
+
if (n2 <= 0 || state2.length === 0 && state2.ended) return 0;
|
|
53361
53350
|
if (state2.objectMode) return 1;
|
|
53362
|
-
if (
|
|
53351
|
+
if (n2 !== n2) {
|
|
53363
53352
|
if (state2.flowing && state2.length) return state2.buffer.head.data.length;
|
|
53364
53353
|
else return state2.length;
|
|
53365
53354
|
}
|
|
53366
|
-
if (
|
|
53367
|
-
if (
|
|
53355
|
+
if (n2 > state2.highWaterMark) state2.highWaterMark = computeNewHighWaterMark(n2);
|
|
53356
|
+
if (n2 <= state2.length) return n2;
|
|
53368
53357
|
if (!state2.ended) {
|
|
53369
53358
|
state2.needReadable = true;
|
|
53370
53359
|
return 0;
|
|
53371
53360
|
}
|
|
53372
53361
|
return state2.length;
|
|
53373
53362
|
}
|
|
53374
|
-
Readable.prototype.read = function(
|
|
53375
|
-
debug("read",
|
|
53376
|
-
|
|
53363
|
+
Readable.prototype.read = function(n2) {
|
|
53364
|
+
debug("read", n2);
|
|
53365
|
+
n2 = parseInt(n2, 10);
|
|
53377
53366
|
var state2 = this._readableState;
|
|
53378
|
-
var nOrig =
|
|
53379
|
-
if (
|
|
53380
|
-
if (
|
|
53367
|
+
var nOrig = n2;
|
|
53368
|
+
if (n2 !== 0) state2.emittedReadable = false;
|
|
53369
|
+
if (n2 === 0 && state2.needReadable && ((state2.highWaterMark !== 0 ? state2.length >= state2.highWaterMark : state2.length > 0) || state2.ended)) {
|
|
53381
53370
|
debug("read: emitReadable", state2.length, state2.ended);
|
|
53382
53371
|
if (state2.length === 0 && state2.ended) endReadable(this);
|
|
53383
53372
|
else emitReadable(this);
|
|
53384
53373
|
return null;
|
|
53385
53374
|
}
|
|
53386
|
-
|
|
53387
|
-
if (
|
|
53375
|
+
n2 = howMuchToRead(n2, state2);
|
|
53376
|
+
if (n2 === 0 && state2.ended) {
|
|
53388
53377
|
if (state2.length === 0) endReadable(this);
|
|
53389
53378
|
return null;
|
|
53390
53379
|
}
|
|
53391
53380
|
var doRead = state2.needReadable;
|
|
53392
53381
|
debug("need readable", doRead);
|
|
53393
|
-
if (state2.length === 0 || state2.length -
|
|
53382
|
+
if (state2.length === 0 || state2.length - n2 < state2.highWaterMark) {
|
|
53394
53383
|
doRead = true;
|
|
53395
53384
|
debug("length less than watermark", doRead);
|
|
53396
53385
|
}
|
|
@@ -53404,21 +53393,21 @@ function require_stream_readable() {
|
|
|
53404
53393
|
if (state2.length === 0) state2.needReadable = true;
|
|
53405
53394
|
this._read(state2.highWaterMark);
|
|
53406
53395
|
state2.sync = false;
|
|
53407
|
-
if (!state2.reading)
|
|
53396
|
+
if (!state2.reading) n2 = howMuchToRead(nOrig, state2);
|
|
53408
53397
|
}
|
|
53409
53398
|
var ret;
|
|
53410
|
-
if (
|
|
53399
|
+
if (n2 > 0) ret = fromList(n2, state2);
|
|
53411
53400
|
else ret = null;
|
|
53412
53401
|
if (ret === null) {
|
|
53413
53402
|
state2.needReadable = state2.length <= state2.highWaterMark;
|
|
53414
|
-
|
|
53403
|
+
n2 = 0;
|
|
53415
53404
|
} else {
|
|
53416
|
-
state2.length -=
|
|
53405
|
+
state2.length -= n2;
|
|
53417
53406
|
state2.awaitDrain = 0;
|
|
53418
53407
|
}
|
|
53419
53408
|
if (state2.length === 0) {
|
|
53420
53409
|
if (!state2.ended) state2.needReadable = true;
|
|
53421
|
-
if (nOrig !==
|
|
53410
|
+
if (nOrig !== n2 && state2.ended) endReadable(this);
|
|
53422
53411
|
}
|
|
53423
53412
|
if (ret !== null) this.emit("data", ret);
|
|
53424
53413
|
return ret;
|
|
@@ -53480,7 +53469,7 @@ function require_stream_readable() {
|
|
|
53480
53469
|
}
|
|
53481
53470
|
state2.readingMore = false;
|
|
53482
53471
|
}
|
|
53483
|
-
Readable.prototype._read = function(
|
|
53472
|
+
Readable.prototype._read = function(n2) {
|
|
53484
53473
|
errorOrDestroy(this, new ERR_METHOD_NOT_IMPLEMENTED("_read()"));
|
|
53485
53474
|
};
|
|
53486
53475
|
Readable.prototype.pipe = function(dest, pipeOpts) {
|
|
@@ -53742,11 +53731,11 @@ function require_stream_readable() {
|
|
|
53742
53731
|
}(i);
|
|
53743
53732
|
}
|
|
53744
53733
|
}
|
|
53745
|
-
for (var
|
|
53746
|
-
stream.on(kProxyEvents[
|
|
53734
|
+
for (var n2 = 0; n2 < kProxyEvents.length; n2++) {
|
|
53735
|
+
stream.on(kProxyEvents[n2], this.emit.bind(this, kProxyEvents[n2]));
|
|
53747
53736
|
}
|
|
53748
|
-
this._read = function(
|
|
53749
|
-
debug("wrapped _read",
|
|
53737
|
+
this._read = function(n3) {
|
|
53738
|
+
debug("wrapped _read", n3);
|
|
53750
53739
|
if (paused) {
|
|
53751
53740
|
paused = false;
|
|
53752
53741
|
stream.resume();
|
|
@@ -53804,17 +53793,17 @@ function require_stream_readable() {
|
|
|
53804
53793
|
return this._readableState.length;
|
|
53805
53794
|
}
|
|
53806
53795
|
});
|
|
53807
|
-
function fromList(
|
|
53796
|
+
function fromList(n2, state2) {
|
|
53808
53797
|
if (state2.length === 0) return null;
|
|
53809
53798
|
var ret;
|
|
53810
53799
|
if (state2.objectMode) ret = state2.buffer.shift();
|
|
53811
|
-
else if (!
|
|
53800
|
+
else if (!n2 || n2 >= state2.length) {
|
|
53812
53801
|
if (state2.decoder) ret = state2.buffer.join("");
|
|
53813
53802
|
else if (state2.buffer.length === 1) ret = state2.buffer.first();
|
|
53814
53803
|
else ret = state2.buffer.concat(state2.length);
|
|
53815
53804
|
state2.buffer.clear();
|
|
53816
53805
|
} else {
|
|
53817
|
-
ret = state2.buffer.consume(
|
|
53806
|
+
ret = state2.buffer.consume(n2, state2.decoder);
|
|
53818
53807
|
}
|
|
53819
53808
|
return ret;
|
|
53820
53809
|
}
|
|
@@ -53877,10 +53866,10 @@ function require_stream_transform() {
|
|
|
53877
53866
|
if (data != null)
|
|
53878
53867
|
this.push(data);
|
|
53879
53868
|
cb(er);
|
|
53880
|
-
var
|
|
53881
|
-
|
|
53882
|
-
if (
|
|
53883
|
-
this._read(
|
|
53869
|
+
var rs2 = this._readableState;
|
|
53870
|
+
rs2.reading = false;
|
|
53871
|
+
if (rs2.needReadable || rs2.length < rs2.highWaterMark) {
|
|
53872
|
+
this._read(rs2.highWaterMark);
|
|
53884
53873
|
}
|
|
53885
53874
|
}
|
|
53886
53875
|
function Transform(options) {
|
|
@@ -53925,11 +53914,11 @@ function require_stream_transform() {
|
|
|
53925
53914
|
ts.writechunk = chunk;
|
|
53926
53915
|
ts.writeencoding = encoding;
|
|
53927
53916
|
if (!ts.transforming) {
|
|
53928
|
-
var
|
|
53929
|
-
if (ts.needTransform ||
|
|
53917
|
+
var rs2 = this._readableState;
|
|
53918
|
+
if (ts.needTransform || rs2.needReadable || rs2.length < rs2.highWaterMark) this._read(rs2.highWaterMark);
|
|
53930
53919
|
}
|
|
53931
53920
|
};
|
|
53932
|
-
Transform.prototype._read = function(
|
|
53921
|
+
Transform.prototype._read = function(n2) {
|
|
53933
53922
|
var ts = this._transformState;
|
|
53934
53923
|
if (ts.writechunk !== null && !ts.transforming) {
|
|
53935
53924
|
ts.transforming = true;
|
|
@@ -54132,27 +54121,27 @@ function requireStreamBrowserify() {
|
|
|
54132
54121
|
return streamBrowserify;
|
|
54133
54122
|
}
|
|
54134
54123
|
var streamBrowserifyExports = requireStreamBrowserify();
|
|
54135
|
-
const
|
|
54124
|
+
const xd = /* @__PURE__ */ getDefaultExportFromCjs(streamBrowserifyExports);
|
|
54136
54125
|
requireBuffer();
|
|
54137
54126
|
var define_process_env_default = {};
|
|
54138
|
-
var
|
|
54139
|
-
var
|
|
54127
|
+
var Xe = Object.defineProperty;
|
|
54128
|
+
var v = ((n4) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(n4, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : n4)(function(n4) {
|
|
54140
54129
|
if (typeof require < "u") return require.apply(this, arguments);
|
|
54141
|
-
throw Error('Dynamic require of "' +
|
|
54130
|
+
throw Error('Dynamic require of "' + n4 + '" is not supported');
|
|
54142
54131
|
});
|
|
54143
|
-
var
|
|
54144
|
-
for (var t in e)
|
|
54132
|
+
var Hs = (n4, e) => {
|
|
54133
|
+
for (var t in e) Xe(n4, t, { get: e[t], enumerable: true });
|
|
54145
54134
|
};
|
|
54146
|
-
var
|
|
54147
|
-
|
|
54148
|
-
var
|
|
54149
|
-
var
|
|
54150
|
-
function
|
|
54151
|
-
if (!
|
|
54152
|
-
let e = ["YES", "Y", "TRUE", "T", "1", "ON", "ENABLE"],
|
|
54153
|
-
return e.includes(
|
|
54154
|
-
}
|
|
54155
|
-
var
|
|
54135
|
+
var rs = {};
|
|
54136
|
+
Hs(rs, { default: () => mu });
|
|
54137
|
+
var mu;
|
|
54138
|
+
var Sr = ((i) => (i.DOCUMENT = "document", i.FRAGMENT = "fragment", i.MESSAGE = "message", i.DESCRIPTION = "description", i.CUSTOM = "custom", i))(Sr || {}), _r = ((d) => (d.SELF = "SELF", d.DM = "dm", d.GROUP = "group", d.VOICE_DM = "VOICE_DM", d.VOICE_GROUP = "VOICE_GROUP", d.FEED = "FEED", d.THREAD = "THREAD", d.WORLD = "WORLD", d.FORUM = "FORUM", d.API = "API", d))(_r || {}), js = ((t) => (t.ACTIVE = "active", t.INACTIVE = "inactive", t))(js || {}), Qs = ((t) => (t.SHARED = "shared", t.PRIVATE = "private", t))(Qs || {}), zs = ((e) => (e.KNOWLEDGE = "knowledge", e))(zs || {}), Xs = ((s) => (s.OFF = "OFF", s.LOCAL = "LOCAL", s.DOCKER = "DOCKER", s.PRODUCTION = "PRODUCTION", s))(Xs || {}), Js = ((e) => (e.TDX_DSTACK = "tdx_dstack", e))(Js || {}), gr = ((r2) => (r2.OWNER = "OWNER", r2.ADMIN = "ADMIN", r2.NONE = "NONE", r2))(gr || {}), fr = ((y) => (y.WORLD_JOINED = "WORLD_JOINED", y.WORLD_CONNECTED = "WORLD_CONNECTED", y.WORLD_LEFT = "WORLD_LEFT", y.ENTITY_JOINED = "ENTITY_JOINED", y.ENTITY_LEFT = "ENTITY_LEFT", y.ENTITY_UPDATED = "ENTITY_UPDATED", y.ROOM_JOINED = "ROOM_JOINED", y.ROOM_LEFT = "ROOM_LEFT", y.MESSAGE_RECEIVED = "MESSAGE_RECEIVED", y.MESSAGE_SENT = "MESSAGE_SENT", y.VOICE_MESSAGE_RECEIVED = "VOICE_MESSAGE_RECEIVED", y.VOICE_MESSAGE_SENT = "VOICE_MESSAGE_SENT", y.REACTION_RECEIVED = "REACTION_RECEIVED", y.POST_GENERATED = "POST_GENERATED", y.INTERACTION_RECEIVED = "INTERACTION_RECEIVED", y.RUN_STARTED = "RUN_STARTED", y.RUN_ENDED = "RUN_ENDED", y.RUN_TIMEOUT = "RUN_TIMEOUT", y.ACTION_STARTED = "ACTION_STARTED", y.ACTION_COMPLETED = "ACTION_COMPLETED", y.EVALUATOR_STARTED = "EVALUATOR_STARTED", y.EVALUATOR_COMPLETED = "EVALUATOR_COMPLETED", y.MODEL_USED = "MODEL_USED", y))(fr || {}), Zs = ((r2) => (r2.DISCORD = "DISCORD", r2.TELEGRAM = "TELEGRAM", r2.TWITTER = "TWITTER", r2))(Zs || {}), ei = ((o) => (o[o.ROOM_JOINING = 1] = "ROOM_JOINING", o[o.SEND_MESSAGE = 2] = "SEND_MESSAGE", o[o.MESSAGE = 3] = "MESSAGE", o[o.ACK = 4] = "ACK", o[o.THINKING = 5] = "THINKING", o[o.CONTROL = 6] = "CONTROL", o))(ei || {});
|
|
54139
|
+
function ni(n4) {
|
|
54140
|
+
if (!n4) return false;
|
|
54141
|
+
let e = ["YES", "Y", "TRUE", "T", "1", "ON", "ENABLE"], r2 = n4.trim().toUpperCase();
|
|
54142
|
+
return e.includes(r2) ? true : false;
|
|
54143
|
+
}
|
|
54144
|
+
var X = class {
|
|
54156
54145
|
constructor(e) {
|
|
54157
54146
|
__publicField(this, "logs", []);
|
|
54158
54147
|
__publicField(this, "maxLogs", 1e3);
|
|
@@ -54160,26 +54149,26 @@ var J = class {
|
|
|
54160
54149
|
this.stream = e;
|
|
54161
54150
|
}
|
|
54162
54151
|
write(e) {
|
|
54163
|
-
let t,
|
|
54152
|
+
let t, r2;
|
|
54164
54153
|
if (typeof e == "string") {
|
|
54165
|
-
|
|
54154
|
+
r2 = e;
|
|
54166
54155
|
try {
|
|
54167
54156
|
t = JSON.parse(e);
|
|
54168
54157
|
} catch {
|
|
54169
54158
|
this.stream && this.stream.write(e);
|
|
54170
54159
|
return;
|
|
54171
54160
|
}
|
|
54172
|
-
} else t = e,
|
|
54161
|
+
} else t = e, r2 = JSON.stringify(e);
|
|
54173
54162
|
t.time || (t.time = Date.now());
|
|
54174
54163
|
let s = ((define_process_env_default == null ? void 0 : define_process_env_default.LOG_LEVEL) || "").toLowerCase() === "debug", i = !!(define_process_env_default == null ? void 0 : define_process_env_default.LOG_DIAGNOSTIC);
|
|
54175
54164
|
if (i && (t.diagnostic = true), !s && t.agentName && t.agentId) {
|
|
54176
54165
|
let o = t.msg || "";
|
|
54177
54166
|
if (typeof o == "string" && (o.includes("registered successfully") || o.includes("Registering") || o.includes("Success:") || o.includes("linked to") || o.includes("Started"))) {
|
|
54178
|
-
i && console.error("Filtered log:",
|
|
54167
|
+
i && console.error("Filtered log:", r2);
|
|
54179
54168
|
return;
|
|
54180
54169
|
}
|
|
54181
54170
|
}
|
|
54182
|
-
this.logs.push(t), this.logs.length > this.maxLogs && this.logs.shift(), this.stream && this.stream.write(
|
|
54171
|
+
this.logs.push(t), this.logs.length > this.maxLogs && this.logs.shift(), this.stream && this.stream.write(r2);
|
|
54183
54172
|
}
|
|
54184
54173
|
recentLogs() {
|
|
54185
54174
|
return this.logs;
|
|
@@ -54187,77 +54176,77 @@ var J = class {
|
|
|
54187
54176
|
clear() {
|
|
54188
54177
|
this.logs = [];
|
|
54189
54178
|
}
|
|
54190
|
-
},
|
|
54179
|
+
}, si = { fatal: 60, error: 50, warn: 40, info: 30, log: 29, progress: 28, success: 27, debug: 20, trace: 10 }, Ze = ni(define_process_env_default == null ? void 0 : define_process_env_default.LOG_JSON_FORMAT) || false, ii = ((define_process_env_default == null ? void 0 : define_process_env_default.LOG_LEVEL) || "").toLowerCase() === "debug", oi = ii ? "debug" : (define_process_env_default == null ? void 0 : define_process_env_default.DEFAULT_LOG_LEVEL) || "info", Ar = () => ({ colorize: true, translateTime: "yyyy-mm-dd HH:MM:ss", ignore: "pid,hostname", levelColors: { 60: "red", 50: "red", 40: "yellow", 30: "blue", 29: "green", 28: "cyan", 27: "greenBright", 20: "magenta", 10: "grey", "*": "white" }, customPrettifiers: { level: (n4) => {
|
|
54191
54180
|
let e;
|
|
54192
|
-
typeof
|
|
54181
|
+
typeof n4 == "object" && n4 !== null ? e = n4.level || n4.value : e = n4;
|
|
54193
54182
|
let t = { 10: "TRACE", 20: "DEBUG", 27: "SUCCESS", 28: "PROGRESS", 29: "LOG", 30: "INFO", 40: "WARN", 50: "ERROR", 60: "FATAL" };
|
|
54194
54183
|
return typeof e == "number" ? t[e] || `LEVEL${e}` : e == null ? "UNKNOWN" : String(e).toUpperCase();
|
|
54195
|
-
}, msg: (
|
|
54196
|
-
const { default: __vite_default__ } = await import("./index-
|
|
54184
|
+
}, msg: (n4) => n4.replace(/ERROR \([^)]+\):/g, "ERROR:") }, messageFormat: "{msg}" }), ai = async () => Ze ? void 0 : (await __vitePreload(async () => {
|
|
54185
|
+
const { default: __vite_default__ } = await import("./index-BkzA2dJ_.js").then((n2) => n2.i);
|
|
54197
54186
|
return { default: __vite_default__ };
|
|
54198
|
-
}, true ? [] : void 0)).default(
|
|
54199
|
-
let [t, ...
|
|
54187
|
+
}, true ? [] : void 0)).default(Ar()), et = { level: oi, customLevels: si, hooks: { logMethod(n4, e) {
|
|
54188
|
+
let [t, ...r2] = n4, s = (i) => {
|
|
54200
54189
|
var _a2;
|
|
54201
54190
|
return { message: `(${i.name}) ${i.message}`, stack: (_a2 = i.stack) == null ? void 0 : _a2.split(`
|
|
54202
54191
|
`).map((o) => o.trim()) };
|
|
54203
54192
|
};
|
|
54204
54193
|
if (typeof t == "object") if (t instanceof Error) e.apply(this, [{ error: s(t) }]);
|
|
54205
54194
|
else {
|
|
54206
|
-
let o =
|
|
54195
|
+
let o = r2.map((a) => typeof a == "string" ? a : JSON.stringify(a)).join(" ");
|
|
54207
54196
|
e.apply(this, [t, o]);
|
|
54208
54197
|
}
|
|
54209
54198
|
else {
|
|
54210
|
-
let i = {}, o = [t, ...
|
|
54199
|
+
let i = {}, o = [t, ...r2].map((c) => c instanceof Error ? s(c) : c), a = o.filter((c) => typeof c == "string").join(" "), u = o.filter((c) => typeof c == "object");
|
|
54211
54200
|
Object.assign(i, ...u), e.apply(this, [i, a]);
|
|
54212
54201
|
}
|
|
54213
|
-
} } },
|
|
54202
|
+
} } }, T = Je(et);
|
|
54214
54203
|
if (typeof process < "u") {
|
|
54215
|
-
let
|
|
54216
|
-
if (!
|
|
54217
|
-
let e =
|
|
54218
|
-
|
|
54204
|
+
let n4 = null;
|
|
54205
|
+
if (!Ze) try {
|
|
54206
|
+
let e = v("pino-pretty");
|
|
54207
|
+
n4 = e.default ? e.default(Ar()) : null;
|
|
54219
54208
|
} catch {
|
|
54220
|
-
|
|
54221
|
-
let
|
|
54222
|
-
|
|
54223
|
-
let s =
|
|
54224
|
-
s instanceof
|
|
54209
|
+
ai().then((t) => {
|
|
54210
|
+
let r2 = new X(t);
|
|
54211
|
+
T = Je(et, r2), T[Symbol.for("pino-destination")] = r2, T.clear = () => {
|
|
54212
|
+
let s = T[Symbol.for("pino-destination")];
|
|
54213
|
+
s instanceof X && s.clear();
|
|
54225
54214
|
};
|
|
54226
54215
|
});
|
|
54227
54216
|
}
|
|
54228
|
-
if (
|
|
54229
|
-
let e = new
|
|
54230
|
-
|
|
54231
|
-
let t =
|
|
54232
|
-
t instanceof
|
|
54217
|
+
if (n4 !== null || Ze) {
|
|
54218
|
+
let e = new X(n4);
|
|
54219
|
+
T = Je(et, e), T[Symbol.for("pino-destination")] = e, T.clear = () => {
|
|
54220
|
+
let t = T[Symbol.for("pino-destination")];
|
|
54221
|
+
t instanceof X && t.clear();
|
|
54233
54222
|
};
|
|
54234
54223
|
}
|
|
54235
54224
|
}
|
|
54236
|
-
var
|
|
54237
|
-
var
|
|
54238
|
-
var
|
|
54239
|
-
var
|
|
54240
|
-
var
|
|
54241
|
-
var
|
|
54242
|
-
var
|
|
54243
|
-
var
|
|
54244
|
-
var
|
|
54245
|
-
var
|
|
54246
|
-
var
|
|
54247
|
-
var
|
|
54248
|
-
var
|
|
54225
|
+
var h = T;
|
|
54226
|
+
var pi = "service.name";
|
|
54227
|
+
var hi = "telemetry.sdk.name", Si = "telemetry.sdk.language", _i = "telemetry.sdk.version";
|
|
54228
|
+
var Or = pi;
|
|
54229
|
+
var tt = hi, rt = Si, nt = _i;
|
|
54230
|
+
var Nr = "1.26.0";
|
|
54231
|
+
var gi = "process.runtime.name";
|
|
54232
|
+
var fi = "telemetry.sdk.name", Ti = "telemetry.sdk.language", Ai = "telemetry.sdk.version";
|
|
54233
|
+
var Dr = gi;
|
|
54234
|
+
var br = fi, Cr = Ti, xr = Ai;
|
|
54235
|
+
var yi = "nodejs";
|
|
54236
|
+
var wr = yi;
|
|
54237
|
+
var J, Y = (J = {}, J[br] = "opentelemetry", J[Dr] = "node", J[Cr] = wr, J[xr] = Nr, J);
|
|
54249
54238
|
function Ue() {
|
|
54250
54239
|
return "unknown_service:" + process.argv0;
|
|
54251
54240
|
}
|
|
54252
|
-
var
|
|
54253
|
-
return
|
|
54254
|
-
for (var e, t = 1,
|
|
54241
|
+
var q = function() {
|
|
54242
|
+
return q = Object.assign || function(n4) {
|
|
54243
|
+
for (var e, t = 1, r2 = arguments.length; t < r2; t++) {
|
|
54255
54244
|
e = arguments[t];
|
|
54256
|
-
for (var s in e) Object.prototype.hasOwnProperty.call(e, s) && (
|
|
54245
|
+
for (var s in e) Object.prototype.hasOwnProperty.call(e, s) && (n4[s] = e[s]);
|
|
54257
54246
|
}
|
|
54258
|
-
return
|
|
54259
|
-
},
|
|
54260
|
-
},
|
|
54247
|
+
return n4;
|
|
54248
|
+
}, q.apply(this, arguments);
|
|
54249
|
+
}, Oi = function(n4, e, t, r2) {
|
|
54261
54250
|
function s(i) {
|
|
54262
54251
|
return i instanceof t ? i : new t(function(o) {
|
|
54263
54252
|
o(i);
|
|
@@ -54266,14 +54255,14 @@ var B = function() {
|
|
|
54266
54255
|
return new (t || (t = Promise))(function(i, o) {
|
|
54267
54256
|
function a(d) {
|
|
54268
54257
|
try {
|
|
54269
|
-
c(
|
|
54258
|
+
c(r2.next(d));
|
|
54270
54259
|
} catch (l) {
|
|
54271
54260
|
o(l);
|
|
54272
54261
|
}
|
|
54273
54262
|
}
|
|
54274
54263
|
function u(d) {
|
|
54275
54264
|
try {
|
|
54276
|
-
c(
|
|
54265
|
+
c(r2.throw(d));
|
|
54277
54266
|
} catch (l) {
|
|
54278
54267
|
o(l);
|
|
54279
54268
|
}
|
|
@@ -54281,13 +54270,13 @@ var B = function() {
|
|
|
54281
54270
|
function c(d) {
|
|
54282
54271
|
d.done ? i(d.value) : s(d.value).then(a, u);
|
|
54283
54272
|
}
|
|
54284
|
-
c((
|
|
54273
|
+
c((r2 = r2.apply(n4, [])).next());
|
|
54285
54274
|
});
|
|
54286
|
-
},
|
|
54275
|
+
}, Ni = function(n4, e) {
|
|
54287
54276
|
var t = { label: 0, sent: function() {
|
|
54288
54277
|
if (i[0] & 1) throw i[1];
|
|
54289
54278
|
return i[1];
|
|
54290
|
-
}, trys: [], ops: [] },
|
|
54279
|
+
}, trys: [], ops: [] }, r2, s, i, o;
|
|
54291
54280
|
return o = { next: a(0), throw: a(1), return: a(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
|
|
54292
54281
|
return this;
|
|
54293
54282
|
}), o;
|
|
@@ -54297,9 +54286,9 @@ var B = function() {
|
|
|
54297
54286
|
};
|
|
54298
54287
|
}
|
|
54299
54288
|
function u(c) {
|
|
54300
|
-
if (
|
|
54289
|
+
if (r2) throw new TypeError("Generator is already executing.");
|
|
54301
54290
|
for (; t; ) try {
|
|
54302
|
-
if (
|
|
54291
|
+
if (r2 = 1, s && (i = c[0] & 2 ? s.return : c[0] ? s.throw || ((i = s.return) && i.call(s), 0) : s.next) && !(i = i.call(s, c[1])).done) return i;
|
|
54303
54292
|
switch (s = 0, i && (c = [c[0] & 2, i.value]), c[0]) {
|
|
54304
54293
|
case 0:
|
|
54305
54294
|
case 1:
|
|
@@ -54333,26 +54322,26 @@ var B = function() {
|
|
|
54333
54322
|
i[2] && t.ops.pop(), t.trys.pop();
|
|
54334
54323
|
continue;
|
|
54335
54324
|
}
|
|
54336
|
-
c = e.call(
|
|
54325
|
+
c = e.call(n4, t);
|
|
54337
54326
|
} catch (d) {
|
|
54338
54327
|
c = [6, d], s = 0;
|
|
54339
54328
|
} finally {
|
|
54340
|
-
|
|
54329
|
+
r2 = i = 0;
|
|
54341
54330
|
}
|
|
54342
54331
|
if (c[0] & 5) throw c[1];
|
|
54343
54332
|
return { value: c[0] ? c[1] : void 0, done: true };
|
|
54344
54333
|
}
|
|
54345
|
-
},
|
|
54346
|
-
var t = typeof Symbol == "function" &&
|
|
54347
|
-
if (!t) return
|
|
54348
|
-
var
|
|
54334
|
+
}, Di = function(n4, e) {
|
|
54335
|
+
var t = typeof Symbol == "function" && n4[Symbol.iterator];
|
|
54336
|
+
if (!t) return n4;
|
|
54337
|
+
var r2 = t.call(n4), s, i = [], o;
|
|
54349
54338
|
try {
|
|
54350
|
-
for (; (e === void 0 || e-- > 0) && !(s =
|
|
54339
|
+
for (; (e === void 0 || e-- > 0) && !(s = r2.next()).done; ) i.push(s.value);
|
|
54351
54340
|
} catch (a) {
|
|
54352
54341
|
o = { error: a };
|
|
54353
54342
|
} finally {
|
|
54354
54343
|
try {
|
|
54355
|
-
s && !s.done && (t =
|
|
54344
|
+
s && !s.done && (t = r2.return) && t.call(r2);
|
|
54356
54345
|
} finally {
|
|
54357
54346
|
if (o) throw o.error;
|
|
54358
54347
|
}
|
|
@@ -54360,25 +54349,25 @@ var B = function() {
|
|
|
54360
54349
|
return i;
|
|
54361
54350
|
};
|
|
54362
54351
|
(function() {
|
|
54363
|
-
function
|
|
54364
|
-
var
|
|
54352
|
+
function n4(e, t) {
|
|
54353
|
+
var r2 = this, s;
|
|
54365
54354
|
this._attributes = e, this.asyncAttributesPending = t != null, this._syncAttributes = (s = this._attributes) !== null && s !== void 0 ? s : {}, this._asyncAttributesPromise = t == null ? void 0 : t.then(function(i) {
|
|
54366
|
-
return
|
|
54355
|
+
return r2._attributes = Object.assign({}, r2._attributes, i), r2.asyncAttributesPending = false, i;
|
|
54367
54356
|
}, function(i) {
|
|
54368
|
-
return diag.debug("a resource's async attributes promise rejected: %s", i),
|
|
54357
|
+
return diag.debug("a resource's async attributes promise rejected: %s", i), r2.asyncAttributesPending = false, {};
|
|
54369
54358
|
});
|
|
54370
54359
|
}
|
|
54371
|
-
return
|
|
54372
|
-
return
|
|
54373
|
-
},
|
|
54360
|
+
return n4.empty = function() {
|
|
54361
|
+
return n4.EMPTY;
|
|
54362
|
+
}, n4.default = function() {
|
|
54374
54363
|
var e;
|
|
54375
|
-
return new
|
|
54376
|
-
}, Object.defineProperty(
|
|
54364
|
+
return new n4((e = {}, e[Or] = Ue(), e[rt] = Y[rt], e[tt] = Y[tt], e[nt] = Y[nt], e));
|
|
54365
|
+
}, Object.defineProperty(n4.prototype, "attributes", { get: function() {
|
|
54377
54366
|
var e;
|
|
54378
54367
|
return this.asyncAttributesPending && diag.error("Accessing resource attributes before async attributes settled"), (e = this._attributes) !== null && e !== void 0 ? e : {};
|
|
54379
|
-
}, enumerable: false, configurable: true }),
|
|
54380
|
-
return
|
|
54381
|
-
return
|
|
54368
|
+
}, enumerable: false, configurable: true }), n4.prototype.waitForAsyncAttributes = function() {
|
|
54369
|
+
return Oi(this, void 0, void 0, function() {
|
|
54370
|
+
return Ni(this, function(e) {
|
|
54382
54371
|
switch (e.label) {
|
|
54383
54372
|
case 0:
|
|
54384
54373
|
return this.asyncAttributesPending ? [4, this._asyncAttributesPromise] : [3, 2];
|
|
@@ -54389,40 +54378,40 @@ var B = function() {
|
|
|
54389
54378
|
}
|
|
54390
54379
|
});
|
|
54391
54380
|
});
|
|
54392
|
-
},
|
|
54393
|
-
var t = this,
|
|
54381
|
+
}, n4.prototype.merge = function(e) {
|
|
54382
|
+
var t = this, r2;
|
|
54394
54383
|
if (!e) return this;
|
|
54395
|
-
var s =
|
|
54396
|
-
if (!this._asyncAttributesPromise && !e._asyncAttributesPromise) return new
|
|
54384
|
+
var s = q(q({}, this._syncAttributes), (r2 = e._syncAttributes) !== null && r2 !== void 0 ? r2 : e.attributes);
|
|
54385
|
+
if (!this._asyncAttributesPromise && !e._asyncAttributesPromise) return new n4(s);
|
|
54397
54386
|
var i = Promise.all([this._asyncAttributesPromise, e._asyncAttributesPromise]).then(function(o) {
|
|
54398
|
-
var a, u =
|
|
54399
|
-
return
|
|
54387
|
+
var a, u = Di(o, 2), c = u[0], d = u[1];
|
|
54388
|
+
return q(q(q(q({}, t._syncAttributes), c), (a = e._syncAttributes) !== null && a !== void 0 ? a : e.attributes), d);
|
|
54400
54389
|
});
|
|
54401
|
-
return new
|
|
54402
|
-
},
|
|
54390
|
+
return new n4(s, i);
|
|
54391
|
+
}, n4.EMPTY = new n4({}), n4;
|
|
54403
54392
|
})();
|
|
54404
|
-
function
|
|
54405
|
-
let e = {}, t =
|
|
54406
|
-
for (let
|
|
54407
|
-
let s =
|
|
54393
|
+
function Vr(n4) {
|
|
54394
|
+
let e = {}, t = n4.length;
|
|
54395
|
+
for (let r2 = 0; r2 < t; r2++) {
|
|
54396
|
+
let s = n4[r2];
|
|
54408
54397
|
s && (e[String(s).toUpperCase().replace(/[-.]/g, "_")] = s);
|
|
54409
54398
|
}
|
|
54410
54399
|
return e;
|
|
54411
54400
|
}
|
|
54412
|
-
var
|
|
54413
|
-
|
|
54414
|
-
var
|
|
54401
|
+
var bi = "cloud.provider", Ci = "cloud.account.id", xi = "cloud.region", wi = "cloud.availability_zone", ki = "cloud.platform", Vi = "aws.ecs.container.arn", Fi = "aws.ecs.cluster.arn", Gi = "aws.ecs.launchtype", Bi = "aws.ecs.task.arn", Wi = "aws.ecs.task.family", qi = "aws.ecs.task.revision", Ki = "aws.eks.cluster.arn", Hi = "aws.log.group.names", $i = "aws.log.group.arns", Yi = "aws.log.stream.names", ji = "aws.log.stream.arns", Qi = "container.name", zi = "container.id", Xi = "container.runtime", Ji = "container.image.name", Zi = "container.image.tag", eo = "deployment.environment", to$1 = "device.id", ro = "device.model.identifier", no = "device.model.name", so = "faas.name", io = "faas.id", oo = "faas.version", ao = "faas.instance", co = "faas.max_memory", uo = "host.id", lo = "host.name", Eo = "host.type", mo = "host.arch", po = "host.image.name", ho = "host.image.id", So = "host.image.version", _o = "k8s.cluster.name", go = "k8s.node.name", fo = "k8s.node.uid", To = "k8s.namespace.name", Ao = "k8s.pod.uid", yo = "k8s.pod.name", Ro = "k8s.container.name", Mo = "k8s.replicaset.uid", vo = "k8s.replicaset.name", Io = "k8s.deployment.uid", Po = "k8s.deployment.name", Uo = "k8s.statefulset.uid", Lo = "k8s.statefulset.name", Oo = "k8s.daemonset.uid", No = "k8s.daemonset.name", Do = "k8s.job.uid", bo = "k8s.job.name", Co = "k8s.cronjob.uid", xo = "k8s.cronjob.name", wo = "os.type", ko = "os.description", Vo = "os.name", Fo = "os.version", Go = "process.pid", Bo = "process.executable.name", Wo = "process.executable.path", qo = "process.command", Ko = "process.command_line", Ho = "process.command_args", $o = "process.owner", Yo = "process.runtime.name", jo = "process.runtime.version", Qo = "process.runtime.description", zo = "service.name", Xo = "service.namespace", Jo = "service.instance.id", Zo = "service.version", ea = "telemetry.sdk.name", ta = "telemetry.sdk.language", ra = "telemetry.sdk.version", na = "telemetry.auto.version", sa = "webengine.name", ia = "webengine.version", oa = "webengine.description";
|
|
54402
|
+
Vr([bi, Ci, xi, wi, ki, Vi, Fi, Gi, Bi, Wi, qi, Ki, Hi, $i, Yi, ji, Qi, zi, Xi, Ji, Zi, eo, to$1, ro, no, so, io, oo, ao, co, uo, lo, Eo, mo, po, ho, So, _o, go, fo, To, Ao, yo, Ro, Mo, vo, Io, Po, Uo, Lo, Oo, No, Do, bo, Co, xo, wo, ko, Vo, Fo, Go, Bo, Wo, qo, Ko, Ho, $o, Yo, jo, Qo, zo, Xo, Jo, Zo, ea, ta, ra, na, sa, ia, oa]);
|
|
54403
|
+
var ce = class {
|
|
54415
54404
|
emit(e) {
|
|
54416
54405
|
}
|
|
54417
|
-
},
|
|
54418
|
-
var
|
|
54419
|
-
getLogger(e, t,
|
|
54420
|
-
return new
|
|
54406
|
+
}, Gr = new ce();
|
|
54407
|
+
var it = class {
|
|
54408
|
+
getLogger(e, t, r2) {
|
|
54409
|
+
return new ce();
|
|
54421
54410
|
}
|
|
54422
|
-
},
|
|
54423
|
-
var
|
|
54424
|
-
constructor(e, t,
|
|
54425
|
-
this._provider = e, this.name = t, this.version =
|
|
54411
|
+
}, Le = new it();
|
|
54412
|
+
var Oe = class {
|
|
54413
|
+
constructor(e, t, r2, s) {
|
|
54414
|
+
this._provider = e, this.name = t, this.version = r2, this.options = s;
|
|
54426
54415
|
}
|
|
54427
54416
|
emit(e) {
|
|
54428
54417
|
this._getLogger().emit(e);
|
|
@@ -54430,68 +54419,68 @@ var Le = class {
|
|
|
54430
54419
|
_getLogger() {
|
|
54431
54420
|
if (this._delegate) return this._delegate;
|
|
54432
54421
|
let e = this._provider.getDelegateLogger(this.name, this.version, this.options);
|
|
54433
|
-
return e ? (this._delegate = e, this._delegate) :
|
|
54422
|
+
return e ? (this._delegate = e, this._delegate) : Gr;
|
|
54434
54423
|
}
|
|
54435
54424
|
};
|
|
54436
|
-
var
|
|
54437
|
-
getLogger(e, t,
|
|
54425
|
+
var ue = class {
|
|
54426
|
+
getLogger(e, t, r2) {
|
|
54438
54427
|
var s;
|
|
54439
|
-
return (s = this.getDelegateLogger(e, t,
|
|
54428
|
+
return (s = this.getDelegateLogger(e, t, r2)) !== null && s !== void 0 ? s : new Oe(this, e, t, r2);
|
|
54440
54429
|
}
|
|
54441
54430
|
getDelegate() {
|
|
54442
54431
|
var e;
|
|
54443
|
-
return (e = this._delegate) !== null && e !== void 0 ? e :
|
|
54432
|
+
return (e = this._delegate) !== null && e !== void 0 ? e : Le;
|
|
54444
54433
|
}
|
|
54445
54434
|
setDelegate(e) {
|
|
54446
54435
|
this._delegate = e;
|
|
54447
54436
|
}
|
|
54448
|
-
getDelegateLogger(e, t,
|
|
54437
|
+
getDelegateLogger(e, t, r2) {
|
|
54449
54438
|
var s;
|
|
54450
|
-
return (s = this._delegate) === null || s === void 0 ? void 0 : s.getLogger(e, t,
|
|
54439
|
+
return (s = this._delegate) === null || s === void 0 ? void 0 : s.getLogger(e, t, r2);
|
|
54451
54440
|
}
|
|
54452
54441
|
};
|
|
54453
54442
|
var Ne = typeof globalThis == "object" ? globalThis : global;
|
|
54454
|
-
var
|
|
54455
|
-
function
|
|
54456
|
-
return (
|
|
54443
|
+
var de = Symbol.for("io.opentelemetry.js.api.logs"), Z = Ne;
|
|
54444
|
+
function Br(n4, e, t) {
|
|
54445
|
+
return (r2) => r2 === n4 ? e : t;
|
|
54457
54446
|
}
|
|
54458
|
-
var
|
|
54459
|
-
var
|
|
54447
|
+
var ot = 1;
|
|
54448
|
+
var De = class n {
|
|
54460
54449
|
constructor() {
|
|
54461
|
-
this._proxyLoggerProvider = new
|
|
54450
|
+
this._proxyLoggerProvider = new ue();
|
|
54462
54451
|
}
|
|
54463
54452
|
static getInstance() {
|
|
54464
|
-
return this._instance || (this._instance = new
|
|
54453
|
+
return this._instance || (this._instance = new n()), this._instance;
|
|
54465
54454
|
}
|
|
54466
54455
|
setGlobalLoggerProvider(e) {
|
|
54467
|
-
return
|
|
54456
|
+
return Z[de] ? this.getLoggerProvider() : (Z[de] = Br(ot, e, Le), this._proxyLoggerProvider.setDelegate(e), e);
|
|
54468
54457
|
}
|
|
54469
54458
|
getLoggerProvider() {
|
|
54470
54459
|
var e, t;
|
|
54471
|
-
return (t = (e =
|
|
54460
|
+
return (t = (e = Z[de]) === null || e === void 0 ? void 0 : e.call(Z, ot)) !== null && t !== void 0 ? t : this._proxyLoggerProvider;
|
|
54472
54461
|
}
|
|
54473
|
-
getLogger(e, t,
|
|
54474
|
-
return this.getLoggerProvider().getLogger(e, t,
|
|
54462
|
+
getLogger(e, t, r2) {
|
|
54463
|
+
return this.getLoggerProvider().getLogger(e, t, r2);
|
|
54475
54464
|
}
|
|
54476
54465
|
disable() {
|
|
54477
|
-
delete
|
|
54466
|
+
delete Z[de], this._proxyLoggerProvider = new ue();
|
|
54478
54467
|
}
|
|
54479
54468
|
};
|
|
54480
|
-
|
|
54481
|
-
z
|
|
54482
|
-
var { PassThrough:
|
|
54469
|
+
De.getInstance();
|
|
54470
|
+
z.string().uuid();
|
|
54471
|
+
var { PassThrough: wd, Readable: Tp } = xd;
|
|
54483
54472
|
const clientLogger = {
|
|
54484
54473
|
info: (msg, ...args) => {
|
|
54485
|
-
|
|
54474
|
+
h.info({ source: "client" }, msg, ...args);
|
|
54486
54475
|
},
|
|
54487
54476
|
error: (msg, ...args) => {
|
|
54488
|
-
|
|
54477
|
+
h.error({ source: "client" }, msg, ...args);
|
|
54489
54478
|
},
|
|
54490
54479
|
warn: (msg, ...args) => {
|
|
54491
|
-
|
|
54480
|
+
h.warn({ source: "client" }, msg, ...args);
|
|
54492
54481
|
},
|
|
54493
54482
|
debug: (msg, ...args) => {
|
|
54494
|
-
|
|
54483
|
+
h.debug({ source: "client" }, msg, ...args);
|
|
54495
54484
|
}
|
|
54496
54485
|
};
|
|
54497
54486
|
const API_PREFIX = "/api";
|
|
@@ -57036,7 +57025,7 @@ function getNextMatch(values, search, currentMatch) {
|
|
|
57036
57025
|
const currentMatchIndex = currentMatch ? values.indexOf(currentMatch) : -1;
|
|
57037
57026
|
let wrappedValues = wrapArray(values, Math.max(currentMatchIndex, 0));
|
|
57038
57027
|
const excludeCurrentMatch = normalizedSearch.length === 1;
|
|
57039
|
-
if (excludeCurrentMatch) wrappedValues = wrappedValues.filter((
|
|
57028
|
+
if (excludeCurrentMatch) wrappedValues = wrappedValues.filter((v2) => v2 !== currentMatch);
|
|
57040
57029
|
const nextMatch = wrappedValues.find(
|
|
57041
57030
|
(value2) => value2.toLowerCase().startsWith(normalizedSearch.toLowerCase())
|
|
57042
57031
|
);
|
|
@@ -57046,13 +57035,13 @@ function isPointInPolygon(point, polygon) {
|
|
|
57046
57035
|
const { x, y } = point;
|
|
57047
57036
|
let inside = false;
|
|
57048
57037
|
for (let i = 0, j = polygon.length - 1; i < polygon.length; j = i++) {
|
|
57049
|
-
const
|
|
57038
|
+
const ii2 = polygon[i];
|
|
57050
57039
|
const jj = polygon[j];
|
|
57051
|
-
const xi2 =
|
|
57052
|
-
const
|
|
57040
|
+
const xi2 = ii2.x;
|
|
57041
|
+
const yi2 = ii2.y;
|
|
57053
57042
|
const xj = jj.x;
|
|
57054
57043
|
const yj = jj.y;
|
|
57055
|
-
const intersect =
|
|
57044
|
+
const intersect = yi2 > y !== yj > y && x < (xj - xi2) * (y - yi2) / (yj - yi2) + xi2;
|
|
57056
57045
|
if (intersect) inside = !inside;
|
|
57057
57046
|
}
|
|
57058
57047
|
return inside;
|
|
@@ -57692,6 +57681,7 @@ function useGroupMessages(serverId, groupChatSource) {
|
|
|
57692
57681
|
return {
|
|
57693
57682
|
text: memory.content.text,
|
|
57694
57683
|
roomId: memory.roomId,
|
|
57684
|
+
actions: memory.content.actions,
|
|
57695
57685
|
name: isUser ? USER_NAME : "agent",
|
|
57696
57686
|
agentId: memory.agentId,
|
|
57697
57687
|
entityId: memory.entityId,
|
|
@@ -58006,7 +57996,7 @@ function GroupPanel({ onClose, agents, groupId }) {
|
|
|
58006
57996
|
}
|
|
58007
57997
|
}, [groupId, roomsData, agents]);
|
|
58008
57998
|
const getComboboxOptions = () => {
|
|
58009
|
-
return (agents == null ? void 0 : agents.filter((agent) => agent.status ===
|
|
57999
|
+
return (agents == null ? void 0 : agents.filter((agent) => agent.status === js.ACTIVE).map((agent) => {
|
|
58010
58000
|
var _a2;
|
|
58011
58001
|
return {
|
|
58012
58002
|
icon: ((_a2 = agent.settings) == null ? void 0 : _a2.avatar) || "",
|
|
@@ -58120,7 +58110,7 @@ function GroupPanel({ onClose, agents, groupId }) {
|
|
|
58120
58110
|
);
|
|
58121
58111
|
}
|
|
58122
58112
|
} catch (error) {
|
|
58123
|
-
console.error("Failed to create
|
|
58113
|
+
console.error("Failed to create group", error);
|
|
58124
58114
|
} finally {
|
|
58125
58115
|
setCreating(false);
|
|
58126
58116
|
navigate(`/room/${serverId}`);
|
|
@@ -58522,17 +58512,17 @@ function AgentAvatarStack({
|
|
|
58522
58512
|
}
|
|
58523
58513
|
);
|
|
58524
58514
|
}
|
|
58525
|
-
const version = "1.0.0-beta.
|
|
58515
|
+
const version = "1.0.0-beta.39";
|
|
58526
58516
|
const info = {
|
|
58527
58517
|
version
|
|
58528
58518
|
};
|
|
58529
58519
|
const partition = (src2, pred) => {
|
|
58530
58520
|
const pass = [];
|
|
58531
58521
|
const fail = [];
|
|
58532
|
-
src2.forEach((
|
|
58522
|
+
src2.forEach((v2) => (pred(v2) ? pass : fail).push(v2));
|
|
58533
58523
|
return [pass, fail];
|
|
58534
58524
|
};
|
|
58535
|
-
const getRoomAgentIds = (roomsData, roomId) => roomId ? ((roomsData == null ? void 0 : roomsData.get(roomId)) ?? []).map((
|
|
58525
|
+
const getRoomAgentIds = (roomsData, roomId) => roomId ? ((roomsData == null ? void 0 : roomsData.get(roomId)) ?? []).map((r2) => r2.agentId).filter(Boolean) : [];
|
|
58536
58526
|
const SectionHeader = ({
|
|
58537
58527
|
children,
|
|
58538
58528
|
className = ""
|
|
@@ -58606,7 +58596,7 @@ const RoomListSection = ({
|
|
|
58606
58596
|
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(SidebarSection, { title: "Groups", className: "mt-2", children: roomsLoading ? Array.from({ length: 5 }).map((_, i) => /* @__PURE__ */ jsxRuntimeExports.jsx(SidebarMenuItem, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(SidebarMenuSkeleton, {}) }, i)) : Array.from(rooms.entries()).map(([roomId, roomArr]) => {
|
|
58607
58597
|
var _a2;
|
|
58608
58598
|
const roomName = ((_a2 = roomArr[0]) == null ? void 0 : _a2.name) ?? "Unnamed";
|
|
58609
|
-
const ids = roomArr.map((
|
|
58599
|
+
const ids = roomArr.map((r2) => r2.agentId).filter(Boolean);
|
|
58610
58600
|
const names = ids.map((id2) => {
|
|
58611
58601
|
var _a3;
|
|
58612
58602
|
return ((_a3 = agents.find((a) => a.id === id2)) == null ? void 0 : _a3.name) ?? "Unknown";
|
|
@@ -58669,7 +58659,7 @@ const CreateButton = ({ onCreateRoom }) => {
|
|
|
58669
58659
|
] }) }),
|
|
58670
58660
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(DropdownMenuItem, { className: "flex items-center gap-2 px-4 py-3", onClick: onCreateRoom, children: [
|
|
58671
58661
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Plus, { className: "h-4 w-4" }),
|
|
58672
|
-
" Create
|
|
58662
|
+
" Create Group"
|
|
58673
58663
|
] })
|
|
58674
58664
|
] })
|
|
58675
58665
|
] });
|
|
@@ -58697,7 +58687,7 @@ function AppSidebar() {
|
|
|
58697
58687
|
[roomsData, currentRoomId]
|
|
58698
58688
|
);
|
|
58699
58689
|
const [onlineAgents, offlineAgents] = reactExports.useMemo(() => {
|
|
58700
|
-
const [on2, off2] = partition(agents, (a) => a.status ===
|
|
58690
|
+
const [on2, off2] = partition(agents, (a) => a.status === js.ACTIVE);
|
|
58701
58691
|
if (!roomAgentIds.length) return [on2, off2];
|
|
58702
58692
|
return [
|
|
58703
58693
|
on2.filter((a) => roomAgentIds.includes(a.id)),
|
|
@@ -58706,6 +58696,17 @@ function AppSidebar() {
|
|
|
58706
58696
|
}, [agents, roomAgentIds]);
|
|
58707
58697
|
const [isGroupPanelOpen, setGroupPanelOpen] = reactExports.useState(false);
|
|
58708
58698
|
const agentLoadError = agentsError ? "Error loading agents: NetworkError: Unable to connect to the server. Please check if the server is running." : void 0;
|
|
58699
|
+
const filteredRoomsData = reactExports.useMemo(() => {
|
|
58700
|
+
if (!roomsData) return /* @__PURE__ */ new Map();
|
|
58701
|
+
const filteredMap = /* @__PURE__ */ new Map();
|
|
58702
|
+
roomsData.forEach((roomArray, key) => {
|
|
58703
|
+
const validRooms = roomArray.filter((room) => room.agentId !== void 0).map((room) => ({ agentId: room.agentId, name: room.name ?? "Unnamed Room" }));
|
|
58704
|
+
if (validRooms.length > 0) {
|
|
58705
|
+
filteredMap.set(key, validRooms);
|
|
58706
|
+
}
|
|
58707
|
+
});
|
|
58708
|
+
return filteredMap;
|
|
58709
|
+
}, [roomsData]);
|
|
58709
58710
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Sidebar, { className: "bg-background", children: [
|
|
58710
58711
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SidebarHeader, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(SidebarMenu, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(SidebarMenuItem, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(SidebarMenuButton, { size: "lg", asChild: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx(NavLink, { to: "/", className: "px-6 py-2 h-full sidebar-logo", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col pt-2 gap-1 items-start justify-center", children: [
|
|
58711
58712
|
/* @__PURE__ */ jsxRuntimeExports.jsx("img", { alt: "elizaos-logo", src: "/elizaos-logo-light.png", width: "90%" }),
|
|
@@ -58717,9 +58718,9 @@ function AppSidebar() {
|
|
|
58717
58718
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(SidebarContent, { children: [
|
|
58718
58719
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "px-4 py-2 mb-2", children: /* @__PURE__ */ jsxRuntimeExports.jsx(CreateButton, { onCreateRoom: () => setGroupPanelOpen(true) }) }),
|
|
58719
58720
|
isGroupPanelOpen && /* @__PURE__ */ jsxRuntimeExports.jsx(GroupPanel, { agents, onClose: () => setGroupPanelOpen(false) }),
|
|
58720
|
-
agentLoadError && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "px-4 py-2 text-xs
|
|
58721
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(AgentListSection, { title: "Online", agents: onlineAgents, isOnline: true, activePath: pathname }),
|
|
58722
|
-
offlineAgents.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
58721
|
+
agentLoadError && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "px-4 py-2 text-xs", children: agentLoadError }),
|
|
58722
|
+
!agentLoadError && /* @__PURE__ */ jsxRuntimeExports.jsx(AgentListSection, { title: "Online", agents: onlineAgents, isOnline: true, activePath: pathname }),
|
|
58723
|
+
!agentLoadError && offlineAgents.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
58723
58724
|
AgentListSection,
|
|
58724
58725
|
{
|
|
58725
58726
|
title: "Offline",
|
|
@@ -58729,10 +58730,10 @@ function AppSidebar() {
|
|
|
58729
58730
|
className: "mt-2"
|
|
58730
58731
|
}
|
|
58731
58732
|
),
|
|
58732
|
-
roomsData && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
58733
|
+
roomsData && !agentLoadError && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
58733
58734
|
RoomListSection,
|
|
58734
58735
|
{
|
|
58735
|
-
rooms:
|
|
58736
|
+
rooms: filteredRoomsData,
|
|
58736
58737
|
roomsLoading,
|
|
58737
58738
|
agents,
|
|
58738
58739
|
agentAvatarMap
|
|
@@ -58751,158 +58752,6 @@ const FooterLink = ({ to: to2, Icon: Icon2, label }) => /* @__PURE__ */ jsxRunti
|
|
|
58751
58752
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Icon2, { className: "h-4 w-4 mr-3" }),
|
|
58752
58753
|
label
|
|
58753
58754
|
] }) }) });
|
|
58754
|
-
function ConnectionErrorBanner({ className, testEndpoint }) {
|
|
58755
|
-
useLocation();
|
|
58756
|
-
const [dismissed, setDismissed] = reactExports.useState(false);
|
|
58757
|
-
const [errorCount, setErrorCount] = reactExports.useState(0);
|
|
58758
|
-
const [showBanner, setShowBanner] = reactExports.useState(false);
|
|
58759
|
-
const [showSuccessBanner, setShowSuccessBanner] = reactExports.useState(false);
|
|
58760
|
-
const [wasInErrorState, setWasInErrorState] = reactExports.useState(false);
|
|
58761
|
-
const query = useQuery({
|
|
58762
|
-
queryKey: ["connection-test", testEndpoint],
|
|
58763
|
-
queryFn: async () => {
|
|
58764
|
-
if (testEndpoint) {
|
|
58765
|
-
return await apiClient.testEndpoint(testEndpoint);
|
|
58766
|
-
}
|
|
58767
|
-
return await apiClient.ping();
|
|
58768
|
-
},
|
|
58769
|
-
refetchInterval: 1e4,
|
|
58770
|
-
retry: 1,
|
|
58771
|
-
staleTime: 5e3
|
|
58772
|
-
});
|
|
58773
|
-
reactExports.useEffect(() => {
|
|
58774
|
-
if (query.isError) {
|
|
58775
|
-
setErrorCount((prev) => prev + 1);
|
|
58776
|
-
setWasInErrorState(true);
|
|
58777
|
-
} else if (query.isSuccess) {
|
|
58778
|
-
if (wasInErrorState && errorCount >= 2) {
|
|
58779
|
-
setShowSuccessBanner(true);
|
|
58780
|
-
setTimeout(() => {
|
|
58781
|
-
setShowSuccessBanner(false);
|
|
58782
|
-
}, 3e3);
|
|
58783
|
-
}
|
|
58784
|
-
setErrorCount(0);
|
|
58785
|
-
setShowBanner(false);
|
|
58786
|
-
if (!showSuccessBanner) {
|
|
58787
|
-
setWasInErrorState(false);
|
|
58788
|
-
}
|
|
58789
|
-
}
|
|
58790
|
-
if (errorCount >= 2 && !dismissed && query.isError) {
|
|
58791
|
-
setShowBanner(true);
|
|
58792
|
-
}
|
|
58793
|
-
}, [query.status, dismissed, errorCount, wasInErrorState]);
|
|
58794
|
-
reactExports.useEffect(() => {
|
|
58795
|
-
if (query.isSuccess && dismissed) {
|
|
58796
|
-
setDismissed(false);
|
|
58797
|
-
}
|
|
58798
|
-
}, [query.isSuccess, dismissed]);
|
|
58799
|
-
const handleRefresh = () => {
|
|
58800
|
-
query.refetch();
|
|
58801
|
-
};
|
|
58802
|
-
const handleDismiss = () => {
|
|
58803
|
-
setDismissed(true);
|
|
58804
|
-
setShowBanner(false);
|
|
58805
|
-
};
|
|
58806
|
-
if (!showBanner && !showSuccessBanner) {
|
|
58807
|
-
return null;
|
|
58808
|
-
}
|
|
58809
|
-
if (showSuccessBanner && !showBanner) {
|
|
58810
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
58811
|
-
"div",
|
|
58812
|
-
{
|
|
58813
|
-
className: cn(
|
|
58814
|
-
"bg-green-900/20 border border-green-700 text-green-100 rounded-md p-3 mb-4",
|
|
58815
|
-
"flex items-center justify-between",
|
|
58816
|
-
className
|
|
58817
|
-
),
|
|
58818
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center space-x-3", children: [
|
|
58819
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(CircleCheckBig, { className: "h-5 w-5 text-green-400 flex-shrink-0" }),
|
|
58820
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
58821
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("h4", { className: "font-medium text-sm text-green-200", children: "Connection Restored" }),
|
|
58822
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-xs text-green-300 mt-1", children: "Successfully reconnected to the Eliza server." })
|
|
58823
|
-
] })
|
|
58824
|
-
] })
|
|
58825
|
-
}
|
|
58826
|
-
);
|
|
58827
|
-
}
|
|
58828
|
-
let errorTitle = "Connection Failed";
|
|
58829
|
-
let errorDescription = "Please ensure the Eliza server is running and accessible.";
|
|
58830
|
-
if (query.error instanceof Error) {
|
|
58831
|
-
const errorMsg = query.error.message;
|
|
58832
|
-
if (errorMsg.includes("NetworkError") || errorMsg.includes("Failed to fetch")) {
|
|
58833
|
-
errorTitle = "Network Error";
|
|
58834
|
-
errorDescription = "Cannot reach the server. Please check your network connection.";
|
|
58835
|
-
} else if (errorMsg.includes("ECONNREFUSED")) {
|
|
58836
|
-
errorTitle = "Connection Refused";
|
|
58837
|
-
errorDescription = "The server refused the connection. Please ensure it is running.";
|
|
58838
|
-
} else if (errorMsg.includes("timeout")) {
|
|
58839
|
-
errorTitle = "Connection Timeout";
|
|
58840
|
-
errorDescription = "The server took too long to respond.";
|
|
58841
|
-
} else if (errorMsg.includes("404") || errorMsg.includes("not found") || errorMsg.includes("API endpoint not found")) {
|
|
58842
|
-
errorTitle = "Endpoint Not Found";
|
|
58843
|
-
if (testEndpoint) {
|
|
58844
|
-
errorDescription = `The requested endpoint "${testEndpoint}" does not exist on the server.`;
|
|
58845
|
-
} else {
|
|
58846
|
-
errorDescription = "The requested API endpoint does not exist.";
|
|
58847
|
-
}
|
|
58848
|
-
}
|
|
58849
|
-
}
|
|
58850
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
58851
|
-
"div",
|
|
58852
|
-
{
|
|
58853
|
-
className: cn(
|
|
58854
|
-
"bg-red-900/20 border border-red-700 text-red-100 rounded-md p-3 mb-4",
|
|
58855
|
-
"flex items-center justify-between",
|
|
58856
|
-
className
|
|
58857
|
-
),
|
|
58858
|
-
children: [
|
|
58859
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center space-x-3", children: [
|
|
58860
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(CircleAlert, { className: "h-5 w-5 text-red-400 flex-shrink-0" }),
|
|
58861
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
58862
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("h4", { className: "font-medium text-sm text-red-200", children: errorTitle }),
|
|
58863
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-xs text-red-300 mt-1", children: errorDescription }),
|
|
58864
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mt-2 flex space-x-4", children: [
|
|
58865
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
58866
|
-
"a",
|
|
58867
|
-
{
|
|
58868
|
-
href: "https://elizaos.github.io/eliza/docs/troubleshooting",
|
|
58869
|
-
target: "_blank",
|
|
58870
|
-
rel: "noopener noreferrer",
|
|
58871
|
-
className: "text-xs flex items-center hover:text-red-200 text-red-300",
|
|
58872
|
-
children: [
|
|
58873
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(ExternalLink, { className: "h-3 w-3 mr-1" }),
|
|
58874
|
-
"Troubleshooting Guide"
|
|
58875
|
-
]
|
|
58876
|
-
}
|
|
58877
|
-
),
|
|
58878
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
58879
|
-
"button",
|
|
58880
|
-
{
|
|
58881
|
-
onClick: handleRefresh,
|
|
58882
|
-
className: "text-xs flex items-center hover:text-red-200 text-red-300",
|
|
58883
|
-
children: [
|
|
58884
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(RefreshCw, { className: "h-3 w-3 mr-1" }),
|
|
58885
|
-
"Retry Connection"
|
|
58886
|
-
]
|
|
58887
|
-
}
|
|
58888
|
-
)
|
|
58889
|
-
] })
|
|
58890
|
-
] })
|
|
58891
|
-
] }),
|
|
58892
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
58893
|
-
Button,
|
|
58894
|
-
{
|
|
58895
|
-
variant: "ghost",
|
|
58896
|
-
size: "sm",
|
|
58897
|
-
onClick: handleDismiss,
|
|
58898
|
-
className: "text-red-300 hover:text-red-100 hover:bg-red-800/50",
|
|
58899
|
-
children: "Dismiss"
|
|
58900
|
-
}
|
|
58901
|
-
)
|
|
58902
|
-
]
|
|
58903
|
-
}
|
|
58904
|
-
);
|
|
58905
|
-
}
|
|
58906
58755
|
const millisecondsInWeek = 6048e5;
|
|
58907
58756
|
const millisecondsInDay = 864e5;
|
|
58908
58757
|
const constructFromSymbol = Symbol.for("constructDateFrom");
|
|
@@ -61251,24 +61100,21 @@ function LogViewer({ agentName, level, hideTitle } = {}) {
|
|
|
61251
61100
|
timestamp,
|
|
61252
61101
|
"]"
|
|
61253
61102
|
] }),
|
|
61254
|
-
" ",
|
|
61255
61103
|
log2.agentName && /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "text-gray-500", children: [
|
|
61256
61104
|
"[",
|
|
61257
61105
|
log2.agentName,
|
|
61258
61106
|
"]"
|
|
61259
61107
|
] }),
|
|
61260
|
-
" ",
|
|
61261
61108
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: getLevelColor(log2.level), children: [
|
|
61262
61109
|
level2,
|
|
61263
61110
|
":"
|
|
61264
61111
|
] }),
|
|
61265
|
-
" ",
|
|
61266
61112
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-white", children: log2.msg }),
|
|
61267
61113
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-gray-300", children: extraFields })
|
|
61268
61114
|
] }, `${log2.time}-${log2.msg}`);
|
|
61269
61115
|
};
|
|
61270
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "p-4", children: [
|
|
61271
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mb-4 flex items-center justify-between", children: [
|
|
61116
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "p-4 h-full flex flex-col", children: [
|
|
61117
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mb-4 flex items-center justify-between flex-shrink-0", children: [
|
|
61272
61118
|
!hideTitle && /* @__PURE__ */ jsxRuntimeExports.jsx(PageTitle, { title: "System Logs" }),
|
|
61273
61119
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-4", children: [
|
|
61274
61120
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { variant: "destructive", size: "sm", onClick: handleClearLogs, disabled: isClearing, children: isClearing ? "Clearing..." : "Clear Logs" }),
|
|
@@ -61297,7 +61143,7 @@ function LogViewer({ agentName, level, hideTitle } = {}) {
|
|
|
61297
61143
|
] })
|
|
61298
61144
|
] })
|
|
61299
61145
|
] }),
|
|
61300
|
-
isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "font-mono p-4", children: "Loading logs..." }) : error ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-red-500 font-mono p-4", children: error instanceof Error ? error.message : "Failed to fetch logs" }) : /* @__PURE__ */ jsxRuntimeExports.jsx(ScrollArea, { className: "h-[
|
|
61146
|
+
isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "font-mono p-4", children: "Loading logs..." }) : error ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-red-500 font-mono p-4", children: error instanceof Error ? error.message : "Failed to fetch logs" }) : /* @__PURE__ */ jsxRuntimeExports.jsx(ScrollArea, { className: "h-[400px] rounded-md border bg-black overflow-auto", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
61301
61147
|
"div",
|
|
61302
61148
|
{
|
|
61303
61149
|
ref: scrollAreaRef,
|
|
@@ -62478,10 +62324,10 @@ function requireTypes() {
|
|
|
62478
62324
|
if (k2 === void 0) k2 = k;
|
|
62479
62325
|
o[k2] = m[k];
|
|
62480
62326
|
});
|
|
62481
|
-
var __setModuleDefault = types && types.__setModuleDefault || (Object.create ? function(o,
|
|
62482
|
-
Object.defineProperty(o, "default", { enumerable: true, value:
|
|
62483
|
-
} : function(o,
|
|
62484
|
-
o["default"] =
|
|
62327
|
+
var __setModuleDefault = types && types.__setModuleDefault || (Object.create ? function(o, v2) {
|
|
62328
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v2 });
|
|
62329
|
+
} : function(o, v2) {
|
|
62330
|
+
o["default"] = v2;
|
|
62485
62331
|
});
|
|
62486
62332
|
var __exportStar = types && types.__exportStar || function(m, exports2) {
|
|
62487
62333
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
|
@@ -62559,17 +62405,17 @@ var hasRequiredCompose;
|
|
|
62559
62405
|
function requireCompose() {
|
|
62560
62406
|
if (hasRequiredCompose) return compose;
|
|
62561
62407
|
hasRequiredCompose = 1;
|
|
62562
|
-
var __read2 = compose && compose.__read || function(o,
|
|
62408
|
+
var __read2 = compose && compose.__read || function(o, n2) {
|
|
62563
62409
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
62564
62410
|
if (!m) return o;
|
|
62565
|
-
var i = m.call(o),
|
|
62411
|
+
var i = m.call(o), r2, ar = [], e;
|
|
62566
62412
|
try {
|
|
62567
|
-
while ((
|
|
62413
|
+
while ((n2 === void 0 || n2-- > 0) && !(r2 = i.next()).done) ar.push(r2.value);
|
|
62568
62414
|
} catch (error) {
|
|
62569
62415
|
e = { error };
|
|
62570
62416
|
} finally {
|
|
62571
62417
|
try {
|
|
62572
|
-
if (
|
|
62418
|
+
if (r2 && !r2.done && (m = i["return"])) m.call(i);
|
|
62573
62419
|
} finally {
|
|
62574
62420
|
if (e) throw e.error;
|
|
62575
62421
|
}
|
|
@@ -62764,7 +62610,7 @@ function requireOverwriteReadonlyProp() {
|
|
|
62764
62610
|
hasRequiredOverwriteReadonlyProp = 1;
|
|
62765
62611
|
var __assign2 = overwriteReadonlyProp && overwriteReadonlyProp.__assign || function() {
|
|
62766
62612
|
__assign2 = Object.assign || function(t) {
|
|
62767
|
-
for (var s, i = 1,
|
|
62613
|
+
for (var s, i = 1, n2 = arguments.length; i < n2; i++) {
|
|
62768
62614
|
s = arguments[i];
|
|
62769
62615
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
62770
62616
|
t[p] = s[p];
|
|
@@ -62827,17 +62673,17 @@ function requireAssert() {
|
|
|
62827
62673
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
62828
62674
|
};
|
|
62829
62675
|
}();
|
|
62830
|
-
var __read2 = assert$1 && assert$1.__read || function(o,
|
|
62676
|
+
var __read2 = assert$1 && assert$1.__read || function(o, n2) {
|
|
62831
62677
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
62832
62678
|
if (!m) return o;
|
|
62833
|
-
var i = m.call(o),
|
|
62679
|
+
var i = m.call(o), r2, ar = [], e;
|
|
62834
62680
|
try {
|
|
62835
|
-
while ((
|
|
62681
|
+
while ((n2 === void 0 || n2-- > 0) && !(r2 = i.next()).done) ar.push(r2.value);
|
|
62836
62682
|
} catch (error) {
|
|
62837
62683
|
e = { error };
|
|
62838
62684
|
} finally {
|
|
62839
62685
|
try {
|
|
62840
|
-
if (
|
|
62686
|
+
if (r2 && !r2.done && (m = i["return"])) m.call(i);
|
|
62841
62687
|
} finally {
|
|
62842
62688
|
if (e) throw e.error;
|
|
62843
62689
|
}
|
|
@@ -62969,7 +62815,7 @@ function requireCtx() {
|
|
|
62969
62815
|
(function(exports) {
|
|
62970
62816
|
var __assign2 = Ctx && Ctx.__assign || function() {
|
|
62971
62817
|
__assign2 = Object.assign || function(t) {
|
|
62972
|
-
for (var s, i = 1,
|
|
62818
|
+
for (var s, i = 1, n2 = arguments.length; i < n2; i++) {
|
|
62973
62819
|
s = arguments[i];
|
|
62974
62820
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
62975
62821
|
t[p] = s[p];
|
|
@@ -63257,10 +63103,10 @@ function requireEvt_from() {
|
|
|
63257
63103
|
if (k2 === void 0) k2 = k;
|
|
63258
63104
|
o[k2] = m[k];
|
|
63259
63105
|
});
|
|
63260
|
-
var __setModuleDefault = Evt_from && Evt_from.__setModuleDefault || (Object.create ? function(o,
|
|
63261
|
-
Object.defineProperty(o, "default", { enumerable: true, value:
|
|
63262
|
-
} : function(o,
|
|
63263
|
-
o["default"] =
|
|
63106
|
+
var __setModuleDefault = Evt_from && Evt_from.__setModuleDefault || (Object.create ? function(o, v2) {
|
|
63107
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v2 });
|
|
63108
|
+
} : function(o, v2) {
|
|
63109
|
+
o["default"] = v2;
|
|
63264
63110
|
});
|
|
63265
63111
|
var __importStar = Evt_from && Evt_from.__importStar || function(mod) {
|
|
63266
63112
|
if (mod && mod.__esModule) return mod;
|
|
@@ -63271,17 +63117,17 @@ function requireEvt_from() {
|
|
|
63271
63117
|
__setModuleDefault(result, mod);
|
|
63272
63118
|
return result;
|
|
63273
63119
|
};
|
|
63274
|
-
var __read2 = Evt_from && Evt_from.__read || function(o,
|
|
63120
|
+
var __read2 = Evt_from && Evt_from.__read || function(o, n2) {
|
|
63275
63121
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
63276
63122
|
if (!m) return o;
|
|
63277
|
-
var i = m.call(o),
|
|
63123
|
+
var i = m.call(o), r2, ar = [], e;
|
|
63278
63124
|
try {
|
|
63279
|
-
while ((
|
|
63125
|
+
while ((n2 === void 0 || n2-- > 0) && !(r2 = i.next()).done) ar.push(r2.value);
|
|
63280
63126
|
} catch (error) {
|
|
63281
63127
|
e = { error };
|
|
63282
63128
|
} finally {
|
|
63283
63129
|
try {
|
|
63284
|
-
if (
|
|
63130
|
+
if (r2 && !r2.done && (m = i["return"])) m.call(i);
|
|
63285
63131
|
} finally {
|
|
63286
63132
|
if (e) throw e.error;
|
|
63287
63133
|
}
|
|
@@ -63308,9 +63154,9 @@ function requireEvt_from() {
|
|
|
63308
63154
|
var getEvtDonePostCount = function() {
|
|
63309
63155
|
return ctx === null || ctx === void 0 ? void 0 : ctx.evtDoneOrAborted.postCount;
|
|
63310
63156
|
};
|
|
63311
|
-
var
|
|
63157
|
+
var n2 = getEvtDonePostCount();
|
|
63312
63158
|
return function() {
|
|
63313
|
-
return
|
|
63159
|
+
return n2 !== getEvtDonePostCount();
|
|
63314
63160
|
};
|
|
63315
63161
|
}();
|
|
63316
63162
|
target.then(function(data) {
|
|
@@ -63465,19 +63311,19 @@ function requireEvt_asyncPipe() {
|
|
|
63465
63311
|
var _ = { label: 0, sent: function() {
|
|
63466
63312
|
if (t[0] & 1) throw t[1];
|
|
63467
63313
|
return t[1];
|
|
63468
|
-
}, trys: [], ops: [] },
|
|
63314
|
+
}, trys: [], ops: [] }, f, y, t, g;
|
|
63469
63315
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
63470
63316
|
return this;
|
|
63471
63317
|
}), g;
|
|
63472
|
-
function verb(
|
|
63473
|
-
return function(
|
|
63474
|
-
return step([
|
|
63318
|
+
function verb(n2) {
|
|
63319
|
+
return function(v2) {
|
|
63320
|
+
return step([n2, v2]);
|
|
63475
63321
|
};
|
|
63476
63322
|
}
|
|
63477
63323
|
function step(op) {
|
|
63478
|
-
if (
|
|
63324
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
63479
63325
|
while (_) try {
|
|
63480
|
-
if (
|
|
63326
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
63481
63327
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
63482
63328
|
switch (op[0]) {
|
|
63483
63329
|
case 0:
|
|
@@ -63524,7 +63370,7 @@ function requireEvt_asyncPipe() {
|
|
|
63524
63370
|
op = [6, e];
|
|
63525
63371
|
y = 0;
|
|
63526
63372
|
} finally {
|
|
63527
|
-
|
|
63373
|
+
f = t = 0;
|
|
63528
63374
|
}
|
|
63529
63375
|
if (op[0] & 5) throw op[1];
|
|
63530
63376
|
return { value: op[0] ? op[1] : void 0, done: true };
|
|
@@ -63601,7 +63447,7 @@ function requireEvt_parsePropsFromArgs() {
|
|
|
63601
63447
|
hasRequiredEvt_parsePropsFromArgs = 1;
|
|
63602
63448
|
var __assign2 = Evt_parsePropsFromArgs && Evt_parsePropsFromArgs.__assign || function() {
|
|
63603
63449
|
__assign2 = Object.assign || function(t) {
|
|
63604
|
-
for (var s, i = 1,
|
|
63450
|
+
for (var s, i = 1, n2 = arguments.length; i < n2; i++) {
|
|
63605
63451
|
s = arguments[i];
|
|
63606
63452
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
63607
63453
|
t[p] = s[p];
|
|
@@ -63610,17 +63456,17 @@ function requireEvt_parsePropsFromArgs() {
|
|
|
63610
63456
|
};
|
|
63611
63457
|
return __assign2.apply(this, arguments);
|
|
63612
63458
|
};
|
|
63613
|
-
var __read2 = Evt_parsePropsFromArgs && Evt_parsePropsFromArgs.__read || function(o,
|
|
63459
|
+
var __read2 = Evt_parsePropsFromArgs && Evt_parsePropsFromArgs.__read || function(o, n2) {
|
|
63614
63460
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
63615
63461
|
if (!m) return o;
|
|
63616
|
-
var i = m.call(o),
|
|
63462
|
+
var i = m.call(o), r2, ar = [], e;
|
|
63617
63463
|
try {
|
|
63618
|
-
while ((
|
|
63464
|
+
while ((n2 === void 0 || n2-- > 0) && !(r2 = i.next()).done) ar.push(r2.value);
|
|
63619
63465
|
} catch (error) {
|
|
63620
63466
|
e = { error };
|
|
63621
63467
|
} finally {
|
|
63622
63468
|
try {
|
|
63623
|
-
if (
|
|
63469
|
+
if (r2 && !r2.done && (m = i["return"])) m.call(i);
|
|
63624
63470
|
} finally {
|
|
63625
63471
|
if (e) throw e.error;
|
|
63626
63472
|
}
|
|
@@ -63676,8 +63522,8 @@ function requireEvt_parsePropsFromArgs() {
|
|
|
63676
63522
|
}
|
|
63677
63523
|
case "attach*":
|
|
63678
63524
|
{
|
|
63679
|
-
var
|
|
63680
|
-
switch (
|
|
63525
|
+
var n2 = inputs.length;
|
|
63526
|
+
switch (n2) {
|
|
63681
63527
|
case 4: {
|
|
63682
63528
|
var _b2 = __read2(inputs, 4), p1 = _b2[0], p2 = _b2[1], p3 = _b2[2], p4 = _b2[3];
|
|
63683
63529
|
return (0, id_1.id)(__assign2(__assign2({}, defaultParams), { "op": p1, "ctx": p2, "timeout": p3, "callback": p4 }));
|
|
@@ -63745,10 +63591,10 @@ function requireRunExclusive() {
|
|
|
63745
63591
|
hasRequiredRunExclusive = 1;
|
|
63746
63592
|
var __spreadArrays = runExclusive && runExclusive.__spreadArrays || function() {
|
|
63747
63593
|
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
63748
|
-
for (var
|
|
63594
|
+
for (var r2 = Array(s), k = 0, i = 0; i < il; i++)
|
|
63749
63595
|
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
63750
|
-
|
|
63751
|
-
return
|
|
63596
|
+
r2[k] = a[j];
|
|
63597
|
+
return r2;
|
|
63752
63598
|
};
|
|
63753
63599
|
runExclusive.__esModule = true;
|
|
63754
63600
|
runExclusive.buildMethodCb = runExclusive.buildCb = runExclusive.getPrComplete = runExclusive.isRunning = runExclusive.cancelAllQueuedCalls = runExclusive.getQueuedCallCount = runExclusive.buildMethod = runExclusive.build = runExclusive.createGroupRef = void 0;
|
|
@@ -63762,9 +63608,9 @@ function requireRunExclusive() {
|
|
|
63762
63608
|
this.prComplete = Promise.resolve();
|
|
63763
63609
|
}
|
|
63764
63610
|
ExecQueue2.prototype.cancelAllQueuedCalls = function() {
|
|
63765
|
-
var
|
|
63766
|
-
this.queuedCalls.splice(0,
|
|
63767
|
-
return
|
|
63611
|
+
var n2;
|
|
63612
|
+
this.queuedCalls.splice(0, n2 = this.queuedCalls.length);
|
|
63613
|
+
return n2;
|
|
63768
63614
|
};
|
|
63769
63615
|
return ExecQueue2;
|
|
63770
63616
|
}()
|
|
@@ -64121,7 +63967,7 @@ function requireEvt() {
|
|
|
64121
63967
|
(function(exports) {
|
|
64122
63968
|
var __assign2 = Evt && Evt.__assign || function() {
|
|
64123
63969
|
__assign2 = Object.assign || function(t) {
|
|
64124
|
-
for (var s, i = 1,
|
|
63970
|
+
for (var s, i = 1, n2 = arguments.length; i < n2; i++) {
|
|
64125
63971
|
s = arguments[i];
|
|
64126
63972
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
64127
63973
|
t[p] = s[p];
|
|
@@ -64143,10 +63989,10 @@ function requireEvt() {
|
|
|
64143
63989
|
if (k2 === void 0) k2 = k;
|
|
64144
63990
|
o[k2] = m[k];
|
|
64145
63991
|
});
|
|
64146
|
-
var __setModuleDefault = Evt && Evt.__setModuleDefault || (Object.create ? function(o,
|
|
64147
|
-
Object.defineProperty(o, "default", { enumerable: true, value:
|
|
64148
|
-
} : function(o,
|
|
64149
|
-
o["default"] =
|
|
63992
|
+
var __setModuleDefault = Evt && Evt.__setModuleDefault || (Object.create ? function(o, v2) {
|
|
63993
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v2 });
|
|
63994
|
+
} : function(o, v2) {
|
|
63995
|
+
o["default"] = v2;
|
|
64150
63996
|
});
|
|
64151
63997
|
var __importStar = Evt && Evt.__importStar || function(mod) {
|
|
64152
63998
|
if (mod && mod.__esModule) return mod;
|
|
@@ -64188,19 +64034,19 @@ function requireEvt() {
|
|
|
64188
64034
|
var _ = { label: 0, sent: function() {
|
|
64189
64035
|
if (t[0] & 1) throw t[1];
|
|
64190
64036
|
return t[1];
|
|
64191
|
-
}, trys: [], ops: [] },
|
|
64037
|
+
}, trys: [], ops: [] }, f, y, t, g;
|
|
64192
64038
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
64193
64039
|
return this;
|
|
64194
64040
|
}), g;
|
|
64195
|
-
function verb(
|
|
64196
|
-
return function(
|
|
64197
|
-
return step([
|
|
64041
|
+
function verb(n2) {
|
|
64042
|
+
return function(v2) {
|
|
64043
|
+
return step([n2, v2]);
|
|
64198
64044
|
};
|
|
64199
64045
|
}
|
|
64200
64046
|
function step(op) {
|
|
64201
|
-
if (
|
|
64047
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
64202
64048
|
while (_) try {
|
|
64203
|
-
if (
|
|
64049
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
64204
64050
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
64205
64051
|
switch (op[0]) {
|
|
64206
64052
|
case 0:
|
|
@@ -64247,23 +64093,23 @@ function requireEvt() {
|
|
|
64247
64093
|
op = [6, e];
|
|
64248
64094
|
y = 0;
|
|
64249
64095
|
} finally {
|
|
64250
|
-
|
|
64096
|
+
f = t = 0;
|
|
64251
64097
|
}
|
|
64252
64098
|
if (op[0] & 5) throw op[1];
|
|
64253
64099
|
return { value: op[0] ? op[1] : void 0, done: true };
|
|
64254
64100
|
}
|
|
64255
64101
|
};
|
|
64256
|
-
var __read2 = Evt && Evt.__read || function(o,
|
|
64102
|
+
var __read2 = Evt && Evt.__read || function(o, n2) {
|
|
64257
64103
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
64258
64104
|
if (!m) return o;
|
|
64259
|
-
var i = m.call(o),
|
|
64105
|
+
var i = m.call(o), r2, ar = [], e;
|
|
64260
64106
|
try {
|
|
64261
|
-
while ((
|
|
64107
|
+
while ((n2 === void 0 || n2-- > 0) && !(r2 = i.next()).done) ar.push(r2.value);
|
|
64262
64108
|
} catch (error) {
|
|
64263
64109
|
e = { error };
|
|
64264
64110
|
} finally {
|
|
64265
64111
|
try {
|
|
64266
|
-
if (
|
|
64112
|
+
if (r2 && !r2.done && (m = i["return"])) m.call(i);
|
|
64267
64113
|
} finally {
|
|
64268
64114
|
if (e) throw e.error;
|
|
64269
64115
|
}
|
|
@@ -64335,8 +64181,8 @@ function requireEvt() {
|
|
|
64335
64181
|
this.__currentChronologyMark = 0;
|
|
64336
64182
|
this.asyncHandlerCount = 0;
|
|
64337
64183
|
}
|
|
64338
|
-
EvtImpl2.setDefaultMaxHandlers = function(
|
|
64339
|
-
this.__defaultMaxHandlers = isFinite(
|
|
64184
|
+
EvtImpl2.setDefaultMaxHandlers = function(n2) {
|
|
64185
|
+
this.__defaultMaxHandlers = isFinite(n2) ? n2 : 0;
|
|
64340
64186
|
};
|
|
64341
64187
|
EvtImpl2.prototype.toStateful = function(p1, p2) {
|
|
64342
64188
|
var isP1Ctx = CtxLikeAsValue.match(p1);
|
|
@@ -64367,8 +64213,8 @@ function requireEvt() {
|
|
|
64367
64213
|
enumerable: false,
|
|
64368
64214
|
configurable: true
|
|
64369
64215
|
});
|
|
64370
|
-
EvtImpl2.prototype.setMaxHandlers = function(
|
|
64371
|
-
this.__maxHandlers = isFinite(
|
|
64216
|
+
EvtImpl2.prototype.setMaxHandlers = function(n2) {
|
|
64217
|
+
this.__maxHandlers = isFinite(n2) ? n2 : 0;
|
|
64372
64218
|
return this;
|
|
64373
64219
|
};
|
|
64374
64220
|
EvtImpl2.prototype.enableTrace = function(params) {
|
|
@@ -65134,17 +64980,17 @@ function requireStatefulEvt() {
|
|
|
65134
64980
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
65135
64981
|
};
|
|
65136
64982
|
}();
|
|
65137
|
-
var __read2 = StatefulEvt && StatefulEvt.__read || function(o,
|
|
64983
|
+
var __read2 = StatefulEvt && StatefulEvt.__read || function(o, n2) {
|
|
65138
64984
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
65139
64985
|
if (!m) return o;
|
|
65140
|
-
var i = m.call(o),
|
|
64986
|
+
var i = m.call(o), r2, ar = [], e;
|
|
65141
64987
|
try {
|
|
65142
|
-
while ((
|
|
64988
|
+
while ((n2 === void 0 || n2-- > 0) && !(r2 = i.next()).done) ar.push(r2.value);
|
|
65143
64989
|
} catch (error) {
|
|
65144
64990
|
e = { error };
|
|
65145
64991
|
} finally {
|
|
65146
64992
|
try {
|
|
65147
|
-
if (
|
|
64993
|
+
if (r2 && !r2.done && (m = i["return"])) m.call(i);
|
|
65148
64994
|
} finally {
|
|
65149
64995
|
if (e) throw e.error;
|
|
65150
64996
|
}
|
|
@@ -65256,10 +65102,10 @@ function requireStatefulEvt() {
|
|
|
65256
65102
|
prs.push(r1);
|
|
65257
65103
|
}
|
|
65258
65104
|
if (forceChange || !Object.is(prevState, this.state)) {
|
|
65259
|
-
var
|
|
65105
|
+
var r2 = this.lazyEvtChange[postVariantName](this.state);
|
|
65260
65106
|
var r3 = this.lazyEvtChangeDiff[postVariantName](diff);
|
|
65261
65107
|
if (doWait) {
|
|
65262
|
-
prs.push(
|
|
65108
|
+
prs.push(r2, r3);
|
|
65263
65109
|
}
|
|
65264
65110
|
}
|
|
65265
65111
|
var r4 = _super.prototype[postVariantName].call(this, data);
|
|
@@ -65370,17 +65216,17 @@ var hasRequiredDistinct;
|
|
|
65370
65216
|
function requireDistinct() {
|
|
65371
65217
|
if (hasRequiredDistinct) return distinct;
|
|
65372
65218
|
hasRequiredDistinct = 1;
|
|
65373
|
-
var __read2 = distinct && distinct.__read || function(o,
|
|
65219
|
+
var __read2 = distinct && distinct.__read || function(o, n2) {
|
|
65374
65220
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
65375
65221
|
if (!m) return o;
|
|
65376
|
-
var i = m.call(o),
|
|
65222
|
+
var i = m.call(o), r2, ar = [], e;
|
|
65377
65223
|
try {
|
|
65378
|
-
while ((
|
|
65224
|
+
while ((n2 === void 0 || n2-- > 0) && !(r2 = i.next()).done) ar.push(r2.value);
|
|
65379
65225
|
} catch (error) {
|
|
65380
65226
|
e = { error };
|
|
65381
65227
|
} finally {
|
|
65382
65228
|
try {
|
|
65383
|
-
if (
|
|
65229
|
+
if (r2 && !r2.done && (m = i["return"])) m.call(i);
|
|
65384
65230
|
} finally {
|
|
65385
65231
|
if (e) throw e.error;
|
|
65386
65232
|
}
|
|
@@ -65747,12 +65593,12 @@ function createPacketDecoderStream(maxPayload, binaryType) {
|
|
|
65747
65593
|
}
|
|
65748
65594
|
const headerArray = concatChunks(chunks, 8);
|
|
65749
65595
|
const view = new DataView(headerArray.buffer, headerArray.byteOffset, headerArray.length);
|
|
65750
|
-
const
|
|
65751
|
-
if (
|
|
65596
|
+
const n2 = view.getUint32(0);
|
|
65597
|
+
if (n2 > Math.pow(2, 53 - 32) - 1) {
|
|
65752
65598
|
controller.enqueue(ERROR_PACKET);
|
|
65753
65599
|
break;
|
|
65754
65600
|
}
|
|
65755
|
-
expectedLength =
|
|
65601
|
+
expectedLength = n2 * Math.pow(2, 32) + view.getUint32(4);
|
|
65756
65602
|
state2 = 3;
|
|
65757
65603
|
} else {
|
|
65758
65604
|
if (totalLength(chunks) < expectedLength) {
|
|
@@ -65918,9 +65764,9 @@ function encode(obj) {
|
|
|
65918
65764
|
}
|
|
65919
65765
|
return str;
|
|
65920
65766
|
}
|
|
65921
|
-
function decode(
|
|
65767
|
+
function decode(qs) {
|
|
65922
65768
|
let qry = {};
|
|
65923
|
-
let pairs =
|
|
65769
|
+
let pairs = qs.split("&");
|
|
65924
65770
|
for (let i = 0, l = pairs.length; i < l; i++) {
|
|
65925
65771
|
let pair = pairs[i].split("=");
|
|
65926
65772
|
qry[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1]);
|
|
@@ -68444,49 +68290,49 @@ class Manager extends Emitter {
|
|
|
68444
68290
|
if (this._autoConnect)
|
|
68445
68291
|
this.open();
|
|
68446
68292
|
}
|
|
68447
|
-
reconnection(
|
|
68293
|
+
reconnection(v2) {
|
|
68448
68294
|
if (!arguments.length)
|
|
68449
68295
|
return this._reconnection;
|
|
68450
|
-
this._reconnection = !!
|
|
68451
|
-
if (!
|
|
68296
|
+
this._reconnection = !!v2;
|
|
68297
|
+
if (!v2) {
|
|
68452
68298
|
this.skipReconnect = true;
|
|
68453
68299
|
}
|
|
68454
68300
|
return this;
|
|
68455
68301
|
}
|
|
68456
|
-
reconnectionAttempts(
|
|
68457
|
-
if (
|
|
68302
|
+
reconnectionAttempts(v2) {
|
|
68303
|
+
if (v2 === void 0)
|
|
68458
68304
|
return this._reconnectionAttempts;
|
|
68459
|
-
this._reconnectionAttempts =
|
|
68305
|
+
this._reconnectionAttempts = v2;
|
|
68460
68306
|
return this;
|
|
68461
68307
|
}
|
|
68462
|
-
reconnectionDelay(
|
|
68308
|
+
reconnectionDelay(v2) {
|
|
68463
68309
|
var _a2;
|
|
68464
|
-
if (
|
|
68310
|
+
if (v2 === void 0)
|
|
68465
68311
|
return this._reconnectionDelay;
|
|
68466
|
-
this._reconnectionDelay =
|
|
68467
|
-
(_a2 = this.backoff) === null || _a2 === void 0 ? void 0 : _a2.setMin(
|
|
68312
|
+
this._reconnectionDelay = v2;
|
|
68313
|
+
(_a2 = this.backoff) === null || _a2 === void 0 ? void 0 : _a2.setMin(v2);
|
|
68468
68314
|
return this;
|
|
68469
68315
|
}
|
|
68470
|
-
randomizationFactor(
|
|
68316
|
+
randomizationFactor(v2) {
|
|
68471
68317
|
var _a2;
|
|
68472
|
-
if (
|
|
68318
|
+
if (v2 === void 0)
|
|
68473
68319
|
return this._randomizationFactor;
|
|
68474
|
-
this._randomizationFactor =
|
|
68475
|
-
(_a2 = this.backoff) === null || _a2 === void 0 ? void 0 : _a2.setJitter(
|
|
68320
|
+
this._randomizationFactor = v2;
|
|
68321
|
+
(_a2 = this.backoff) === null || _a2 === void 0 ? void 0 : _a2.setJitter(v2);
|
|
68476
68322
|
return this;
|
|
68477
68323
|
}
|
|
68478
|
-
reconnectionDelayMax(
|
|
68324
|
+
reconnectionDelayMax(v2) {
|
|
68479
68325
|
var _a2;
|
|
68480
|
-
if (
|
|
68326
|
+
if (v2 === void 0)
|
|
68481
68327
|
return this._reconnectionDelayMax;
|
|
68482
|
-
this._reconnectionDelayMax =
|
|
68483
|
-
(_a2 = this.backoff) === null || _a2 === void 0 ? void 0 : _a2.setMax(
|
|
68328
|
+
this._reconnectionDelayMax = v2;
|
|
68329
|
+
(_a2 = this.backoff) === null || _a2 === void 0 ? void 0 : _a2.setMax(v2);
|
|
68484
68330
|
return this;
|
|
68485
68331
|
}
|
|
68486
|
-
timeout(
|
|
68332
|
+
timeout(v2) {
|
|
68487
68333
|
if (!arguments.length)
|
|
68488
68334
|
return this._timeout;
|
|
68489
|
-
this._timeout =
|
|
68335
|
+
this._timeout = v2;
|
|
68490
68336
|
return this;
|
|
68491
68337
|
}
|
|
68492
68338
|
/**
|
|
@@ -68927,7 +68773,7 @@ const _SocketIOManager = class _SocketIOManager extends EventAdapter {
|
|
|
68927
68773
|
});
|
|
68928
68774
|
if (this.socket) {
|
|
68929
68775
|
this.socket.emit("message", {
|
|
68930
|
-
type:
|
|
68776
|
+
type: ei.SEND_MESSAGE,
|
|
68931
68777
|
payload: {
|
|
68932
68778
|
senderId: data.senderId,
|
|
68933
68779
|
senderName: data.senderName,
|
|
@@ -68989,7 +68835,7 @@ const _SocketIOManager = class _SocketIOManager extends EventAdapter {
|
|
|
68989
68835
|
}
|
|
68990
68836
|
this.activeRooms.add(roomId);
|
|
68991
68837
|
this.socket.emit("message", {
|
|
68992
|
-
type:
|
|
68838
|
+
type: ei.ROOM_JOINING,
|
|
68993
68839
|
payload: {
|
|
68994
68840
|
roomId,
|
|
68995
68841
|
entityId: this.entityId,
|
|
@@ -69028,7 +68874,7 @@ const _SocketIOManager = class _SocketIOManager extends EventAdapter {
|
|
|
69028
68874
|
const worldId = WorldManager.getWorldId();
|
|
69029
68875
|
clientLogger.info(`[SocketIO] Sending message to room ${roomId}`);
|
|
69030
68876
|
this.socket.emit("message", {
|
|
69031
|
-
type:
|
|
68877
|
+
type: ei.SEND_MESSAGE,
|
|
69032
68878
|
payload: {
|
|
69033
68879
|
senderId: this.entityId,
|
|
69034
68880
|
senderName: USER_NAME,
|
|
@@ -69855,7 +69701,6 @@ function Page$1({
|
|
|
69855
69701
|
var _a2, _b2;
|
|
69856
69702
|
const [selectedFile, setSelectedFile] = reactExports.useState(null);
|
|
69857
69703
|
const [input, setInput] = reactExports.useState("");
|
|
69858
|
-
const [messageProcessing, setMessageProcessing] = reactExports.useState(false);
|
|
69859
69704
|
const [inputDisabled, setInputDisabled] = reactExports.useState(false);
|
|
69860
69705
|
const inputRef = reactExports.useRef(null);
|
|
69861
69706
|
const fileInputRef = reactExports.useRef(null);
|
|
@@ -69888,31 +69733,51 @@ function Page$1({
|
|
|
69888
69733
|
// Set the correct name based on who sent the message
|
|
69889
69734
|
name: isCurrentUser ? USER_NAME : data.senderName,
|
|
69890
69735
|
createdAt: data.createdAt || Date.now(),
|
|
69891
|
-
|
|
69736
|
+
senderId: entityId,
|
|
69737
|
+
senderName: USER_NAME,
|
|
69738
|
+
roomId,
|
|
69739
|
+
source: CHAT_SOURCE,
|
|
69740
|
+
id: data.id
|
|
69741
|
+
// Add a unique ID for React keys and duplicate detection
|
|
69892
69742
|
};
|
|
69893
69743
|
console.log(`[Chat] Adding new message to UI from ${newMessage.name}:`, newMessage);
|
|
69894
69744
|
queryClient2.setQueryData(
|
|
69895
69745
|
["messages", agentId, roomId, worldId],
|
|
69896
69746
|
(old = []) => {
|
|
69747
|
+
var _a3;
|
|
69897
69748
|
console.log("[Chat] Current messages:", (old == null ? void 0 : old.length) || 0);
|
|
69749
|
+
let messageToAdd = { ...newMessage };
|
|
69750
|
+
const isIgnore = (_a3 = messageToAdd.actions) == null ? void 0 : _a3.includes("IGNORE");
|
|
69751
|
+
if (isIgnore) {
|
|
69752
|
+
messageToAdd.text = ``;
|
|
69753
|
+
messageToAdd.thought = data.thought;
|
|
69754
|
+
messageToAdd.actions = data.actions;
|
|
69755
|
+
clientLogger.debug("[Chat] Handling IGNORE action, modifying message", messageToAdd);
|
|
69756
|
+
}
|
|
69898
69757
|
const isDuplicate = old.some(
|
|
69899
|
-
(msg) =>
|
|
69758
|
+
(msg) => (
|
|
69759
|
+
// Use a combination of sender, text/thought, and time to detect duplicates
|
|
69760
|
+
msg.senderId === messageToAdd.senderId && (msg.text === messageToAdd.text || !msg.text && !messageToAdd.text && msg.thought === messageToAdd.thought) && Math.abs((msg.createdAt || 0) - (messageToAdd.createdAt || 0)) < 5e3
|
|
69761
|
+
)
|
|
69900
69762
|
// Within 5 seconds
|
|
69901
69763
|
);
|
|
69902
69764
|
if (isDuplicate) {
|
|
69903
69765
|
console.log("[Chat] Skipping duplicate message");
|
|
69904
69766
|
return old;
|
|
69905
69767
|
}
|
|
69906
|
-
|
|
69907
|
-
|
|
69908
|
-
|
|
69768
|
+
if (messageToAdd.id) {
|
|
69769
|
+
const newMessageId = typeof messageToAdd.id === "string" ? messageToAdd.id : String(messageToAdd.id);
|
|
69770
|
+
if (messageToAdd.senderId !== entityId) {
|
|
69771
|
+
animatedMessageIdRef.current = newMessageId;
|
|
69772
|
+
} else {
|
|
69773
|
+
animatedMessageIdRef.current = null;
|
|
69774
|
+
}
|
|
69775
|
+
}
|
|
69776
|
+
return [...old, messageToAdd];
|
|
69909
69777
|
}
|
|
69910
69778
|
);
|
|
69911
69779
|
};
|
|
69912
69780
|
const handleMessageComplete = (data) => {
|
|
69913
|
-
if (data.roomId === roomId) {
|
|
69914
|
-
setMessageProcessing(false);
|
|
69915
|
-
}
|
|
69916
69781
|
};
|
|
69917
69782
|
console.log("[Chat] Adding messageBroadcast listener");
|
|
69918
69783
|
const msgHandler = socketIOManager.evtMessageBroadcast.attach((data) => [
|
|
@@ -69938,10 +69803,8 @@ function Page$1({
|
|
|
69938
69803
|
clientLogger.info(`[Chat] Received control message: ${action} for room ${messageRoomId}`);
|
|
69939
69804
|
if (action === "disable_input") {
|
|
69940
69805
|
setInputDisabled(true);
|
|
69941
|
-
setMessageProcessing(true);
|
|
69942
69806
|
} else if (action === "enable_input") {
|
|
69943
69807
|
setInputDisabled(false);
|
|
69944
|
-
setMessageProcessing(false);
|
|
69945
69808
|
}
|
|
69946
69809
|
}
|
|
69947
69810
|
};
|
|
@@ -69980,7 +69843,7 @@ function Page$1({
|
|
|
69980
69843
|
const handleSendMessage = (e) => {
|
|
69981
69844
|
var _a3;
|
|
69982
69845
|
e.preventDefault();
|
|
69983
|
-
if (!input ||
|
|
69846
|
+
if (!input || inputDisabled) return;
|
|
69984
69847
|
const messageId = randomUUID();
|
|
69985
69848
|
const userMessage = {
|
|
69986
69849
|
text: input,
|
|
@@ -70008,7 +69871,6 @@ function Page$1({
|
|
|
70008
69871
|
}
|
|
70009
69872
|
);
|
|
70010
69873
|
socketIOManager.sendMessage(input, roomId, CHAT_SOURCE);
|
|
70011
|
-
setMessageProcessing(true);
|
|
70012
69874
|
setSelectedFile(null);
|
|
70013
69875
|
setInput("");
|
|
70014
69876
|
(_a3 = formRef.current) == null ? void 0 : _a3.reset();
|
|
@@ -70025,11 +69887,11 @@ function Page$1({
|
|
|
70025
69887
|
setSelectedFile(file);
|
|
70026
69888
|
}
|
|
70027
69889
|
};
|
|
70028
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
69890
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
70029
69891
|
"div",
|
|
70030
69892
|
{
|
|
70031
|
-
className: `flex flex-col w-full h-screen
|
|
70032
|
-
children: [
|
|
69893
|
+
className: `flex flex-col w-full h-screen items-center ${showDetails ? "col-span-3" : "col-span-4"}`,
|
|
69894
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col w-full md:max-w-4xl h-full p-4", children: [
|
|
70033
69895
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between mb-4 p-3 bg-card rounded-lg border", children: [
|
|
70034
69896
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
70035
69897
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Avatar, { className: "size-10 border rounded-full", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -70041,7 +69903,7 @@ function Page$1({
|
|
|
70041
69903
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col", children: [
|
|
70042
69904
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
70043
69905
|
/* @__PURE__ */ jsxRuntimeExports.jsx("h2", { className: "font-semibold text-lg", children: (agentData == null ? void 0 : agentData.name) || "Agent" }),
|
|
70044
|
-
(agentData == null ? void 0 : agentData.status) ===
|
|
69906
|
+
(agentData == null ? void 0 : agentData.status) === js.ACTIVE ? /* @__PURE__ */ jsxRuntimeExports.jsxs(Tooltip, { children: [
|
|
70045
69907
|
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "size-2.5 rounded-full bg-green-500 ring-2 ring-green-500/20 animate-pulse" }) }),
|
|
70046
69908
|
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { side: "right", children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: "Agent is active" }) })
|
|
70047
69909
|
] }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(Tooltip, { children: [
|
|
@@ -70063,154 +69925,164 @@ function Page$1({
|
|
|
70063
69925
|
}
|
|
70064
69926
|
)
|
|
70065
69927
|
] }),
|
|
70066
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
70067
|
-
|
|
70068
|
-
|
|
70069
|
-
|
|
70070
|
-
|
|
70071
|
-
|
|
70072
|
-
|
|
70073
|
-
|
|
70074
|
-
|
|
70075
|
-
|
|
70076
|
-
|
|
70077
|
-
|
|
70078
|
-
|
|
70079
|
-
|
|
70080
|
-
|
|
70081
|
-
|
|
70082
|
-
|
|
70083
|
-
|
|
70084
|
-
|
|
70085
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
70086
|
-
ChatBubble,
|
|
69928
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
69929
|
+
"div",
|
|
69930
|
+
{
|
|
69931
|
+
className: cn("flex flex-col transition-all duration-300 w-full grow overflow-hidden "),
|
|
69932
|
+
children: [
|
|
69933
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
69934
|
+
ChatMessageList,
|
|
69935
|
+
{
|
|
69936
|
+
scrollRef,
|
|
69937
|
+
isAtBottom,
|
|
69938
|
+
scrollToBottom: safeScrollToBottom,
|
|
69939
|
+
disableAutoScroll,
|
|
69940
|
+
className: "flex-grow scrollbar-hide overflow-y-auto",
|
|
69941
|
+
children: messages.map((message2, index2) => {
|
|
69942
|
+
var _a3, _b3;
|
|
69943
|
+
const isUser = message2.name === USER_NAME;
|
|
69944
|
+
const shouldAnimate = index2 === messages.length - 1 && message2.name !== USER_NAME && message2.id === animatedMessageIdRef.current;
|
|
69945
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
69946
|
+
"div",
|
|
70087
69947
|
{
|
|
70088
|
-
|
|
70089
|
-
|
|
70090
|
-
|
|
70091
|
-
|
|
70092
|
-
|
|
69948
|
+
className: cn(
|
|
69949
|
+
"flex flex-col gap-1 p-1",
|
|
69950
|
+
isUser ? "justify-end" : "justify-start"
|
|
69951
|
+
),
|
|
69952
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
69953
|
+
ChatBubble,
|
|
69954
|
+
{
|
|
69955
|
+
variant: isUser ? "sent" : "received",
|
|
69956
|
+
className: `flex flex-row items-end gap-2 ${isUser ? "flex-row-reverse" : ""}`,
|
|
69957
|
+
children: [
|
|
69958
|
+
!isUser && /* @__PURE__ */ jsxRuntimeExports.jsx(Avatar, { className: "size-8 border rounded-full select-none mb-2", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
69959
|
+
AvatarImage,
|
|
69960
|
+
{
|
|
69961
|
+
src: isUser ? "/user-icon.png" : ((_a3 = agentData == null ? void 0 : agentData.settings) == null ? void 0 : _a3.avatar) ? (_b3 = agentData == null ? void 0 : agentData.settings) == null ? void 0 : _b3.avatar : "/elizaos-icon.png"
|
|
69962
|
+
}
|
|
69963
|
+
) }),
|
|
69964
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
69965
|
+
MemoizedMessageContent$1,
|
|
69966
|
+
{
|
|
69967
|
+
message: message2,
|
|
69968
|
+
agentId,
|
|
69969
|
+
shouldAnimate
|
|
69970
|
+
}
|
|
69971
|
+
)
|
|
69972
|
+
]
|
|
69973
|
+
}
|
|
69974
|
+
)
|
|
69975
|
+
},
|
|
69976
|
+
`${message2.id}-${message2.createdAt}`
|
|
69977
|
+
);
|
|
69978
|
+
})
|
|
69979
|
+
}
|
|
69980
|
+
),
|
|
69981
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "px-4 pb-4 mt-auto flex-shrink-0", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
69982
|
+
"form",
|
|
69983
|
+
{
|
|
69984
|
+
ref: formRef,
|
|
69985
|
+
onSubmit: handleSendMessage,
|
|
69986
|
+
className: "relative rounded-md border bg-card",
|
|
69987
|
+
children: [
|
|
69988
|
+
selectedFile ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "p-3 flex", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "relative rounded-md border p-2", children: [
|
|
69989
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
69990
|
+
Button,
|
|
69991
|
+
{
|
|
69992
|
+
onClick: () => setSelectedFile(null),
|
|
69993
|
+
className: "absolute -right-2 -top-2 size-[22px] ring-2 ring-background",
|
|
69994
|
+
variant: "outline",
|
|
69995
|
+
size: "icon",
|
|
69996
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(X$1, {})
|
|
69997
|
+
}
|
|
69998
|
+
),
|
|
69999
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
70000
|
+
"img",
|
|
70001
|
+
{
|
|
70002
|
+
alt: "Selected file",
|
|
70003
|
+
src: URL.createObjectURL(selectedFile),
|
|
70004
|
+
height: "100%",
|
|
70005
|
+
width: "100%",
|
|
70006
|
+
className: "aspect-square object-contain w-16"
|
|
70007
|
+
}
|
|
70008
|
+
)
|
|
70009
|
+
] }) }) : null,
|
|
70010
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
70011
|
+
ChatInput,
|
|
70012
|
+
{
|
|
70013
|
+
ref: inputRef,
|
|
70014
|
+
onKeyDown: handleKeyDown,
|
|
70015
|
+
value: input,
|
|
70016
|
+
onChange: ({ target }) => setInput(target.value),
|
|
70017
|
+
placeholder: inputDisabled ? "Input disabled while agent is processing..." : "Type your message here...",
|
|
70018
|
+
className: "min-h-12 resize-none rounded-md bg-card border-0 p-3 shadow-none focus-visible:ring-0",
|
|
70019
|
+
disabled: inputDisabled
|
|
70020
|
+
}
|
|
70021
|
+
),
|
|
70022
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center p-3 pt-0", children: [
|
|
70023
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Tooltip, { children: [
|
|
70024
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
70025
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
70026
|
+
Button,
|
|
70093
70027
|
{
|
|
70094
|
-
|
|
70028
|
+
variant: "ghost",
|
|
70029
|
+
size: "icon",
|
|
70030
|
+
onClick: () => {
|
|
70031
|
+
if (fileInputRef.current) {
|
|
70032
|
+
fileInputRef.current.click();
|
|
70033
|
+
}
|
|
70034
|
+
},
|
|
70035
|
+
children: [
|
|
70036
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Paperclip, { className: "size-4" }),
|
|
70037
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "sr-only", children: "Attach file" })
|
|
70038
|
+
]
|
|
70095
70039
|
}
|
|
70096
|
-
)
|
|
70040
|
+
),
|
|
70097
70041
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
70098
|
-
|
|
70042
|
+
"input",
|
|
70099
70043
|
{
|
|
70100
|
-
|
|
70101
|
-
|
|
70102
|
-
|
|
70044
|
+
type: "file",
|
|
70045
|
+
ref: fileInputRef,
|
|
70046
|
+
onChange: handleFileChange,
|
|
70047
|
+
accept: "image/*",
|
|
70048
|
+
className: "hidden"
|
|
70103
70049
|
}
|
|
70104
70050
|
)
|
|
70105
|
-
]
|
|
70106
|
-
|
|
70107
|
-
|
|
70108
|
-
|
|
70109
|
-
|
|
70110
|
-
);
|
|
70111
|
-
})
|
|
70112
|
-
}
|
|
70113
|
-
),
|
|
70114
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "px-4 pb-4 mt-auto", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
70115
|
-
"form",
|
|
70116
|
-
{
|
|
70117
|
-
ref: formRef,
|
|
70118
|
-
onSubmit: handleSendMessage,
|
|
70119
|
-
className: "relative rounded-md border bg-card",
|
|
70120
|
-
children: [
|
|
70121
|
-
selectedFile ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "p-3 flex", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "relative rounded-md border p-2", children: [
|
|
70122
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
70123
|
-
Button,
|
|
70124
|
-
{
|
|
70125
|
-
onClick: () => setSelectedFile(null),
|
|
70126
|
-
className: "absolute -right-2 -top-2 size-[22px] ring-2 ring-background",
|
|
70127
|
-
variant: "outline",
|
|
70128
|
-
size: "icon",
|
|
70129
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(X$1, {})
|
|
70130
|
-
}
|
|
70131
|
-
),
|
|
70132
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
70133
|
-
"img",
|
|
70134
|
-
{
|
|
70135
|
-
alt: "Selected file",
|
|
70136
|
-
src: URL.createObjectURL(selectedFile),
|
|
70137
|
-
height: "100%",
|
|
70138
|
-
width: "100%",
|
|
70139
|
-
className: "aspect-square object-contain w-16"
|
|
70140
|
-
}
|
|
70141
|
-
)
|
|
70142
|
-
] }) }) : null,
|
|
70143
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
70144
|
-
ChatInput,
|
|
70145
|
-
{
|
|
70146
|
-
ref: inputRef,
|
|
70147
|
-
onKeyDown: handleKeyDown,
|
|
70148
|
-
value: input,
|
|
70149
|
-
onChange: ({ target }) => setInput(target.value),
|
|
70150
|
-
placeholder: inputDisabled ? "Input disabled while agent is processing..." : "Type your message here...",
|
|
70151
|
-
className: "min-h-12 resize-none rounded-md bg-card border-0 p-3 shadow-none focus-visible:ring-0",
|
|
70152
|
-
disabled: inputDisabled || messageProcessing
|
|
70153
|
-
}
|
|
70154
|
-
),
|
|
70155
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center p-3 pt-0", children: [
|
|
70156
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Tooltip, { children: [
|
|
70157
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
70158
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
70159
|
-
Button,
|
|
70051
|
+
] }) }),
|
|
70052
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { side: "left", children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: "Attach file" }) })
|
|
70053
|
+
] }),
|
|
70054
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
70055
|
+
AudioRecorder,
|
|
70160
70056
|
{
|
|
70161
|
-
|
|
70162
|
-
|
|
70163
|
-
onClick: () => {
|
|
70164
|
-
if (fileInputRef.current) {
|
|
70165
|
-
fileInputRef.current.click();
|
|
70166
|
-
}
|
|
70167
|
-
},
|
|
70168
|
-
children: [
|
|
70169
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Paperclip, { className: "size-4" }),
|
|
70170
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "sr-only", children: "Attach file" })
|
|
70171
|
-
]
|
|
70057
|
+
agentId,
|
|
70058
|
+
onChange: (newInput) => setInput(newInput)
|
|
70172
70059
|
}
|
|
70173
70060
|
),
|
|
70174
70061
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
70175
|
-
|
|
70062
|
+
Button,
|
|
70176
70063
|
{
|
|
70177
|
-
|
|
70178
|
-
|
|
70179
|
-
|
|
70180
|
-
|
|
70181
|
-
|
|
70064
|
+
disabled: inputDisabled,
|
|
70065
|
+
type: "submit",
|
|
70066
|
+
size: "sm",
|
|
70067
|
+
className: "ml-auto gap-1.5 h-[30px]",
|
|
70068
|
+
children: inputDisabled ? (
|
|
70069
|
+
// Show loading based on inputDisabled
|
|
70070
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex gap-0.5 items-center justify-center", children: [
|
|
70071
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "w-[4px] h-[4px] bg-gray-500 rounded-full animate-bounce [animation-delay:0s]" }),
|
|
70072
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "w-[4px] h-[4px] bg-gray-500 rounded-full animate-bounce [animation-delay:0.2s]" }),
|
|
70073
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "w-[4px] h-[4px] bg-gray-500 rounded-full animate-bounce [animation-delay:0.4s]" })
|
|
70074
|
+
] })
|
|
70075
|
+
) : /* @__PURE__ */ jsxRuntimeExports.jsx(Send, { className: "size-3.5" })
|
|
70182
70076
|
}
|
|
70183
70077
|
)
|
|
70184
|
-
] })
|
|
70185
|
-
|
|
70186
|
-
|
|
70187
|
-
|
|
70188
|
-
|
|
70189
|
-
|
|
70190
|
-
|
|
70191
|
-
|
|
70192
|
-
}
|
|
70193
|
-
),
|
|
70194
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
70195
|
-
Button,
|
|
70196
|
-
{
|
|
70197
|
-
disabled: messageProcessing,
|
|
70198
|
-
type: "submit",
|
|
70199
|
-
size: "sm",
|
|
70200
|
-
className: "ml-auto gap-1.5 h-[30px]",
|
|
70201
|
-
children: messageProcessing ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex gap-0.5 items-center justify-center", children: [
|
|
70202
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "w-[4px] h-[4px] bg-gray-500 rounded-full animate-bounce [animation-delay:0s]" }),
|
|
70203
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "w-[4px] h-[4px] bg-gray-500 rounded-full animate-bounce [animation-delay:0.2s]" }),
|
|
70204
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "w-[4px] h-[4px] bg-gray-500 rounded-full animate-bounce [animation-delay:0.4s]" })
|
|
70205
|
-
] }) : /* @__PURE__ */ jsxRuntimeExports.jsx(Send, { className: "size-3.5" })
|
|
70206
|
-
}
|
|
70207
|
-
)
|
|
70208
|
-
] })
|
|
70209
|
-
]
|
|
70210
|
-
}
|
|
70211
|
-
) })
|
|
70212
|
-
] }) })
|
|
70213
|
-
]
|
|
70078
|
+
] })
|
|
70079
|
+
]
|
|
70080
|
+
}
|
|
70081
|
+
) })
|
|
70082
|
+
]
|
|
70083
|
+
}
|
|
70084
|
+
)
|
|
70085
|
+
] })
|
|
70214
70086
|
}
|
|
70215
70087
|
);
|
|
70216
70088
|
}
|
|
@@ -71076,7 +70948,6 @@ function KnowledgeManager({ agentId }) {
|
|
|
71076
70948
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(DialogDescription, { className: "flex items-center mt-1", children: [
|
|
71077
70949
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Clock, { className: "h-3.5 w-3.5 mr-1" }),
|
|
71078
70950
|
"Added on",
|
|
71079
|
-
" ",
|
|
71080
70951
|
viewingContent ? formatDate2(viewingContent.createdAt || ((_a2 = viewingContent.metadata) == null ? void 0 : _a2.timestamp) || 0) : ""
|
|
71081
70952
|
] })
|
|
71082
70953
|
] }),
|
|
@@ -71117,7 +70988,7 @@ function AgentSidebar({ agentId, agentName }) {
|
|
|
71117
70988
|
{
|
|
71118
70989
|
defaultValue: "actions",
|
|
71119
70990
|
value: detailsTab,
|
|
71120
|
-
onValueChange: (
|
|
70991
|
+
onValueChange: (v2) => setDetailsTab(v2),
|
|
71121
70992
|
className: "flex flex-col h-full",
|
|
71122
70993
|
children: [
|
|
71123
70994
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "border-b px-4 py-2", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(TabsList, { className: "grid grid-cols-4", children: [
|
|
@@ -73365,7 +73236,7 @@ function Page({ serverId }) {
|
|
|
73365
73236
|
for (const roomData of roomDatas) {
|
|
73366
73237
|
const agentData = agents.find((agent) => agent.id === roomData.agentId);
|
|
73367
73238
|
if (agentData) {
|
|
73368
|
-
if (agentData.status ===
|
|
73239
|
+
if (agentData.status === js.ACTIVE) {
|
|
73369
73240
|
activeAgentIds.push(roomData.agentId);
|
|
73370
73241
|
}
|
|
73371
73242
|
}
|
|
@@ -73406,18 +73277,27 @@ function Page({ serverId }) {
|
|
|
73406
73277
|
["groupmessages", serverId, worldId],
|
|
73407
73278
|
(old = []) => {
|
|
73408
73279
|
console.log(`[Chat] Current messages:`, (old == null ? void 0 : old.length) || 0);
|
|
73280
|
+
let messageToAdd = { ...newMessage };
|
|
73409
73281
|
const isDuplicate = old.some(
|
|
73410
|
-
(msg) =>
|
|
73282
|
+
(msg) => (
|
|
73283
|
+
// Use a combination of sender, text/thought, and time to detect duplicates
|
|
73284
|
+
msg.senderId === messageToAdd.senderId && (msg.text === messageToAdd.text || !msg.text && !messageToAdd.text && msg.thought === messageToAdd.thought) && Math.abs((msg.createdAt || 0) - (messageToAdd.createdAt || 0)) < 5e3
|
|
73285
|
+
)
|
|
73411
73286
|
// Within 5 seconds
|
|
73412
73287
|
);
|
|
73413
73288
|
if (isDuplicate) {
|
|
73414
73289
|
console.log("[Chat] Skipping duplicate message");
|
|
73415
73290
|
return old;
|
|
73416
73291
|
}
|
|
73417
|
-
if (
|
|
73418
|
-
|
|
73292
|
+
if (messageToAdd.id) {
|
|
73293
|
+
const newMessageId = typeof messageToAdd.id === "string" ? messageToAdd.id : String(messageToAdd.id);
|
|
73294
|
+
if (messageToAdd.senderId !== entityId) {
|
|
73295
|
+
animatedMessageIdRef.current = newMessageId;
|
|
73296
|
+
} else {
|
|
73297
|
+
animatedMessageIdRef.current = null;
|
|
73298
|
+
}
|
|
73419
73299
|
}
|
|
73420
|
-
return [...old,
|
|
73300
|
+
return [...old, messageToAdd];
|
|
73421
73301
|
}
|
|
73422
73302
|
);
|
|
73423
73303
|
};
|
|
@@ -73505,20 +73385,6 @@ function Page({ serverId }) {
|
|
|
73505
73385
|
setSelectedFile(file);
|
|
73506
73386
|
}
|
|
73507
73387
|
};
|
|
73508
|
-
const sortedAgents = [...agents].filter((agent) => {
|
|
73509
|
-
var _a2;
|
|
73510
|
-
return (_a2 = roomsData == null ? void 0 : roomsData.get(serverId)) == null ? void 0 : _a2.some((room) => room.agentId === agent.id);
|
|
73511
|
-
}).sort((a, b) => {
|
|
73512
|
-
if (a.status === $s.ACTIVE && b.status !== $s.ACTIVE) return -1;
|
|
73513
|
-
if (a.status !== $s.ACTIVE && b.status === $s.ACTIVE) return 1;
|
|
73514
|
-
return a.name.localeCompare(b.name);
|
|
73515
|
-
});
|
|
73516
|
-
sortedAgents.filter(
|
|
73517
|
-
(agent) => agent.status === $s.ACTIVE
|
|
73518
|
-
);
|
|
73519
|
-
sortedAgents.filter(
|
|
73520
|
-
(agent) => agent.status === $s.INACTIVE
|
|
73521
|
-
);
|
|
73522
73388
|
const agentAvatars = {};
|
|
73523
73389
|
agents.forEach((agent) => {
|
|
73524
73390
|
var _a2;
|
|
@@ -73588,7 +73454,17 @@ function Page({ serverId }) {
|
|
|
73588
73454
|
isAtBottom,
|
|
73589
73455
|
scrollToBottom: safeScrollToBottom,
|
|
73590
73456
|
disableAutoScroll,
|
|
73591
|
-
|
|
73457
|
+
className: "scrollbar-hide",
|
|
73458
|
+
children: messages.filter((message2) => {
|
|
73459
|
+
var _a2;
|
|
73460
|
+
console.log("*** message ***");
|
|
73461
|
+
console.log(message2);
|
|
73462
|
+
if ((_a2 = message2.actions) == null ? void 0 : _a2.includes("IGNORE")) {
|
|
73463
|
+
console.log("Skipping ignore message");
|
|
73464
|
+
return false;
|
|
73465
|
+
}
|
|
73466
|
+
return true;
|
|
73467
|
+
}).map((message2, index2) => {
|
|
73592
73468
|
const isUser = message2.name === USER_NAME;
|
|
73593
73469
|
const shouldAnimate = index2 === messages.length - 1 && message2.name !== USER_NAME && message2.id === animatedMessageIdRef.current;
|
|
73594
73470
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -73601,7 +73477,7 @@ function Page({ serverId }) {
|
|
|
73601
73477
|
variant: isUser ? "sent" : "received",
|
|
73602
73478
|
className: `flex flex-row items-end gap-2 ${isUser ? "flex-row-reverse" : ""}`,
|
|
73603
73479
|
children: [
|
|
73604
|
-
|
|
73480
|
+
!isUser && /* @__PURE__ */ jsxRuntimeExports.jsx(Avatar, { className: "size-8 border rounded-full select-none mb-2", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
73605
73481
|
AvatarImage,
|
|
73606
73482
|
{
|
|
73607
73483
|
src: isUser ? "/user-icon.png" : typeof message2.agentId === "string" && getAvatar(message2.agentId) || typeof message2.senderId === "string" && getAvatar(message2.senderId) || "/elizaos-icon.png"
|
|
@@ -73710,10 +73586,10 @@ function Page({ serverId }) {
|
|
|
73710
73586
|
function AgentRoute$1() {
|
|
73711
73587
|
const { serverId } = useParams();
|
|
73712
73588
|
if (!serverId) return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "No data." });
|
|
73713
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Page, { serverId });
|
|
73589
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex w-full justify-center", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-full md:max-w-4xl", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Page, { serverId }) }) });
|
|
73714
73590
|
}
|
|
73715
73591
|
function AgentCreatorRoute() {
|
|
73716
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(AgentCreator, {});
|
|
73592
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex w-full justify-center", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-full md:max-w-4xl", children: /* @__PURE__ */ jsxRuntimeExports.jsx(AgentCreator, {}) }) });
|
|
73717
73593
|
}
|
|
73718
73594
|
function ProfileCard({ title, content, buttons, className }) {
|
|
73719
73595
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Card, { className: `h-full ${className || ""}`, children: [
|
|
@@ -74057,7 +73933,7 @@ function Home() {
|
|
|
74057
73933
|
setOverlayOpen(false);
|
|
74058
73934
|
};
|
|
74059
73935
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
74060
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 p-3", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-4 h-full", children: [
|
|
73936
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 p-3 w-full h-full", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-4 h-full w-full md:max-w-4xl mx-auto", children: [
|
|
74061
73937
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between gap-2 p-2", children: [
|
|
74062
73938
|
/* @__PURE__ */ jsxRuntimeExports.jsx(PageTitle, { title: "Agents" }),
|
|
74063
73939
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -74072,12 +73948,12 @@ function Home() {
|
|
|
74072
73948
|
] }),
|
|
74073
73949
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Separator$2, {}),
|
|
74074
73950
|
isLoading && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center py-8", children: "Loading agents..." }),
|
|
74075
|
-
isError && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "text-center py-8
|
|
73951
|
+
isError && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "text-center py-8", children: [
|
|
74076
73952
|
"Error loading agents: ",
|
|
74077
73953
|
error instanceof Error ? error.message : "Unknown error"
|
|
74078
73954
|
] }),
|
|
74079
73955
|
agents.length === 0 && !isLoading && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center py-8 flex flex-col items-center gap-4", children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-muted-foreground", children: "No agents currently running. Start a character to begin." }) }),
|
|
74080
|
-
!isLoading && !isError && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "grid grid-cols-1 sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3
|
|
73956
|
+
!isLoading && !isError && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "grid grid-cols-1 sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 p-2 auto-rows-fr agents-section", children: agents == null ? void 0 : agents.sort((a, b) => Number(b == null ? void 0 : b.enabled) - Number(a == null ? void 0 : a.enabled)).map((agent) => {
|
|
74081
73957
|
var _a2;
|
|
74082
73958
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
74083
73959
|
ProfileCard,
|
|
@@ -74085,7 +73961,7 @@ function Home() {
|
|
|
74085
73961
|
className: "agent-card",
|
|
74086
73962
|
title: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex gap-2 items-center", children: [
|
|
74087
73963
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "truncate max-w-24", children: agent.name }),
|
|
74088
|
-
(agent == null ? void 0 : agent.status) ===
|
|
73964
|
+
(agent == null ? void 0 : agent.status) === js.ACTIVE ? /* @__PURE__ */ jsxRuntimeExports.jsxs(Tooltip$1, { children: [
|
|
74089
73965
|
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipTrigger$1, { asChild: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "size-2.5 rounded-full bg-green-500 ring-2 ring-green-500/20 animate-pulse mt-[2px]" }) }),
|
|
74090
73966
|
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent$1, { side: "right", children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: "Agent is active" }) })
|
|
74091
73967
|
] }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(Tooltip$1, { children: [
|
|
@@ -74109,7 +73985,7 @@ function Home() {
|
|
|
74109
73985
|
{
|
|
74110
73986
|
className: `
|
|
74111
73987
|
w-full h-full flex items-center justify-center
|
|
74112
|
-
${agent.status ===
|
|
73988
|
+
${agent.status === js.ACTIVE ? "brightness-[100%] hover:brightness-[107%]" : "grayscale }brightness-[75%] opacity-50 hover:brightness-[85%]"}
|
|
74113
73989
|
`,
|
|
74114
73990
|
children: ((_a2 = agent.settings) == null ? void 0 : _a2.avatar) ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
74115
73991
|
"img",
|
|
@@ -74121,12 +73997,12 @@ function Home() {
|
|
|
74121
73997
|
) : formatAgentName(agent.name)
|
|
74122
73998
|
}
|
|
74123
73999
|
),
|
|
74124
|
-
agent.status !==
|
|
74000
|
+
agent.status !== js.ACTIVE && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "absolute bottom-4 left-1/2 transform -translate-x-1/2 bg-black text-white text-xs px-2 py-1 rounded-md opacity-60", children: "Offline" })
|
|
74125
74001
|
]
|
|
74126
74002
|
}
|
|
74127
74003
|
),
|
|
74128
74004
|
buttons: [
|
|
74129
|
-
agent.status ===
|
|
74005
|
+
agent.status === js.ACTIVE ? {
|
|
74130
74006
|
label: "Message",
|
|
74131
74007
|
action: () => navigate(`/chat/${agent.id}`),
|
|
74132
74008
|
className: "w-[80%] message-button",
|
|
@@ -74170,7 +74046,7 @@ function Home() {
|
|
|
74170
74046
|
)
|
|
74171
74047
|
] }),
|
|
74172
74048
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Separator$2, {}),
|
|
74173
|
-
!isLoading && !isError && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "grid grid-cols-1 sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3
|
|
74049
|
+
!isLoading && !isError && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "grid grid-cols-1 sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 p-2 auto-rows-fr groups-section", children: roomsData && Array.from(roomsData.entries()).map(([roomId, roomArray]) => {
|
|
74174
74050
|
var _a2;
|
|
74175
74051
|
const roomName = roomArray.length > 0 ? (_a2 = roomArray[0]) == null ? void 0 : _a2.name : null;
|
|
74176
74052
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -74241,7 +74117,7 @@ function AgentSettings({ agent, agentId }) {
|
|
|
74241
74117
|
const navigate = useNavigate();
|
|
74242
74118
|
const queryClient2 = useQueryClient();
|
|
74243
74119
|
const [isDeleting, setIsDeleting] = reactExports.useState(false);
|
|
74244
|
-
const isActive = (agent == null ? void 0 : agent.status) ===
|
|
74120
|
+
const isActive = (agent == null ? void 0 : agent.status) === js.ACTIVE;
|
|
74245
74121
|
const agentState = useAgentUpdate(agent);
|
|
74246
74122
|
const handleSubmit = async () => {
|
|
74247
74123
|
try {
|
|
@@ -74439,7 +74315,7 @@ function AgentRoute() {
|
|
|
74439
74315
|
if (!agentId) return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "No data." });
|
|
74440
74316
|
const agent = (_a2 = query == null ? void 0 : query.data) == null ? void 0 : _a2.data;
|
|
74441
74317
|
if (!agent) return null;
|
|
74442
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(AgentSettings, { agent, agentId });
|
|
74318
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex w-full justify-center", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-full md:max-w-4xl", children: /* @__PURE__ */ jsxRuntimeExports.jsx(AgentSettings, { agent, agentId }) }) });
|
|
74443
74319
|
}
|
|
74444
74320
|
function EnvSettings() {
|
|
74445
74321
|
const [name, setName] = reactExports.useState("");
|
|
@@ -75279,8 +75155,8 @@ function requireScroll() {
|
|
|
75279
75155
|
}
|
|
75280
75156
|
};
|
|
75281
75157
|
}
|
|
75282
|
-
function inOutSine(
|
|
75283
|
-
return 0.5 * (1 - Math.cos(Math.PI *
|
|
75158
|
+
function inOutSine(n2) {
|
|
75159
|
+
return 0.5 * (1 - Math.cos(Math.PI * n2));
|
|
75284
75160
|
}
|
|
75285
75161
|
function noop2() {
|
|
75286
75162
|
}
|
|
@@ -76171,8 +76047,8 @@ function disableEventListeners() {
|
|
|
76171
76047
|
this.state = removeEventListeners(this.reference, this.state);
|
|
76172
76048
|
}
|
|
76173
76049
|
}
|
|
76174
|
-
function isNumeric(
|
|
76175
|
-
return
|
|
76050
|
+
function isNumeric(n2) {
|
|
76051
|
+
return n2 !== "" && !isNaN(parseFloat(n2)) && isFinite(n2);
|
|
76176
76052
|
}
|
|
76177
76053
|
function setStyles(element, styles2) {
|
|
76178
76054
|
Object.keys(styles2).forEach(function(prop) {
|
|
@@ -76211,8 +76087,8 @@ function applyStyleOnLoad(reference, popper, options, modifierOptions, state2) {
|
|
|
76211
76087
|
function getRoundedOffsets(data, shouldRound) {
|
|
76212
76088
|
var _data$offsets = data.offsets, popper = _data$offsets.popper, reference = _data$offsets.reference;
|
|
76213
76089
|
var round2 = Math.round, floor2 = Math.floor;
|
|
76214
|
-
var noRound = function noRound2(
|
|
76215
|
-
return
|
|
76090
|
+
var noRound = function noRound2(v2) {
|
|
76091
|
+
return v2;
|
|
76216
76092
|
};
|
|
76217
76093
|
var referenceWidth = round2(reference.width);
|
|
76218
76094
|
var popperWidth = round2(popper.width);
|
|
@@ -77676,23 +77552,23 @@ function treeChanges(previousData, data) {
|
|
|
77676
77552
|
};
|
|
77677
77553
|
return { added, changed, changedFrom, changedTo, decreased, emptied, filled, increased, removed };
|
|
77678
77554
|
}
|
|
77679
|
-
function ownKeys(e,
|
|
77555
|
+
function ownKeys(e, r2) {
|
|
77680
77556
|
var t = Object.keys(e);
|
|
77681
77557
|
if (Object.getOwnPropertySymbols) {
|
|
77682
77558
|
var o = Object.getOwnPropertySymbols(e);
|
|
77683
|
-
|
|
77684
|
-
return Object.getOwnPropertyDescriptor(e,
|
|
77559
|
+
r2 && (o = o.filter(function(r3) {
|
|
77560
|
+
return Object.getOwnPropertyDescriptor(e, r3).enumerable;
|
|
77685
77561
|
})), t.push.apply(t, o);
|
|
77686
77562
|
}
|
|
77687
77563
|
return t;
|
|
77688
77564
|
}
|
|
77689
77565
|
function _objectSpread2(e) {
|
|
77690
|
-
for (var
|
|
77691
|
-
var t = null != arguments[
|
|
77692
|
-
|
|
77693
|
-
_defineProperty(e,
|
|
77694
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(
|
|
77695
|
-
Object.defineProperty(e,
|
|
77566
|
+
for (var r2 = 1; r2 < arguments.length; r2++) {
|
|
77567
|
+
var t = null != arguments[r2] ? arguments[r2] : {};
|
|
77568
|
+
r2 % 2 ? ownKeys(Object(t), true).forEach(function(r3) {
|
|
77569
|
+
_defineProperty(e, r3, t[r3]);
|
|
77570
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r3) {
|
|
77571
|
+
Object.defineProperty(e, r3, Object.getOwnPropertyDescriptor(t, r3));
|
|
77696
77572
|
});
|
|
77697
77573
|
}
|
|
77698
77574
|
return e;
|
|
@@ -78724,7 +78600,7 @@ function hasValidKeys(object, keys) {
|
|
|
78724
78600
|
}
|
|
78725
78601
|
function hexToRGB(hex) {
|
|
78726
78602
|
const shorthandRegex = /^#?([\da-f])([\da-f])([\da-f])$/i;
|
|
78727
|
-
const properHex = hex.replace(shorthandRegex, (_m,
|
|
78603
|
+
const properHex = hex.replace(shorthandRegex, (_m, r2, g, b) => r2 + r2 + g + g + b + b);
|
|
78728
78604
|
const result = /^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(properHex);
|
|
78729
78605
|
return result ? [parseInt(result[1], 16), parseInt(result[2], 16), parseInt(result[3], 16)] : [];
|
|
78730
78606
|
}
|
|
@@ -80826,20 +80702,29 @@ function App() {
|
|
|
80826
80702
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(BrowserRouter, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(TooltipProvider, { delayDuration: 0, children: [
|
|
80827
80703
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(SidebarProvider, { children: [
|
|
80828
80704
|
/* @__PURE__ */ jsxRuntimeExports.jsx(AppSidebar, {}),
|
|
80829
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
80830
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
80831
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
80832
|
-
|
|
80833
|
-
|
|
80834
|
-
|
|
80835
|
-
|
|
80836
|
-
|
|
80837
|
-
|
|
80838
|
-
|
|
80839
|
-
|
|
80840
|
-
|
|
80841
|
-
|
|
80842
|
-
|
|
80705
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(SidebarInset, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Routes, { children: [
|
|
80706
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Route, { path: "/", element: /* @__PURE__ */ jsxRuntimeExports.jsx(Home, {}) }),
|
|
80707
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Route, { path: "chat/:agentId", element: /* @__PURE__ */ jsxRuntimeExports.jsx(AgentRoute$2, {}) }),
|
|
80708
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Route, { path: "settings/:agentId", element: /* @__PURE__ */ jsxRuntimeExports.jsx(AgentRoute, {}) }),
|
|
80709
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Route, { path: "agents/new", element: /* @__PURE__ */ jsxRuntimeExports.jsx(AgentCreatorRoute, {}) }),
|
|
80710
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Route, { path: "/create", element: /* @__PURE__ */ jsxRuntimeExports.jsx(AgentCreator, {}) }),
|
|
80711
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
80712
|
+
Route,
|
|
80713
|
+
{
|
|
80714
|
+
path: "/logs",
|
|
80715
|
+
element: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex w-full justify-center", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-full md:max-w-4xl", children: /* @__PURE__ */ jsxRuntimeExports.jsx(LogViewer, {}) }) })
|
|
80716
|
+
}
|
|
80717
|
+
),
|
|
80718
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Route, { path: "room/:serverId", element: /* @__PURE__ */ jsxRuntimeExports.jsx(AgentRoute$1, {}) }),
|
|
80719
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
80720
|
+
Route,
|
|
80721
|
+
{
|
|
80722
|
+
path: "settings/",
|
|
80723
|
+
element: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex w-full justify-center", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-full md:max-w-4xl", children: /* @__PURE__ */ jsxRuntimeExports.jsx(EnvSettings, {}) }) })
|
|
80724
|
+
}
|
|
80725
|
+
),
|
|
80726
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Route, { path: "*", element: /* @__PURE__ */ jsxRuntimeExports.jsx(NotFound, {}) })
|
|
80727
|
+
] }) })
|
|
80843
80728
|
] }),
|
|
80844
80729
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Toaster, {}),
|
|
80845
80730
|
/* @__PURE__ */ jsxRuntimeExports.jsx(OnboardingTour, {})
|
|
@@ -80861,4 +80746,4 @@ export {
|
|
|
80861
80746
|
getDefaultExportFromCjs as g,
|
|
80862
80747
|
require$$2 as r
|
|
80863
80748
|
};
|
|
80864
|
-
//# sourceMappingURL=index-
|
|
80749
|
+
//# sourceMappingURL=index-B5znFY2d.js.map
|