@yuku123/z-team-component 0.2.13 → 0.2.15
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/{InvitationManagementPage-dnAOh-1A.js → InvitationManagementPage-CS0se3FV.js} +2 -2
- package/dist/{OnboardingPage-BuvUHqS8.js → OnboardingPage-C0RVYZ3y.js} +2 -2
- package/dist/{ProjectApp-CAY_G6ac.js → ProjectApp-BoMBouBP.js} +3 -3
- package/dist/{admin-logs-RkPVW5zJ.js → admin-logs-B3p1jIeE.js} +80 -80
- package/dist/{api-mKVq2JFi.js → api-BkSWNAM_.js} +347 -377
- package/dist/{api-DcBK5kmz.js → api-xAzy_NLb.js} +1 -1
- package/dist/{createWorkspaceWsHandler-BpkDf0wr.js → createWorkspaceWsHandler-822Tptix.js} +4 -4
- package/dist/{index-DLJO1VX8.js → index-76RVTeAj.js} +3 -3
- package/dist/{index-BCL8Ew0Y.js → index-B0p7DzVF.js} +4 -4
- package/dist/{index-B6EP1c21.js → index-B3OgBWh8.js} +4 -4
- package/dist/{index-BXfYbdx8.js → index-BHcef-pw.js} +2 -2
- package/dist/{index-MOmt3iqG.js → index-BNHo3niK.js} +6 -6
- package/dist/{index-BAEdGW8_.js → index-B_N4L56c.js} +3 -3
- package/dist/{index-XeypVCYb.js → index-BgE0gZ6U.js} +3 -3
- package/dist/index-CZYYP8mq.js +13877 -0
- package/dist/{index-BpdbOlUi.js → index-CjTJjcy1.js} +9118 -9810
- package/dist/{index-D39xiMXA.js → index-CvXZQlEE.js} +1 -1
- package/dist/index-HHGMOGDL.js +51364 -0
- package/dist/index.js +1 -1
- package/dist/{instance-BNPgTp94.js → instance-7Mb0oDT8.js} +1 -1
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-JTSAqt7M.js → send-default-agent-team-message-BykzwG_j.js} +1 -1
- package/dist/{sso-user-BDYIn086.js → sso-user-CUVLEnLU.js} +1 -1
- package/dist/{useAppStore-CL9gD6JS.js → useAppStore-Ci1GOrxH.js} +1 -1
- package/dist/z-team-component.css +2 -2
- package/package.json +15 -3
- package/dist/index-7wc83ksn.js +0 -47296
- package/dist/index-DdtuikC1.js +0 -17024
|
@@ -2,8 +2,8 @@ import { jsxs as i, jsx as e, Fragment as A } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as o, useEffect as oe } from "react";
|
|
3
3
|
import { Form as m, message as r, Button as d, Input as B, Row as ae, Col as z, Card as v, Statistic as S, Alert as T, Space as p, Typography as se, Tabs as de, Popconfirm as F, Table as _, Tag as h, Tooltip as ce, Modal as he, Radio as O, Select as w, InputNumber as ue } from "antd";
|
|
4
4
|
import { PlusOutlined as me, ClockCircleOutlined as $, CheckCircleOutlined as j, LinkOutlined as U, CopyOutlined as x, QrcodeOutlined as M, UserDeleteOutlined as K, TeamOutlined as pe, MailOutlined as q, DeleteOutlined as ye, UserAddOutlined as N, CloseCircleOutlined as W } from "@ant-design/icons";
|
|
5
|
-
import { l as ge, b as fe, g as ve, c as we, d as xe, e as Ce, f as be } from "./api-
|
|
6
|
-
import { b as Ie, T as ke } from "./ProjectApp-
|
|
5
|
+
import { l as ge, b as fe, g as ve, c as we, d as xe, e as Ce, f as be } from "./api-xAzy_NLb.js";
|
|
6
|
+
import { b as Ie, T as ke } from "./ProjectApp-BoMBouBP.js";
|
|
7
7
|
const { Text: c } = se, De = () => {
|
|
8
8
|
const [C] = m.useForm(), [D, L] = o(!1), [y, G] = o([]), [R, H] = o([]), [J, Q] = o(null), [u, V] = o(""), [X, b] = o(!1), [Y, E] = o(!1), [a, P] = o(null), [l, Z] = o(localStorage.getItem("userInfo") && JSON.parse(localStorage.getItem("userInfo") || "{}").tenantCode || "");
|
|
9
9
|
oe(() => {
|
|
@@ -3,8 +3,8 @@ import { useState as a, useMemo as oe, useEffect as W } from "react";
|
|
|
3
3
|
import { useNavigate as le, useSearchParams as se } from "react-router-dom";
|
|
4
4
|
import { Form as c, message as o, Spin as ce, Typography as de, Card as d, Tag as x, Empty as me, Row as he, Col as fe, Space as S, Avatar as ge, Pagination as pe, Button as T, Result as ue, Modal as E, Input as k, Alert as U } from "antd";
|
|
5
5
|
import { RocketOutlined as q, ApartmentOutlined as ye, CheckCircleOutlined as Ce, PlusOutlined as z, KeyOutlined as m, GiftOutlined as ve, HomeOutlined as we, CrownOutlined as be } from "@ant-design/icons";
|
|
6
|
-
import { g as xe, a as Se, s as Te, r as ke } from "./api-
|
|
7
|
-
import { a as ze } from "./ProjectApp-
|
|
6
|
+
import { g as xe, a as Se, s as Te, r as ke } from "./api-xAzy_NLb.js";
|
|
7
|
+
import { a as ze } from "./ProjectApp-BoMBouBP.js";
|
|
8
8
|
const { Title: u, Text: O, Paragraph: Oe } = de, y = 12, Me = () => {
|
|
9
9
|
const L = le(), [H] = se(), [_, I] = a(!0), [i, $] = a(null), [l, G] = a([]), [A, F] = a(0), [h, B] = a(""), [C, K] = a(1), X = oe(() => {
|
|
10
10
|
const e = (C - 1) * y;
|
|
@@ -8,9 +8,9 @@ import ot from "axios";
|
|
|
8
8
|
const ne = (t) => {
|
|
9
9
|
const l = Lt(t);
|
|
10
10
|
return (r) => /* @__PURE__ */ e($t, { fallback: null, children: /* @__PURE__ */ e(l, { ...r }) });
|
|
11
|
-
}, Ie = ne(() => import("./index-
|
|
12
|
-
ne(() => import("./index-
|
|
13
|
-
const dn = ne(() => import("./index-CcFJEYgr.js")), un = ne(() => import("./index-BmK_rWsV.js")), hn = ne(() => import("./index-BkX0I2aB.js")), pn = ne(() => import("./index-
|
|
11
|
+
}, Ie = ne(() => import("./index-CjTJjcy1.js").then((t) => t.I)), ln = ne(() => import("./index-BNHo3niK.js")), an = ne(() => import("./index-B_N4L56c.js")), sn = ne(() => import("./index-B3OgBWh8.js")), on = ne(() => import("./index-B0p7DzVF.js")), cn = ne(() => import("./index-BHcef-pw.js"));
|
|
12
|
+
ne(() => import("./index-HHGMOGDL.js").then((t) => t.p));
|
|
13
|
+
const dn = ne(() => import("./index-CcFJEYgr.js")), un = ne(() => import("./index-BmK_rWsV.js")), hn = ne(() => import("./index-BkX0I2aB.js")), pn = ne(() => import("./index-CvXZQlEE.js")), mn = ne(() => import("./index-C1C2qyDr.js")), gn = ne(() => import("./index-76RVTeAj.js"));
|
|
14
14
|
function Tr({ forcedMode: t }) {
|
|
15
15
|
const { pathname: l } = Bt(), r = l.replace(/\/+$/, "") || "/";
|
|
16
16
|
return t === "system" ? /* @__PURE__ */ e(Ie, { forcedChatMode: "system" }) : t === "rpa" ? /* @__PURE__ */ e(Ie, { forcedChatMode: "rpa" }) : t === "dev" ? /* @__PURE__ */ e(Ie, { forcedChatMode: "dev" }) : r === "/workspace" ? /* @__PURE__ */ e(Ie, {}) : r === "/workspace/phone" ? /* @__PURE__ */ e(ln, {}) : r === "/workspace/from-ticket" ? /* @__PURE__ */ e(an, {}) : r === "/workspace/from-scenario" ? /* @__PURE__ */ e(sn, {}) : r === "/workspace/build-by-form" ? /* @__PURE__ */ e(on, {}) : r === "/scenario" ? /* @__PURE__ */ e(cn, {}) : r === "/admin" ? /* @__PURE__ */ e(Ie, {}) : r === "/welcome" ? /* @__PURE__ */ e(un, {}) : r === "/portal" ? /* @__PURE__ */ e(hn, {}) : r === "/chatdemo" ? /* @__PURE__ */ e(dn, {}) : r === "/embed/chat" || r.startsWith("/embed/chat/") ? /* @__PURE__ */ e(gn, {}) : r === "/change-log" ? /* @__PURE__ */ e(pn, {}) : r === "/docs" ? /* @__PURE__ */ e(mn, {}) : /* @__PURE__ */ e(Ie, {});
|
|
@@ -1,199 +1,199 @@
|
|
|
1
|
-
import { a, f as s, B as r, b as
|
|
2
|
-
import { u as
|
|
3
|
-
async function
|
|
1
|
+
import { a, f as s, B as r, r as $, b as i, v as p } from "./api-BkSWNAM_.js";
|
|
2
|
+
import { u as f } from "./useAppStore-Ci1GOrxH.js";
|
|
3
|
+
async function y(t = "", e = !1) {
|
|
4
4
|
const n = new URLSearchParams();
|
|
5
5
|
t && n.set("token", t), e && n.set("allUsers", "true");
|
|
6
|
-
const o = n.toString() ? `?${n.toString()}` : "",
|
|
7
|
-
return c
|
|
6
|
+
const o = n.toString() ? `?${n.toString()}` : "", c = await a(`${r}/personal-note/tree${o}`, s);
|
|
7
|
+
return $(c, "获取笔记文件树失败");
|
|
8
8
|
}
|
|
9
|
-
async function
|
|
9
|
+
async function g(t, e = "") {
|
|
10
10
|
const n = e ? `?token=${encodeURIComponent(e)}` : "", o = await a(`${r}/personal-note${n}`, {
|
|
11
11
|
...s,
|
|
12
12
|
method: "POST",
|
|
13
13
|
headers: { "Content-Type": "application/json" },
|
|
14
14
|
body: JSON.stringify(t)
|
|
15
15
|
});
|
|
16
|
-
return
|
|
16
|
+
return i(o, "新建笔记失败");
|
|
17
17
|
}
|
|
18
|
-
async function
|
|
18
|
+
async function h(t, e = "") {
|
|
19
19
|
const n = e ? `?token=${encodeURIComponent(e)}` : "", o = await a(`${r}/personal-note/${t}${n}`, s);
|
|
20
|
-
return
|
|
20
|
+
return $(o, "获取笔记内容失败");
|
|
21
21
|
}
|
|
22
|
-
async function
|
|
23
|
-
const o = n ? `?token=${encodeURIComponent(n)}` : "",
|
|
22
|
+
async function w(t, e, n = "") {
|
|
23
|
+
const o = n ? `?token=${encodeURIComponent(n)}` : "", c = await a(`${r}/personal-note/${t}${o}`, {
|
|
24
24
|
...s,
|
|
25
25
|
method: "PUT",
|
|
26
26
|
headers: { "Content-Type": "application/json" },
|
|
27
27
|
body: JSON.stringify(e)
|
|
28
28
|
});
|
|
29
|
-
return c
|
|
29
|
+
return i(c, "保存笔记失败");
|
|
30
30
|
}
|
|
31
|
-
async function
|
|
32
|
-
const o = n ? `?token=${encodeURIComponent(n)}` : "",
|
|
31
|
+
async function S(t, e, n = "") {
|
|
32
|
+
const o = n ? `?token=${encodeURIComponent(n)}` : "", c = await a(`${r}/personal-note/${t}/rename${o}`, {
|
|
33
33
|
...s,
|
|
34
34
|
method: "PUT",
|
|
35
35
|
headers: { "Content-Type": "application/json" },
|
|
36
36
|
body: JSON.stringify({ title: e })
|
|
37
37
|
});
|
|
38
|
-
return c
|
|
38
|
+
return i(c, "重命名失败");
|
|
39
39
|
}
|
|
40
|
-
async function
|
|
41
|
-
const o = n ? `?token=${encodeURIComponent(n)}` : "",
|
|
40
|
+
async function v(t, e, n = "") {
|
|
41
|
+
const o = n ? `?token=${encodeURIComponent(n)}` : "", c = await a(`${r}/personal-note/${t}/move${o}`, {
|
|
42
42
|
...s,
|
|
43
43
|
method: "PUT",
|
|
44
44
|
headers: { "Content-Type": "application/json" },
|
|
45
45
|
body: JSON.stringify(e)
|
|
46
46
|
});
|
|
47
|
-
return c
|
|
47
|
+
return i(c, "移动节点失败");
|
|
48
48
|
}
|
|
49
|
-
async function
|
|
49
|
+
async function C(t, e = "") {
|
|
50
50
|
const n = e ? `?token=${encodeURIComponent(e)}` : "", o = await a(`${r}/personal-note/${t}${n}`, {
|
|
51
51
|
...s,
|
|
52
52
|
method: "DELETE"
|
|
53
53
|
});
|
|
54
|
-
return
|
|
54
|
+
return i(o, "删除笔记失败");
|
|
55
55
|
}
|
|
56
|
-
async function
|
|
57
|
-
const
|
|
58
|
-
|
|
56
|
+
async function T(t, e, n, o = "") {
|
|
57
|
+
const c = new URLSearchParams();
|
|
58
|
+
c.set("bindKey", t), c.set("defaultTitle", e), c.set("extraInfo", n), o && c.set("token", o);
|
|
59
59
|
const l = await a(
|
|
60
|
-
`${r}/personal-note/bound?${
|
|
60
|
+
`${r}/personal-note/bound?${c.toString()}`,
|
|
61
61
|
s
|
|
62
62
|
);
|
|
63
|
-
return
|
|
63
|
+
return $(l, "获取绑定笔记失败");
|
|
64
64
|
}
|
|
65
|
-
async function
|
|
65
|
+
async function I(t, e = "") {
|
|
66
66
|
const n = e ? `?token=${encodeURIComponent(e)}` : "", o = await a(`${r}/personal-note/${t}/share${n}`, {
|
|
67
67
|
...s,
|
|
68
68
|
method: "POST"
|
|
69
69
|
});
|
|
70
|
-
return
|
|
70
|
+
return i(o, "生成分享链接失败");
|
|
71
71
|
}
|
|
72
|
-
async function
|
|
72
|
+
async function U(t = "") {
|
|
73
73
|
const e = t ? `?token=${encodeURIComponent(t)}` : "", n = await a(
|
|
74
74
|
`${r}/personal-note/favorites${e}`,
|
|
75
75
|
s
|
|
76
76
|
);
|
|
77
|
-
return
|
|
77
|
+
return $(n, "获取收藏列表失败");
|
|
78
78
|
}
|
|
79
|
-
async function
|
|
79
|
+
async function N(t, e = "") {
|
|
80
80
|
const n = e ? `?token=${encodeURIComponent(e)}` : "", o = await a(`${r}/personal-note/${t}/favorite${n}`, {
|
|
81
81
|
...s,
|
|
82
82
|
method: "POST"
|
|
83
83
|
});
|
|
84
|
-
return
|
|
84
|
+
return i(o, "收藏笔记失败");
|
|
85
85
|
}
|
|
86
|
-
async function
|
|
86
|
+
async function O(t, e = "") {
|
|
87
87
|
const n = e ? `?token=${encodeURIComponent(e)}` : "", o = await a(`${r}/personal-note/${t}/favorite${n}`, {
|
|
88
88
|
...s,
|
|
89
89
|
method: "DELETE"
|
|
90
90
|
});
|
|
91
|
-
return
|
|
91
|
+
return i(o, "取消收藏失败");
|
|
92
92
|
}
|
|
93
|
-
async function
|
|
94
|
-
|
|
95
|
-
}), localStorage.removeItem("token"), localStorage.removeItem("z_team_token"), localStorage.removeItem("userInfo"), localStorage.removeItem("USER_INFO"), localStorage.removeItem("z_ctc_token"), localStorage.removeItem("ctcUrl"), window.USER_INFO = void 0,
|
|
93
|
+
async function b() {
|
|
94
|
+
f.getState().token && await p().catch(() => {
|
|
95
|
+
}), localStorage.removeItem("token"), localStorage.removeItem("z_team_token"), localStorage.removeItem("userInfo"), localStorage.removeItem("USER_INFO"), localStorage.removeItem("z_ctc_token"), localStorage.removeItem("ctcUrl"), window.USER_INFO = void 0, f.setState({ currentUser: null, token: "", currentProject: void 0 });
|
|
96
96
|
}
|
|
97
|
-
async function
|
|
97
|
+
async function R(t, e = 50) {
|
|
98
98
|
const n = await a(
|
|
99
99
|
`${r}/scenario-instances/${t}/observer-dispatch-logs?limit=${e}`,
|
|
100
100
|
{ ...s }
|
|
101
101
|
);
|
|
102
|
-
return
|
|
102
|
+
return i(n, "查询派发日志失败");
|
|
103
103
|
}
|
|
104
|
-
async function
|
|
104
|
+
async function q(t, e) {
|
|
105
105
|
const n = await a(
|
|
106
106
|
`${r}/scenario-instances/${t}/observer-dispatch-logs/${e}`,
|
|
107
107
|
{ ...s }
|
|
108
108
|
);
|
|
109
|
-
return
|
|
109
|
+
return i(n, "查询派发日志详情失败");
|
|
110
110
|
}
|
|
111
|
-
async function
|
|
111
|
+
async function E(t) {
|
|
112
112
|
const e = await a(
|
|
113
113
|
`${r}/scenario-instances/${t}/observer/trigger`,
|
|
114
114
|
{ ...s, method: "POST" }
|
|
115
115
|
);
|
|
116
|
-
return
|
|
116
|
+
return i(e, "触发观察失败");
|
|
117
117
|
}
|
|
118
118
|
function u(t) {
|
|
119
119
|
const e = new URLSearchParams();
|
|
120
|
-
Object.entries(t).forEach(([o,
|
|
121
|
-
if (!(
|
|
122
|
-
if (Array.isArray(
|
|
123
|
-
|
|
120
|
+
Object.entries(t).forEach(([o, c]) => {
|
|
121
|
+
if (!(c == null || c === "")) {
|
|
122
|
+
if (Array.isArray(c)) {
|
|
123
|
+
c.forEach((l) => {
|
|
124
124
|
l != null && l !== "" && e.append(o, String(l));
|
|
125
125
|
});
|
|
126
126
|
return;
|
|
127
127
|
}
|
|
128
|
-
e.append(o, String(
|
|
128
|
+
e.append(o, String(c));
|
|
129
129
|
}
|
|
130
130
|
});
|
|
131
131
|
const n = e.toString();
|
|
132
132
|
return n ? `?${n}` : "";
|
|
133
133
|
}
|
|
134
|
-
async function
|
|
134
|
+
async function L(t) {
|
|
135
135
|
const e = await a(
|
|
136
136
|
`${r}/admin/tool-call-logs${u(t)}`,
|
|
137
137
|
s
|
|
138
138
|
);
|
|
139
|
-
return
|
|
139
|
+
return i(e, "查询工具调用日志失败");
|
|
140
140
|
}
|
|
141
|
-
async function
|
|
141
|
+
async function P(t, e = "") {
|
|
142
142
|
const n = await a(
|
|
143
143
|
`${r}/admin/tool-call-logs/${t}${u({ token: e })}`,
|
|
144
144
|
s
|
|
145
145
|
);
|
|
146
|
-
return
|
|
146
|
+
return i(n, "查询工具调用日志详情失败");
|
|
147
147
|
}
|
|
148
|
-
async function
|
|
148
|
+
async function k(t = "") {
|
|
149
149
|
const e = await a(
|
|
150
150
|
`${r}/admin/tool-call-logs/tool-types${u({ token: t })}`,
|
|
151
151
|
s
|
|
152
152
|
);
|
|
153
|
-
return
|
|
153
|
+
return i(e, "查询工具类型失败");
|
|
154
154
|
}
|
|
155
|
-
async function
|
|
155
|
+
async function j(t = "") {
|
|
156
156
|
const e = await a(
|
|
157
157
|
`${r}/admin/tool-call-logs/agents/names${u({ token: t })}`,
|
|
158
158
|
s
|
|
159
159
|
);
|
|
160
|
-
return
|
|
160
|
+
return i(e, "查询 Agent 名称失败");
|
|
161
161
|
}
|
|
162
|
-
async function
|
|
162
|
+
async function A(t) {
|
|
163
163
|
const e = await a(
|
|
164
164
|
`${r}/admin/tool-call-logs/stats${u(t)}`,
|
|
165
165
|
s
|
|
166
166
|
);
|
|
167
|
-
return
|
|
167
|
+
return i(e, "查询工具调用统计失败");
|
|
168
168
|
}
|
|
169
|
-
async function
|
|
169
|
+
async function D(t) {
|
|
170
170
|
const e = await a(
|
|
171
171
|
`${r}/admin/tool-call-logs/overview${u(t)}`,
|
|
172
172
|
s
|
|
173
173
|
);
|
|
174
|
-
return
|
|
174
|
+
return i(e, "查询工具调用概览统计失败");
|
|
175
175
|
}
|
|
176
176
|
export {
|
|
177
177
|
I as a,
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
178
|
+
R as b,
|
|
179
|
+
q as c,
|
|
180
|
+
h as d,
|
|
181
|
+
U as e,
|
|
182
|
+
T as f,
|
|
183
|
+
O as g,
|
|
184
|
+
N as h,
|
|
185
|
+
y as i,
|
|
186
|
+
g as j,
|
|
187
|
+
C as k,
|
|
188
|
+
k as l,
|
|
189
|
+
v as m,
|
|
190
|
+
j as n,
|
|
191
|
+
L as o,
|
|
192
|
+
P as p,
|
|
193
|
+
D as q,
|
|
194
|
+
S as r,
|
|
195
|
+
b as s,
|
|
196
|
+
E as t,
|
|
197
|
+
w as u,
|
|
198
|
+
A as v
|
|
199
199
|
};
|