@glodon-aiot/agent-cli-ui 3.7.0-alpha.3 → 3.8.0-alpha.5

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.
@@ -1 +1 @@
1
- .gbot-dialog-modal .session-refer{padding:12px 0;border-top:1px solid #e8e9eb}.gbot-dialog-modal .session-refer .session-refer-header{color:#070c14;margin-bottom:12px;height:18px;display:flex;align-items:center}.gbot-dialog-modal .session-refer .session-refer-header .refer-header-title{font-style:normal;font-weight:400;line-height:150%}.gbot-dialog-modal .session-refer .session-refer-content .refer-markdown p{color:#84868c;line-height:150%}.gbot-dialog-modal .session-refer .gbot-collapse-header{padding:4px 0!important}.gbot-dialog-modal .session-refer .gbot-collapse-content-box{padding:4px 10px 4px 24px!important}
1
+ .gbot-dialog-modal .agent-chat{width:100%;height:100%;display:flex;flex-direction:column;max-width:824px;margin:0 auto;overflow:hidden}.gbot-dialog-modal .agent-chat .chat-main{flex:1;padding:16px;overflow:hidden;width:100%;transition:all 1s;position:relative}.gbot-dialog-modal .agent-chat .chat-main .chat-main-wrapper{width:100%;height:100%;overflow-y:auto;overflow-x:hidden}.gbot-dialog-modal .agent-chat .chat-main .session-stop{display:flex;align-items:center;justify-content:center;position:absolute;left:0;right:0;bottom:4px}.gbot-dialog-modal .agent-chat .chat-main .back-bottom{transition:all 3.3s;position:absolute;background:white;box-shadow:0 0 5px #ddd;font-size:0;border-radius:50%;width:26px;height:26px;right:4px;bottom:0;display:flex;justify-content:center;align-content:center}.gbot-dialog-modal .agent-chat .chat-main .main-empty{width:100%;height:100%;overflow-y:auto}.gbot-dialog-modal .agent-chat .chat-footer{position:relative;flex:0;padding:0 16px 8px;display:flex}.gbot-dialog-modal .agent-chat .chat-footer .camera-out-btn:hover,.gbot-dialog-modal .agent-chat .chat-footer .camera-out-btn:active,.gbot-dialog-modal .agent-chat .chat-footer .camera-out-btn.active{color:#9c24f2}.gbot-dialog-modal .agent-chat .chat-footer .chat-footer-input{flex:1;position:relative;width:100%}.gbot-dialog-modal .agent-chat .chat-footer .chat-footer-input .gbot-upload.gbot-upload-select-picture-card{width:20px;height:20px;border:none;margin:0}.gbot-dialog-modal .agent-chat .chat-footer .chat-footer-input .upload-wrapper{height:20px;width:20px;font-size:16px;border:1px solid #9c24f2;color:#9c24f2;border-radius:2px;display:flex;justify-content:center;align-items:center;cursor:pointer}.gbot-dialog-modal .agent-chat .chat-footer .chat-footer-input .upload-wrapper.upload-wrapper__disabled{border:1px solid #b8babf;color:#b8babf;cursor:not-allowed}.gbot-dialog-modal .agent-chat .chat-footer .chat-footer-input .input-files{margin-bottom:8px}.gbot-dialog-modal .agent-chat .chat-footer .footer-upload-action{width:100%;height:28px;display:flex;justify-content:space-between;align-items:center}.gbot-dialog-modal .agent-chat .chat-footer .footer-upload-action .footer-upload-picture{display:inline-block;width:20px}.gbot-dialog-modal .agent-chat .chat-footer .footer-upload-action .add-btn{width:70px;height:24px;padding:0;font-size:12px;border-radius:10px 10px 10px 2px}.gbot-dialog-modal .agent-chat .chat-footer .footer-upload-action .add-btn:disabled,.gbot-dialog-modal .agent-chat .chat-footer .footer-upload-action .add-btn:disabled:hover{background:#b8babf;color:#fff}.gbot-dialog-modal .agent-chat .chat-footer .footer-upload-action .session-history-drawer-component .history-overlay-action:hover{color:#9c24f2}.gbot-dialog-modal .agent-chat .chat-footer .footer-upload-action .session-history-overlay .gbot-popover-inner-content{padding:8px 10px}.gbot-dialog-modal .agent-chat .session-loading{width:100%;height:100%;display:flex;justify-content:center;align-items:center}
@@ -1 +1 @@
1
- .gbot-dialog-modal .knowledge-select{width:204px;height:28px;border-radius:10px;border:1px solid}.gbot-dialog-modal .knowledge-select .select-popover{cursor:pointer;width:100%;height:100%;padding:0 8px;display:flex;align-items:center;justify-content:space-between;font-size:14px;font-weight:400}.gbot-dialog-modal .knowledge-select .select-popover .select-icon{color:#84868c}.gbot-dialog-modal .knowledge-select .select-popover .title{line-height:22px;color:#84868c}.gbot-dialog-modal .knowledge-select .select-popover .content{padding:2px 8px;border-radius:4px;background:#f7f7f9;line-height:18px;color:#84868c}.gbot-dialog-modal .knowledge-select .gbot-popover-placement-bottomRight{padding-top:5px!important}.gbot-dialog-modal .knowledge-select .gbot-popover-placement-bottomRight .gbot-popover-arrow{display:none}.gbot-dialog-modal .knowledge-select .gbot-popover-placement-bottomRight .gbot-popover-inner .gbot-popover-inner-content{height:200px;overflow-y:auto;font-size:14px;font-weight:400;line-height:21px;color:#84868c}
1
+ .gbot-dialog-modal .bot-session-container{height:100%}.gbot-dialog-modal .bot-session-container .agent-sessions{height:100%;width:310px;display:flex;flex-direction:column;overflow:hidden;background:white}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-header{height:56px;padding:0 16px;border-right:1px solid #e8e9eb;border-bottom:1px solid #e8e9eb;display:flex;justify-content:space-between;align-items:center}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-header .session-header-title{color:#151b26;font-size:18px;font-weight:700;line-height:24px}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-main{flex:1;border-right:1px solid #e8e9eb;overflow-y:auto}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-main .session-header-btn-wrapper{position:sticky;top:0;z-index:2;background-color:#fff;width:100%;height:48px}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-main .session-header-btn-wrapper .session-header-btn{width:70px;height:24px;padding:0;font-size:12px;border-radius:10px 10px 10px 2px;margin:16px 0 0 16px}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-main .session-group .group-header{padding:16px;font-size:14px;font-weight:700;background-color:#fff;position:sticky;z-index:1}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-main .session-item{width:100%;padding:8px 0;cursor:pointer;margin-bottom:4px}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-main .session-item .session-item-wrapper{width:100%;height:100%;padding:0 16px;height:26px;border-left:3px solid #f9f2ff}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-main .session-item .session-item-wrapper .session-item-top{font-size:14px;font-weight:700;line-height:22px;height:22px;width:100%;margin-bottom:4px;display:flex;justify-content:space-between}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-main .session-item .session-item-wrapper .session-item-top .item-top-title{max-width:calc(100% - 100px);margin-right:4px;color:#5c5f66}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-main .session-item .session-item-wrapper .session-item-top .item-top-time{display:flex;width:100px;color:#84868c;font-size:12px;line-height:22px;justify-content:flex-end}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-main .session-item .session-item-wrapper .session-item-top .item-top-action{display:none;font-size:12px;align-items:center}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-main .session-item .session-item-wrapper .session-item-top .item-top-action .icon-action{color:#9c24f2}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-main .session-item .session-item-wrapper .session-item-top .item-top-action .icon-action:hover{color:#b452ff}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-main .session-item__active{border-radius:4px;background:#f9f2ff}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-main .session-item__active .session-item-wrapper{border-left:3px solid #9c24f2}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-main .session-item:hover{border-radius:4px;background:#f9f2ff}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-main .session-item:hover .session-item-top .item-top-action{display:flex}
@@ -1 +1 @@
1
- .gbot-dialog-modal .agent-chat{width:100%;height:100%;display:flex;flex-direction:column;max-width:824px;margin:0 auto;overflow:hidden}.gbot-dialog-modal .agent-chat .chat-main{flex:1;padding:16px;overflow:hidden;width:100%;transition:all 1s;position:relative}.gbot-dialog-modal .agent-chat .chat-main .chat-main-wrapper{width:100%;height:100%;overflow-y:auto;overflow-x:hidden}.gbot-dialog-modal .agent-chat .chat-main .session-stop{display:flex;align-items:center;justify-content:center;position:absolute;left:0;right:0;bottom:4px}.gbot-dialog-modal .agent-chat .chat-main .back-bottom{transition:all 3.3s;position:absolute;background:white;box-shadow:0 0 5px #ddd;font-size:0;border-radius:50%;width:26px;height:26px;right:4px;bottom:0;display:flex;justify-content:center;align-content:center}.gbot-dialog-modal .agent-chat .chat-main .main-empty{width:100%;height:100%;overflow-y:auto}.gbot-dialog-modal .agent-chat .chat-footer{position:relative;flex:0;padding:0 16px 8px;display:flex}.gbot-dialog-modal .agent-chat .chat-footer .camera-out-btn:hover,.gbot-dialog-modal .agent-chat .chat-footer .camera-out-btn:active,.gbot-dialog-modal .agent-chat .chat-footer .camera-out-btn.active{color:#9c24f2}.gbot-dialog-modal .agent-chat .chat-footer .chat-footer-input{flex:1;position:relative;width:100%}.gbot-dialog-modal .agent-chat .chat-footer .chat-footer-input .gbot-upload.gbot-upload-select-picture-card{width:20px;height:20px;border:none;margin:0}.gbot-dialog-modal .agent-chat .chat-footer .chat-footer-input .upload-wrapper{height:20px;width:20px;font-size:16px;border:1px solid #9c24f2;color:#9c24f2;border-radius:2px;display:flex;justify-content:center;align-items:center;cursor:pointer}.gbot-dialog-modal .agent-chat .chat-footer .chat-footer-input .upload-wrapper.upload-wrapper__disabled{border:1px solid #b8babf;color:#b8babf;cursor:not-allowed}.gbot-dialog-modal .agent-chat .chat-footer .chat-footer-input .input-files{margin-bottom:8px}.gbot-dialog-modal .agent-chat .chat-footer .footer-upload-action{width:100%;height:28px;display:flex;justify-content:space-between;align-items:center}.gbot-dialog-modal .agent-chat .chat-footer .footer-upload-action .footer-upload-picture{display:inline-block;width:20px}.gbot-dialog-modal .agent-chat .chat-footer .footer-upload-action .add-btn{width:70px;height:24px;padding:0;font-size:12px;border-radius:10px 10px 10px 2px}.gbot-dialog-modal .agent-chat .chat-footer .footer-upload-action .add-btn:disabled,.gbot-dialog-modal .agent-chat .chat-footer .footer-upload-action .add-btn:disabled:hover{background:#b8babf;color:#fff}.gbot-dialog-modal .agent-chat .chat-footer .footer-upload-action .session-history-drawer-component .history-overlay-action:hover{color:#9c24f2}.gbot-dialog-modal .agent-chat .chat-footer .footer-upload-action .session-history-overlay .gbot-popover-inner-content{padding:8px 10px}.gbot-dialog-modal .agent-chat .session-loading{width:100%;height:100%;display:flex;justify-content:center;align-items:center}
1
+ .gbot-dialog-modal .knowledge-select{width:204px;height:28px;border-radius:10px;border:1px solid}.gbot-dialog-modal .knowledge-select .select-popover{cursor:pointer;width:100%;height:100%;padding:0 8px;display:flex;align-items:center;justify-content:space-between;font-size:14px;font-weight:400}.gbot-dialog-modal .knowledge-select .select-popover .select-icon{color:#84868c}.gbot-dialog-modal .knowledge-select .select-popover .title{line-height:22px;color:#84868c}.gbot-dialog-modal .knowledge-select .select-popover .content{padding:2px 8px;border-radius:4px;background:#f7f7f9;line-height:18px;color:#84868c}.gbot-dialog-modal .knowledge-select .gbot-popover-placement-bottomRight{padding-top:5px!important}.gbot-dialog-modal .knowledge-select .gbot-popover-placement-bottomRight .gbot-popover-arrow{display:none}.gbot-dialog-modal .knowledge-select .gbot-popover-placement-bottomRight .gbot-popover-inner .gbot-popover-inner-content{height:200px;overflow-y:auto;font-size:14px;font-weight:400;line-height:21px;color:#84868c}
@@ -1,33 +1,41 @@
1
- import { KB as o, MB as c, GB as s } from "../constant.mjs";
2
- const m = (e) => {
1
+ import { KB as s, MB as a, GB as p } from "../constant.mjs";
2
+ const d = (e) => {
3
3
  if (e)
4
4
  return e.split(".").pop();
5
- }, d = (e) => {
6
- var t = e.match(/^.*\.(jpg|jpeg|png|bmp|JPG|JPEG|PNG|BMP)$/);
7
- return t ? t[1] : null;
8
- }, l = (e) => e < o ? e + " B" : e < c ? (e / o).toFixed(1) + " KB" : e < s ? (e / c).toFixed(1) + " MB" : (e / s).toFixed(1) + " GB", x = (e) => e == null ? void 0 : e.replace(/[\r\n]+/gm, ""), g = (e) => new Promise((t, r) => {
9
- const n = new FileReader();
10
- n.readAsDataURL(e), n.onload = () => t(n.result), n.onerror = (a) => r(a);
11
- }), p = (e) => JSON.parse(window.atob(e.split(".")[1])), w = (e) => {
12
- const t = p(e).exp;
13
- return (/* @__PURE__ */ new Date()).valueOf() / 1e3 >= t;
5
+ }, m = (e) => {
6
+ var n = e.match(/^.*\.(jpg|jpeg|png|bmp|JPG|JPEG|PNG|BMP)$/);
7
+ return n ? n[1] : null;
8
+ }, g = (e) => e < s ? e + " B" : e < a ? (e / s).toFixed(1) + " KB" : e < p ? (e / a).toFixed(1) + " MB" : (e / p).toFixed(1) + " GB", x = (e) => e == null ? void 0 : e.replace(/[\r\n]+/gm, ""), f = (e) => new Promise((n, r) => {
9
+ const t = new FileReader();
10
+ t.readAsDataURL(e), t.onload = () => n(t.result), t.onerror = (o) => r(o);
11
+ }), i = (e) => JSON.parse(window.atob(e.split(".")[1])), w = (e) => {
12
+ const n = i(e).exp;
13
+ return (/* @__PURE__ */ new Date()).valueOf() / 1e3 >= n;
14
14
  };
15
- var i = /* @__PURE__ */ ((e) => (e.NETWORK = "请你优先从网络中搜索", e.DOCUMENT = "请你优先从以上文件中搜索", e))(i || {});
16
- const B = 100, E = (e) => /^https?:\/\/.*?\..+$/.test(e), f = ["application/pdf", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/msword", "application/wps-office.docx"];
17
- function T(e) {
15
+ var u = /* @__PURE__ */ ((e) => (e.NETWORK = "请你优先从网络中搜索", e.DOCUMENT = "请你优先从以上文件中搜索", e))(u || {});
16
+ const B = 100, E = (e) => /^https?:\/\/.*?\..+$/.test(e), T = ["application/pdf", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/msword", "application/wps-office.docx"];
17
+ function F(e) {
18
18
  return e.replace(/([\\])/g, "\\$1");
19
19
  }
20
+ function N(e) {
21
+ return e.reduce((n, r) => {
22
+ var o, c;
23
+ const t = (c = (o = r.fileIds) == null ? void 0 : o.length) != null ? c : 0;
24
+ return n + (t > 0 ? t : 1);
25
+ }, 0);
26
+ }
20
27
  export {
21
28
  B as FILE_NAME_MAX_LENGTH,
22
- p as JWT,
23
- T as escapeSlash,
24
- f as fileTypes,
25
- l as formatFileSize,
26
- g as getBase64,
27
- m as getFileExtension,
28
- d as getImageExtension,
29
+ i as JWT,
30
+ N as calcKnowledgesLeafCount,
31
+ F as escapeSlash,
32
+ T as fileTypes,
33
+ g as formatFileSize,
34
+ f as getBase64,
35
+ d as getFileExtension,
36
+ m as getImageExtension,
29
37
  w as isExpired,
30
38
  E as isValidImageUrlWithAnyExtension,
31
39
  x as removeNewlines,
32
- i as shortCutEnum
40
+ u as shortCutEnum
33
41
  };