@yuku123/z-team-component 0.2.89 → 0.2.91
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/{ComponentDoc-CP8PmT4l.js → ComponentDoc-Bqfu128t.js} +3 -3
- package/dist/{InvitationManagementPage-C-8t565B.js → InvitationManagementPage-DYoqQA0v.js} +1 -1
- package/dist/{OnboardingPage-DUUHQLSp.js → OnboardingPage-D2Gm8MRd.js} +2 -2
- package/dist/{ScheduledTasks-BSJP-8rB.js → ScheduledTasks-DB3VxAnb.js} +3519 -3380
- package/dist/{SystemShell-DTFR-Pfd.js → SystemShell-D3jHItxY.js} +5 -5
- package/dist/admin-logs-ogvMwS4O.js +302 -0
- package/dist/{api-GfWm5pTp.js → api-DYsAzJJo.js} +1 -1
- package/dist/{createWorkspaceWsHandler-rKc7vc8k.js → createWorkspaceWsHandler-D8h5BEzH.js} +2 -2
- package/dist/{index-MYohlrH6.js → index-152G-_4j.js} +1 -1
- package/dist/{index-DyFaoD5W.js → index-BYe87pnq.js} +1 -1
- package/dist/{index-EdPtymBD.js → index-BZ12pY96.js} +2 -2
- package/dist/{index-mIk8zAAm.js → index-BaCqZeiw.js} +1 -1
- package/dist/{index-pScDd5cp.js → index-BfzgRKii.js} +3 -3
- package/dist/{index-ji8TPz9K.js → index-C8cR7lJw.js} +1 -1
- package/dist/{index-CHTu5H1U.js → index-CLD5lLa6.js} +3 -3
- package/dist/{index-s_ikMJ2V.js → index-CLfhHxPf.js} +1 -1
- package/dist/{index-D92Y4nix.js → index-CSpckSHg.js} +2 -2
- package/dist/{index-v3WaXkDJ.js → index-CYyFYmlZ.js} +1 -1
- package/dist/{index-BxBGVGKQ.js → index-CZyFAmEq.js} +1 -1
- package/dist/{index-DcHrkop2.js → index-CgWa7RFv.js} +1 -1
- package/dist/{index-9Vozb4E5.js → index-Cggl78j7.js} +2 -2
- package/dist/{index-C5FC0WCa.js → index-Cw6MIoNv.js} +4 -4
- package/dist/{index-BngdCYiY.js → index-DE82vM_4.js} +3 -3
- package/dist/{index-DTFcQizU.js → index-DVaTGA2z.js} +5 -5
- package/dist/{index-DoC-nKZZ.js → index-Dwqa30HZ.js} +1 -1
- package/dist/{index-B_H-Ynz5.js → index-DyQ9YnMd.js} +6 -6
- package/dist/{index-BR0HXBjY.js → index-E4Q6JmzX.js} +3 -3
- package/dist/{index-DelMCvoP.js → index-W_4faD_M.js} +2 -2
- package/dist/{index-B51WSpDM.js → index-ues0LW7p.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/{menuPermission-CF3r6JEV.js → menuPermission-C33I6ujb.js} +2 -2
- package/dist/pages.js +1 -1
- package/dist/{useAppStore-BFO_h1L2.js → useAppStore-uc8v8XZC.js} +1 -1
- package/dist/{webide-DTZ46LPR.js → webide-BuUYLPSp.js} +2 -2
- package/dist/z-team-component.css +1 -1
- package/package.json +1 -1
- package/dist/ComponentDoc-D1vtx1CE.js +0 -3998
- package/dist/InvitationManagementPage-DDx-AX4v.js +0 -495
- package/dist/OnboardingPage-DUVza4FC.js +0 -393
- package/dist/ScheduledTasks-CGNB0zlb.js +0 -10708
- package/dist/SystemShell-DZ-W2gUt.js +0 -689
- package/dist/api-nf4Uaca5.js +0 -20
- package/dist/index-3qkbu-HG.js +0 -9844
- package/dist/index-B1lzhb6f.js +0 -1143
- package/dist/index-BqG6XqTh.js +0 -574
- package/dist/index-C1kpuot_.js +0 -118
- package/dist/index-CUhSJJL0.js +0 -178
- package/dist/index-D8ncig8C.js +0 -149
- package/dist/index-D_t92tEF.js +0 -2700
- package/dist/index-Dxx0UEBW.js +0 -93
- package/dist/index-JS2OVZ4Q.js +0 -3488
- package/dist/index-LkYDFjtJ.js +0 -914
- package/dist/index-d7BD8lzt.js +0 -242
- package/dist/index-p1jMVRnp.js +0 -112
- package/dist/menuPermission-CZvOK8eU.js +0 -60
- package/dist/personal-D-eMMf0_.js +0 -294
|
@@ -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
|
-
};
|