@glodon-aiot/agent-cli-ui 3.9.0-alpha.5 → 3.9.0-alpha.6

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.
@@ -1,36 +1,36 @@
1
- var he = Object.defineProperty, ge = Object.defineProperties;
2
- var Ne = Object.getOwnPropertyDescriptors;
3
- var X = Object.getOwnPropertySymbols;
4
- var fe = Object.prototype.hasOwnProperty, Ce = Object.prototype.propertyIsEnumerable;
5
- var Y = (s, i, l) => i in s ? he(s, i, { enumerable: !0, configurable: !0, writable: !0, value: l }) : s[i] = l, y = (s, i) => {
1
+ var ye = Object.defineProperty, ve = Object.defineProperties;
2
+ var Le = Object.getOwnPropertyDescriptors;
3
+ var Y = Object.getOwnPropertySymbols;
4
+ var Re = Object.prototype.hasOwnProperty, be = Object.prototype.propertyIsEnumerable;
5
+ var Z = (s, i, l) => i in s ? ye(s, i, { enumerable: !0, configurable: !0, writable: !0, value: l }) : s[i] = l, L = (s, i) => {
6
6
  for (var l in i || (i = {}))
7
- fe.call(i, l) && Y(s, l, i[l]);
8
- if (X)
9
- for (var l of X(i))
10
- Ce.call(i, l) && Y(s, l, i[l]);
7
+ Re.call(i, l) && Z(s, l, i[l]);
8
+ if (Y)
9
+ for (var l of Y(i))
10
+ be.call(i, l) && Z(s, l, i[l]);
11
11
  return s;
12
- }, R = (s, i) => ge(s, Ne(i));
12
+ }, R = (s, i) => ve(s, Le(i));
13
13
  import { jsxs as o, jsx as e } from "react/jsx-runtime";
14
- import { memo as g, useContext as Le, useState as ve } from "react";
15
- import c from "./InputProgress/index.mjs";
16
- import ye from "./SessionRefer/index.mjs";
17
- import Re from "./SessionAction/index.mjs";
18
- import { IHistoryRole as Z, IThinkingStatus as ee } from "@glodon-aiot/apis";
19
- import be from "./FileItem/index.mjs";
20
- import { Popover as Se, Space as ne, Button as te, Row as Ee, Col as ke, Collapse as ie, Divider as xe, message as b } from "antd";
21
- import Te from "./SearchReference/index.mjs";
14
+ import { memo as N, useContext as Se, useState as Ee } from "react";
15
+ import p from "./InputProgress/index.mjs";
16
+ import ke from "./SessionRefer/index.mjs";
17
+ import xe from "./SessionAction/index.mjs";
18
+ import { IHistoryRole as ee, ApplicationTypes as ne, IThinkingStatus as te } from "@glodon-aiot/apis";
19
+ import Ae from "./FileItem/index.mjs";
20
+ import { Row as ie, Col as le, Popover as Te, Space as se, Button as re, Collapse as ae, Divider as Oe, message as b } from "antd";
21
+ import Fe from "./SearchReference/index.mjs";
22
22
  /* empty css */import "../../../packages/react-components/dist/es/index.mjs";
23
- import Ae from "classnames";
24
- import p from "../../../components/Iconfont/index.mjs";
25
- import { CheckOutlined as le, CloseOutlined as se, LoadingOutlined as Oe } from "@ant-design/icons";
26
- import m from "../../../components/JsonDisplay/index.mjs";
27
- import Fe from "../../../context.mjs";
28
- import _e from "./SessionRelated/index.mjs";
29
- import Ie from "copy-to-clipboard";
30
- import { escapeSlash as Ue } from "../../../utils/index.mjs";
31
- import ze from "../../../assets/think.svg.mjs";
32
- import { Markdown as je } from "../../../packages/react-components/dist/es/components/Markdown/index.mjs";
33
- const Be = (s) => {
23
+ import _e from "classnames";
24
+ import m from "../../../components/Iconfont/index.mjs";
25
+ import { CheckOutlined as oe, CloseOutlined as de, LoadingOutlined as Ie } from "@ant-design/icons";
26
+ import u from "../../../components/JsonDisplay/index.mjs";
27
+ import Ue from "../../../context.mjs";
28
+ import je from "./SessionRelated/index.mjs";
29
+ import ze from "copy-to-clipboard";
30
+ import { escapeSlash as we } from "../../../utils/index.mjs";
31
+ import Be from "../../../assets/think.svg.mjs";
32
+ import { Markdown as Me } from "../../../packages/react-components/dist/es/components/Markdown/index.mjs";
33
+ const Je = (s) => {
34
34
  if (!s)
35
35
  return s;
36
36
  try {
@@ -38,7 +38,7 @@ const Be = (s) => {
38
38
  } catch (i) {
39
39
  return s;
40
40
  }
41
- }, we = g(Te), re = g(ye), u = g(je), Me = g(be), h = (s) => {
41
+ }, Pe = N(Fe), ce = N(ke), h = N(Me), pe = N(Ae), g = (s) => {
42
42
  if (!s)
43
43
  return !1;
44
44
  try {
@@ -47,41 +47,41 @@ const Be = (s) => {
47
47
  } catch (i) {
48
48
  return !0;
49
49
  }
50
- }, ae = (s) => {
50
+ }, me = (s) => {
51
51
  var n;
52
52
  const i = JSON.parse(JSON.stringify(s)) || [], l = (n = i == null ? void 0 : i.pop()) == null ? void 0 : n.pop();
53
53
  return l ? (l == null ? void 0 : l.type) === "BEFORE_CALL" || (l == null ? void 0 : l.type) === "FUNCTION_CALL" : !1;
54
- }, cn = (s) => {
55
- var x, T, A, O, F, _, I, U, z, j, B;
54
+ }, mn = (s) => {
55
+ var x, A, T, O, F, _, I, U, j, z, w, B;
56
56
  const {
57
57
  application: i,
58
58
  currentSession: l,
59
59
  history: n,
60
- isLastHistory: N,
61
- onRelatedClick: oe,
62
- onAgainClick: de,
63
- isLoading: Je,
64
- docViewerUrl: f,
60
+ isLastHistory: f,
61
+ onRelatedClick: ue,
62
+ onAgainClick: he,
63
+ isLoading: Qe,
64
+ docViewerUrl: d,
65
65
  onEditClick: C,
66
- actions: ce = !0,
67
- markdown: d
66
+ actions: ge = !0,
67
+ markdown: c
68
68
  } = s, {
69
69
  debug: S,
70
70
  transform: r,
71
- popupContainer: L
72
- } = Le(Fe), E = n.role === Z.User, k = n.role === Z.Robot, {
73
- Panel: pe
74
- } = ie, [v, me] = ve(!0), ue = () => {
71
+ popupContainer: y
72
+ } = Se(Ue), E = n.role === ee.User, k = n.role === ee.Robot, {
73
+ Panel: Ne
74
+ } = ae, [v, fe] = Ee(!0), Ce = () => {
75
75
  b.config({
76
- getContainer: () => (L == null ? void 0 : L.current) || document.body,
76
+ getContainer: () => (y == null ? void 0 : y.current) || document.body,
77
77
  prefixCls: "gbot-message"
78
- }), Ie(n.content), b.success("复制成功"), b.config({
78
+ }), ze(n.content), b.success("复制成功"), b.config({
79
79
  getContainer: void 0,
80
80
  prefixCls: "gbot-message"
81
81
  });
82
82
  };
83
83
  return /* @__PURE__ */ o("div", {
84
- className: Ae({
84
+ className: _e({
85
85
  "history-item": !0,
86
86
  "history-item__user": E,
87
87
  "history-item__bot": k
@@ -90,40 +90,55 @@ const Be = (s) => {
90
90
  className: "history-item-user",
91
91
  children: [i.type === 0 && ((x = n == null ? void 0 : n.imageContent) == null ? void 0 : x.length) && /* @__PURE__ */ e("div", {
92
92
  className: "item-user-images",
93
- children: /* @__PURE__ */ e(u, {
94
- children: n.imageContent.map((t, w) => `![](${t})`).join(`
93
+ children: /* @__PURE__ */ e(h, {
94
+ children: n.imageContent.map((t, M) => `![](${t})`).join(`
95
95
 
96
96
  `)
97
97
  })
98
+ }), i.type === ne.Dialog && /* @__PURE__ */ e("div", {
99
+ className: "item-user-file-dialog",
100
+ children: /* @__PURE__ */ e(ie, {
101
+ gutter: [12, 12],
102
+ justify: "end",
103
+ wrap: !0,
104
+ children: (A = n.files) == null ? void 0 : A.map((t) => /* @__PURE__ */ e(le, {
105
+ className: "user-file-col",
106
+ children: /* @__PURE__ */ e(pe, {
107
+ docViewerUrl: d,
108
+ currentSession: l,
109
+ file: t
110
+ })
111
+ }, t.id))
112
+ })
98
113
  }), /* @__PURE__ */ e("div", {
99
114
  className: "item-user-panel",
100
- children: /* @__PURE__ */ e(Se, {
115
+ children: /* @__PURE__ */ e(Te, {
101
116
  placement: "topLeft",
102
117
  overlayStyle: {
103
118
  padding: 4
104
119
  },
105
120
  overlayClassName: "session-item-overlay-popover",
106
121
  getPopupContainer: (t) => t.parentNode,
107
- content: r != null && r.userEdit || r != null && r.userCopy ? /* @__PURE__ */ o(ne, {
122
+ content: r != null && r.userEdit || r != null && r.userCopy ? /* @__PURE__ */ o(se, {
108
123
  className: "item-user-popover",
109
124
  size: 4,
110
125
  children: [(r == null ? void 0 : r.userEdit) && /* @__PURE__ */ e("div", {
111
126
  className: "user-pannel-item",
112
127
  onClick: () => C == null ? void 0 : C(n.content),
113
- children: /* @__PURE__ */ e(te, {
128
+ children: /* @__PURE__ */ e(re, {
114
129
  type: "link",
115
130
  size: "small",
116
- icon: /* @__PURE__ */ e(p, {
131
+ icon: /* @__PURE__ */ e(m, {
117
132
  type: "icon-bianji2"
118
133
  })
119
134
  })
120
135
  }), (r == null ? void 0 : r.userCopy) && /* @__PURE__ */ e("div", {
121
136
  className: "user-pannel-item",
122
- onClick: ue,
123
- children: /* @__PURE__ */ e(te, {
137
+ onClick: Ce,
138
+ children: /* @__PURE__ */ e(re, {
124
139
  type: "link",
125
140
  size: "small",
126
- icon: /* @__PURE__ */ e(p, {
141
+ icon: /* @__PURE__ */ e(m, {
127
142
  type: "icon-fuzhi",
128
143
  style: {
129
144
  fontSize: "16px"
@@ -136,23 +151,23 @@ const Be = (s) => {
136
151
  className: "user-panel-main",
137
152
  children: /* @__PURE__ */ e("span", {
138
153
  className: "item-user-content",
139
- children: /* @__PURE__ */ e(u, {
154
+ children: /* @__PURE__ */ e(h, {
140
155
  showLatex: !1,
141
- children: Ue(n.content)
156
+ children: we(n.content)
142
157
  })
143
158
  })
144
159
  })
145
160
  })
146
- }), /* @__PURE__ */ e("div", {
161
+ }), i.type === ne.Agent && /* @__PURE__ */ e("div", {
147
162
  className: "item-user-file",
148
- children: /* @__PURE__ */ e(Ee, {
163
+ children: /* @__PURE__ */ e(ie, {
149
164
  gutter: [12, 12],
150
165
  justify: "end",
151
166
  wrap: !0,
152
- children: (T = n.files) == null ? void 0 : T.map((t) => /* @__PURE__ */ e(ke, {
167
+ children: (T = n.files) == null ? void 0 : T.map((t) => /* @__PURE__ */ e(le, {
153
168
  className: "user-file-col",
154
- children: /* @__PURE__ */ e(Me, {
155
- docViewerUrl: f,
169
+ children: /* @__PURE__ */ e(pe, {
170
+ docViewerUrl: d,
156
171
  currentSession: l,
157
172
  file: t
158
173
  })
@@ -165,47 +180,47 @@ const Be = (s) => {
165
180
  className: "bot-content-wrapper",
166
181
  children: [i.type === 2 && /* @__PURE__ */ o("div", {
167
182
  className: "item-bot-plugin",
168
- children: [/* @__PURE__ */ e(ie, {
183
+ children: [/* @__PURE__ */ e(ae, {
169
184
  ghost: !0,
170
185
  expandIconPosition: "right",
171
- children: (A = n.actions) == null ? void 0 : A.map((t, w) => {
172
- var M, J, P, Q, q, H, D, V, W, $, G, K;
173
- return /* @__PURE__ */ o(pe, {
186
+ children: (O = n.actions) == null ? void 0 : O.map((t, M) => {
187
+ var J, P, Q, q, D, H, V, W, $, G, K, X;
188
+ return /* @__PURE__ */ o(Ne, {
174
189
  collapsible: S ? "header" : "icon",
175
190
  showArrow: S,
176
- header: /* @__PURE__ */ o(ne, {
191
+ header: /* @__PURE__ */ o(se, {
177
192
  size: 8,
178
193
  style: {
179
194
  width: "100%"
180
195
  },
181
196
  children: [/* @__PURE__ */ o("span", {
182
197
  className: "bot-plugin-status",
183
- children: [(t[t.length - 1].type === "RESULT" || t[t.length - 1].type === "AFTER_CALL") && h((M = t.find((a) => a.type === "RESULT")) == null ? void 0 : M.data.result) && /* @__PURE__ */ e("span", {
198
+ children: [(t[t.length - 1].type === "RESULT" || t[t.length - 1].type === "AFTER_CALL") && g((J = t.find((a) => a.type === "RESULT")) == null ? void 0 : J.data.result) && /* @__PURE__ */ e("span", {
184
199
  className: "plugin-status-success",
185
- children: /* @__PURE__ */ e(le, {})
200
+ children: /* @__PURE__ */ e(oe, {})
186
201
  }), t[t.length - 1].type === "ABORT" && /* @__PURE__ */ e("span", {
187
202
  className: "plugin-status-error",
188
- children: /* @__PURE__ */ e(se, {})
189
- }), (t[t.length - 1].type === "RESULT" || t[t.length - 1].type === "AFTER_CALL") && !h((J = t.find((a) => a.type === "RESULT")) == null ? void 0 : J.data.result) && /* @__PURE__ */ e("span", {
203
+ children: /* @__PURE__ */ e(de, {})
204
+ }), (t[t.length - 1].type === "RESULT" || t[t.length - 1].type === "AFTER_CALL") && !g((P = t.find((a) => a.type === "RESULT")) == null ? void 0 : P.data.result) && /* @__PURE__ */ e("span", {
190
205
  className: "plugin-status-error",
191
- children: /* @__PURE__ */ e(se, {})
206
+ children: /* @__PURE__ */ e(de, {})
192
207
  }), (t[t.length - 1].type === "BEFORE_CALL" || t[t.length - 1].type === "FUNCTION_CALL") && /* @__PURE__ */ e("span", {
193
208
  className: "plugin-status-loading",
194
- children: /* @__PURE__ */ e(Oe, {})
209
+ children: /* @__PURE__ */ e(Ie, {})
195
210
  })]
196
211
  }), /* @__PURE__ */ e("span", {
197
212
  className: "bot-plugin-title",
198
- children: ((P = t[t.length - 1].data) == null ? void 0 : P.pluginName) || ((Q = t[t.length - 1].data) == null ? void 0 : Q.pluginCode)
213
+ children: ((Q = t[t.length - 1].data) == null ? void 0 : Q.pluginName) || ((q = t[t.length - 1].data) == null ? void 0 : q.pluginCode)
199
214
  }), /* @__PURE__ */ e("span", {
200
215
  className: "bot-plugin-action",
201
- children: ((q = t[t.length - 1].data) == null ? void 0 : q.funcName) || ((H = t[t.length - 1].data) == null ? void 0 : H.funcCode)
216
+ children: ((D = t[t.length - 1].data) == null ? void 0 : D.funcName) || ((H = t[t.length - 1].data) == null ? void 0 : H.funcCode)
202
217
  }), (t[t.length - 1].type === "BEFORE_CALL" || t[t.length - 1].type === "FUNCTION_CALL") && /* @__PURE__ */ e("span", {
203
218
  className: "bot-plugin-result",
204
219
  children: "执行中"
205
- }), (t[t.length - 1].type === "RESULT" || t[t.length - 1].type === "AFTER_CALL") && h((D = t.find((a) => a.type === "RESULT")) == null ? void 0 : D.data.result) && /* @__PURE__ */ e("span", {
220
+ }), (t[t.length - 1].type === "RESULT" || t[t.length - 1].type === "AFTER_CALL") && g((V = t.find((a) => a.type === "RESULT")) == null ? void 0 : V.data.result) && /* @__PURE__ */ e("span", {
206
221
  className: "bot-plugin-result",
207
222
  children: "执行成功"
208
- }), (t[t.length - 1].type === "RESULT" || t[t.length - 1].type === "AFTER_CALL") && !h((V = t.find((a) => a.type === "RESULT")) == null ? void 0 : V.data.result) && /* @__PURE__ */ e("span", {
223
+ }), (t[t.length - 1].type === "RESULT" || t[t.length - 1].type === "AFTER_CALL") && !g((W = t.find((a) => a.type === "RESULT")) == null ? void 0 : W.data.result) && /* @__PURE__ */ e("span", {
209
224
  className: "bot-plugin-result",
210
225
  children: "执行失败"
211
226
  }), t[t.length - 1].type === "ABORT" && /* @__PURE__ */ e("span", {
@@ -218,55 +233,55 @@ const Be = (s) => {
218
233
  children: "thought"
219
234
  }), /* @__PURE__ */ e("div", {
220
235
  className: "bot-plugin-json",
221
- children: /* @__PURE__ */ e(m, {
222
- josn: (W = t.find((a) => a.type === "BEFORE_CALL")) == null ? void 0 : W.data.thought
236
+ children: /* @__PURE__ */ e(u, {
237
+ josn: ($ = t.find((a) => a.type === "BEFORE_CALL")) == null ? void 0 : $.data.thought
223
238
  })
224
239
  }), /* @__PURE__ */ e("div", {
225
240
  className: "bot-plugin-content",
226
241
  children: "parameters"
227
242
  }), /* @__PURE__ */ e("div", {
228
243
  className: "bot-plugin-json",
229
- children: /* @__PURE__ */ e(m, {
230
- josn: ($ = t.find((a) => a.type === "BEFORE_CALL")) == null ? void 0 : $.data.parameters
244
+ children: /* @__PURE__ */ e(u, {
245
+ josn: (G = t.find((a) => a.type === "BEFORE_CALL")) == null ? void 0 : G.data.parameters
231
246
  })
232
247
  }), /* @__PURE__ */ e("div", {
233
248
  className: "bot-plugin-content",
234
249
  children: "requestBody"
235
250
  }), /* @__PURE__ */ e("div", {
236
251
  className: "bot-plugin-json",
237
- children: /* @__PURE__ */ e(m, {
238
- josn: (G = t.find((a) => a.type === "BEFORE_CALL")) == null ? void 0 : G.data.requestBody
252
+ children: /* @__PURE__ */ e(u, {
253
+ josn: (K = t.find((a) => a.type === "BEFORE_CALL")) == null ? void 0 : K.data.requestBody
239
254
  })
240
255
  }), /* @__PURE__ */ e("div", {
241
256
  className: "bot-plugin-content",
242
257
  children: "Response"
243
258
  }), /* @__PURE__ */ e("div", {
244
259
  className: "bot-plugin-json",
245
- children: /* @__PURE__ */ e(m, {
246
- josn: Be((K = t.find((a) => a.type === "RESULT")) == null ? void 0 : K.data.result)
260
+ children: /* @__PURE__ */ e(u, {
261
+ josn: Je((X = t.find((a) => a.type === "RESULT")) == null ? void 0 : X.data.result)
247
262
  })
248
263
  })]
249
- }, w);
264
+ }, M);
250
265
  })
251
266
  }), n.isLoading && /* @__PURE__ */ e("div", {
252
267
  className: "history-input-progress",
253
268
  style: {
254
269
  padding: "4px 0"
255
270
  },
256
- children: n.content || ae(n.actions) ? null : /* @__PURE__ */ e(c, {
271
+ children: n.content || me(n.actions) ? null : /* @__PURE__ */ e(p, {
257
272
  size: 4,
258
273
  text: "思考中"
259
274
  })
260
275
  })]
261
- }), !!((O = n.searchReference) != null && O.length) && /* @__PURE__ */ e("div", {
276
+ }), !!((F = n.searchReference) != null && F.length) && /* @__PURE__ */ e("div", {
262
277
  className: "item-bot-net",
263
- children: /* @__PURE__ */ e(we, {
278
+ children: /* @__PURE__ */ e(Pe, {
264
279
  history: n
265
280
  })
266
- }), (F = n == null ? void 0 : n.reference) != null && F.length && ((_ = r == null ? void 0 : r.reference) != null && _.referenceFirst) ? /* @__PURE__ */ e(re, {
281
+ }), (_ = n == null ? void 0 : n.reference) != null && _.length && ((I = r == null ? void 0 : r.reference) != null && I.referenceFirst) ? /* @__PURE__ */ e(ce, {
267
282
  history: n,
268
- docViewerUrl: f,
269
- markdown: d
283
+ docViewerUrl: d,
284
+ markdown: c
270
285
  }) : null, /* @__PURE__ */ o("div", {
271
286
  className: "item-bot-content",
272
287
  children: [(n == null ? void 0 : n.reasoningContent) && /* @__PURE__ */ o("div", {
@@ -274,10 +289,10 @@ const Be = (s) => {
274
289
  children: [(n == null ? void 0 : n.reasoningContent) && /* @__PURE__ */ o("div", {
275
290
  className: "think-top",
276
291
  onClick: () => {
277
- me(!v);
292
+ fe(!v);
278
293
  },
279
294
  children: [/* @__PURE__ */ e("img", {
280
- src: ze,
295
+ src: Be,
281
296
  alt: ""
282
297
  }), (n == null ? void 0 : n.reasoningContent) && !(n != null && n.content) && /* @__PURE__ */ e("span", {
283
298
  children: "我正在推理思考…"
@@ -285,47 +300,47 @@ const Be = (s) => {
285
300
  children: ["已完成推理(用时 ", (n == null ? void 0 : n.thinkingSecs) || 0, " 秒)"]
286
301
  }), /* @__PURE__ */ e("span", {
287
302
  className: "think-action",
288
- children: v ? /* @__PURE__ */ e(p, {
303
+ children: v ? /* @__PURE__ */ e(m, {
289
304
  type: "icon-zhankai",
290
305
  style: {
291
306
  fontSize: 16
292
307
  }
293
- }) : /* @__PURE__ */ e(p, {
308
+ }) : /* @__PURE__ */ e(m, {
294
309
  type: "icon-shouqi",
295
310
  style: {
296
311
  fontSize: 16
297
312
  }
298
313
  })
299
314
  })]
300
- }), !!((I = n == null ? void 0 : n.reasoningContent) != null && I.trim()) && v && /* @__PURE__ */ o("div", {
315
+ }), !!((U = n == null ? void 0 : n.reasoningContent) != null && U.trim()) && v && /* @__PURE__ */ o("div", {
301
316
  className: "think-bottom",
302
317
  children: [/* @__PURE__ */ o("div", {
303
318
  className: "bottom-left",
304
- children: [(n == null ? void 0 : n.thinkingStatus) === ee.Start && /* @__PURE__ */ e("div", {
319
+ children: [(n == null ? void 0 : n.thinkingStatus) === te.Start && /* @__PURE__ */ e("div", {
305
320
  className: "thinking"
306
- }), (n == null ? void 0 : n.thinkingStatus) === ee.End && /* @__PURE__ */ e("div", {
321
+ }), (n == null ? void 0 : n.thinkingStatus) === te.End && /* @__PURE__ */ e("div", {
307
322
  className: "thinked",
308
- children: /* @__PURE__ */ e(le, {})
323
+ children: /* @__PURE__ */ e(oe, {})
309
324
  })]
310
325
  }), /* @__PURE__ */ e("div", {
311
326
  className: "bottom-right",
312
- children: /* @__PURE__ */ e(u, R(y({}, d), {
327
+ children: /* @__PURE__ */ e(h, R(L({}, c), {
313
328
  children: (n == null ? void 0 : n.reasoningContent) || ""
314
329
  }))
315
330
  })]
316
331
  })]
317
- }), /* @__PURE__ */ e(u, R(y({}, d), {
332
+ }), /* @__PURE__ */ e(h, R(L({}, c), {
318
333
  children: n.content
319
334
  }))]
320
- }), (U = n == null ? void 0 : n.reference) != null && U.length && !((z = r == null ? void 0 : r.reference) != null && z.referenceFirst) ? /* @__PURE__ */ e(re, {
335
+ }), (j = n == null ? void 0 : n.reference) != null && j.length && !((z = r == null ? void 0 : r.reference) != null && z.referenceFirst) ? /* @__PURE__ */ e(ce, {
321
336
  history: n,
322
- docViewerUrl: f,
323
- markdown: d
324
- }) : null, n.isRelatedQuestion && N ? /* @__PURE__ */ e("div", {
337
+ docViewerUrl: d,
338
+ markdown: c
339
+ }) : null, n.isRelatedQuestion && f ? /* @__PURE__ */ e("div", {
325
340
  style: {
326
341
  paddingBottom: 12
327
342
  },
328
- children: /* @__PURE__ */ e(c, {
343
+ children: /* @__PURE__ */ e(p, {
329
344
  size: 4
330
345
  })
331
346
  }) : null, n.isRelateLoading && /* @__PURE__ */ e("div", {
@@ -333,23 +348,23 @@ const Be = (s) => {
333
348
  style: {
334
349
  padding: "4px 0"
335
350
  },
336
- children: ae(n.actions) ? null : /* @__PURE__ */ e(c, {
351
+ children: me(n.actions) ? null : /* @__PURE__ */ e(p, {
337
352
  size: 4,
338
353
  text: "思考中"
339
354
  })
340
- }), i.arrange[0].recommendQuestionOpen && (r == null ? void 0 : r.relate) && N && !!((j = n.relatedQuesion) != null && j.length) && /* @__PURE__ */ e(_e, {
355
+ }), i.arrange[0].recommendQuestionOpen && (r == null ? void 0 : r.relate) && f && !!((w = n.relatedQuesion) != null && w.length) && /* @__PURE__ */ e(je, {
341
356
  relatedQuesion: n.relatedQuesion,
342
- onRelatedClick: oe
343
- }), ce && !n.isSensitive && !!n.messageId && /* @__PURE__ */ e(Re, {
357
+ onRelatedClick: ue
358
+ }), ge && !n.isSensitive && !!n.messageId && /* @__PURE__ */ e(xe, {
344
359
  appId: i.id,
345
360
  history: n,
346
361
  sessionId: (B = l == null ? void 0 : l.data) == null ? void 0 : B.id,
347
- onAgainClick: de,
348
- isLastHistory: N,
362
+ onAgainClick: he,
363
+ isLastHistory: f,
349
364
  currentSession: l
350
365
  })]
351
366
  })
352
- }), n.isContext && /* @__PURE__ */ o(xe, {
367
+ }), n.isContext && /* @__PURE__ */ o(Oe, {
353
368
  children: [/* @__PURE__ */ e("div", {
354
369
  style: {
355
370
  color: "#84868C",
@@ -359,7 +374,7 @@ const Be = (s) => {
359
374
  }), " "]
360
375
  }), n.isWaiting && /* @__PURE__ */ e("div", {
361
376
  className: "history-input-progress",
362
- children: /* @__PURE__ */ e(c, {
377
+ children: /* @__PURE__ */ e(p, {
363
378
  size: 4,
364
379
  text: "思考中"
365
380
  })
@@ -367,6 +382,6 @@ const Be = (s) => {
367
382
  });
368
383
  };
369
384
  export {
370
- cn as default,
371
- h as isResultExec
385
+ mn as default,
386
+ g as isResultExec
372
387
  };