@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.
- package/dist/es/Dialog/AgentChat/HistoryItem/FileItem/index.mjs +52 -59
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionAction/index.mjs +67 -70
- package/dist/es/Dialog/AgentChat/HistoryItem/index.mjs +100 -103
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/index.mjs +76 -87
- package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/index.mjs +121 -124
- package/dist/es/Dialog/AgentChat/index.mjs +199 -202
- package/dist/es/ReactTextGenerationUI/components/TextSiders/index.mjs +150 -157
- package/dist/es/components/Recommend/RecommendItem.mjs +33 -36
- package/dist/es/packages/agent-cli-ui/package.json.mjs +3 -3
- package/dist/es/packages/react-components/dist/es/index.mjs +1 -1
- package/dist/es/src/style12.css +1 -1
- package/dist/es/src/style13.css +1 -1
- package/dist/es/src/style14.css +1 -1
- package/dist/es/src/style15.css +1 -1
- package/dist/es/src/style16.css +1 -1
- package/dist/es/src/style17.css +1 -1
- package/dist/es/src/style18.css +1 -1
- package/dist/es/src/style19.css +1 -1
- package/dist/es/src/style24.css +1 -1
- package/dist/es/src/style25.css +1 -1
- package/dist/es/src/style26.css +1 -1
- package/dist/es/src/style27.css +1 -1
- package/dist/es/src/style29.css +1 -1
- package/dist/es/src/style30.css +1 -1
- package/dist/es/src/style31.css +1 -1
- package/dist/es/src/style32.css +1 -1
- package/dist/es/utils/scopedMessage.mjs +29 -0
- package/dist/lib/index.js +53 -53
- package/dist/src/utils/scopedMessage.d.ts +7 -0
- package/package.json +3 -3
|
@@ -1,36 +1,37 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Ce = Object.defineProperty, ye = Object.defineProperties;
|
|
2
2
|
var Le = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
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
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var l of
|
|
10
|
-
|
|
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
|
-
},
|
|
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
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import { IHistoryRole as
|
|
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
|
|
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
|
|
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 "../../../
|
|
32
|
-
import
|
|
33
|
-
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
55
|
-
var
|
|
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:
|
|
62
|
-
onAgainClick:
|
|
63
|
-
isLoading:
|
|
62
|
+
onRelatedClick: ce,
|
|
63
|
+
onAgainClick: me,
|
|
64
|
+
isLoading: qe,
|
|
64
65
|
docViewerUrl: d,
|
|
65
66
|
onEditClick: C,
|
|
66
|
-
actions:
|
|
67
|
-
markdown:
|
|
67
|
+
actions: ue = !0,
|
|
68
|
+
markdown: p
|
|
68
69
|
} = s, {
|
|
69
|
-
debug:
|
|
70
|
+
debug: R,
|
|
70
71
|
transform: r,
|
|
71
|
-
popupContainer:
|
|
72
|
-
} = Se(Ue),
|
|
73
|
-
Panel:
|
|
74
|
-
} =
|
|
75
|
-
|
|
76
|
-
|
|
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":
|
|
87
|
-
"history-item__bot":
|
|
83
|
+
"history-item__user": S,
|
|
84
|
+
"history-item__bot": E
|
|
88
85
|
}),
|
|
89
|
-
children: [
|
|
86
|
+
children: [S && /* @__PURE__ */ o("div", {
|
|
90
87
|
className: "history-item-user",
|
|
91
|
-
children: [i.type === 0 && ((
|
|
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,
|
|
91
|
+
children: n.imageContent.map((t, w) => ``).join(`
|
|
95
92
|
|
|
96
93
|
`)
|
|
97
94
|
})
|
|
98
|
-
}), i.type ===
|
|
95
|
+
}), i.type === Z.Dialog && /* @__PURE__ */ e("div", {
|
|
99
96
|
className: "item-user-file-dialog",
|
|
100
|
-
children: /* @__PURE__ */ e(
|
|
97
|
+
children: /* @__PURE__ */ e(ne, {
|
|
101
98
|
gutter: [12, 12],
|
|
102
99
|
justify: "end",
|
|
103
100
|
wrap: !0,
|
|
104
|
-
children: (
|
|
101
|
+
children: (k = n.files) == null ? void 0 : k.map((t) => /* @__PURE__ */ e(te, {
|
|
105
102
|
className: "user-file-col",
|
|
106
|
-
children: /* @__PURE__ */ e(
|
|
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(
|
|
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(
|
|
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:
|
|
138
|
-
children: /* @__PURE__ */ e(
|
|
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 ===
|
|
158
|
+
}), i.type === Z.Agent && /* @__PURE__ */ e("div", {
|
|
162
159
|
className: "item-user-file",
|
|
163
|
-
children: /* @__PURE__ */ e(
|
|
160
|
+
children: /* @__PURE__ */ e(ne, {
|
|
164
161
|
gutter: [12, 12],
|
|
165
162
|
justify: "end",
|
|
166
163
|
wrap: !0,
|
|
167
|
-
children: (
|
|
164
|
+
children: (A = n.files) == null ? void 0 : A.map((t) => /* @__PURE__ */ e(te, {
|
|
168
165
|
className: "user-file-col",
|
|
169
|
-
children: /* @__PURE__ */ e(
|
|
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
|
-
}),
|
|
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(
|
|
180
|
+
children: [/* @__PURE__ */ e(se, {
|
|
184
181
|
ghost: !0,
|
|
185
182
|
expandIconPosition: "right",
|
|
186
|
-
children: (
|
|
187
|
-
var J, P, Q, q, D, H, $, V, W, G
|
|
188
|
-
return /* @__PURE__ */ o(
|
|
189
|
-
collapsible:
|
|
190
|
-
showArrow:
|
|
191
|
-
header: /* @__PURE__ */ o(
|
|
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((
|
|
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(
|
|
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(
|
|
204
|
-
}), (t[t.length - 1].type === "RESULT" || t[t.length - 1].type === "AFTER_CALL") && !g((
|
|
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(
|
|
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: ((
|
|
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: ((
|
|
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((
|
|
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((
|
|
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: (
|
|
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: (
|
|
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: (
|
|
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:
|
|
258
|
+
josn: Pe((G = t.find((a) => a.type === "RESULT")) == null ? void 0 : G.data.result)
|
|
262
259
|
})
|
|
263
260
|
})]
|
|
264
|
-
},
|
|
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 ||
|
|
268
|
+
children: n.content || pe(n.actions) ? null : /* @__PURE__ */ e(c, {
|
|
272
269
|
size: 4,
|
|
273
270
|
text: "思考中"
|
|
274
271
|
})
|
|
275
272
|
})]
|
|
276
|
-
}), !!((
|
|
273
|
+
}), !!((x = n.searchReference) != null && x.length) && /* @__PURE__ */ e("div", {
|
|
277
274
|
className: "item-bot-net",
|
|
278
|
-
children: /* @__PURE__ */ e(
|
|
275
|
+
children: /* @__PURE__ */ e(Qe, {
|
|
279
276
|
history: n
|
|
280
277
|
})
|
|
281
|
-
}), (
|
|
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:
|
|
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
|
-
|
|
289
|
+
Ne(!y);
|
|
293
290
|
},
|
|
294
291
|
children: [/* @__PURE__ */ e("img", {
|
|
295
|
-
src:
|
|
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:
|
|
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
|
-
}), !!((
|
|
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) ===
|
|
316
|
+
children: [(n == null ? void 0 : n.thinkingStatus) === ee.Start && /* @__PURE__ */ e("div", {
|
|
320
317
|
className: "thinking"
|
|
321
|
-
}), (n == null ? void 0 : n.thinkingStatus) ===
|
|
318
|
+
}), (n == null ? void 0 : n.thinkingStatus) === ee.End && /* @__PURE__ */ e("div", {
|
|
322
319
|
className: "thinked",
|
|
323
|
-
children: /* @__PURE__ */ e(
|
|
320
|
+
children: /* @__PURE__ */ e(re, {})
|
|
324
321
|
})]
|
|
325
322
|
}), /* @__PURE__ */ e("div", {
|
|
326
323
|
className: "bottom-right",
|
|
327
|
-
children: /* @__PURE__ */ e(h,
|
|
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,
|
|
329
|
+
}), /* @__PURE__ */ e(h, v(L({}, p), {
|
|
333
330
|
children: n.content
|
|
334
331
|
}))]
|
|
335
|
-
}), (
|
|
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:
|
|
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(
|
|
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:
|
|
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 && !!((
|
|
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:
|
|
358
|
-
}),
|
|
354
|
+
onRelatedClick: ce
|
|
355
|
+
}), ue && !n.isSensitive && !!n.messageId && /* @__PURE__ */ e(ke, {
|
|
359
356
|
appId: i.id,
|
|
360
357
|
history: n,
|
|
361
|
-
sessionId: (
|
|
362
|
-
onAgainClick:
|
|
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(
|
|
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(
|
|
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
|
-
|
|
382
|
+
hn as default,
|
|
386
383
|
g as isResultExec
|
|
387
384
|
};
|