@glodon-aiot/agent-cli-ui 3.3.5-alpha.25 → 3.3.5-alpha.27

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.
@@ -22,18 +22,18 @@ const Ne = _((o, t) => {
22
22
  className: e,
23
23
  triggerButton: l,
24
24
  size: n,
25
- theme: $,
25
+ theme: S,
26
26
  icon: p,
27
- docViewerUrl: H,
27
+ docViewerUrl: $,
28
28
  token: ie,
29
29
  debug: se,
30
30
  env: le,
31
31
  plugins: ae,
32
32
  mcp: de,
33
- footer: j,
34
- defaultInput: M,
35
- onComment: P,
36
- onSessionLoad: S,
33
+ footer: H,
34
+ defaultInput: j,
35
+ onComment: M,
36
+ onSessionLoad: P,
37
37
  onSessionUnload: W,
38
38
  onMessage: D,
39
39
  beforeMessageSend: E,
@@ -50,7 +50,7 @@ const Ne = _((o, t) => {
50
50
  k(() => {
51
51
  d && (console.log("[AgentClientUI] token", m, d), J(d.id));
52
52
  }, [d]), A.config({
53
- theme: $
53
+ theme: S
54
54
  }), k(() => {
55
55
  n && v(n);
56
56
  }, [n]);
@@ -64,9 +64,9 @@ const Ne = _((o, t) => {
64
64
  });
65
65
  };
66
66
  return B(t, () => ({
67
- sessionCreate: (a) => {
67
+ createSession: (a) => {
68
68
  var h;
69
- return (h = c.current) == null ? void 0 : h.sessionCreate(a);
69
+ return (h = c.current) == null ? void 0 : h.createSession(a);
70
70
  },
71
71
  getSessionList: () => {
72
72
  var a;
@@ -78,10 +78,10 @@ const Ne = _((o, t) => {
78
78
  value: g(f({}, o), {
79
79
  popupContainer: b,
80
80
  agentClient: m,
81
- footer: j,
82
- defaultInput: M,
83
- onComment: P,
84
- onSessionLoad: S,
81
+ footer: H,
82
+ defaultInput: j,
83
+ onComment: M,
84
+ onSessionLoad: P,
85
85
  onSessionUnload: W,
86
86
  onMessage: D,
87
87
  beforeMessageSend: E,
@@ -115,7 +115,7 @@ const Ne = _((o, t) => {
115
115
  }) : C && m ? /* @__PURE__ */ s(te, {
116
116
  ref: c,
117
117
  appId: C,
118
- docViewerUrl: H,
118
+ docViewerUrl: $,
119
119
  bodyStyle: u,
120
120
  sessionId: O
121
121
  }) : null, (l == null ? void 0 : l.visible) && /* @__PURE__ */ s(L, {
@@ -100,7 +100,7 @@ const lt = 10, ei = (L) => {
100
100
  features: l,
101
101
  popupContainer: f,
102
102
  icon: yt
103
- } = Jt(sn), [Pe, ye] = m(!1), y = B(h), Te = B(), [pt, vt] = m(0), [X, q] = m(), [Y, ne] = m(""), [Fe, pe] = m(!1), ve = B(null), [Ee, bt] = m([]), [Re, K] = m(!1), [De, kt] = m(!1), [wt, xt] = m(""), [It, W] = m(), [ie, oe] = m({}), se = B(null), He = B(null), be = B(null), [Me, Lt] = m(!1), [Ct, Nt] = m([]), [Pt, re] = m(!0), [Tt, Ft] = m(!0), [Oe, O] = m(!1), [ke, V] = m(!1), [Ue, Et] = m(!1), [E, ae] = m(typeof (l == null ? void 0 : l.promptVariables) == "object" ? l.promptVariables.default || [] : []), [Rt, Dt] = m(typeof (l == null ? void 0 : l.knowledges) == "object" && l.knowledges.default || void 0), [ze, U] = m(!1), [je, Z] = m(!1), [Ht, Q] = m(typeof (l == null ? void 0 : l.connectNetwork) == "object" && typeof (l == null ? void 0 : l.connectNetwork.default) == "boolean" ? l.connectNetwork.default : !1), [Ve, le] = m(!1);
103
+ } = Jt(sn), [Pe, ye] = m(!1), y = B(h), Te = B(void 0), [pt, vt] = m(0), [X, q] = m(), [Y, ne] = m(""), [Fe, pe] = m(!1), ve = B(null), [Ee, bt] = m([]), [Re, K] = m(!1), [De, kt] = m(!1), [wt, xt] = m(""), [It, W] = m(), [ie, oe] = m({}), se = B(null), He = B(null), be = B(null), [Me, Lt] = m(!1), [Ct, Nt] = m([]), [Pt, re] = m(!0), [Tt, Ft] = m(!0), [Oe, O] = m(!1), [ke, V] = m(!1), [Ue, Et] = m(!1), [E, ae] = m(typeof (l == null ? void 0 : l.promptVariables) == "object" ? l.promptVariables.default || [] : []), [Rt, Dt] = m(typeof (l == null ? void 0 : l.knowledges) == "object" && l.knowledges.default || void 0), [ze, U] = m(!1), [je, Z] = m(!1), [Ht, Q] = m(typeof (l == null ? void 0 : l.connectNetwork) == "object" && typeof (l == null ? void 0 : l.connectNetwork.default) == "boolean" ? l.connectNetwork.default : !1), [Ve, le] = m(!1);
104
104
  F(() => {
105
105
  var r, i;
106
106
  e && (y.current = []), C([]);
@@ -104,7 +104,7 @@ import W from "./SessionList/index.mjs";
104
104
  }));
105
105
  };
106
106
  return J(o, () => ({
107
- sessionCreate: (d) => L(d),
107
+ createSession: (d) => L(d),
108
108
  getSessionList: () => {
109
109
  var t;
110
110
  const d = ((t = I.current) == null ? void 0 : t.list()) || [];