@glodon-aiot/agent-cli-ui 3.3.5-alpha.27 → 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.
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionRefer/index.mjs +59 -46
- package/dist/es/Dialog/AgentChat/HistoryItem/index.mjs +47 -46
- package/dist/es/Dialog/AgentChat/index.mjs +63 -66
- 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/style10.css +1 -1
- package/dist/es/src/style11.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/style19.css +1 -1
- package/dist/es/src/style20.css +1 -1
- package/dist/es/src/style21.css +1 -1
- package/dist/es/src/style26.css +1 -1
- package/dist/es/src/style27.css +1 -1
- package/dist/es/src/style28.css +1 -1
- package/dist/es/src/style29.css +1 -1
- package/dist/es/src/style3.css +1 -1
- package/dist/es/src/style30.css +1 -1
- package/dist/es/src/style4.css +1 -1
- package/dist/es/src/style5.css +1 -1
- package/dist/es/src/style6.css +1 -1
- package/dist/es/src/style8.css +1 -1
- package/dist/es/src/style9.css +1 -1
- package/dist/lib/index.js +5 -5
- package/dist/src/Dialog/AgentChat/HistoryItem/SessionRefer/index.d.ts +2 -0
- package/package.json +3 -3
|
@@ -1,79 +1,92 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
|
8
|
-
import
|
|
9
|
-
import { Markdown as
|
|
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:
|
|
12
|
-
} =
|
|
13
|
-
var
|
|
23
|
+
Panel: P
|
|
24
|
+
} = C, X = (a) => {
|
|
25
|
+
var c, m, p, u;
|
|
14
26
|
const {
|
|
15
|
-
history:
|
|
16
|
-
docViewerUrl:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
39
|
+
o.sourceType === g.SourceFile && window.open(`${n}#/doc?url=${encodeURIComponent(o.sourceFileUrl)}&page=${i || 0}`);
|
|
27
40
|
}
|
|
28
41
|
};
|
|
29
|
-
return /* @__PURE__ */
|
|
42
|
+
return /* @__PURE__ */ t("div", {
|
|
30
43
|
className: "session-refer",
|
|
31
|
-
children: [/* @__PURE__ */
|
|
44
|
+
children: [/* @__PURE__ */ t(I, {
|
|
32
45
|
className: "session-refer-header",
|
|
33
46
|
size: 8,
|
|
34
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
53
|
+
}), /* @__PURE__ */ s("span", {
|
|
41
54
|
className: "refer-header-title",
|
|
42
55
|
children: "参考来源"
|
|
43
|
-
}), /* @__PURE__ */
|
|
44
|
-
children: ["(共 ", ((
|
|
56
|
+
}), /* @__PURE__ */ t("span", {
|
|
57
|
+
children: ["(共 ", ((c = e == null ? void 0 : e.reference) == null ? void 0 : c.length) || 0, " 项)"]
|
|
45
58
|
})]
|
|
46
|
-
}), /* @__PURE__ */
|
|
59
|
+
}), /* @__PURE__ */ s("div", {
|
|
47
60
|
className: "session-refer-content",
|
|
48
|
-
children: /* @__PURE__ */
|
|
61
|
+
children: /* @__PURE__ */ s(C, {
|
|
49
62
|
ghost: !0,
|
|
50
|
-
defaultActiveKey: (
|
|
51
|
-
children: (
|
|
52
|
-
header: /* @__PURE__ */
|
|
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__ */
|
|
67
|
+
children: [/* @__PURE__ */ t("span", {
|
|
55
68
|
className: "refer-panel-item",
|
|
56
|
-
children: [
|
|
57
|
-
}),
|
|
58
|
-
data:
|
|
59
|
-
loadPage: (
|
|
60
|
-
const
|
|
61
|
-
return (
|
|
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:
|
|
76
|
+
onClick: v
|
|
64
77
|
})]
|
|
65
78
|
}),
|
|
66
|
-
children: /* @__PURE__ */
|
|
79
|
+
children: /* @__PURE__ */ s("div", {
|
|
67
80
|
className: "refer-markdown",
|
|
68
|
-
children: /* @__PURE__ */
|
|
69
|
-
children:
|
|
70
|
-
})
|
|
81
|
+
children: /* @__PURE__ */ s(L, k(w({}, N), {
|
|
82
|
+
children: o.text || "-"
|
|
83
|
+
}))
|
|
71
84
|
})
|
|
72
|
-
},
|
|
85
|
+
}, o.docId + i))
|
|
73
86
|
})
|
|
74
87
|
})]
|
|
75
88
|
});
|
|
76
89
|
};
|
|
77
90
|
export {
|
|
78
|
-
|
|
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,
|
|
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
|
-
},
|
|
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
|
|
15
|
-
import
|
|
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
|
|
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
|
|
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 =
|
|
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:
|
|
60
|
+
isLastHistory: g,
|
|
61
61
|
onRelatedClick: re,
|
|
62
62
|
onAgainClick: ae,
|
|
63
63
|
isLoading: Me,
|
|
64
|
-
docViewerUrl:
|
|
65
|
-
onEditClick:
|
|
64
|
+
docViewerUrl: N,
|
|
65
|
+
onEditClick: f,
|
|
66
66
|
actions: oe = !0,
|
|
67
|
-
markdown:
|
|
67
|
+
markdown: d
|
|
68
68
|
} = s, {
|
|
69
69
|
debug: b,
|
|
70
70
|
transform: r,
|
|
71
|
-
popupContainer:
|
|
71
|
+
popupContainer: C
|
|
72
72
|
} = Ce(xe), E = n.role === Y.User, k = n.role === Y.Robot, {
|
|
73
73
|
Panel: de
|
|
74
|
-
} = ne, [
|
|
74
|
+
} = ne, [L, ce] = Le(!0), pe = () => {
|
|
75
75
|
R.config({
|
|
76
|
-
getContainer: () => (
|
|
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: () =>
|
|
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(
|
|
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(
|
|
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,
|
|
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:
|
|
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") &&
|
|
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") && !
|
|
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") &&
|
|
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") && !
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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:
|
|
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(!
|
|
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:
|
|
279
|
+
children: L ? /* @__PURE__ */ e(p, {
|
|
280
280
|
type: "icon-zhankai",
|
|
281
281
|
style: {
|
|
282
282
|
fontSize: 16
|
|
283
283
|
}
|
|
284
|
-
}) : /* @__PURE__ */ e(
|
|
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()) &&
|
|
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,
|
|
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,
|
|
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:
|
|
314
|
-
|
|
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(
|
|
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(
|
|
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) &&
|
|
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:
|
|
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(
|
|
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
|
-
|
|
362
|
+
u as isResultExec
|
|
362
363
|
};
|