@glodon-aiot/agent-cli-ui 3.3.5-alpha.26 → 3.3.5-alpha.28

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, {
@@ -1,79 +1,92 @@
1
- import { jsxs as s, jsx as n } from "react/jsx-runtime";
2
- import { useContext as x } from "react";
3
- import { Space as p, Collapse as f } from "antd";
4
- import S from "../../../../components/Iconfont/index.mjs";
5
- /* empty css */import { ISourceType as u } from "@glodon-aiot/apis";
1
+ var R = Object.defineProperty, T = Object.defineProperties;
2
+ var U = Object.getOwnPropertyDescriptors;
3
+ var f = Object.getOwnPropertySymbols;
4
+ var $ = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
5
+ var h = (a, e, n) => e in a ? R(a, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : a[e] = n, w = (a, e) => {
6
+ for (var n in e || (e = {}))
7
+ $.call(e, n) && h(a, n, e[n]);
8
+ if (f)
9
+ for (var n of f(e))
10
+ b.call(e, n) && h(a, n, e[n]);
11
+ return a;
12
+ }, k = (a, e) => T(a, U(e));
13
+ import { jsxs as t, jsx as s } from "react/jsx-runtime";
14
+ import { useContext as j } from "react";
15
+ import { Space as I, Collapse as C } from "antd";
16
+ import z from "../../../../components/Iconfont/index.mjs";
17
+ /* empty css */import { ISourceType as g } from "@glodon-aiot/apis";
6
18
  import "../../../../packages/react-components/dist/es/index.mjs";
7
- import D from "./ReferItem/index.mjs";
8
- import y from "../../../../context.mjs";
9
- import { Markdown as F } from "../../../../packages/react-components/dist/es/components/Markdown/index.mjs";
19
+ import A from "./ReferItem/index.mjs";
20
+ import K from "../../../../context.mjs";
21
+ import { Markdown as L } from "../../../../packages/react-components/dist/es/components/Markdown/index.mjs";
10
22
  const {
11
- Panel: R
12
- } = f, M = (h) => {
13
- var r, d, c, m;
23
+ Panel: P
24
+ } = C, X = (a) => {
25
+ var c, m, p, u;
14
26
  const {
15
- history: o,
16
- docViewerUrl: w
17
- } = h, {
18
- transform: i,
19
- service: l
20
- } = x(y), I = (e, a) => {
21
- if (!(!(e != null && e.knowledgeId) || !(e != null && e.docId))) {
22
- if (e.sourceType === u.WebLink) {
23
- window.open(e.webLink);
27
+ history: e,
28
+ docViewerUrl: n,
29
+ markdown: N
30
+ } = a, {
31
+ transform: r,
32
+ service: d
33
+ } = j(K), v = (o, i) => {
34
+ if (!(!(o != null && o.knowledgeId) || !(o != null && o.docId))) {
35
+ if (o.sourceType === g.WebLink) {
36
+ window.open(o.webLink);
24
37
  return;
25
38
  }
26
- e.sourceType === u.SourceFile && window.open(`${w}#/doc?url=${encodeURIComponent(e.sourceFileUrl)}&page=${a || 0}`);
39
+ o.sourceType === g.SourceFile && window.open(`${n}#/doc?url=${encodeURIComponent(o.sourceFileUrl)}&page=${i || 0}`);
27
40
  }
28
41
  };
29
- return /* @__PURE__ */ s("div", {
42
+ return /* @__PURE__ */ t("div", {
30
43
  className: "session-refer",
31
- children: [/* @__PURE__ */ s(p, {
44
+ children: [/* @__PURE__ */ t(I, {
32
45
  className: "session-refer-header",
33
46
  size: 8,
34
- children: [/* @__PURE__ */ n(S, {
47
+ children: [/* @__PURE__ */ s(z, {
35
48
  type: "icon-cankaolaiyuan",
36
49
  style: {
37
50
  color: "#0A51D1",
38
51
  fontSize: 16
39
52
  }
40
- }), /* @__PURE__ */ n("span", {
53
+ }), /* @__PURE__ */ s("span", {
41
54
  className: "refer-header-title",
42
55
  children: "参考来源"
43
- }), /* @__PURE__ */ s("span", {
44
- children: ["(共 ", ((r = o == null ? void 0 : o.reference) == null ? void 0 : r.length) || 0, " 项)"]
56
+ }), /* @__PURE__ */ t("span", {
57
+ children: ["(共 ", ((c = e == null ? void 0 : e.reference) == null ? void 0 : c.length) || 0, " 项)"]
45
58
  })]
46
- }), /* @__PURE__ */ n("div", {
59
+ }), /* @__PURE__ */ s("div", {
47
60
  className: "session-refer-content",
48
- children: /* @__PURE__ */ n(f, {
61
+ children: /* @__PURE__ */ s(C, {
49
62
  ghost: !0,
50
- defaultActiveKey: (d = i == null ? void 0 : i.reference) != null && d.isExpand ? (c = o == null ? void 0 : o.reference) == null ? void 0 : c.map((e, a) => e.docId + a) : [],
51
- children: (m = o == null ? void 0 : o.reference) == null ? void 0 : m.map((e, a) => /* @__PURE__ */ n(R, {
52
- header: /* @__PURE__ */ s(p, {
63
+ defaultActiveKey: (m = r == null ? void 0 : r.reference) != null && m.isExpand ? (p = e == null ? void 0 : e.reference) == null ? void 0 : p.map((o, i) => o.docId + i) : [],
64
+ children: (u = e == null ? void 0 : e.reference) == null ? void 0 : u.map((o, i) => /* @__PURE__ */ s(P, {
65
+ header: /* @__PURE__ */ t(I, {
53
66
  className: "session-refer-panel",
54
- children: [/* @__PURE__ */ s("span", {
67
+ children: [/* @__PURE__ */ t("span", {
55
68
  className: "refer-panel-item",
56
- children: [a + 1, "."]
57
- }), l && /* @__PURE__ */ n(D, {
58
- data: e,
59
- loadPage: (g, k, C) => l.getKnowledgeIdFileIdData(g, k, C).then((N) => {
60
- const t = (N || []).find((v) => v.key === "pages_from");
61
- return (t == null ? void 0 : t.value) || 0;
69
+ children: [i + 1, "."]
70
+ }), d && /* @__PURE__ */ s(A, {
71
+ data: o,
72
+ loadPage: (x, S, D) => d.getKnowledgeIdFileIdData(x, S, D).then((y) => {
73
+ const l = (y || []).find((F) => F.key === "pages_from");
74
+ return (l == null ? void 0 : l.value) || 0;
62
75
  }),
63
- onClick: I
76
+ onClick: v
64
77
  })]
65
78
  }),
66
- children: /* @__PURE__ */ n("div", {
79
+ children: /* @__PURE__ */ s("div", {
67
80
  className: "refer-markdown",
68
- children: /* @__PURE__ */ n(F, {
69
- children: e.text || "-"
70
- })
81
+ children: /* @__PURE__ */ s(L, k(w({}, N), {
82
+ children: o.text || "-"
83
+ }))
71
84
  })
72
- }, e.docId + a))
85
+ }, o.docId + i))
73
86
  })
74
87
  })]
75
88
  });
76
89
  };
77
90
  export {
78
- M as default
91
+ X as default
79
92
  };
@@ -2,17 +2,17 @@ var ue = Object.defineProperty, he = Object.defineProperties;
2
2
  var ge = Object.getOwnPropertyDescriptors;
3
3
  var K = Object.getOwnPropertySymbols;
4
4
  var Ne = Object.prototype.hasOwnProperty, fe = Object.prototype.propertyIsEnumerable;
5
- var X = (s, l, i) => l in s ? ue(s, l, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[l] = i, d = (s, l) => {
5
+ var X = (s, l, i) => l in s ? ue(s, l, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[l] = i, y = (s, l) => {
6
6
  for (var i in l || (l = {}))
7
7
  Ne.call(l, i) && X(s, i, l[i]);
8
8
  if (K)
9
9
  for (var i of K(l))
10
10
  fe.call(l, i) && X(s, i, l[i]);
11
11
  return s;
12
- }, c = (s, l) => he(s, ge(l));
12
+ }, v = (s, l) => he(s, ge(l));
13
13
  import { jsxs as o, jsx as e } from "react/jsx-runtime";
14
- import { memo as g, useContext as Ce, useState as Le } from "react";
15
- import p from "./InputProgress/index.mjs";
14
+ import { memo as h, useContext as Ce, useState as Le } from "react";
15
+ import c from "./InputProgress/index.mjs";
16
16
  import ye from "./SessionRefer/index.mjs";
17
17
  import ve from "./SessionAction/index.mjs";
18
18
  import { IHistoryRole as Y, IThinkingStatus as Z } from "@glodon-aiot/apis";
@@ -21,9 +21,9 @@ import { Popover as Se, Space as $, Button as ee, Row as be, Col as Ee, Collapse
21
21
  import Te from "./SearchReference/index.mjs";
22
22
  /* empty css */import "../../../packages/react-components/dist/es/index.mjs";
23
23
  import Ae from "classnames";
24
- import m from "../../../components/Iconfont/index.mjs";
24
+ import p from "../../../components/Iconfont/index.mjs";
25
25
  import { CheckOutlined as te, CloseOutlined as le, LoadingOutlined as Oe } from "@ant-design/icons";
26
- import u from "../../../components/JsonDisplay/index.mjs";
26
+ import m from "../../../components/JsonDisplay/index.mjs";
27
27
  import xe from "../../../context.mjs";
28
28
  import Fe from "./SessionRelated/index.mjs";
29
29
  import _e from "copy-to-clipboard";
@@ -38,7 +38,7 @@ const je = (s) => {
38
38
  } catch (l) {
39
39
  return s;
40
40
  }
41
- }, Be = g(Te), ie = g(ye), S = g(ze), we = g(Re), h = (s) => {
41
+ }, Be = h(Te), ie = h(ye), S = h(ze), we = h(Re), u = (s) => {
42
42
  if (!s)
43
43
  return !1;
44
44
  try {
@@ -57,23 +57,23 @@ const je = (s) => {
57
57
  application: l,
58
58
  currentSession: i,
59
59
  history: n,
60
- isLastHistory: N,
60
+ isLastHistory: g,
61
61
  onRelatedClick: re,
62
62
  onAgainClick: ae,
63
63
  isLoading: Me,
64
- docViewerUrl: f,
65
- onEditClick: C,
64
+ docViewerUrl: N,
65
+ onEditClick: f,
66
66
  actions: oe = !0,
67
- markdown: L
67
+ markdown: d
68
68
  } = s, {
69
69
  debug: b,
70
70
  transform: r,
71
- popupContainer: y
71
+ popupContainer: C
72
72
  } = Ce(xe), E = n.role === Y.User, k = n.role === Y.Robot, {
73
73
  Panel: de
74
- } = ne, [v, ce] = Le(!0), pe = () => {
74
+ } = ne, [L, ce] = Le(!0), pe = () => {
75
75
  R.config({
76
- getContainer: () => (y == null ? void 0 : y.current) || document.body
76
+ getContainer: () => (C == null ? void 0 : C.current) || document.body
77
77
  }), _e(n.content), R.success("复制成功"), R.config({
78
78
  getContainer: void 0
79
79
  });
@@ -100,11 +100,11 @@ const je = (s) => {
100
100
  size: 4,
101
101
  children: [(r == null ? void 0 : r.userEdit) && /* @__PURE__ */ e("div", {
102
102
  className: "user-pannel-item",
103
- onClick: () => C == null ? void 0 : C(n.content),
103
+ onClick: () => f == null ? void 0 : f(n.content),
104
104
  children: /* @__PURE__ */ e(ee, {
105
105
  type: "link",
106
106
  size: "small",
107
- icon: /* @__PURE__ */ e(m, {
107
+ icon: /* @__PURE__ */ e(p, {
108
108
  type: "icon-bianji2"
109
109
  })
110
110
  })
@@ -114,7 +114,7 @@ const je = (s) => {
114
114
  children: /* @__PURE__ */ e(ee, {
115
115
  type: "link",
116
116
  size: "small",
117
- icon: /* @__PURE__ */ e(m, {
117
+ icon: /* @__PURE__ */ e(p, {
118
118
  type: "icon-fuzhi",
119
119
  style: {
120
120
  fontSize: "16px"
@@ -127,11 +127,10 @@ const je = (s) => {
127
127
  className: "user-panel-main",
128
128
  children: /* @__PURE__ */ e("span", {
129
129
  className: "item-user-content",
130
- children: /* @__PURE__ */ e(S, c(d({
131
- showLatex: !1
132
- }, L), {
130
+ children: /* @__PURE__ */ e(S, {
131
+ showLatex: !1,
133
132
  children: Ie(n.content)
134
- }))
133
+ })
135
134
  })
136
135
  })
137
136
  })
@@ -144,7 +143,7 @@ const je = (s) => {
144
143
  children: (T = n.files) == null ? void 0 : T.map((t) => /* @__PURE__ */ e(Ee, {
145
144
  className: "user-file-col",
146
145
  children: /* @__PURE__ */ e(we, {
147
- docViewerUrl: f,
146
+ docViewerUrl: N,
148
147
  currentSession: i,
149
148
  file: t
150
149
  })
@@ -172,13 +171,13 @@ const je = (s) => {
172
171
  },
173
172
  children: [/* @__PURE__ */ o("span", {
174
173
  className: "bot-plugin-status",
175
- children: [(t[t.length - 1].type === "RESULT" || t[t.length - 1].type === "AFTER_CALL") && h((B = t.find((a) => a.type === "RESULT")) == null ? void 0 : B.data.result) && /* @__PURE__ */ e("span", {
174
+ children: [(t[t.length - 1].type === "RESULT" || t[t.length - 1].type === "AFTER_CALL") && u((B = t.find((a) => a.type === "RESULT")) == null ? void 0 : B.data.result) && /* @__PURE__ */ e("span", {
176
175
  className: "plugin-status-success",
177
176
  children: /* @__PURE__ */ e(te, {})
178
177
  }), t[t.length - 1].type === "ABORT" && /* @__PURE__ */ e("span", {
179
178
  className: "plugin-status-error",
180
179
  children: /* @__PURE__ */ e(le, {})
181
- }), (t[t.length - 1].type === "RESULT" || t[t.length - 1].type === "AFTER_CALL") && !h((w = t.find((a) => a.type === "RESULT")) == null ? void 0 : w.data.result) && /* @__PURE__ */ e("span", {
180
+ }), (t[t.length - 1].type === "RESULT" || t[t.length - 1].type === "AFTER_CALL") && !u((w = t.find((a) => a.type === "RESULT")) == null ? void 0 : w.data.result) && /* @__PURE__ */ e("span", {
182
181
  className: "plugin-status-error",
183
182
  children: /* @__PURE__ */ e(le, {})
184
183
  }), (t[t.length - 1].type === "BEFORE_CALL" || t[t.length - 1].type === "FUNCTION_CALL") && /* @__PURE__ */ e("span", {
@@ -194,10 +193,10 @@ const je = (s) => {
194
193
  }), (t[t.length - 1].type === "BEFORE_CALL" || t[t.length - 1].type === "FUNCTION_CALL") && /* @__PURE__ */ e("span", {
195
194
  className: "bot-plugin-result",
196
195
  children: "执行中"
197
- }), (t[t.length - 1].type === "RESULT" || t[t.length - 1].type === "AFTER_CALL") && h((q = t.find((a) => a.type === "RESULT")) == null ? void 0 : q.data.result) && /* @__PURE__ */ e("span", {
196
+ }), (t[t.length - 1].type === "RESULT" || t[t.length - 1].type === "AFTER_CALL") && u((q = t.find((a) => a.type === "RESULT")) == null ? void 0 : q.data.result) && /* @__PURE__ */ e("span", {
198
197
  className: "bot-plugin-result",
199
198
  children: "执行成功"
200
- }), (t[t.length - 1].type === "RESULT" || t[t.length - 1].type === "AFTER_CALL") && !h((H = t.find((a) => a.type === "RESULT")) == null ? void 0 : H.data.result) && /* @__PURE__ */ e("span", {
199
+ }), (t[t.length - 1].type === "RESULT" || t[t.length - 1].type === "AFTER_CALL") && !u((H = t.find((a) => a.type === "RESULT")) == null ? void 0 : H.data.result) && /* @__PURE__ */ e("span", {
201
200
  className: "bot-plugin-result",
202
201
  children: "执行失败"
203
202
  }), t[t.length - 1].type === "ABORT" && /* @__PURE__ */ e("span", {
@@ -210,7 +209,7 @@ const je = (s) => {
210
209
  children: "thought"
211
210
  }), /* @__PURE__ */ e("div", {
212
211
  className: "bot-plugin-json",
213
- children: /* @__PURE__ */ e(u, {
212
+ children: /* @__PURE__ */ e(m, {
214
213
  josn: (D = t.find((a) => a.type === "BEFORE_CALL")) == null ? void 0 : D.data.thought
215
214
  })
216
215
  }), /* @__PURE__ */ e("div", {
@@ -218,7 +217,7 @@ const je = (s) => {
218
217
  children: "parameters"
219
218
  }), /* @__PURE__ */ e("div", {
220
219
  className: "bot-plugin-json",
221
- children: /* @__PURE__ */ e(u, {
220
+ children: /* @__PURE__ */ e(m, {
222
221
  josn: (V = t.find((a) => a.type === "BEFORE_CALL")) == null ? void 0 : V.data.parameters
223
222
  })
224
223
  }), /* @__PURE__ */ e("div", {
@@ -226,7 +225,7 @@ const je = (s) => {
226
225
  children: "requestBody"
227
226
  }), /* @__PURE__ */ e("div", {
228
227
  className: "bot-plugin-json",
229
- children: /* @__PURE__ */ e(u, {
228
+ children: /* @__PURE__ */ e(m, {
230
229
  josn: (W = t.find((a) => a.type === "BEFORE_CALL")) == null ? void 0 : W.data.requestBody
231
230
  })
232
231
  }), /* @__PURE__ */ e("div", {
@@ -234,7 +233,7 @@ const je = (s) => {
234
233
  children: "Response"
235
234
  }), /* @__PURE__ */ e("div", {
236
235
  className: "bot-plugin-json",
237
- children: /* @__PURE__ */ e(u, {
236
+ children: /* @__PURE__ */ e(m, {
238
237
  josn: je((G = t.find((a) => a.type === "RESULT")) == null ? void 0 : G.data.result)
239
238
  })
240
239
  })]
@@ -245,7 +244,7 @@ const je = (s) => {
245
244
  style: {
246
245
  padding: "4px 0"
247
246
  },
248
- children: n.content || se(n.actions) ? null : /* @__PURE__ */ e(p, {
247
+ children: n.content || se(n.actions) ? null : /* @__PURE__ */ e(c, {
249
248
  size: 4,
250
249
  text: "思考中"
251
250
  })
@@ -257,7 +256,8 @@ const je = (s) => {
257
256
  })
258
257
  }), (x = n == null ? void 0 : n.reference) != null && x.length && ((F = r == null ? void 0 : r.reference) != null && F.referenceFirst) ? /* @__PURE__ */ e(ie, {
259
258
  history: n,
260
- docViewerUrl: f
259
+ docViewerUrl: N,
260
+ markdown: d
261
261
  }) : null, /* @__PURE__ */ o("div", {
262
262
  className: "item-bot-content",
263
263
  children: [(n == null ? void 0 : n.reasoningContent) && /* @__PURE__ */ o("div", {
@@ -265,7 +265,7 @@ const je = (s) => {
265
265
  children: [(n == null ? void 0 : n.reasoningContent) && /* @__PURE__ */ o("div", {
266
266
  className: "think-top",
267
267
  onClick: () => {
268
- ce(!v);
268
+ ce(!L);
269
269
  },
270
270
  children: [/* @__PURE__ */ e("img", {
271
271
  src: Ue,
@@ -276,19 +276,19 @@ const je = (s) => {
276
276
  children: ["已完成推理(用时 ", (n == null ? void 0 : n.thinkingSecs) || 0, " 秒)"]
277
277
  }), /* @__PURE__ */ e("span", {
278
278
  className: "think-action",
279
- children: v ? /* @__PURE__ */ e(m, {
279
+ children: L ? /* @__PURE__ */ e(p, {
280
280
  type: "icon-zhankai",
281
281
  style: {
282
282
  fontSize: 16
283
283
  }
284
- }) : /* @__PURE__ */ e(m, {
284
+ }) : /* @__PURE__ */ e(p, {
285
285
  type: "icon-shouqi",
286
286
  style: {
287
287
  fontSize: 16
288
288
  }
289
289
  })
290
290
  })]
291
- }), !!((_ = n == null ? void 0 : n.reasoningContent) != null && _.trim()) && v && /* @__PURE__ */ o("div", {
291
+ }), !!((_ = n == null ? void 0 : n.reasoningContent) != null && _.trim()) && L && /* @__PURE__ */ o("div", {
292
292
  className: "think-bottom",
293
293
  children: [/* @__PURE__ */ o("div", {
294
294
  className: "bottom-left",
@@ -300,22 +300,23 @@ const je = (s) => {
300
300
  })]
301
301
  }), /* @__PURE__ */ e("div", {
302
302
  className: "bottom-right",
303
- children: /* @__PURE__ */ e(S, c(d({}, L), {
303
+ children: /* @__PURE__ */ e(S, v(y({}, d), {
304
304
  children: (n == null ? void 0 : n.reasoningContent) || ""
305
305
  }))
306
306
  })]
307
307
  })]
308
- }), /* @__PURE__ */ e(S, c(d({}, L), {
308
+ }), /* @__PURE__ */ e(S, v(y({}, d), {
309
309
  children: n.content
310
310
  }))]
311
311
  }), (I = n == null ? void 0 : n.reference) != null && I.length && !((U = r == null ? void 0 : r.reference) != null && U.referenceFirst) ? /* @__PURE__ */ e(ie, {
312
312
  history: n,
313
- docViewerUrl: f
314
- }) : null, n.isRelatedQuestion && N ? /* @__PURE__ */ e("div", {
313
+ docViewerUrl: N,
314
+ markdown: d
315
+ }) : null, n.isRelatedQuestion && g ? /* @__PURE__ */ e("div", {
315
316
  style: {
316
317
  paddingBottom: 12
317
318
  },
318
- children: /* @__PURE__ */ e(p, {
319
+ children: /* @__PURE__ */ e(c, {
319
320
  size: 4
320
321
  })
321
322
  }) : null, n.isRelateLoading && /* @__PURE__ */ e("div", {
@@ -323,11 +324,11 @@ const je = (s) => {
323
324
  style: {
324
325
  padding: "4px 0"
325
326
  },
326
- children: se(n.actions) ? null : /* @__PURE__ */ e(p, {
327
+ children: se(n.actions) ? null : /* @__PURE__ */ e(c, {
327
328
  size: 4,
328
329
  text: "思考中"
329
330
  })
330
- }), l.arrange[0].recommendQuestionOpen && (r == null ? void 0 : r.relate) && N && !!((z = n.relatedQuesion) != null && z.length) && /* @__PURE__ */ e(Fe, {
331
+ }), l.arrange[0].recommendQuestionOpen && (r == null ? void 0 : r.relate) && g && !!((z = n.relatedQuesion) != null && z.length) && /* @__PURE__ */ e(Fe, {
331
332
  relatedQuesion: n.relatedQuesion,
332
333
  onRelatedClick: re
333
334
  }), oe && !n.isSensitive && !!n.messageId && /* @__PURE__ */ e(ve, {
@@ -335,7 +336,7 @@ const je = (s) => {
335
336
  history: n,
336
337
  sessionId: (j = i == null ? void 0 : i.data) == null ? void 0 : j.id,
337
338
  onAgainClick: ae,
338
- isLastHistory: N,
339
+ isLastHistory: g,
339
340
  currentSession: i
340
341
  })]
341
342
  })
@@ -349,7 +350,7 @@ const je = (s) => {
349
350
  }), " "]
350
351
  }), n.isWaiting && /* @__PURE__ */ e("div", {
351
352
  className: "history-input-progress",
352
- children: /* @__PURE__ */ e(p, {
353
+ children: /* @__PURE__ */ e(c, {
353
354
  size: 4,
354
355
  text: "思考中"
355
356
  })
@@ -358,5 +359,5 @@ const je = (s) => {
358
359
  };
359
360
  export {
360
361
  dn as default,
361
- h as isResultExec
362
+ u as isResultExec
362
363
  };