@yuku123/z-team-component 0.2.90 → 0.2.92

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 (54) hide show
  1. package/dist/{ChangeLogView-DagOxr6O.js → ChangeLogView-DMVBdFFX.js} +12 -12
  2. package/dist/ComponentDoc-Boc9n2c_.js +8035 -0
  3. package/dist/{InvitationManagementPage-BWeW0h7p.js → InvitationManagementPage-B4UJQBrv.js} +1 -1
  4. package/dist/{OnboardingPage-tW2xXPui.js → OnboardingPage-BuDvSKMx.js} +2 -2
  5. package/dist/ScheduledTasks-DY4iYtX3.js +10851 -0
  6. package/dist/{SystemShell-CSiNt2JL.js → SystemShell-UVZjsfJs.js} +11 -12
  7. package/dist/admin-logs-OIyOdfuC.js +198 -0
  8. package/dist/{api-WqoLUPy-.js → api-mJ7FvgsR.js} +1 -1
  9. package/dist/createWorkspaceWsHandler-9k7O4P-D.js +13135 -0
  10. package/dist/{index-B5dDwxhs.js → index-BMt6Z1yA.js} +1 -1
  11. package/dist/{index-7iEmueKf.js → index-Bi6mbk7-.js} +6 -7
  12. package/dist/{index-B8mikT45.js → index-BxRNZbw5.js} +3 -3
  13. package/dist/{index-DcHrkop2.js → index-C2LwqjZQ.js} +23 -24
  14. package/dist/{index-DKWvNjHa.js → index-COLSSd6V.js} +2 -2
  15. package/dist/{index-pScDd5cp.js → index-CYe2nfiG.js} +90 -91
  16. package/dist/{index-DyFaoD5W.js → index-CeYCMcgX.js} +11 -12
  17. package/dist/index-Ckpc_Z6-.js +3495 -0
  18. package/dist/{index-BMQ6XkO3.js → index-CpA8ev3a.js} +1 -1
  19. package/dist/{index-VGtET31b.js → index-CpwvgQ3b.js} +1 -1
  20. package/dist/{index-DS4IgliO.js → index-CsHpsX_P.js} +2 -2
  21. package/dist/{index-v3WaXkDJ.js → index-CwNtNKwX.js} +8 -9
  22. package/dist/index-D1odHNMR.js +316 -0
  23. package/dist/{index-Pt4RiXWL.js → index-D74FCwtx.js} +3629 -3473
  24. package/dist/{index-NCoTXpQ0.js → index-D83QI-17.js} +4 -4
  25. package/dist/{index-DBEdsfjb.js → index-DeHC7MtX.js} +5 -6
  26. package/dist/{index-B51WSpDM.js → index-FAhDAnIy.js} +1257 -1258
  27. package/dist/{index-ji8TPz9K.js → index-GHQ4Tl6H.js} +10 -11
  28. package/dist/{index-iCpFhLce.js → index-Gk-5X-GO.js} +1 -1
  29. package/dist/{index-BxBGVGKQ.js → index-Hm6ZaRmP.js} +10 -11
  30. package/dist/{index-s_ikMJ2V.js → index-TW4txhve.js} +1 -1
  31. package/dist/{index-Ds6Ac0UE.js → index-kwnNAAM0.js} +19 -18
  32. package/dist/{index-BIbkA-jX.js → index-r4IxoITP.js} +23 -23
  33. package/dist/{index-CGSWoJJv.js → index-s5yeUpMA.js} +19 -19
  34. package/dist/{index-MYohlrH6.js → index-zEqjsTFh.js} +5 -6
  35. package/dist/index.js +1 -1
  36. package/dist/{instance-CI6-4BZ6.js → instance-BpY3BXci.js} +1 -1
  37. package/dist/{menuPermission-BqZsG_Fz.js → menuPermission-DX8KlB6K.js} +11 -11
  38. package/dist/pages.js +8 -8
  39. package/dist/{send-default-agent-team-message-c5oKdQQA.js → send-default-agent-team-message-DVFuAdE9.js} +1 -1
  40. package/dist/{sso-user-DToM5dPy.js → sso-user-BBkFFo35.js} +1 -1
  41. package/dist/{training-B38tnwLL.js → training-BCi9cA6O.js} +1 -1
  42. package/dist/webide-MQ5gD1Go.js +5233 -0
  43. package/dist/z-team-component.css +1 -26
  44. package/package.json +3 -2
  45. package/dist/ComponentDoc-DgjWNYvc.js +0 -3998
  46. package/dist/ScheduledTasks-2X5KfwFi.js +0 -10717
  47. package/dist/api-BftpestH.js +0 -2156
  48. package/dist/createWorkspaceWsHandler-rKc7vc8k.js +0 -13030
  49. package/dist/index-CUVdeb8y.js +0 -638
  50. package/dist/index-ClRT3ECx.js +0 -3488
  51. package/dist/personal-D-eMMf0_.js +0 -294
  52. package/dist/schedule-ChO2xIGd.js +0 -625
  53. package/dist/useAppStore-BFO_h1L2.js +0 -1920
  54. package/dist/webide-DTZ46LPR.js +0 -8399
@@ -1,294 +0,0 @@
1
- import { m as p, a, f as r, B as c, n as $, u as i } from "./api-BftpestH.js";
2
- import { u as d } from "./useAppStore-BFO_h1L2.js";
3
- async function m() {
4
- d.getState().token && await p().catch(() => {
5
- }), 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, d.setState({ currentUser: null, token: "", currentProject: void 0 });
6
- }
7
- async function g(e = "", t = !1) {
8
- const n = new URLSearchParams();
9
- e && n.set("token", e), t && n.set("allUsers", "true");
10
- const o = n.toString() ? `?${n.toString()}` : "", s = await a(`${c}/personal-note/tree${o}`, r);
11
- return $(s, "获取笔记文件树失败");
12
- }
13
- async function h(e, t = "") {
14
- const n = t ? `?token=${encodeURIComponent(t)}` : "", o = await a(`${c}/personal-note${n}`, {
15
- ...r,
16
- method: "POST",
17
- headers: { "Content-Type": "application/json" },
18
- body: JSON.stringify(e)
19
- });
20
- return i(o, "新建笔记失败");
21
- }
22
- async function S(e, t = "") {
23
- const n = t ? `?token=${encodeURIComponent(t)}` : "", o = await a(`${c}/personal-note/${e}${n}`, r);
24
- return $(o, "获取笔记内容失败");
25
- }
26
- async function w(e, t, n = "") {
27
- const o = n ? `?token=${encodeURIComponent(n)}` : "", s = await a(`${c}/personal-note/${e}${o}`, {
28
- ...r,
29
- method: "PUT",
30
- headers: { "Content-Type": "application/json" },
31
- body: JSON.stringify(t)
32
- });
33
- return i(s, "保存笔记失败");
34
- }
35
- async function C(e, t, n = "") {
36
- const o = n ? `?token=${encodeURIComponent(n)}` : "", s = await a(`${c}/personal-note/${e}/rename${o}`, {
37
- ...r,
38
- method: "PUT",
39
- headers: { "Content-Type": "application/json" },
40
- body: JSON.stringify({ title: t })
41
- });
42
- return i(s, "重命名失败");
43
- }
44
- async function I(e, t, n = "") {
45
- const o = n ? `?token=${encodeURIComponent(n)}` : "", s = await a(`${c}/personal-note/${e}/move${o}`, {
46
- ...r,
47
- method: "PUT",
48
- headers: { "Content-Type": "application/json" },
49
- body: JSON.stringify(t)
50
- });
51
- return i(s, "移动节点失败");
52
- }
53
- async function U(e, t = "") {
54
- const n = t ? `?token=${encodeURIComponent(t)}` : "", o = await a(`${c}/personal-note/${e}${n}`, {
55
- ...r,
56
- method: "DELETE"
57
- });
58
- return i(o, "删除笔记失败");
59
- }
60
- async function v(e, t, n, o = "") {
61
- const s = new URLSearchParams();
62
- s.set("bindKey", e), s.set("defaultTitle", t), s.set("extraInfo", n), o && s.set("token", o);
63
- const l = await a(
64
- `${c}/personal-note/bound?${s.toString()}`,
65
- r
66
- );
67
- return $(l, "获取绑定笔记失败");
68
- }
69
- async function T(e, t = "") {
70
- const n = t ? `?token=${encodeURIComponent(t)}` : "", o = await a(`${c}/personal-note/${e}/share${n}`, {
71
- ...r,
72
- method: "POST"
73
- });
74
- return i(o, "生成分享链接失败");
75
- }
76
- async function O(e = "") {
77
- const t = e ? `?token=${encodeURIComponent(e)}` : "", n = await a(
78
- `${c}/personal-note/favorites${t}`,
79
- r
80
- );
81
- return $(n, "获取收藏列表失败");
82
- }
83
- async function R(e, t = "") {
84
- const n = t ? `?token=${encodeURIComponent(t)}` : "", o = await a(`${c}/personal-note/${e}/favorite${n}`, {
85
- ...r,
86
- method: "POST"
87
- });
88
- return i(o, "收藏笔记失败");
89
- }
90
- async function N(e, t = "") {
91
- const n = t ? `?token=${encodeURIComponent(t)}` : "", o = await a(`${c}/personal-note/${e}/favorite${n}`, {
92
- ...r,
93
- method: "DELETE"
94
- });
95
- return i(o, "取消收藏失败");
96
- }
97
- async function P(e, t = 50) {
98
- const n = await a(
99
- `${c}/scenario-instances/${e}/observer-dispatch-logs?limit=${t}`,
100
- { ...r }
101
- );
102
- return i(n, "查询派发日志失败");
103
- }
104
- async function b(e, t) {
105
- const n = await a(
106
- `${c}/scenario-instances/${e}/observer-dispatch-logs/${t}`,
107
- { ...r }
108
- );
109
- return i(n, "查询派发日志详情失败");
110
- }
111
- async function q(e) {
112
- const t = await a(
113
- `${c}/scenario-instances/${e}/observer/trigger`,
114
- { ...r, method: "POST" }
115
- );
116
- return i(t, "触发观察失败");
117
- }
118
- function u(e) {
119
- const t = new URLSearchParams();
120
- Object.entries(e).forEach(([o, s]) => {
121
- if (!(s == null || s === "")) {
122
- if (Array.isArray(s)) {
123
- s.forEach((l) => {
124
- l != null && l !== "" && t.append(o, String(l));
125
- });
126
- return;
127
- }
128
- t.append(o, String(s));
129
- }
130
- });
131
- const n = t.toString();
132
- return n ? `?${n}` : "";
133
- }
134
- async function E(e) {
135
- const t = await a(
136
- `${c}/admin/tool-call-logs${u(e)}`,
137
- r
138
- );
139
- return i(t, "查询工具调用日志失败");
140
- }
141
- async function A(e, t = "") {
142
- const n = await a(
143
- `${c}/admin/tool-call-logs/${e}${u({ token: t })}`,
144
- r
145
- );
146
- return i(n, "查询工具调用日志详情失败");
147
- }
148
- async function L(e = "") {
149
- const t = await a(
150
- `${c}/admin/tool-call-logs/tool-types${u({ token: e })}`,
151
- r
152
- );
153
- return i(t, "查询工具类型失败");
154
- }
155
- async function _(e = "") {
156
- const t = await a(
157
- `${c}/admin/tool-call-logs/agents/names${u({ token: e })}`,
158
- r
159
- );
160
- return i(t, "查询 Agent 名称失败");
161
- }
162
- async function j(e) {
163
- const t = await a(
164
- `${c}/admin/tool-call-logs/stats${u(e)}`,
165
- r
166
- );
167
- return i(t, "查询工具调用统计失败");
168
- }
169
- async function D(e) {
170
- const t = await a(
171
- `${c}/admin/tool-call-logs/overview${u(e)}`,
172
- r
173
- );
174
- return i(t, "查询工具调用概览统计失败");
175
- }
176
- async function J(e = "") {
177
- const t = e ? `?token=${encodeURIComponent(e)}` : "", n = await a(`${c}/personal-agents${t}`, r);
178
- return i(n, "获取个人 Agent 列表失败");
179
- }
180
- async function k(e) {
181
- const t = e ? `?token=${encodeURIComponent(e)}` : "", n = await a(
182
- `${c}/personal-agents/custom-models${t}`,
183
- r
184
- );
185
- return i(n, "获取自定义模型失败");
186
- }
187
- async function x(e, t) {
188
- const n = e ? `?token=${encodeURIComponent(e)}` : "", o = await a(`${c}/personal-agents/custom-models${n}`, {
189
- ...r,
190
- method: "POST",
191
- headers: { "Content-Type": "application/json" },
192
- body: JSON.stringify(t)
193
- });
194
- return i(o, "创建自定义模型失败");
195
- }
196
- async function F(e, t, n) {
197
- const o = e ? `?token=${encodeURIComponent(e)}` : "", s = await a(
198
- `${c}/personal-agents/custom-models/${t}/toggle${o}`,
199
- {
200
- ...r,
201
- method: "POST",
202
- headers: { "Content-Type": "application/json" },
203
- body: JSON.stringify({ enable: n })
204
- }
205
- );
206
- return i(s, "切换自定义模型失败");
207
- }
208
- async function B(e, t) {
209
- const n = e ? `?token=${encodeURIComponent(e)}` : "", o = await a(
210
- `${c}/personal-agents/custom-models/${t}${n}`,
211
- { ...r, method: "DELETE" }
212
- );
213
- await i(o, "删除自定义模型失败");
214
- }
215
- async function M(e) {
216
- const t = e ? `?token=${encodeURIComponent(e)}` : "", n = await a(
217
- `${c}/personal-agents/user-settings${t}`,
218
- r
219
- ), o = await i(n, "获取设置失败");
220
- try {
221
- return JSON.parse(o.config || "{}");
222
- } catch {
223
- return {};
224
- }
225
- }
226
- async function z(e, t) {
227
- const n = e ? `?token=${encodeURIComponent(e)}` : "", o = await a(`${c}/personal-agents/user-settings${n}`, {
228
- ...r,
229
- method: "POST",
230
- headers: { "Content-Type": "application/json" },
231
- body: JSON.stringify({ config: JSON.stringify(t) })
232
- });
233
- await i(o, "保存设置失败");
234
- }
235
- async function H(e) {
236
- const t = e ? `?token=${encodeURIComponent(e)}` : "", n = await a(
237
- `${c}/personal-agents/sessions/export${t}`,
238
- r
239
- );
240
- return i(n, "导出失败");
241
- }
242
- async function K(e, t) {
243
- const n = e ? `?token=${encodeURIComponent(e)}` : "", o = await a(`${c}/personal-agents/devices/touch${n}`, {
244
- ...r,
245
- method: "POST",
246
- headers: { "Content-Type": "application/json" },
247
- body: JSON.stringify({ deviceLabel: t })
248
- });
249
- return i(o, "设备上报失败");
250
- }
251
- async function Q(e) {
252
- const t = e ? `?token=${encodeURIComponent(e)}` : "", n = await a(`${c}/personal-agents/devices${t}`, r);
253
- return (await i(n, "加载设备失败") || []).map((s) => ({
254
- id: Number(s.id),
255
- userId: String(s.user_id ?? s.userId ?? ""),
256
- deviceLabel: String(s.device_label ?? s.deviceLabel ?? ""),
257
- firstSeenAt: String(s.first_seen_at ?? s.firstSeenAt ?? ""),
258
- lastSeenAt: String(s.last_seen_at ?? s.lastSeenAt ?? "")
259
- }));
260
- }
261
- export {
262
- L as A,
263
- _ as B,
264
- E as C,
265
- A as D,
266
- D as E,
267
- j as F,
268
- O as a,
269
- T as b,
270
- N as c,
271
- R as d,
272
- J as e,
273
- S as f,
274
- g,
275
- h,
276
- U as i,
277
- M as j,
278
- z as k,
279
- k as l,
280
- I as m,
281
- Q as n,
282
- B as o,
283
- x as p,
284
- H as q,
285
- C as r,
286
- m as s,
287
- F as t,
288
- w as u,
289
- v,
290
- P as w,
291
- b as x,
292
- q as y,
293
- K as z
294
- };