@yuku123/z-team-component 0.2.103 → 0.2.105

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.
Files changed (60) hide show
  1. package/dist/ChangeLogView-B0ML82u0.js +542 -0
  2. package/dist/ComponentDoc-C_289lsE.js +8035 -0
  3. package/dist/InvitationManagementPage-D2ezz4ZQ.js +495 -0
  4. package/dist/OnboardingPage-BXsJ-kcJ.js +393 -0
  5. package/dist/ScheduledTasks-Cn8BsDkN.js +12127 -0
  6. package/dist/SystemShell-gcfNlt2L.js +688 -0
  7. package/dist/_commonjsHelpers-B52_cu2H.js +26 -0
  8. package/dist/admin-logs-B6K1DwRL.js +198 -0
  9. package/dist/api-BdP8mK8v.js +101 -0
  10. package/dist/api-DxSgE7qw.js +20 -0
  11. package/dist/browser-jb_PFvU3.js +1538 -0
  12. package/dist/createWorkspaceWsHandler-DcNA1pfi.js +13142 -0
  13. package/dist/ctc-sso-DtJHC-2M.js +117 -0
  14. package/dist/echarts-B1OU1xr4.js +16 -0
  15. package/dist/history-BlrA1eaW.js +41 -0
  16. package/dist/index-54iTaRVW.js +316 -0
  17. package/dist/index-BCw3Oxp1.js +42049 -0
  18. package/dist/index-BDq0ofl2.js +348 -0
  19. package/dist/index-BN-o5nZM.js +8 -0
  20. package/dist/index-B_LJRFsK.js +339 -0
  21. package/dist/index-Bf1K9zpk.js +112 -0
  22. package/dist/index-BfMFQ6RD.js +169 -0
  23. package/dist/index-BohoJQPr.js +7631 -0
  24. package/dist/index-C-8n6xxK.js +93 -0
  25. package/dist/index-C815hPWS.js +430 -0
  26. package/dist/index-C8m8s-SU.js +479 -0
  27. package/dist/index-CXJXSmhB.js +2217 -0
  28. package/dist/index-CdugR2_4.js +5892 -0
  29. package/dist/index-CeCsncoT.js +913 -0
  30. package/dist/index-CgCB0-yK.js +1645 -0
  31. package/dist/index-Cjddvrij.js +2699 -0
  32. package/dist/index-D487Inba.js +315 -0
  33. package/dist/index-DK71mfJn.js +999 -0
  34. package/dist/index-DLHcoHS9.js +189 -0
  35. package/dist/index-DUiFk01c.js +178 -0
  36. package/dist/index-DWsfQMp8.js +208 -0
  37. package/dist/index-DgN13A-E.js +10169 -0
  38. package/dist/index-DhDdFRHC.js +279 -0
  39. package/dist/index-DpLamT1r.js +574 -0
  40. package/dist/index-Dpii3P5J.js +1302 -0
  41. package/dist/index-DszzQwsc.js +956 -0
  42. package/dist/index-HJ3Kt-NT.js +358 -0
  43. package/dist/index-Nj-dlFKY.js +242 -0
  44. package/dist/index-ZuYJoo9E.js +118 -0
  45. package/dist/index-etyS3HY2.js +142 -0
  46. package/dist/index-jIh52A4c.js +132 -0
  47. package/dist/index.js +10 -0
  48. package/dist/index.module-CAa-2T7m.js +72 -0
  49. package/dist/index.module-UI0iz8K0.js +42 -0
  50. package/dist/instance-p-ezisoS.js +216 -0
  51. package/dist/menuPermission-u3Gd_c8S.js +60 -0
  52. package/dist/mobile-client-O3yr9h6t.js +24 -0
  53. package/dist/pages.js +21 -0
  54. package/dist/send-default-agent-team-message-BhIV6T6O.js +35 -0
  55. package/dist/spark-md5-Dld54a-T.js +178 -0
  56. package/dist/sso-user-Ib1jhF7t.js +43 -0
  57. package/dist/training-D3Uy5K_M.js +450 -0
  58. package/dist/webide-BGQnArzY.js +5233 -0
  59. package/dist/z-team-component.css +1 -0
  60. package/package.json +1 -1
@@ -0,0 +1,26 @@
1
+ function n(e) {
2
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
3
+ }
4
+ function c(e) {
5
+ if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
6
+ var o = e.default;
7
+ if (typeof o == "function") {
8
+ var t = function r() {
9
+ return this instanceof r ? Reflect.construct(o, arguments, this.constructor) : o.apply(this, arguments);
10
+ };
11
+ t.prototype = o.prototype;
12
+ } else t = {};
13
+ return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(r) {
14
+ var u = Object.getOwnPropertyDescriptor(e, r);
15
+ Object.defineProperty(t, r, u.get ? u : {
16
+ enumerable: !0,
17
+ get: function() {
18
+ return e[r];
19
+ }
20
+ });
21
+ }), t;
22
+ }
23
+ export {
24
+ c as a,
25
+ n as g
26
+ };
@@ -0,0 +1,198 @@
1
+ import { u as f, q as p, a, f as s, B as r, v as $, b as i } from "./ComponentDoc-C_289lsE.js";
2
+ async function m() {
3
+ f.getState().token && await p().catch(() => {
4
+ }), 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 });
5
+ }
6
+ async function y(t = "", e = !1) {
7
+ const n = new URLSearchParams();
8
+ t && n.set("token", t), e && n.set("allUsers", "true");
9
+ const o = n.toString() ? `?${n.toString()}` : "", c = await a(`${r}/personal-note/tree${o}`, s);
10
+ return $(c, "获取笔记文件树失败");
11
+ }
12
+ async function g(t, e = "") {
13
+ const n = e ? `?token=${encodeURIComponent(e)}` : "", o = await a(`${r}/personal-note${n}`, {
14
+ ...s,
15
+ method: "POST",
16
+ headers: { "Content-Type": "application/json" },
17
+ body: JSON.stringify(t)
18
+ });
19
+ return i(o, "新建笔记失败");
20
+ }
21
+ async function h(t, e = "") {
22
+ const n = e ? `?token=${encodeURIComponent(e)}` : "", o = await a(`${r}/personal-note/${t}${n}`, s);
23
+ return $(o, "获取笔记内容失败");
24
+ }
25
+ async function w(t, e, n = "") {
26
+ const o = n ? `?token=${encodeURIComponent(n)}` : "", c = await a(`${r}/personal-note/${t}${o}`, {
27
+ ...s,
28
+ method: "PUT",
29
+ headers: { "Content-Type": "application/json" },
30
+ body: JSON.stringify(e)
31
+ });
32
+ return i(c, "保存笔记失败");
33
+ }
34
+ async function S(t, e, n = "") {
35
+ const o = n ? `?token=${encodeURIComponent(n)}` : "", c = await a(`${r}/personal-note/${t}/rename${o}`, {
36
+ ...s,
37
+ method: "PUT",
38
+ headers: { "Content-Type": "application/json" },
39
+ body: JSON.stringify({ title: e })
40
+ });
41
+ return i(c, "重命名失败");
42
+ }
43
+ async function v(t, e, n = "") {
44
+ const o = n ? `?token=${encodeURIComponent(n)}` : "", c = await a(`${r}/personal-note/${t}/move${o}`, {
45
+ ...s,
46
+ method: "PUT",
47
+ headers: { "Content-Type": "application/json" },
48
+ body: JSON.stringify(e)
49
+ });
50
+ return i(c, "移动节点失败");
51
+ }
52
+ async function C(t, e = "") {
53
+ const n = e ? `?token=${encodeURIComponent(e)}` : "", o = await a(`${r}/personal-note/${t}${n}`, {
54
+ ...s,
55
+ method: "DELETE"
56
+ });
57
+ return i(o, "删除笔记失败");
58
+ }
59
+ async function T(t, e, n, o = "") {
60
+ const c = new URLSearchParams();
61
+ c.set("bindKey", t), c.set("defaultTitle", e), c.set("extraInfo", n), o && c.set("token", o);
62
+ const l = await a(
63
+ `${r}/personal-note/bound?${c.toString()}`,
64
+ s
65
+ );
66
+ return $(l, "获取绑定笔记失败");
67
+ }
68
+ async function I(t, e = "") {
69
+ const n = e ? `?token=${encodeURIComponent(e)}` : "", o = await a(`${r}/personal-note/${t}/share${n}`, {
70
+ ...s,
71
+ method: "POST"
72
+ });
73
+ return i(o, "生成分享链接失败");
74
+ }
75
+ async function U(t = "") {
76
+ const e = t ? `?token=${encodeURIComponent(t)}` : "", n = await a(
77
+ `${r}/personal-note/favorites${e}`,
78
+ s
79
+ );
80
+ return $(n, "获取收藏列表失败");
81
+ }
82
+ async function N(t, e = "") {
83
+ const n = e ? `?token=${encodeURIComponent(e)}` : "", o = await a(`${r}/personal-note/${t}/favorite${n}`, {
84
+ ...s,
85
+ method: "POST"
86
+ });
87
+ return i(o, "收藏笔记失败");
88
+ }
89
+ async function O(t, e = "") {
90
+ const n = e ? `?token=${encodeURIComponent(e)}` : "", o = await a(`${r}/personal-note/${t}/favorite${n}`, {
91
+ ...s,
92
+ method: "DELETE"
93
+ });
94
+ return i(o, "取消收藏失败");
95
+ }
96
+ async function b(t, e = 50) {
97
+ const n = await a(
98
+ `${r}/scenario-instances/${t}/observer-dispatch-logs?limit=${e}`,
99
+ { ...s }
100
+ );
101
+ return i(n, "查询派发日志失败");
102
+ }
103
+ async function R(t, e) {
104
+ const n = await a(
105
+ `${r}/scenario-instances/${t}/observer-dispatch-logs/${e}`,
106
+ { ...s }
107
+ );
108
+ return i(n, "查询派发日志详情失败");
109
+ }
110
+ async function q(t) {
111
+ const e = await a(
112
+ `${r}/scenario-instances/${t}/observer/trigger`,
113
+ { ...s, method: "POST" }
114
+ );
115
+ return i(e, "触发观察失败");
116
+ }
117
+ function u(t) {
118
+ const e = new URLSearchParams();
119
+ Object.entries(t).forEach(([o, c]) => {
120
+ if (!(c == null || c === "")) {
121
+ if (Array.isArray(c)) {
122
+ c.forEach((l) => {
123
+ l != null && l !== "" && e.append(o, String(l));
124
+ });
125
+ return;
126
+ }
127
+ e.append(o, String(c));
128
+ }
129
+ });
130
+ const n = e.toString();
131
+ return n ? `?${n}` : "";
132
+ }
133
+ async function E(t) {
134
+ const e = await a(
135
+ `${r}/admin/tool-call-logs${u(t)}`,
136
+ s
137
+ );
138
+ return i(e, "查询工具调用日志失败");
139
+ }
140
+ async function L(t, e = "") {
141
+ const n = await a(
142
+ `${r}/admin/tool-call-logs/${t}${u({ token: e })}`,
143
+ s
144
+ );
145
+ return i(n, "查询工具调用日志详情失败");
146
+ }
147
+ async function P(t = "") {
148
+ const e = await a(
149
+ `${r}/admin/tool-call-logs/tool-types${u({ token: t })}`,
150
+ s
151
+ );
152
+ return i(e, "查询工具类型失败");
153
+ }
154
+ async function k(t = "") {
155
+ const e = await a(
156
+ `${r}/admin/tool-call-logs/agents/names${u({ token: t })}`,
157
+ s
158
+ );
159
+ return i(e, "查询 Agent 名称失败");
160
+ }
161
+ async function j(t) {
162
+ const e = await a(
163
+ `${r}/admin/tool-call-logs/stats${u(t)}`,
164
+ s
165
+ );
166
+ return i(e, "查询工具调用统计失败");
167
+ }
168
+ async function A(t) {
169
+ const e = await a(
170
+ `${r}/admin/tool-call-logs/overview${u(t)}`,
171
+ s
172
+ );
173
+ return i(e, "查询工具调用概览统计失败");
174
+ }
175
+ export {
176
+ U as a,
177
+ h as b,
178
+ g as c,
179
+ C as d,
180
+ I as e,
181
+ y as f,
182
+ O as g,
183
+ N as h,
184
+ T as i,
185
+ b as j,
186
+ R as k,
187
+ P as l,
188
+ v as m,
189
+ k as n,
190
+ E as o,
191
+ L as p,
192
+ A as q,
193
+ S as r,
194
+ m as s,
195
+ q as t,
196
+ w as u,
197
+ j as v
198
+ };
@@ -0,0 +1,101 @@
1
+ import { T as p, c as r } from "./ComponentDoc-C_289lsE.js";
2
+ async function c(t, n) {
3
+ const s = await t.text().catch(() => "");
4
+ let e = {};
5
+ if (s)
6
+ try {
7
+ e = JSON.parse(s);
8
+ } catch {
9
+ if (!t.ok) throw new Error(n);
10
+ return s;
11
+ }
12
+ if (typeof e.success == "boolean") {
13
+ if (e.success)
14
+ return r(e.data !== void 0 ? e.data : !0);
15
+ throw new Error(e.message || n);
16
+ }
17
+ if (!t.ok) throw new Error(n);
18
+ return r(e);
19
+ }
20
+ const o = p;
21
+ async function d(t, n, s) {
22
+ const e = n ? `?token=${encodeURIComponent(n)}` : "", a = {
23
+ ...t,
24
+ extend_params: {
25
+ skip_init_task: "true",
26
+ ...s ?? {}
27
+ }
28
+ }, i = await fetch(`${o}/scenario-instances${e}`, {
29
+ method: "POST",
30
+ credentials: "include",
31
+ headers: {
32
+ Accept: "application/json",
33
+ "Content-Type": "application/json",
34
+ "project-env": "local"
35
+ },
36
+ body: JSON.stringify(a)
37
+ });
38
+ return c(i, "Failed to create scenario instance");
39
+ }
40
+ async function u(t) {
41
+ const n = t ? `?token=${encodeURIComponent(t)}` : "", s = await fetch(`${o}/scenario-instances${n}`, {
42
+ credentials: "include",
43
+ headers: {
44
+ Accept: "application/json",
45
+ "project-env": "local"
46
+ }
47
+ });
48
+ return c(s, "Failed to list scenario instances");
49
+ }
50
+ async function m(t, n, s) {
51
+ const e = s ? `?token=${encodeURIComponent(s)}` : "", a = await fetch(
52
+ `${o}/scenario-instances/${t}/messages${e}`,
53
+ {
54
+ method: "POST",
55
+ credentials: "include",
56
+ headers: {
57
+ Accept: "application/json",
58
+ "Content-Type": "application/json",
59
+ "project-env": "local"
60
+ },
61
+ body: JSON.stringify(n)
62
+ }
63
+ );
64
+ return c(a, "Failed to send message");
65
+ }
66
+ async function f(t, n = 50, s, e) {
67
+ const a = new URLSearchParams({ limit: String(n) });
68
+ e && a.set("token", e);
69
+ const i = await fetch(
70
+ `${o}/scenario-instances/${t}/messages?${a}`,
71
+ {
72
+ credentials: "include",
73
+ headers: {
74
+ Accept: "application/json",
75
+ "project-env": "local"
76
+ }
77
+ }
78
+ );
79
+ return c(i, "Failed to list messages");
80
+ }
81
+ async function h(t, n) {
82
+ const s = n ? `?token=${encodeURIComponent(n)}` : "", e = await fetch(
83
+ // 后端成员列表在 /team(TeamController),没有 /members
84
+ `${o}/scenario-instances/${t}/team${s}`,
85
+ {
86
+ credentials: "include",
87
+ headers: {
88
+ Accept: "application/json",
89
+ "project-env": "local"
90
+ }
91
+ }
92
+ );
93
+ return c(e, "Failed to list members");
94
+ }
95
+ export {
96
+ f as a,
97
+ h as b,
98
+ d as c,
99
+ u as l,
100
+ m as p
101
+ };
@@ -0,0 +1,20 @@
1
+ import "@yuku123/z-frontend-common";
2
+ import { d as a } from "./ComponentDoc-C_289lsE.js";
3
+ import "react/jsx-runtime";
4
+ import "react";
5
+ import "antd";
6
+ import "@ant-design/icons";
7
+ import "@yuku123/z-frontend-common/ui";
8
+ const p = () => a.get("/ctc/authn/my-tenants"), v = (t, s) => a.post("/ctc/authn/select-tenant", { tenantCode: t, domainCode: "" }), l = (t) => a.post("/ctc/ac/invitations", t), d = (t) => a.post("/ctc/ac/invitations/accept", { token: t }), u = (t) => a.post("/ctc/ac/invitations/redeem", { code: t }), b = (t) => a.get("/ctc/ac/invitations", { params: { tenantCode: t } }), g = (t, s) => a.post(`/ctc/ac/invitations/${t}/revoke`, null, { params: { tenantCode: s } }), I = (t) => a.get("/ctc/ac/invitations/members", { params: { tenantCode: t } }), h = (t, s) => a.post(`/ctc/ac/invitations/members/${t}/remove`, null, { params: { tenantCode: s } }), C = (t) => a.post("/ctc/ac/invitations/leave", null, { params: { tenantCode: t } });
9
+ export {
10
+ d as a,
11
+ I as b,
12
+ C as c,
13
+ h as d,
14
+ g as e,
15
+ l as f,
16
+ p as g,
17
+ b as l,
18
+ u as r,
19
+ v as s
20
+ };