akpm-knowledge-base-chat 1.0.87 → 1.0.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CDN/akb-chat.js +28 -6
  2. package/package.json +1 -1
package/CDN/akb-chat.js CHANGED
@@ -1,4 +1,4 @@
1
- /* Version: 1.0.87 */
1
+ /* Version: 1.0.88 */
2
2
  var ho = Object.defineProperty;
3
3
  var Qs = (t) => {
4
4
  throw TypeError(t);
@@ -2865,7 +2865,7 @@ class on {
2865
2865
  }
2866
2866
  static fromJson(e) {
2867
2867
  var n;
2868
- return new on(e._id, e.companyId, e.userId, e.title, e.state ?? [], ((n = e.messages) == null ? void 0 : n.map((r) => Vt.fromJson(r))) ?? [], e.lastUpdate ?? 0);
2868
+ return new on(e._id, e.companyId, e.userId, e.title, e.state ?? { lockedAgentId: null, pendingAction: null, info: [] }, ((n = e.messages) == null ? void 0 : n.map((r) => Vt.fromJson(r))) ?? [], e.lastUpdate ?? 0);
2869
2869
  }
2870
2870
  }
2871
2871
  const tc = "it", nc = (
@@ -10442,9 +10442,20 @@ function co(t, e) {
10442
10442
  450
10443
10443
  )) : x(n, !1) : (x(n, !0), x(Pe, !0), await Ee(), x(Pe, !1));
10444
10444
  }, ee = () => {
10445
- x(o, E(new on("", "", "", /* @__PURE__ */ Li(), [], [
10446
- Vt.firstMessage(h(s), h(a), h(T))
10447
- ]))), x(m, ""), x(l, E(h(o).messages)), x(b, "");
10445
+ x(o, E(new on(
10446
+ "",
10447
+ "",
10448
+ "",
10449
+ /* @__PURE__ */ Li(),
10450
+ {
10451
+ lockedAgentId: null,
10452
+ pendingAction: null,
10453
+ info: []
10454
+ },
10455
+ [
10456
+ Vt.firstMessage(h(s), h(a), h(T))
10457
+ ]
10458
+ ))), x(m, ""), x(l, E(h(o).messages)), x(b, "");
10448
10459
  }, He = (q) => {
10449
10460
  h(T) !== q && (x(T, E(q)), ee()), W(), x(D, E({}));
10450
10461
  };
@@ -10456,7 +10467,18 @@ function co(t, e) {
10456
10467
  const H = await qt.getUserLevel();
10457
10468
  x(i, E(H));
10458
10469
  const le = Vt.firstMessage(h(s), h(a), h(T));
10459
- x(l, E([le])), x(o, E(new on("", "", "", "New Chat", [], [le]))), x(I, E(G.getForgeButtonsPinned())), x(L, !0), x(d, !1);
10470
+ x(l, E([le])), x(o, E(new on(
10471
+ "",
10472
+ "",
10473
+ "",
10474
+ "New Chat",
10475
+ {
10476
+ lockedAgentId: null,
10477
+ pendingAction: null,
10478
+ info: []
10479
+ },
10480
+ [le]
10481
+ ))), x(I, E(G.getForgeButtonsPinned())), x(L, !0), x(d, !1);
10460
10482
  } catch (q) {
10461
10483
  console.error("Failed to load username", q), x(b, E(/* @__PURE__ */ Zu())), x(d, !1);
10462
10484
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "akpm-knowledge-base-chat",
3
3
  "private": false,
4
- "version": "1.0.87",
4
+ "version": "1.0.88",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "CDN"