@glodon-aiot/agent-cli-ui 3.19.0-alpha.19 → 3.19.0-alpha.21

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