@glodon-aiot/agent-cli-ui 3.3.6 → 3.4.0-alpha.2
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 +74 -0
- package/dist/es/Dialog/AgentChat/index.mjs +570 -548
- package/dist/es/Dialog/SessionList/index.mjs +255 -173
- package/dist/es/Dialog/index.mjs +102 -94
- package/dist/es/components/Sider/index.mjs +24 -0
- package/dist/es/constant.mjs +2 -0
- package/dist/es/index.mjs +30 -29
- 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/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/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/style28.css +1 -1
- package/dist/es/src/style29.css +1 -1
- package/dist/es/src/style30.css +1 -1
- package/dist/es/src/style32.css +1 -0
- package/dist/es/src/style33.css +1 -0
- package/dist/es/src/style5.css +1 -1
- package/dist/es/src/style6.css +1 -1
- package/dist/es/src/style7.css +1 -1
- package/dist/es/src/style8.css +1 -1
- package/dist/es/src/style9.css +1 -1
- package/dist/lib/index.css +1 -1
- package/dist/lib/index.js +56 -56
- package/dist/src/Dialog/AgentChat/HistoryItem/FileItem/index.d.ts +1 -1
- package/dist/src/Dialog/AgentChat/HistoryItem/SessionAction/index.d.ts +1 -1
- package/dist/src/Dialog/AgentChat/HistoryItem/index.d.ts +1 -1
- package/dist/src/Dialog/AgentChat/PromptSetting/index.d.ts +2 -2
- package/dist/src/Dialog/AgentChat/Tools/SessionHistoryDrawer/index.d.ts +2 -2
- package/dist/src/Dialog/AgentChat/index.d.ts +4 -2
- package/dist/src/Dialog/SessionList/index.d.ts +9 -5
- package/dist/src/components/KnowledgeList/index.d.ts +1 -1
- package/dist/src/types.d.ts +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { jsxs as u, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Popover as S, Button as h, Drawer as C } from "antd";
|
|
3
|
+
import { useState as w, useContext as x } from "react";
|
|
4
|
+
/* empty css */import b from "../../../../components/Iconfont/index.mjs";
|
|
5
|
+
import g from "../../../../context.mjs";
|
|
6
|
+
import v from "../../../../components/Sider/index.mjs";
|
|
7
|
+
const V = (a) => {
|
|
8
|
+
const {
|
|
9
|
+
currentSession: s,
|
|
10
|
+
disabled: l = !1,
|
|
11
|
+
application: c,
|
|
12
|
+
networkStatus: m,
|
|
13
|
+
setCurrentSession: d,
|
|
14
|
+
sessions: p,
|
|
15
|
+
// 👈 新增
|
|
16
|
+
setSessions: f
|
|
17
|
+
// 👈 新增
|
|
18
|
+
} = a, [y, t] = w(!1), {
|
|
19
|
+
popupContainer: o
|
|
20
|
+
} = x(g);
|
|
21
|
+
return /* @__PURE__ */ u("div", {
|
|
22
|
+
className: "session-history-drawer-component",
|
|
23
|
+
children: [/* @__PURE__ */ e(S, {
|
|
24
|
+
placement: "topRight",
|
|
25
|
+
showArrow: !1,
|
|
26
|
+
overlayClassName: "session-history-overlay",
|
|
27
|
+
overlayStyle: {
|
|
28
|
+
padding: "4px"
|
|
29
|
+
},
|
|
30
|
+
getPopupContainer: (i) => i.parentNode,
|
|
31
|
+
content: "会话历史记录",
|
|
32
|
+
children: /* @__PURE__ */ e(h, {
|
|
33
|
+
className: "history-overlay-action",
|
|
34
|
+
disabled: l,
|
|
35
|
+
type: "text",
|
|
36
|
+
icon: /* @__PURE__ */ e(b, {
|
|
37
|
+
type: "icon-lishijilu",
|
|
38
|
+
style: {
|
|
39
|
+
fontSize: 24
|
|
40
|
+
}
|
|
41
|
+
}),
|
|
42
|
+
onClick: () => t(!0)
|
|
43
|
+
})
|
|
44
|
+
}), y && /* @__PURE__ */ e(C, {
|
|
45
|
+
title: "分组会话列表",
|
|
46
|
+
open: !0,
|
|
47
|
+
placement: "bottom",
|
|
48
|
+
onClose: () => t(!1),
|
|
49
|
+
className: "session-history-drawer",
|
|
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
|
+
})]
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
export {
|
|
73
|
+
V as default
|
|
74
|
+
};
|