@glodon-aiot/agent-cli-ui 3.4.0-alpha.3 → 3.4.0-alpha.4
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/Tools/SessionHistoryDrawer/index.mjs +45 -66
- package/dist/es/Dialog/AgentChat/index.mjs +343 -317
- package/dist/es/Dialog/SessionList/index.mjs +144 -143
- 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/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/style20.css +1 -1
- package/dist/es/src/style21.css +1 -1
- package/dist/es/src/style22.css +1 -1
- package/dist/es/src/style23.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/style30.css +1 -1
- package/dist/es/src/style31.css +1 -1
- package/dist/es/src/style32.css +1 -1
- package/dist/es/src/style33.css +1 -1
- package/dist/es/src/style8.css +1 -1
- package/dist/lib/index.css +1 -1
- package/dist/lib/index.js +54 -54
- package/dist/src/Dialog/AgentChat/Tools/SessionHistoryDrawer/index.d.ts +2 -0
- package/package.json +3 -3
|
@@ -1,74 +1,53 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
/* empty css */import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
const V = (a) => {
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Drawer as p } from "antd";
|
|
3
|
+
import { useContext as u } from "react";
|
|
4
|
+
/* empty css */import C from "../../../../context.mjs";
|
|
5
|
+
import S from "../../../../components/Sider/index.mjs";
|
|
6
|
+
const j = (n) => {
|
|
8
7
|
const {
|
|
9
8
|
currentSession: s,
|
|
10
|
-
disabled:
|
|
11
|
-
application:
|
|
12
|
-
networkStatus:
|
|
13
|
-
setCurrentSession:
|
|
14
|
-
sessions:
|
|
9
|
+
disabled: y = !1,
|
|
10
|
+
application: a,
|
|
11
|
+
networkStatus: l,
|
|
12
|
+
setCurrentSession: m,
|
|
13
|
+
sessions: d,
|
|
15
14
|
// 👈 新增
|
|
16
|
-
setSessions: f
|
|
15
|
+
setSessions: f,
|
|
17
16
|
// 👈 新增
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
size: "large",
|
|
51
|
-
getContainer: () => (o == null ? void 0 : o.current) || document.body,
|
|
52
|
-
destroyOnClose: !0,
|
|
53
|
-
style: {
|
|
54
|
-
position: "absolute"
|
|
55
|
-
},
|
|
56
|
-
children: /* @__PURE__ */ e(v, {
|
|
57
|
-
isShowHeader: !1,
|
|
58
|
-
application: c,
|
|
59
|
-
networkStatus: m,
|
|
60
|
-
currentSession: s,
|
|
61
|
-
setCurrentSession: d,
|
|
62
|
-
sessions: p,
|
|
63
|
-
setSessions: f,
|
|
64
|
-
afterSessionClick: (i) => {
|
|
65
|
-
var r, n;
|
|
66
|
-
((r = i.data) == null ? void 0 : r.id) !== ((n = s == null ? void 0 : s.data) == null ? void 0 : n.id) && t(!1);
|
|
67
|
-
}
|
|
68
|
-
})
|
|
69
|
-
})]
|
|
17
|
+
isSessionHistoryVisible: b,
|
|
18
|
+
setIsSessionHistoryVisible: t
|
|
19
|
+
} = n, {
|
|
20
|
+
popupContainer: e
|
|
21
|
+
} = u(C);
|
|
22
|
+
return /* @__PURE__ */ r(p, {
|
|
23
|
+
title: "会话历史",
|
|
24
|
+
open: !0,
|
|
25
|
+
placement: "bottom",
|
|
26
|
+
onClose: () => {
|
|
27
|
+
t(!1);
|
|
28
|
+
},
|
|
29
|
+
className: "session-history-drawer",
|
|
30
|
+
size: "large",
|
|
31
|
+
getContainer: () => (e == null ? void 0 : e.current) || document.body,
|
|
32
|
+
destroyOnClose: !0,
|
|
33
|
+
style: {
|
|
34
|
+
position: "absolute"
|
|
35
|
+
},
|
|
36
|
+
children: /* @__PURE__ */ r(S, {
|
|
37
|
+
isShowHeader: !1,
|
|
38
|
+
application: a,
|
|
39
|
+
networkStatus: l,
|
|
40
|
+
currentSession: s,
|
|
41
|
+
setCurrentSession: m,
|
|
42
|
+
sessions: d,
|
|
43
|
+
setSessions: f,
|
|
44
|
+
afterSessionClick: (c) => {
|
|
45
|
+
var o, i;
|
|
46
|
+
((o = c.data) == null ? void 0 : o.id) !== ((i = s == null ? void 0 : s.data) == null ? void 0 : i.id) && t(!1);
|
|
47
|
+
}
|
|
48
|
+
})
|
|
70
49
|
});
|
|
71
50
|
};
|
|
72
51
|
export {
|
|
73
|
-
|
|
52
|
+
j as default
|
|
74
53
|
};
|