@yuku123/z-team-component 0.2.10 → 0.2.12
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-BJeNjZwz.js → InvitationManagementPage-CSxxSZju.js} +2 -2
- package/dist/{OnboardingPage-C4IKDR7H.js → OnboardingPage-Bz5ABadu.js} +2 -2
- package/dist/{ProjectApp-BzwYOzVU.js → ProjectApp-Ctm715g-.js} +3 -3
- package/dist/{admin-logs-D9_Q7x5S.js → admin-logs-BUen5i5g.js} +2 -2
- package/dist/{api-DxGj2k96.js → api-Ag31uvzx.js} +532 -502
- package/dist/{api-fqyi5hV8.js → api-CeKcLtWh.js} +1 -1
- package/dist/{createWorkspaceWsHandler-CO8CErPb.js → createWorkspaceWsHandler-CUr-DG9O.js} +4 -4
- package/dist/{index-BRc2oNNo.js → index-BX202PTL.js} +3 -3
- package/dist/{index-CAyKJ_Kb.js → index-BnMpZYkQ.js} +4 -4
- package/dist/{index-C2WxsJfi.js → index-CWEA9tsu.js} +2 -2
- package/dist/{index-CqUVCMOn.js → index-CcR0jDcq.js} +3 -3
- package/dist/{index-o_J49wn9.js → index-CitYoEnW.js} +4044 -4034
- package/dist/{index-8xyTb9mH.js → index-DVXBAsZ1.js} +4 -4
- package/dist/{index-DLRNcbNN.js → index-OTf6Ag8-.js} +6 -6
- package/dist/{index-DTRpN0nk.js → index-ckwUfwfl.js} +1 -1
- package/dist/{index-bUfp5OSs.js → index-ejLBprb6.js} +3 -3
- package/dist/{index-CoEkAZu6.js → index-jWXeNDjv.js} +10 -10
- package/dist/{index-BPEHmsyH.js → index-wnah4DZf.js} +4 -4
- package/dist/index.js +1 -1
- package/dist/{instance-BnjcRI0U.js → instance-n-zwS8QM.js} +1 -1
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-4hgjqdo4.js → send-default-agent-team-message-D7jJxHcZ.js} +1 -1
- package/dist/{sso-user-D1N_OzF2.js → sso-user-Cyw2nbfg.js} +1 -1
- package/dist/{useAppStore-Cq9uSFGy.js → useAppStore-kHxjSdse.js} +1 -1
- package/package.json +1 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { message as
|
|
1
|
+
import { message as W } from "antd";
|
|
2
2
|
function p(e) {
|
|
3
3
|
return e == null || e === "" ? "" : typeof e == "string" ? e : String(e);
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function Ye(e) {
|
|
6
6
|
const n = p(e);
|
|
7
7
|
return n === "" ? null : n;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function en(e, n) {
|
|
10
10
|
return p(e) === p(n);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function nn(e) {
|
|
13
13
|
const n = p(e);
|
|
14
14
|
return n !== "" && n.startsWith("-");
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function $e(e) {
|
|
17
17
|
const n = p(e);
|
|
18
|
-
return n !== "" &&
|
|
18
|
+
return n !== "" && he(n, "0") > 0;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function he(e, n) {
|
|
21
21
|
const t = p(e), s = p(n);
|
|
22
22
|
if (t === s)
|
|
23
23
|
return 0;
|
|
@@ -32,20 +32,20 @@ function $e(e, n) {
|
|
|
32
32
|
return t < s ? -1 : 1;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
const
|
|
36
|
-
function
|
|
35
|
+
const ge = 101012001;
|
|
36
|
+
function Se() {
|
|
37
37
|
const e = typeof window < "u" && window.ZTEAM_SSO_BASE || "";
|
|
38
38
|
return e ? e.replace(/\/+$/, "") : typeof window > "u" ? "http://localhost" : window.location.origin;
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function we() {
|
|
41
41
|
const e = new URL(window.location.href);
|
|
42
42
|
e.searchParams.has("_from_login") || e.searchParams.set("_from_login", "1");
|
|
43
|
-
const n = `${
|
|
43
|
+
const n = `${Se()}/login?redirect=${encodeURIComponent(
|
|
44
44
|
e.toString()
|
|
45
45
|
)}`;
|
|
46
46
|
window.location.href = n;
|
|
47
47
|
}
|
|
48
|
-
async function
|
|
48
|
+
async function Te() {
|
|
49
49
|
try {
|
|
50
50
|
const e = await w(`${S}/sso/attach-ctc-token`, {
|
|
51
51
|
...$,
|
|
@@ -59,7 +59,7 @@ async function we() {
|
|
|
59
59
|
return !1;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
async function
|
|
62
|
+
async function tn(e, n) {
|
|
63
63
|
const t = n != null && n.trim() !== "" ? { result: n } : void 0, s = await w(`${S}/tasks/${e}/complete`, {
|
|
64
64
|
...$,
|
|
65
65
|
method: "POST",
|
|
@@ -68,7 +68,7 @@ async function nn(e, n) {
|
|
|
68
68
|
});
|
|
69
69
|
return T(s, "完成任务失败");
|
|
70
70
|
}
|
|
71
|
-
async function
|
|
71
|
+
async function sn(e, n) {
|
|
72
72
|
const t = await w(`${S}/tasks/${e}/suspend`, {
|
|
73
73
|
...$,
|
|
74
74
|
method: "POST",
|
|
@@ -77,7 +77,7 @@ async function tn(e, n) {
|
|
|
77
77
|
});
|
|
78
78
|
return T(t, "挂起任务失败");
|
|
79
79
|
}
|
|
80
|
-
async function
|
|
80
|
+
async function on(e, n) {
|
|
81
81
|
const t = await w(`${S}/tasks/${e}/cancel`, {
|
|
82
82
|
...$,
|
|
83
83
|
method: "POST",
|
|
@@ -86,7 +86,7 @@ async function sn(e, n) {
|
|
|
86
86
|
});
|
|
87
87
|
return T(t, "取消任务失败");
|
|
88
88
|
}
|
|
89
|
-
async function
|
|
89
|
+
async function an(e) {
|
|
90
90
|
const n = await w(`${S}/tasks/${e}/continue`, {
|
|
91
91
|
...$,
|
|
92
92
|
method: "POST",
|
|
@@ -94,7 +94,7 @@ async function on(e) {
|
|
|
94
94
|
});
|
|
95
95
|
return T(n, "继续执行失败");
|
|
96
96
|
}
|
|
97
|
-
async function
|
|
97
|
+
async function rn(e) {
|
|
98
98
|
const n = await w(`${S}/tasks/${e}/reset`, {
|
|
99
99
|
...$,
|
|
100
100
|
method: "POST",
|
|
@@ -102,69 +102,69 @@ async function an(e) {
|
|
|
102
102
|
});
|
|
103
103
|
return T(n, "重置执行失败");
|
|
104
104
|
}
|
|
105
|
-
async function
|
|
105
|
+
async function cn(e) {
|
|
106
106
|
const n = await w(`${S}/tasks/${e}`, $);
|
|
107
107
|
return T(n, "加载任务失败");
|
|
108
108
|
}
|
|
109
|
-
const
|
|
110
|
-
let l = null,
|
|
111
|
-
function
|
|
112
|
-
|
|
109
|
+
const dn = "http://127.0.0.1/kapi/z-webide/inspect";
|
|
110
|
+
let l = null, E = [], P = [], C = 0, H = "", j = null, O = 0, h = null, ee = "disconnected";
|
|
111
|
+
function q(e) {
|
|
112
|
+
ee = e, P.forEach((n) => n(e));
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function G() {
|
|
115
115
|
return C !== 0 && C !== "";
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Ie(e, n = "") {
|
|
118
118
|
const t = window.location.protocol === "https:" ? "wss:" : "ws:", s = window.location.host, o = n ? `?token=${encodeURIComponent(n)}` : "";
|
|
119
|
-
return `${t}//${s}${
|
|
119
|
+
return `${t}//${s}${Oe}/${e}/ws${o}`;
|
|
120
120
|
}
|
|
121
|
-
function
|
|
122
|
-
return
|
|
123
|
-
|
|
121
|
+
function un(e) {
|
|
122
|
+
return P.push(e), e(ee), () => {
|
|
123
|
+
P = P.filter((n) => n !== e);
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function _e(e, n = "", t) {
|
|
127
127
|
if (l && (l.readyState === WebSocket.CONNECTING || l.readyState === WebSocket.OPEN) && C === e)
|
|
128
128
|
return;
|
|
129
129
|
l && (l.onclose = null, l.close(), l = null), h != null && (clearTimeout(h), h = null);
|
|
130
|
-
const s =
|
|
131
|
-
C = e,
|
|
132
|
-
|
|
130
|
+
const s = Ie(e, n);
|
|
131
|
+
C = e, H = n, t && (j = t), q("connecting"), l = new WebSocket(s), l.onopen = () => {
|
|
132
|
+
O = 0, q("connected"), console.log("[WS] connected");
|
|
133
133
|
}, l.onmessage = (o) => {
|
|
134
134
|
try {
|
|
135
135
|
const d = JSON.parse(o.data);
|
|
136
|
-
console.log("[WS recv]", d.type, d),
|
|
136
|
+
console.log("[WS recv]", d.type, d), E.forEach((u) => u(d));
|
|
137
137
|
} catch {
|
|
138
138
|
}
|
|
139
139
|
}, l.onerror = () => {
|
|
140
140
|
console.warn("[WS] connection error:", s);
|
|
141
141
|
}, l.onclose = (o) => {
|
|
142
142
|
const d = o.wasClean;
|
|
143
|
-
if (l = null,
|
|
144
|
-
|
|
145
|
-
const u = Math.min(3e3 *
|
|
143
|
+
if (l = null, q("disconnected"), !G()) return;
|
|
144
|
+
O += 1;
|
|
145
|
+
const u = Math.min(3e3 * O, 3e4);
|
|
146
146
|
console.warn(
|
|
147
|
-
`[WS] closed (clean=${d}), reconnect #${
|
|
147
|
+
`[WS] closed (clean=${d}), reconnect #${O} in ${u}ms`
|
|
148
148
|
), h = setTimeout(() => {
|
|
149
|
-
h = null,
|
|
149
|
+
h = null, G() && (_e(C, H), j == null || j());
|
|
150
150
|
}, u);
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
return
|
|
155
|
-
|
|
153
|
+
function ln(e) {
|
|
154
|
+
return E.push(e), () => {
|
|
155
|
+
E = E.filter((n) => n !== e);
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
|
-
async function
|
|
159
|
-
await
|
|
158
|
+
async function pn(e) {
|
|
159
|
+
await Te().catch(() => {
|
|
160
160
|
}), l && l.readyState === WebSocket.OPEN && l.send(JSON.stringify(e));
|
|
161
161
|
}
|
|
162
162
|
function Ce() {
|
|
163
|
-
C = 0, h != null && (clearTimeout(h), h = null), l && (l.onclose = null, l.close(), l = null),
|
|
163
|
+
C = 0, h != null && (clearTimeout(h), h = null), l && (l.onclose = null, l.close(), l = null), O = 0, q("disconnected"), E = [], P = [];
|
|
164
164
|
}
|
|
165
165
|
const $ = { credentials: "include" };
|
|
166
|
-
function
|
|
167
|
-
n === "warning" ?
|
|
166
|
+
function k(e, n = "error") {
|
|
167
|
+
n === "warning" ? W.warning(e) : W.error(e);
|
|
168
168
|
}
|
|
169
169
|
typeof window < "u" && window.addEventListener(
|
|
170
170
|
"unhandledrejection",
|
|
@@ -173,17 +173,17 @@ typeof window < "u" && window.addEventListener(
|
|
|
173
173
|
n && typeof n == "object" && n._apiUserError && e.preventDefault();
|
|
174
174
|
}
|
|
175
175
|
);
|
|
176
|
-
let
|
|
177
|
-
const
|
|
178
|
-
function
|
|
176
|
+
let Z = !1;
|
|
177
|
+
const V = "登录已失效,请重新登录";
|
|
178
|
+
function be(e) {
|
|
179
179
|
if (!e) return !1;
|
|
180
|
-
if (Number(e.code) ===
|
|
180
|
+
if (Number(e.code) === ge) return !0;
|
|
181
181
|
const n = typeof e.message == "string" ? e.message : "";
|
|
182
182
|
return /登录(?:已)?(?:失效|过期)|重新登录|未登录/.test(n);
|
|
183
183
|
}
|
|
184
|
-
function
|
|
185
|
-
if (!
|
|
186
|
-
|
|
184
|
+
function Q() {
|
|
185
|
+
if (!Z) {
|
|
186
|
+
Z = !0;
|
|
187
187
|
try {
|
|
188
188
|
Ce();
|
|
189
189
|
} catch {
|
|
@@ -192,36 +192,36 @@ function Z() {
|
|
|
192
192
|
localStorage.removeItem("ft_token"), localStorage.removeItem("USER_INFO"), delete window.USER_INFO;
|
|
193
193
|
} catch {
|
|
194
194
|
}
|
|
195
|
-
|
|
195
|
+
we();
|
|
196
196
|
}
|
|
197
197
|
throw {
|
|
198
198
|
_apiUserError: !0,
|
|
199
|
-
userMessage:
|
|
200
|
-
message:
|
|
199
|
+
userMessage: V,
|
|
200
|
+
message: V
|
|
201
201
|
};
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function K(e, n) {
|
|
204
204
|
return e.status === 401 ? "登录已失效,请重新登录" : e.status === 403 ? "没有权限访问该资源" : e.status === 404 ? "接口不存在,请确认后端已启动且路径为 /z-team" : e.status >= 500 ? "服务暂时不可用,请稍后重试" : (e.status >= 400, n);
|
|
205
205
|
}
|
|
206
|
-
const
|
|
206
|
+
const ne = "/z-team", Ae = typeof window < "u" && /(zteam[-.]ft\.(zteam\.local|zteam\.local)|team\.zteam\.local)/i.test(
|
|
207
207
|
window.location.hostname
|
|
208
|
-
),
|
|
209
|
-
function
|
|
210
|
-
const t = e.startsWith("/") ? e : `/${e}`, s = n ? `?${new URLSearchParams(n).toString()}` : "", o = `${
|
|
208
|
+
), J = Ae, Ue = `${J ? "/kapi" : ""}${ne}/api`, Oe = `${J ? "/kapi" : ""}${ne}/v1/scenario-instances`, Ee = window.ENV_TYPE || window.envType || "", S = Ue, mn = `${J ? "/kapi" : ""}/z-team-evolution/api`, fn = `${J ? "/kapi" : ""}/z-team-bench/api`, X = "https://zteam-agent.zteam.local", Pe = "/kapi/zteam-agent/api/dev-brain/agent";
|
|
209
|
+
function te(e, n) {
|
|
210
|
+
const t = e.startsWith("/") ? e : `/${e}`, s = n ? `?${new URLSearchParams(n).toString()}` : "", o = `${Pe}${t}${s}`;
|
|
211
211
|
if (typeof window > "u")
|
|
212
|
-
return `${
|
|
212
|
+
return `${X}${o}`;
|
|
213
213
|
const d = window.location.hostname;
|
|
214
|
-
return /\.zteam\.local$/i.test(d) || /zteam[-.]ft\.zteam\.local$/i.test(d) || d === "localhost" || d === "127.0.0.1" || d === "127.0.0.1" ? `${window.location.origin}${o}` : `${
|
|
214
|
+
return /\.zteam\.local$/i.test(d) || /zteam[-.]ft\.zteam\.local$/i.test(d) || d === "localhost" || d === "127.0.0.1" || d === "127.0.0.1" ? `${window.location.origin}${o}` : `${X}${o}`;
|
|
215
215
|
}
|
|
216
|
-
function
|
|
217
|
-
return
|
|
216
|
+
function yn(e) {
|
|
217
|
+
return te("/ticket", { ticketId: e });
|
|
218
218
|
}
|
|
219
|
-
|
|
220
|
-
const
|
|
221
|
-
async function
|
|
219
|
+
te("/ticket");
|
|
220
|
+
const se = Ee || "local";
|
|
221
|
+
async function $n(e, n) {
|
|
222
222
|
try {
|
|
223
223
|
const t = {
|
|
224
|
-
"project-env":
|
|
224
|
+
"project-env": se,
|
|
225
225
|
...n == null ? void 0 : n.headers
|
|
226
226
|
};
|
|
227
227
|
return await fetch(e, {
|
|
@@ -233,23 +233,23 @@ async function yn(e, n) {
|
|
|
233
233
|
});
|
|
234
234
|
} catch {
|
|
235
235
|
const t = "无法连接 ZTeam-Agent 服务,请确认可访问 zteam-agent.zteam.local";
|
|
236
|
-
throw
|
|
236
|
+
throw k(t), { _apiUserError: !0, userMessage: t, message: t };
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
async function w(e, n) {
|
|
240
240
|
try {
|
|
241
241
|
const t = {
|
|
242
|
-
"project-env":
|
|
242
|
+
"project-env": se,
|
|
243
243
|
...n == null ? void 0 : n.headers
|
|
244
244
|
};
|
|
245
245
|
return await fetch(e, { ...$, ...n, headers: t });
|
|
246
246
|
} catch {
|
|
247
247
|
const t = "无法连接服务器,请确认 Java 服务已启动(如 127.0.0.1:8080)且前端代理 /z-team 已配置";
|
|
248
|
-
throw
|
|
248
|
+
throw k(t), { _apiUserError: !0, userMessage: t, message: t };
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
async function T(e, n) {
|
|
252
|
-
e.status === 401 &&
|
|
252
|
+
e.status === 401 && Q();
|
|
253
253
|
const t = await e.text().catch(() => "");
|
|
254
254
|
let s = {};
|
|
255
255
|
if (t)
|
|
@@ -257,8 +257,8 @@ async function T(e, n) {
|
|
|
257
257
|
s = JSON.parse(t);
|
|
258
258
|
} catch {
|
|
259
259
|
if (!e.ok) {
|
|
260
|
-
const o =
|
|
261
|
-
throw
|
|
260
|
+
const o = K(e, n);
|
|
261
|
+
throw k(
|
|
262
262
|
e.status >= 500 ? o : `${o}(HTTP ${e.status},响应非 JSON)`
|
|
263
263
|
), {
|
|
264
264
|
_apiUserError: !0,
|
|
@@ -268,20 +268,20 @@ async function T(e, n) {
|
|
|
268
268
|
}
|
|
269
269
|
return t;
|
|
270
270
|
}
|
|
271
|
-
if (
|
|
271
|
+
if (be(s) && Q(), typeof s.success == "boolean") {
|
|
272
272
|
if (s.success)
|
|
273
273
|
return s.data !== void 0 ? s.data : !0;
|
|
274
274
|
const o = s.message || // z-team 另有 7 个 admin controller 挂 bench Result({code,msg,data,success})
|
|
275
275
|
s.msg || s.detail || n;
|
|
276
|
-
throw
|
|
276
|
+
throw k(o), {
|
|
277
277
|
_apiUserError: !0,
|
|
278
278
|
userMessage: o,
|
|
279
279
|
message: o
|
|
280
280
|
};
|
|
281
281
|
}
|
|
282
282
|
if (!e.ok) {
|
|
283
|
-
const o = s.detail || s.message ||
|
|
284
|
-
throw
|
|
283
|
+
const o = s.detail || s.message || K(e, n);
|
|
284
|
+
throw k(o), {
|
|
285
285
|
_apiUserError: !0,
|
|
286
286
|
userMessage: o,
|
|
287
287
|
message: o
|
|
@@ -289,22 +289,22 @@ async function T(e, n) {
|
|
|
289
289
|
}
|
|
290
290
|
return s;
|
|
291
291
|
}
|
|
292
|
-
const
|
|
293
|
-
function
|
|
294
|
-
return e.replace(
|
|
292
|
+
const ke = /_+([a-z0-9])/gi;
|
|
293
|
+
function Re(e) {
|
|
294
|
+
return e.replace(ke, (n, t) => t.toUpperCase());
|
|
295
295
|
}
|
|
296
|
-
function
|
|
297
|
-
if (Array.isArray(e)) return e.map((n) =>
|
|
296
|
+
function B(e) {
|
|
297
|
+
if (Array.isArray(e)) return e.map((n) => B(n));
|
|
298
298
|
if (e && typeof e == "object" && !(e instanceof Date)) {
|
|
299
299
|
const n = {};
|
|
300
300
|
for (const [t, s] of Object.entries(e))
|
|
301
|
-
n[
|
|
301
|
+
n[Re(t)] = B(s);
|
|
302
302
|
return n;
|
|
303
303
|
}
|
|
304
304
|
return e;
|
|
305
305
|
}
|
|
306
|
-
async function
|
|
307
|
-
return
|
|
306
|
+
async function hn(e, n) {
|
|
307
|
+
return B(await T(e, n));
|
|
308
308
|
}
|
|
309
309
|
const a = {
|
|
310
310
|
credentials: "include",
|
|
@@ -312,13 +312,13 @@ const a = {
|
|
|
312
312
|
// 而不是返回 302 跳到 SSO 登录页(避免 fetch follow redirect 后拿到 SPA HTML 导致解析失败)
|
|
313
313
|
headers: { Accept: "application/json" }
|
|
314
314
|
};
|
|
315
|
-
class
|
|
315
|
+
class Ne extends Error {
|
|
316
316
|
constructor(n) {
|
|
317
317
|
super(n), this._apiUserError = !0, this.name = "ApiUserError", this.userMessage = n;
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
|
-
function
|
|
321
|
-
return e instanceof
|
|
320
|
+
function gn(e) {
|
|
321
|
+
return e instanceof Ne ? !0 : !!(e && typeof e == "object" && e._apiUserError);
|
|
322
322
|
}
|
|
323
323
|
function g(e, n = "error") {
|
|
324
324
|
console[n === "warning" ? "warn" : "error"]("[api]", e);
|
|
@@ -330,51 +330,51 @@ typeof window < "u" && window.addEventListener(
|
|
|
330
330
|
n && typeof n == "object" && n._apiUserError && e.preventDefault();
|
|
331
331
|
}
|
|
332
332
|
);
|
|
333
|
-
function
|
|
333
|
+
function Y(e, n) {
|
|
334
334
|
return e.status === 401 ? "登录已失效,请重新登录" : e.status === 403 ? "没有权限访问该资源" : e.status === 404 ? "接口不存在,请确认后端已启动且路径为 /z-team" : e.status >= 500 ? "服务暂时不可用,请稍后重试" : (e.status >= 400, n);
|
|
335
335
|
}
|
|
336
|
-
const
|
|
336
|
+
const je = "/z-team", ve = typeof window < "u" && window.ZTEAM_USE_KAPI === !0, oe = ve, ae = `${oe ? "/kapi" : ""}${je}/api`, qe = window.ENV_TYPE || window.envType || "", i = ae, De = `${oe ? "/kapi" : ""}/z-team-evolution/api`, D = typeof window < "u" && window.ZTEAM_AGENTHUB_AI_ORIGIN || "", Je = "/kapi/agenthub-ai/api/dev-brain/agent", ze = String(
|
|
337
337
|
typeof window < "u" && window.ZTEAM_AGENTHUB_SAME_ORIGIN_SUFFIXES || ""
|
|
338
338
|
).split(",").map((e) => e.trim().toLowerCase()).filter(Boolean);
|
|
339
|
-
function
|
|
339
|
+
function re(e) {
|
|
340
340
|
const n = (e || "").toLowerCase();
|
|
341
|
-
return n === "localhost" || n === "127.0.0.1" ? !0 :
|
|
341
|
+
return n === "localhost" || n === "127.0.0.1" ? !0 : ze.some(
|
|
342
342
|
(t) => n === t || n.endsWith(`.${t}`)
|
|
343
343
|
);
|
|
344
344
|
}
|
|
345
|
-
function
|
|
346
|
-
const t = e.startsWith("/") ? e : `/${e}`, o = `${
|
|
345
|
+
function ie(e, n) {
|
|
346
|
+
const t = e.startsWith("/") ? e : `/${e}`, o = `${Je}${t}`;
|
|
347
347
|
if (typeof window > "u")
|
|
348
|
-
return `${
|
|
348
|
+
return `${D}${o}`;
|
|
349
349
|
const d = window.location.hostname;
|
|
350
|
-
return
|
|
350
|
+
return re(d) ? `${window.location.origin}${o}` : `${D}${o}`;
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function Le(e) {
|
|
353
353
|
const t = `/kapi/agenthub-ai${e.startsWith("/") ? e : `/${e}`}`;
|
|
354
354
|
if (typeof window > "u")
|
|
355
|
-
return `${
|
|
355
|
+
return `${D}${t}`;
|
|
356
356
|
const s = window.location.hostname;
|
|
357
|
-
return
|
|
357
|
+
return re(s) ? `${window.location.origin}${t}` : `${D}${t}`;
|
|
358
358
|
}
|
|
359
|
-
async function
|
|
359
|
+
async function Me(e) {
|
|
360
360
|
const n = new FormData();
|
|
361
361
|
n.append("file", e);
|
|
362
|
-
const t = await
|
|
362
|
+
const t = await de(Le("/common/uploadImage"), {
|
|
363
363
|
method: "POST",
|
|
364
364
|
body: n
|
|
365
365
|
});
|
|
366
366
|
return r(t, "上传图片失败");
|
|
367
367
|
}
|
|
368
|
-
async function
|
|
369
|
-
return Promise.all(e.map((n) =>
|
|
368
|
+
async function Sn(e) {
|
|
369
|
+
return Promise.all(e.map((n) => Me(n)));
|
|
370
370
|
}
|
|
371
|
-
|
|
372
|
-
const
|
|
373
|
-
async function
|
|
371
|
+
ie("/ticket");
|
|
372
|
+
const ce = qe || "local";
|
|
373
|
+
async function de(e, n) {
|
|
374
374
|
try {
|
|
375
375
|
const t = {
|
|
376
376
|
...a.headers,
|
|
377
|
-
"project-env":
|
|
377
|
+
"project-env": ce,
|
|
378
378
|
...n == null ? void 0 : n.headers
|
|
379
379
|
};
|
|
380
380
|
return await fetch(e, {
|
|
@@ -393,7 +393,7 @@ async function c(e, n) {
|
|
|
393
393
|
try {
|
|
394
394
|
const t = {
|
|
395
395
|
...a.headers,
|
|
396
|
-
"project-env":
|
|
396
|
+
"project-env": ce,
|
|
397
397
|
...n == null ? void 0 : n.headers
|
|
398
398
|
};
|
|
399
399
|
return await fetch(e, { ...a, ...n, headers: t });
|
|
@@ -402,7 +402,7 @@ async function c(e, n) {
|
|
|
402
402
|
throw g(t), { _apiUserError: !0, userMessage: t, message: t };
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function ue(e) {
|
|
406
406
|
const n = e.id ?? e.staff_id ?? e.staffId ?? e.user_id ?? e.userId;
|
|
407
407
|
return {
|
|
408
408
|
// FE-PRECISION-FIX: 雪花 ID 保持字符串,禁止走 Number()
|
|
@@ -422,7 +422,7 @@ async function r(e, n) {
|
|
|
422
422
|
s = JSON.parse(t);
|
|
423
423
|
} catch {
|
|
424
424
|
if (!e.ok) {
|
|
425
|
-
const u =
|
|
425
|
+
const u = Y(e, n);
|
|
426
426
|
throw g(
|
|
427
427
|
e.status >= 500 ? u : `${u}(HTTP ${e.status},响应非 JSON)`
|
|
428
428
|
), {
|
|
@@ -445,7 +445,7 @@ async function r(e, n) {
|
|
|
445
445
|
};
|
|
446
446
|
}
|
|
447
447
|
if (!e.ok) {
|
|
448
|
-
const u = s.detail || s.message ||
|
|
448
|
+
const u = s.detail || s.message || Y(e, n);
|
|
449
449
|
throw g(u), {
|
|
450
450
|
_apiUserError: !0,
|
|
451
451
|
userMessage: u,
|
|
@@ -454,17 +454,17 @@ async function r(e, n) {
|
|
|
454
454
|
}
|
|
455
455
|
return s;
|
|
456
456
|
}
|
|
457
|
-
async function
|
|
457
|
+
async function wn(e, n) {
|
|
458
458
|
const t = await fetch("/kapi/z-ctc/api/ctc/authn/login", {
|
|
459
459
|
...a,
|
|
460
460
|
method: "POST",
|
|
461
461
|
headers: { "Content-Type": "application/json" },
|
|
462
462
|
credentials: "include",
|
|
463
463
|
body: JSON.stringify({ identifier: e, password: n })
|
|
464
|
-
}), s = await r(t, "登录失败"), o = (s == null ? void 0 : s.userInfo) ?? (s == null ? void 0 : s.user_info) ?? (s == null ? void 0 : s.user) ?? s, d =
|
|
464
|
+
}), s = await r(t, "登录失败"), o = (s == null ? void 0 : s.userInfo) ?? (s == null ? void 0 : s.user_info) ?? (s == null ? void 0 : s.user) ?? s, d = ue(o);
|
|
465
465
|
return { token: (s == null ? void 0 : s.token) ?? "", user: d };
|
|
466
466
|
}
|
|
467
|
-
async function
|
|
467
|
+
async function Tn(e) {
|
|
468
468
|
const n = await fetch("/kapi/z-ctc/api/ctc/authn/whoami", {
|
|
469
469
|
...a,
|
|
470
470
|
credentials: "include"
|
|
@@ -472,9 +472,9 @@ async function wn(e) {
|
|
|
472
472
|
n,
|
|
473
473
|
"获取用户信息失败"
|
|
474
474
|
);
|
|
475
|
-
return
|
|
475
|
+
return ue(t);
|
|
476
476
|
}
|
|
477
|
-
async function
|
|
477
|
+
async function In(e) {
|
|
478
478
|
await r(
|
|
479
479
|
await fetch("/kapi/z-ctc/api/ctc/authn/logout", {
|
|
480
480
|
...a,
|
|
@@ -488,7 +488,7 @@ async function Tn(e) {
|
|
|
488
488
|
} catch {
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
async function
|
|
491
|
+
async function _n(e, n) {
|
|
492
492
|
try {
|
|
493
493
|
const t = await fetch(
|
|
494
494
|
`/kapi/z-ctc/api/ctc/authz/users/permissions?userId=${e}`,
|
|
@@ -514,11 +514,11 @@ async function Cn(e = "", n) {
|
|
|
514
514
|
);
|
|
515
515
|
return r(o, "获取项目列表失败");
|
|
516
516
|
}
|
|
517
|
-
async function
|
|
517
|
+
async function bn(e = "") {
|
|
518
518
|
const n = e ? `?token=${encodeURIComponent(e)}` : "", t = await c(`${i}/scenarios${n}`, a);
|
|
519
519
|
return r(t, "获取场景列表失败");
|
|
520
520
|
}
|
|
521
|
-
async function
|
|
521
|
+
async function Be(e, n = "") {
|
|
522
522
|
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = {
|
|
523
523
|
...e,
|
|
524
524
|
extend_params: { ...e.extend_params, skip_init_task: "true" }
|
|
@@ -528,10 +528,10 @@ async function Me(e, n = "") {
|
|
|
528
528
|
headers: { "Content-Type": "application/json" },
|
|
529
529
|
body: JSON.stringify(s)
|
|
530
530
|
}), d = await r(o, "创建项目失败");
|
|
531
|
-
return
|
|
531
|
+
return b(d);
|
|
532
532
|
}
|
|
533
|
-
const
|
|
534
|
-
function
|
|
533
|
+
const An = Be;
|
|
534
|
+
function b(e) {
|
|
535
535
|
return {
|
|
536
536
|
// FE-PRECISION-FIX: 雪花 ID 是 19 位 bigint, Number() 会丢末位精度
|
|
537
537
|
// (后端 Jackson Long→String 已序列化为字符串, 这里保持字符串避免回退到 Number)
|
|
@@ -553,11 +553,11 @@ function _(e) {
|
|
|
553
553
|
close_time: v(e, "close_time"),
|
|
554
554
|
close_user: v(e, "close_user"),
|
|
555
555
|
members: Array.isArray(e.members) ? e.members.map((n) => String(n)) : void 0,
|
|
556
|
-
parent_id:
|
|
556
|
+
parent_id: Fe(e)
|
|
557
557
|
};
|
|
558
558
|
}
|
|
559
559
|
function v(e, n) {
|
|
560
|
-
const t = n.replace(/_([a-z])/g, (u,
|
|
560
|
+
const t = n.replace(/_([a-z])/g, (u, m) => m.toUpperCase());
|
|
561
561
|
if (e[n] != null) return e[n];
|
|
562
562
|
if (e[t] != null) return e[t];
|
|
563
563
|
const s = e.close_info ?? e.closeInfo;
|
|
@@ -571,7 +571,7 @@ function v(e, n) {
|
|
|
571
571
|
if (d)
|
|
572
572
|
return d[n] ?? void 0;
|
|
573
573
|
}
|
|
574
|
-
function
|
|
574
|
+
function Fe(e) {
|
|
575
575
|
const n = e.ext;
|
|
576
576
|
if (!n) return;
|
|
577
577
|
const t = n.params;
|
|
@@ -581,7 +581,7 @@ function Be(e) {
|
|
|
581
581
|
const o = p(s);
|
|
582
582
|
return o === "" ? void 0 : o;
|
|
583
583
|
}
|
|
584
|
-
async function
|
|
584
|
+
async function Un(e, n) {
|
|
585
585
|
const t = await c(
|
|
586
586
|
`${i}/scenario-instances/${e}/llm-code`,
|
|
587
587
|
{
|
|
@@ -591,19 +591,19 @@ async function An(e, n) {
|
|
|
591
591
|
body: JSON.stringify({ llmCode: n || null })
|
|
592
592
|
}
|
|
593
593
|
), s = await r(t, "设置模型失败");
|
|
594
|
-
return
|
|
594
|
+
return b(s);
|
|
595
595
|
}
|
|
596
|
-
const
|
|
596
|
+
const On = "qa_support";
|
|
597
597
|
function En(e) {
|
|
598
598
|
const n = e.futureTeamProjectId ?? e.future_team_project_id ?? "", t = p(String(n).trim());
|
|
599
|
-
return
|
|
599
|
+
return $e(t) ? t : null;
|
|
600
600
|
}
|
|
601
|
-
async function
|
|
602
|
-
const s =
|
|
601
|
+
async function Pn(e, n, t) {
|
|
602
|
+
const s = ie("/update-z-team"), o = new URLSearchParams({
|
|
603
603
|
ticketId: e,
|
|
604
604
|
futureTeamProjectId: String(n),
|
|
605
605
|
stage: t
|
|
606
|
-
}), d = await
|
|
606
|
+
}), d = await de(s, {
|
|
607
607
|
method: "POST",
|
|
608
608
|
headers: {
|
|
609
609
|
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8"
|
|
@@ -612,14 +612,14 @@ async function On(e, n, t) {
|
|
|
612
612
|
});
|
|
613
613
|
await r(d, "回写工单关联工程失败");
|
|
614
614
|
}
|
|
615
|
-
async function
|
|
615
|
+
async function kn(e) {
|
|
616
616
|
const n = await c(
|
|
617
617
|
`${i}/scenario-instances/${e}/team/`,
|
|
618
618
|
a
|
|
619
619
|
);
|
|
620
620
|
return r(n, "获取团队成员失败");
|
|
621
621
|
}
|
|
622
|
-
async function
|
|
622
|
+
async function Rn(e, n) {
|
|
623
623
|
const t = await c(`${i}/scenario-instances/${e}/team/`, {
|
|
624
624
|
...a,
|
|
625
625
|
method: "POST",
|
|
@@ -628,7 +628,7 @@ async function kn(e, n) {
|
|
|
628
628
|
});
|
|
629
629
|
return r(t, "添加成员失败");
|
|
630
630
|
}
|
|
631
|
-
async function
|
|
631
|
+
async function Nn(e, n) {
|
|
632
632
|
const t = await c(
|
|
633
633
|
`${i}/scenario-instances/${e}/team/${n}`,
|
|
634
634
|
{
|
|
@@ -638,7 +638,7 @@ async function Rn(e, n) {
|
|
|
638
638
|
);
|
|
639
639
|
return r(t, "移除成员失败");
|
|
640
640
|
}
|
|
641
|
-
async function
|
|
641
|
+
async function jn(e) {
|
|
642
642
|
const n = await c(
|
|
643
643
|
`${i}/scenario-instances/${e}/team/available-agents`,
|
|
644
644
|
a
|
|
@@ -652,21 +652,21 @@ async function vn(e) {
|
|
|
652
652
|
);
|
|
653
653
|
return r(n, "获取用户列表失败");
|
|
654
654
|
}
|
|
655
|
-
async function
|
|
655
|
+
async function qn(e) {
|
|
656
656
|
const n = await c(
|
|
657
657
|
`${i}/scenario-instances/${e}/skills`,
|
|
658
658
|
a
|
|
659
659
|
);
|
|
660
660
|
return r(n, "获取技能列表失败");
|
|
661
661
|
}
|
|
662
|
-
async function
|
|
662
|
+
async function Dn(e) {
|
|
663
663
|
const n = await c(
|
|
664
664
|
`${i}/scenario-instances/${e}/all-skills`,
|
|
665
665
|
a
|
|
666
666
|
);
|
|
667
667
|
return r(n, "获取全部技能列表失败");
|
|
668
668
|
}
|
|
669
|
-
async function
|
|
669
|
+
async function Jn(e, n) {
|
|
670
670
|
const t = await c(`${i}/scenario-instances/${e}/skills`, {
|
|
671
671
|
...a,
|
|
672
672
|
method: "POST",
|
|
@@ -675,7 +675,7 @@ async function Dn(e, n) {
|
|
|
675
675
|
});
|
|
676
676
|
return r(t, "添加技能失败");
|
|
677
677
|
}
|
|
678
|
-
async function
|
|
678
|
+
async function zn(e, n) {
|
|
679
679
|
const t = await c(
|
|
680
680
|
`${i}/scenario-instances/${e}/skills/${n}`,
|
|
681
681
|
{
|
|
@@ -685,7 +685,7 @@ async function Jn(e, n) {
|
|
|
685
685
|
);
|
|
686
686
|
return r(t, "移除技能失败");
|
|
687
687
|
}
|
|
688
|
-
async function
|
|
688
|
+
async function Ln(e, n) {
|
|
689
689
|
const t = await c(
|
|
690
690
|
`${i}/scenario-instances/${e}/agent-skills/refresh`,
|
|
691
691
|
{
|
|
@@ -697,7 +697,7 @@ async function zn(e, n) {
|
|
|
697
697
|
);
|
|
698
698
|
return r(t, "刷新技能失败");
|
|
699
699
|
}
|
|
700
|
-
async function
|
|
700
|
+
async function Mn(e) {
|
|
701
701
|
const n = await c(
|
|
702
702
|
`${i}/scenario-instances/${e}/all-agent-skills/refresh`,
|
|
703
703
|
{
|
|
@@ -707,13 +707,13 @@ async function Ln(e) {
|
|
|
707
707
|
);
|
|
708
708
|
return r(n, "刷新所有技能失败");
|
|
709
709
|
}
|
|
710
|
-
async function
|
|
710
|
+
async function Bn(e, n = 50, t) {
|
|
711
711
|
let s = `${i}/scenario-instances/${e}/messages?limit=${n}`;
|
|
712
712
|
t && (s += `&before=${t}`);
|
|
713
713
|
const o = await c(s, a);
|
|
714
714
|
return r(o, "加载聊天记录失败,请稍后重试");
|
|
715
715
|
}
|
|
716
|
-
async function
|
|
716
|
+
async function Fn(e, n, t = "") {
|
|
717
717
|
const s = t ? `?token=${encodeURIComponent(t)}` : "", o = await c(
|
|
718
718
|
`${i}/scenario-instances/${e}/messages/${n}/read${s}`,
|
|
719
719
|
{
|
|
@@ -723,7 +723,7 @@ async function Bn(e, n, t = "") {
|
|
|
723
723
|
);
|
|
724
724
|
return r(o, "标记已读失败");
|
|
725
725
|
}
|
|
726
|
-
async function
|
|
726
|
+
async function xn(e, n, t = "") {
|
|
727
727
|
const s = t ? `?token=${encodeURIComponent(t)}` : "", o = await c(
|
|
728
728
|
`${i}/scenario-instances/${e}/messages${s}`,
|
|
729
729
|
{
|
|
@@ -735,7 +735,7 @@ async function Fn(e, n, t = "") {
|
|
|
735
735
|
);
|
|
736
736
|
return r(o, "发送消息失败");
|
|
737
737
|
}
|
|
738
|
-
async function
|
|
738
|
+
async function Wn(e, n) {
|
|
739
739
|
const t = await c(
|
|
740
740
|
`${i}/scenario-instances/${e}/cancel/${n}`,
|
|
741
741
|
{ ...a, method: "POST" }
|
|
@@ -744,32 +744,32 @@ async function xn(e, n) {
|
|
|
744
744
|
throw new Error(String(s.warning));
|
|
745
745
|
return s;
|
|
746
746
|
}
|
|
747
|
-
async function
|
|
747
|
+
async function Hn(e, n) {
|
|
748
748
|
const t = await c(
|
|
749
749
|
`${i}/scenario-instances/${e}/cancel/${n}/queue`,
|
|
750
750
|
{ ...a, method: "POST" }
|
|
751
751
|
);
|
|
752
752
|
return r(t, "停止队列失败");
|
|
753
753
|
}
|
|
754
|
-
async function
|
|
754
|
+
async function Gn(e) {
|
|
755
755
|
const n = await c(
|
|
756
756
|
`${i}/scenario-instances/${e}/executions`,
|
|
757
757
|
a
|
|
758
758
|
);
|
|
759
759
|
return r(n, "获取执行列表失败");
|
|
760
760
|
}
|
|
761
|
-
async function
|
|
761
|
+
async function Zn(e, n = "") {
|
|
762
762
|
const t = n ? `?subdir=${encodeURIComponent(n)}` : "", s = await c(
|
|
763
763
|
`${i}/scenario-instances/${e}/workspace/tree${t}`,
|
|
764
764
|
a
|
|
765
765
|
);
|
|
766
766
|
return r(s, "获取文件树失败");
|
|
767
767
|
}
|
|
768
|
-
async function
|
|
768
|
+
async function Vn() {
|
|
769
769
|
const e = await c(`${i}/workspace/env`, a);
|
|
770
770
|
return r(e, "获取环境信息失败");
|
|
771
771
|
}
|
|
772
|
-
async function
|
|
772
|
+
async function Qn(e) {
|
|
773
773
|
const n = await c(
|
|
774
774
|
`${i}/scenario-instances/${e}/workspace/sync-from-prod`,
|
|
775
775
|
{
|
|
@@ -780,7 +780,7 @@ async function Vn(e) {
|
|
|
780
780
|
);
|
|
781
781
|
return r(n, "同步失败");
|
|
782
782
|
}
|
|
783
|
-
async function
|
|
783
|
+
async function Kn(e, n) {
|
|
784
784
|
const t = await c(
|
|
785
785
|
`${i}/scenario-instances/${e}/workspace/file?file_path=${encodeURIComponent(
|
|
786
786
|
n
|
|
@@ -789,7 +789,7 @@ async function Qn(e, n) {
|
|
|
789
789
|
);
|
|
790
790
|
return r(t, "获取文件内容失败");
|
|
791
791
|
}
|
|
792
|
-
async function
|
|
792
|
+
async function Xn(e, n, t) {
|
|
793
793
|
const s = await c(
|
|
794
794
|
`${i}/scenario-instances/${e}/workspace/file?file_path=${encodeURIComponent(
|
|
795
795
|
n
|
|
@@ -803,7 +803,7 @@ async function Kn(e, n, t) {
|
|
|
803
803
|
);
|
|
804
804
|
return r(s, "保存文件失败");
|
|
805
805
|
}
|
|
806
|
-
async function
|
|
806
|
+
async function Yn(e, n, t) {
|
|
807
807
|
const s = await c(
|
|
808
808
|
`${i}/scenario-instances/${e}/workspace/rename`,
|
|
809
809
|
{
|
|
@@ -815,7 +815,7 @@ async function Xn(e, n, t) {
|
|
|
815
815
|
);
|
|
816
816
|
return r(s, "重命名失败");
|
|
817
817
|
}
|
|
818
|
-
async function
|
|
818
|
+
async function et(e, n, t) {
|
|
819
819
|
const s = await c(
|
|
820
820
|
`${i}/scenario-instances/${e}/workspace/new-file`,
|
|
821
821
|
{
|
|
@@ -827,7 +827,7 @@ async function Yn(e, n, t) {
|
|
|
827
827
|
);
|
|
828
828
|
return r(s, "新建文件失败");
|
|
829
829
|
}
|
|
830
|
-
async function
|
|
830
|
+
async function nt(e, n, t) {
|
|
831
831
|
const s = await c(
|
|
832
832
|
`${i}/scenario-instances/${e}/workspace/new-folder`,
|
|
833
833
|
{
|
|
@@ -839,7 +839,7 @@ async function et(e, n, t) {
|
|
|
839
839
|
);
|
|
840
840
|
return r(s, "新建文件夹失败");
|
|
841
841
|
}
|
|
842
|
-
async function
|
|
842
|
+
async function tt(e, n) {
|
|
843
843
|
const t = await c(
|
|
844
844
|
`${i}/scenario-instances/${e}/workspace/delete`,
|
|
845
845
|
{
|
|
@@ -851,7 +851,7 @@ async function nt(e, n) {
|
|
|
851
851
|
);
|
|
852
852
|
return r(t, "删除失败");
|
|
853
853
|
}
|
|
854
|
-
async function
|
|
854
|
+
async function st(e, n, t) {
|
|
855
855
|
const s = new FormData();
|
|
856
856
|
s.append("file", t), s.append("parent_path", n);
|
|
857
857
|
const o = await c(
|
|
@@ -864,7 +864,7 @@ async function tt(e, n, t) {
|
|
|
864
864
|
);
|
|
865
865
|
return r(o, "上传文件失败");
|
|
866
866
|
}
|
|
867
|
-
async function
|
|
867
|
+
async function ot(e, n, t) {
|
|
868
868
|
const s = new FormData();
|
|
869
869
|
t.forEach((d) => s.append("files", d)), s.append("parent_path", n);
|
|
870
870
|
const o = await c(
|
|
@@ -877,7 +877,7 @@ async function st(e, n, t) {
|
|
|
877
877
|
);
|
|
878
878
|
return r(o, "上传文件夹失败");
|
|
879
879
|
}
|
|
880
|
-
async function
|
|
880
|
+
async function at(e, n) {
|
|
881
881
|
const t = await c(
|
|
882
882
|
`${i}/scenario-instances/${e}/workspace/download?file_path=${encodeURIComponent(
|
|
883
883
|
n
|
|
@@ -887,18 +887,18 @@ async function ot(e, n) {
|
|
|
887
887
|
if (!t.ok) throw new Error("下载失败");
|
|
888
888
|
return t.blob();
|
|
889
889
|
}
|
|
890
|
-
async function
|
|
890
|
+
async function xe(e, n = "") {
|
|
891
891
|
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await c(
|
|
892
892
|
`${i}/scenario-instances/${e}${t}`,
|
|
893
893
|
a
|
|
894
894
|
), o = await r(s, "获取项目失败"), d = o.status === "FOUND" ? "FOUND" : "NOT_FOUND", u = o.scenario_instance ?? o.scenarioInstance ?? null;
|
|
895
895
|
return {
|
|
896
896
|
status: d,
|
|
897
|
-
scenarioInstance: u ?
|
|
897
|
+
scenarioInstance: u ? b(u) : null
|
|
898
898
|
};
|
|
899
899
|
}
|
|
900
|
-
async function
|
|
901
|
-
const t = await
|
|
900
|
+
async function We(e, n = "") {
|
|
901
|
+
const t = await xe(e, n);
|
|
902
902
|
if (t.status === "NOT_FOUND" || !t.scenarioInstance)
|
|
903
903
|
throw {
|
|
904
904
|
_apiUserError: !0,
|
|
@@ -907,7 +907,7 @@ async function xe(e, n = "") {
|
|
|
907
907
|
};
|
|
908
908
|
return t.scenarioInstance;
|
|
909
909
|
}
|
|
910
|
-
async function
|
|
910
|
+
async function He(e, n = "") {
|
|
911
911
|
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await c(
|
|
912
912
|
`${i}/scenario-instances/${e}/join-self${t}`,
|
|
913
913
|
{
|
|
@@ -915,19 +915,19 @@ async function We(e, n = "") {
|
|
|
915
915
|
method: "POST"
|
|
916
916
|
}
|
|
917
917
|
), o = await r(s, "加入工程失败");
|
|
918
|
-
return
|
|
918
|
+
return b(o);
|
|
919
919
|
}
|
|
920
|
-
async function
|
|
921
|
-
return await
|
|
920
|
+
async function rt(e, n = "") {
|
|
921
|
+
return await We(e, n), He(e, n);
|
|
922
922
|
}
|
|
923
|
-
async function
|
|
923
|
+
async function it(e) {
|
|
924
924
|
const n = await c(`${i}/scenario-instances/${e}`, {
|
|
925
925
|
...a,
|
|
926
926
|
method: "DELETE"
|
|
927
927
|
});
|
|
928
928
|
return r(n, "删除项目失败");
|
|
929
929
|
}
|
|
930
|
-
async function
|
|
930
|
+
async function ct(e, n, t = "") {
|
|
931
931
|
const s = t ? `?token=${encodeURIComponent(t)}` : "", o = await c(
|
|
932
932
|
`${i}/scenario-instances/${e}/fork${s}`,
|
|
933
933
|
{
|
|
@@ -937,18 +937,18 @@ async function it(e, n, t = "") {
|
|
|
937
937
|
body: JSON.stringify({ mode: n })
|
|
938
938
|
}
|
|
939
939
|
), d = await r(o, "Fork 项目失败");
|
|
940
|
-
return
|
|
940
|
+
return b(d);
|
|
941
941
|
}
|
|
942
|
-
async function
|
|
942
|
+
async function dt(e, n) {
|
|
943
943
|
const t = await c(`${i}/scenario-instances/${e}`, {
|
|
944
944
|
...a,
|
|
945
945
|
method: "PATCH",
|
|
946
946
|
headers: { "Content-Type": "application/json" },
|
|
947
947
|
body: JSON.stringify(n)
|
|
948
948
|
}), s = await r(t, "更新项目失败");
|
|
949
|
-
return
|
|
949
|
+
return b(s);
|
|
950
950
|
}
|
|
951
|
-
async function
|
|
951
|
+
async function ut(e) {
|
|
952
952
|
const n = await c(
|
|
953
953
|
`${i}/scenario-instances/${e}/retry-image-parse`,
|
|
954
954
|
{
|
|
@@ -962,7 +962,7 @@ async function dt(e) {
|
|
|
962
962
|
message: s.message
|
|
963
963
|
};
|
|
964
964
|
}
|
|
965
|
-
async function
|
|
965
|
+
async function lt(e, n, t = "") {
|
|
966
966
|
const s = t ? `?token=${encodeURIComponent(t)}` : "", o = await c(
|
|
967
967
|
`${i}/scenario-instances/${e}/task-sessions/${n}${s}`,
|
|
968
968
|
{
|
|
@@ -973,16 +973,16 @@ async function ut(e, n, t = "") {
|
|
|
973
973
|
);
|
|
974
974
|
return r(o, "创建任务会话失败");
|
|
975
975
|
}
|
|
976
|
-
async function
|
|
976
|
+
async function pt(e, n, t = 50, s, o = "") {
|
|
977
977
|
let d = `${i}/scenario-instances/${e}/task-sessions/${n}/messages?limit=${t}`;
|
|
978
978
|
s && (d += `&before=${s}`), o && (d += `&token=${encodeURIComponent(o)}`);
|
|
979
979
|
const u = await c(d, a);
|
|
980
980
|
return r(u, "获取任务消息失败");
|
|
981
981
|
}
|
|
982
|
-
async function
|
|
982
|
+
async function mt(e, n, t, s = "", o) {
|
|
983
983
|
const d = s ? `?token=${encodeURIComponent(s)}` : "", u = { content: t };
|
|
984
984
|
o && o.length > 0 && (u.image_urls = o);
|
|
985
|
-
const
|
|
985
|
+
const m = await c(
|
|
986
986
|
`${i}/scenario-instances/${e}/task-sessions/${n}/messages${d}`,
|
|
987
987
|
{
|
|
988
988
|
...a,
|
|
@@ -991,13 +991,13 @@ async function pt(e, n, t, s = "", o) {
|
|
|
991
991
|
body: JSON.stringify(u)
|
|
992
992
|
}
|
|
993
993
|
);
|
|
994
|
-
return r(
|
|
994
|
+
return r(m, "发送任务消息失败");
|
|
995
995
|
}
|
|
996
|
-
async function
|
|
996
|
+
async function ft(e = "") {
|
|
997
997
|
const n = e ? `?token=${encodeURIComponent(e)}` : "", t = await c(`${i}/admin/scenarios${n}`, a);
|
|
998
998
|
return r(t, "获取场景列表失败");
|
|
999
999
|
}
|
|
1000
|
-
async function
|
|
1000
|
+
async function yt(e, n, t = "") {
|
|
1001
1001
|
const s = t ? `?token=${encodeURIComponent(t)}` : "", o = await c(
|
|
1002
1002
|
`${i}/admin/agents/${encodeURIComponent(
|
|
1003
1003
|
e
|
|
@@ -1011,14 +1011,14 @@ async function ft(e, n, t = "") {
|
|
|
1011
1011
|
);
|
|
1012
1012
|
return r(o, "测试登录失败");
|
|
1013
1013
|
}
|
|
1014
|
-
async function
|
|
1014
|
+
async function $t(e = "") {
|
|
1015
1015
|
const n = e ? `?token=${encodeURIComponent(e)}` : "", t = await c(
|
|
1016
1016
|
`${i}/admin/agents/identity-envs${n}`,
|
|
1017
1017
|
a
|
|
1018
1018
|
);
|
|
1019
1019
|
return r(t, "获取身份绑定环境列表失败");
|
|
1020
1020
|
}
|
|
1021
|
-
async function
|
|
1021
|
+
async function ht(e, n = "") {
|
|
1022
1022
|
const t = new URLSearchParams();
|
|
1023
1023
|
e && t.set("envCode", e), n && t.set("token", n);
|
|
1024
1024
|
const s = t.toString() ? `?${t.toString()}` : "", o = await c(
|
|
@@ -1027,7 +1027,7 @@ async function $t(e, n = "") {
|
|
|
1027
1027
|
);
|
|
1028
1028
|
return r(o, "获取成员列表失败") ?? [];
|
|
1029
1029
|
}
|
|
1030
|
-
async function
|
|
1030
|
+
async function gt(e, n, t = "") {
|
|
1031
1031
|
const s = t ? `?token=${encodeURIComponent(t)}` : "", o = await c(`${i}/admin/agents/${e}/move${s}`, {
|
|
1032
1032
|
...a,
|
|
1033
1033
|
method: "POST",
|
|
@@ -1036,19 +1036,19 @@ async function ht(e, n, t = "") {
|
|
|
1036
1036
|
});
|
|
1037
1037
|
return r(o, "移动 Agent 分类失败");
|
|
1038
1038
|
}
|
|
1039
|
-
async function
|
|
1039
|
+
async function St(e = "") {
|
|
1040
1040
|
const n = e ? `?token=${encodeURIComponent(e)}` : "", t = await c(`${i}/admin/agents/models${n}`, a);
|
|
1041
1041
|
return r(t, "获取模型列表失败");
|
|
1042
1042
|
}
|
|
1043
|
-
function
|
|
1043
|
+
function F(e) {
|
|
1044
1044
|
const n = Object.entries(e).filter(([, t]) => t !== void 0 && t !== "").map(([t, s]) => `${t}=${encodeURIComponent(s)}`);
|
|
1045
1045
|
return n.length ? `?${n.join("&")}` : "";
|
|
1046
1046
|
}
|
|
1047
|
-
async function
|
|
1047
|
+
async function wt(e, n = "") {
|
|
1048
1048
|
const t = await c(
|
|
1049
1049
|
`${i}/admin/agents/${encodeURIComponent(
|
|
1050
1050
|
e
|
|
1051
|
-
)}/ontology${
|
|
1051
|
+
)}/ontology${F({ token: n })}`,
|
|
1052
1052
|
a
|
|
1053
1053
|
);
|
|
1054
1054
|
return (await r(
|
|
@@ -1059,9 +1059,9 @@ async function St(e, n = "") {
|
|
|
1059
1059
|
nodeInfo: { ...o.nodeInfo, dataPrepareEnabled: !1 }
|
|
1060
1060
|
}));
|
|
1061
1061
|
}
|
|
1062
|
-
async function
|
|
1062
|
+
async function Tt(e, n = "") {
|
|
1063
1063
|
const t = await c(
|
|
1064
|
-
`${i}/admin/agents/ontology/ontologies${
|
|
1064
|
+
`${i}/admin/agents/ontology/ontologies${F({
|
|
1065
1065
|
ontologyType: e,
|
|
1066
1066
|
token: n
|
|
1067
1067
|
})}`,
|
|
@@ -1069,9 +1069,9 @@ async function wt(e, n = "") {
|
|
|
1069
1069
|
);
|
|
1070
1070
|
return r(t, "获取本体列表失败") ?? [];
|
|
1071
1071
|
}
|
|
1072
|
-
async function
|
|
1072
|
+
async function It(e, n = "") {
|
|
1073
1073
|
const t = await c(
|
|
1074
|
-
`${i}/admin/agents/ontology/knowledges${
|
|
1074
|
+
`${i}/admin/agents/ontology/knowledges${F({
|
|
1075
1075
|
ontologyCode: e,
|
|
1076
1076
|
token: n
|
|
1077
1077
|
})}`,
|
|
@@ -1079,7 +1079,7 @@ async function Tt(e, n = "") {
|
|
|
1079
1079
|
);
|
|
1080
1080
|
return r(t, "获取知识列表失败") ?? [];
|
|
1081
1081
|
}
|
|
1082
|
-
async function
|
|
1082
|
+
async function _t(e, n, t = "") {
|
|
1083
1083
|
const s = t ? `?token=${encodeURIComponent(t)}` : "", o = await c(`${i}/admin/skills/${e}/move${s}`, {
|
|
1084
1084
|
...a,
|
|
1085
1085
|
method: "POST",
|
|
@@ -1097,13 +1097,13 @@ async function Ct(e = "", n = "") {
|
|
|
1097
1097
|
);
|
|
1098
1098
|
return r(o, "获取员工列表失败");
|
|
1099
1099
|
}
|
|
1100
|
-
async function
|
|
1100
|
+
async function bt(e, n, t = "", s = "") {
|
|
1101
1101
|
const o = new URLSearchParams();
|
|
1102
1102
|
o.append("profileScope", e), o.append("memberType", n), t && o.append("scenarioCode", t), s && o.append("token", s);
|
|
1103
1103
|
const d = o.toString() ? `?${o.toString()}` : "", u = await c(`${i}/admin/profiles${d}`, a);
|
|
1104
1104
|
return r(u, "获取画像列表失败");
|
|
1105
1105
|
}
|
|
1106
|
-
async function
|
|
1106
|
+
async function At(e, n = "") {
|
|
1107
1107
|
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await c(`${i}/admin/profiles${t}`, {
|
|
1108
1108
|
...a,
|
|
1109
1109
|
method: "POST",
|
|
@@ -1112,10 +1112,10 @@ async function bt(e, n = "") {
|
|
|
1112
1112
|
});
|
|
1113
1113
|
return r(s, "保存画像失败");
|
|
1114
1114
|
}
|
|
1115
|
-
async function
|
|
1115
|
+
async function Ut(e, n, t, s = "", o = "") {
|
|
1116
1116
|
const d = new URLSearchParams();
|
|
1117
1117
|
s && d.append("scenarioCode", s), o && d.append("token", o);
|
|
1118
|
-
const u = d.toString() ? `?${d.toString()}` : "",
|
|
1118
|
+
const u = d.toString() ? `?${d.toString()}` : "", m = await c(
|
|
1119
1119
|
`${i}/admin/profiles/${encodeURIComponent(
|
|
1120
1120
|
e
|
|
1121
1121
|
)}/${encodeURIComponent(n)}/${encodeURIComponent(t)}${u}`,
|
|
@@ -1124,9 +1124,9 @@ async function At(e, n, t, s = "", o = "") {
|
|
|
1124
1124
|
method: "DELETE"
|
|
1125
1125
|
}
|
|
1126
1126
|
);
|
|
1127
|
-
return r(
|
|
1127
|
+
return r(m, "删除画像失败");
|
|
1128
1128
|
}
|
|
1129
|
-
async function
|
|
1129
|
+
async function Ot(e = "", n = "") {
|
|
1130
1130
|
const t = new URLSearchParams();
|
|
1131
1131
|
e && t.append("scenarioCode", e), n && t.append("token", n);
|
|
1132
1132
|
const s = t.toString() ? `?${t.toString()}` : "", o = await c(`${i}/admin/human-on-calls${s}`, a);
|
|
@@ -1141,7 +1141,7 @@ async function Et(e, n, t, s = "") {
|
|
|
1141
1141
|
});
|
|
1142
1142
|
return r(d, "保存值班信息失败");
|
|
1143
1143
|
}
|
|
1144
|
-
async function
|
|
1144
|
+
async function Pt(e, n, t, s = "") {
|
|
1145
1145
|
const o = s ? `?token=${encodeURIComponent(s)}` : "", d = await c(
|
|
1146
1146
|
`${i}/admin/human-on-calls/${encodeURIComponent(
|
|
1147
1147
|
e
|
|
@@ -1150,7 +1150,7 @@ async function Ot(e, n, t, s = "") {
|
|
|
1150
1150
|
);
|
|
1151
1151
|
return r(d, "删除值班信息失败");
|
|
1152
1152
|
}
|
|
1153
|
-
async function
|
|
1153
|
+
async function kt(e = {}, n = "") {
|
|
1154
1154
|
const t = [];
|
|
1155
1155
|
e.scenarioCode && t.push(`scenario_code=${encodeURIComponent(e.scenarioCode)}`), e.status && t.push(`status=${encodeURIComponent(e.status)}`), n && t.push(`token=${encodeURIComponent(n)}`);
|
|
1156
1156
|
const s = t.length > 0 ? `?${t.join("&")}` : "", o = await c(
|
|
@@ -1162,7 +1162,7 @@ async function Pt(e = {}, n = "") {
|
|
|
1162
1162
|
);
|
|
1163
1163
|
return r(o, "全量刷新技能失败");
|
|
1164
1164
|
}
|
|
1165
|
-
async function
|
|
1165
|
+
async function Rt(e, n = "") {
|
|
1166
1166
|
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await c(
|
|
1167
1167
|
`${i}/admin/scenario-instances/${e}/refresh-skills${t}`,
|
|
1168
1168
|
{
|
|
@@ -1172,7 +1172,7 @@ async function kt(e, n = "") {
|
|
|
1172
1172
|
);
|
|
1173
1173
|
return r(s, "刷新技能失败");
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1175
|
+
function A(e) {
|
|
1176
1176
|
const n = (...s) => {
|
|
1177
1177
|
for (const o of s) {
|
|
1178
1178
|
const d = e[o];
|
|
@@ -1196,18 +1196,18 @@ function b(e) {
|
|
|
1196
1196
|
updateTime: e.update_time == null ? e.updateTime : String(e.update_time)
|
|
1197
1197
|
};
|
|
1198
1198
|
}
|
|
1199
|
-
async function
|
|
1199
|
+
async function Nt(e = "") {
|
|
1200
1200
|
const n = e ? `?token=${encodeURIComponent(e)}` : "", t = await c(`${i}/personal-agents${n}`, a), s = await r(t, "获取个人 Agent 列表失败");
|
|
1201
|
-
return (Array.isArray(s) ? s : []).map((o) =>
|
|
1201
|
+
return (Array.isArray(s) ? s : []).map((o) => A(o));
|
|
1202
1202
|
}
|
|
1203
|
-
async function
|
|
1203
|
+
async function jt(e, n = "") {
|
|
1204
1204
|
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await c(`${i}/personal-agents${t}`, {
|
|
1205
1205
|
...a,
|
|
1206
1206
|
method: "POST",
|
|
1207
1207
|
headers: { "Content-Type": "application/json" },
|
|
1208
1208
|
body: JSON.stringify({ display_name: e })
|
|
1209
1209
|
});
|
|
1210
|
-
return
|
|
1210
|
+
return A(
|
|
1211
1211
|
await r(s, "创建个人 Agent 失败")
|
|
1212
1212
|
);
|
|
1213
1213
|
}
|
|
@@ -1223,29 +1223,29 @@ async function vt(e, n, t, s, o = "") {
|
|
|
1223
1223
|
avatar: s ?? ""
|
|
1224
1224
|
})
|
|
1225
1225
|
});
|
|
1226
|
-
return
|
|
1226
|
+
return A(
|
|
1227
1227
|
await r(u, "创建个人 Agent 失败")
|
|
1228
1228
|
);
|
|
1229
1229
|
}
|
|
1230
|
-
async function
|
|
1230
|
+
async function qt(e, n = "") {
|
|
1231
1231
|
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await c(`${i}/personal-agents/${e}${t}`, {
|
|
1232
1232
|
...a,
|
|
1233
1233
|
method: "DELETE"
|
|
1234
1234
|
});
|
|
1235
1235
|
return r(s, "删除个人 Agent 失败");
|
|
1236
1236
|
}
|
|
1237
|
-
async function
|
|
1237
|
+
async function Dt(e, n, t = "") {
|
|
1238
1238
|
const s = t ? `?token=${encodeURIComponent(t)}` : "", o = await c(`${i}/personal-agents/${e}${s}`, {
|
|
1239
1239
|
...a,
|
|
1240
1240
|
method: "PUT",
|
|
1241
1241
|
headers: { "Content-Type": "application/json" },
|
|
1242
1242
|
body: JSON.stringify({ display_name: n })
|
|
1243
1243
|
});
|
|
1244
|
-
return
|
|
1244
|
+
return A(
|
|
1245
1245
|
await r(o, "重命名个人 Agent 失败")
|
|
1246
1246
|
);
|
|
1247
1247
|
}
|
|
1248
|
-
async function
|
|
1248
|
+
async function Jt(e = "") {
|
|
1249
1249
|
const n = e ? `?token=${encodeURIComponent(e)}` : "", t = await c(
|
|
1250
1250
|
`${i}/personal-agents/shared${n}`,
|
|
1251
1251
|
a
|
|
@@ -1254,28 +1254,35 @@ async function Dt(e = "") {
|
|
|
1254
1254
|
"获取共享 Agent 列表失败"
|
|
1255
1255
|
);
|
|
1256
1256
|
return (Array.isArray(s) ? s : []).map(
|
|
1257
|
-
(o) =>
|
|
1257
|
+
(o) => A(o)
|
|
1258
1258
|
);
|
|
1259
1259
|
}
|
|
1260
|
-
async function
|
|
1260
|
+
async function zt(e, n, t = "") {
|
|
1261
1261
|
const s = t ? `?token=${encodeURIComponent(t)}` : "", o = await c(`${i}/personal-agents/${e}/share${s}`, {
|
|
1262
1262
|
...a,
|
|
1263
1263
|
method: "PUT",
|
|
1264
1264
|
headers: { "Content-Type": "application/json" },
|
|
1265
1265
|
body: JSON.stringify({ shared: n })
|
|
1266
1266
|
});
|
|
1267
|
-
return
|
|
1267
|
+
return A(
|
|
1268
1268
|
await r(o, "切换共享状态失败")
|
|
1269
1269
|
);
|
|
1270
1270
|
}
|
|
1271
|
-
async function
|
|
1271
|
+
async function Lt(e, n = "") {
|
|
1272
1272
|
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await c(
|
|
1273
1273
|
`${i}/personal-agents/${e}/sessions${t}`,
|
|
1274
1274
|
a
|
|
1275
|
-
)
|
|
1276
|
-
|
|
1275
|
+
), o = await r(
|
|
1276
|
+
s,
|
|
1277
|
+
"获取会话列表失败"
|
|
1278
|
+
), d = o == null ? void 0 : o.sessions;
|
|
1279
|
+
return {
|
|
1280
|
+
sessions: (Array.isArray(d) ? d : []).map(z),
|
|
1281
|
+
isOwner: (o == null ? void 0 : o.isOwner) === !0,
|
|
1282
|
+
userMeta: (o == null ? void 0 : o.userMeta) ?? {}
|
|
1283
|
+
};
|
|
1277
1284
|
}
|
|
1278
|
-
async function
|
|
1285
|
+
async function Mt(e, n = "新会话", t = "", s) {
|
|
1279
1286
|
const o = t ? `?token=${encodeURIComponent(t)}` : "", d = await c(
|
|
1280
1287
|
`${i}/personal-agents/${e}/sessions${o}`,
|
|
1281
1288
|
{
|
|
@@ -1291,16 +1298,37 @@ async function Lt(e, n = "新会话", t = "", s) {
|
|
|
1291
1298
|
})
|
|
1292
1299
|
}
|
|
1293
1300
|
);
|
|
1294
|
-
return
|
|
1301
|
+
return z(
|
|
1302
|
+
await r(d, "创建会话失败")
|
|
1303
|
+
);
|
|
1304
|
+
}
|
|
1305
|
+
function z(e) {
|
|
1306
|
+
const n = e ?? {}, t = (...m) => {
|
|
1307
|
+
for (const I of m) {
|
|
1308
|
+
const U = n[I];
|
|
1309
|
+
if (U != null && U !== "") return String(U);
|
|
1310
|
+
}
|
|
1311
|
+
return "";
|
|
1312
|
+
}, s = n.project_space_id ?? n.projectSpaceId, o = n.project_space_title ?? n.projectSpaceTitle, d = t("create_time", "createTime"), u = t("update_time", "updateTime");
|
|
1313
|
+
return {
|
|
1314
|
+
id: p(n.id),
|
|
1315
|
+
personalAgentId: p(n.personal_agent_id ?? n.personalAgentId),
|
|
1316
|
+
userId: t("user_id", "userId"),
|
|
1317
|
+
title: t("title"),
|
|
1318
|
+
projectSpaceId: s != null && s !== "" ? p(s) : null,
|
|
1319
|
+
projectSpaceTitle: o != null && o !== "" ? String(o) : null,
|
|
1320
|
+
createTime: d || void 0,
|
|
1321
|
+
updateTime: u || void 0
|
|
1322
|
+
};
|
|
1295
1323
|
}
|
|
1296
|
-
async function
|
|
1324
|
+
async function Bt(e = "") {
|
|
1297
1325
|
const n = e ? `?token=${encodeURIComponent(e)}` : "", t = await c(
|
|
1298
1326
|
`${i}/personal-agents/sessions/all${n}`,
|
|
1299
1327
|
a
|
|
1300
|
-
);
|
|
1301
|
-
return
|
|
1328
|
+
), s = await r(t, "获取聊天记录失败");
|
|
1329
|
+
return (Array.isArray(s) ? s : []).map(z);
|
|
1302
1330
|
}
|
|
1303
|
-
async function
|
|
1331
|
+
async function Ft(e, n, t = "", s) {
|
|
1304
1332
|
const o = t ? `?token=${encodeURIComponent(t)}` : "", d = await c(
|
|
1305
1333
|
`${i}/personal-agents/${e}/sessions/${n}${o}`,
|
|
1306
1334
|
{
|
|
@@ -1312,27 +1340,29 @@ async function Bt(e, n, t = "", s) {
|
|
|
1312
1340
|
)
|
|
1313
1341
|
}
|
|
1314
1342
|
);
|
|
1315
|
-
return
|
|
1343
|
+
return z(
|
|
1344
|
+
await r(d, "会话归组失败")
|
|
1345
|
+
);
|
|
1316
1346
|
}
|
|
1317
|
-
async function
|
|
1347
|
+
async function xt(e) {
|
|
1318
1348
|
const n = e ? `?token=${encodeURIComponent(e)}` : "", t = await c(`${i}/personal-agents/models${n}`, a);
|
|
1319
1349
|
return r(t, "获取模型列表失败");
|
|
1320
1350
|
}
|
|
1321
|
-
async function
|
|
1351
|
+
async function Wt(e) {
|
|
1322
1352
|
const n = e ? `?token=${encodeURIComponent(e)}` : "", t = await c(
|
|
1323
1353
|
`${i}/personal-agents/custom-models${n}`,
|
|
1324
1354
|
a
|
|
1325
1355
|
);
|
|
1326
1356
|
return r(t, "获取自定义模型失败");
|
|
1327
1357
|
}
|
|
1328
|
-
async function
|
|
1358
|
+
async function Ht(e, n, t = "") {
|
|
1329
1359
|
const s = t ? `?token=${encodeURIComponent(t)}` : "", o = await c(
|
|
1330
1360
|
`${i}/personal-agents/${e}/sessions/${n}${s}`,
|
|
1331
1361
|
{ ...a, method: "DELETE" }
|
|
1332
1362
|
);
|
|
1333
1363
|
return r(o, "删除会话失败");
|
|
1334
1364
|
}
|
|
1335
|
-
async function
|
|
1365
|
+
async function Gt(e, n, t, s = "") {
|
|
1336
1366
|
const o = s ? `?token=${encodeURIComponent(s)}` : "", d = await c(
|
|
1337
1367
|
`${i}/personal-agents/${e}/sessions/${n}${o}`,
|
|
1338
1368
|
{
|
|
@@ -1344,58 +1374,58 @@ async function Ht(e, n, t, s = "") {
|
|
|
1344
1374
|
);
|
|
1345
1375
|
return r(d, "重命名会话失败");
|
|
1346
1376
|
}
|
|
1347
|
-
async function
|
|
1377
|
+
async function Zt(e, n, t = "") {
|
|
1348
1378
|
const s = t ? `?token=${encodeURIComponent(t)}` : "", o = await c(
|
|
1349
1379
|
`${i}/personal-agents/${e}/sessions/${n}/messages${s}`,
|
|
1350
1380
|
a
|
|
1351
1381
|
);
|
|
1352
1382
|
return r(o, "获取消息历史失败");
|
|
1353
1383
|
}
|
|
1354
|
-
async function
|
|
1355
|
-
const
|
|
1384
|
+
async function Vt(e, n, t, s, o, d, u, m, I) {
|
|
1385
|
+
const U = s ? `?token=${encodeURIComponent(s)}` : "", le = `${i}/personal-agents/${e}/sessions/${n}/chat/stream${U}`;
|
|
1356
1386
|
try {
|
|
1357
|
-
const y = await fetch(
|
|
1387
|
+
const y = await fetch(le, {
|
|
1358
1388
|
...a,
|
|
1359
1389
|
method: "POST",
|
|
1360
1390
|
headers: { "Content-Type": "application/json" },
|
|
1361
|
-
body: JSON.stringify(
|
|
1391
|
+
body: JSON.stringify(I ? { message: t, llmCode: I } : { message: t })
|
|
1362
1392
|
});
|
|
1363
1393
|
if (!y.ok || !y.body) {
|
|
1364
|
-
const
|
|
1365
|
-
d(new Error(
|
|
1394
|
+
const M = await y.text().catch(() => "");
|
|
1395
|
+
d(new Error(M || `HTTP ${y.status}`));
|
|
1366
1396
|
return;
|
|
1367
1397
|
}
|
|
1368
|
-
const
|
|
1369
|
-
let
|
|
1398
|
+
const pe = y.body.getReader(), me = new TextDecoder();
|
|
1399
|
+
let L = "", R = "";
|
|
1370
1400
|
for (; ; ) {
|
|
1371
|
-
const { done:
|
|
1372
|
-
if (
|
|
1373
|
-
|
|
1374
|
-
const
|
|
1401
|
+
const { done: M, value: fe } = await pe.read();
|
|
1402
|
+
if (M) break;
|
|
1403
|
+
L += me.decode(fe, { stream: !0 });
|
|
1404
|
+
const x = L.split(`
|
|
1375
1405
|
`);
|
|
1376
|
-
|
|
1377
|
-
for (const
|
|
1378
|
-
const
|
|
1379
|
-
if (!
|
|
1380
|
-
|
|
1406
|
+
L = x.pop() || "";
|
|
1407
|
+
for (const ye of x) {
|
|
1408
|
+
const _ = ye.trim();
|
|
1409
|
+
if (!_) {
|
|
1410
|
+
R = "";
|
|
1381
1411
|
continue;
|
|
1382
1412
|
}
|
|
1383
|
-
if (!
|
|
1384
|
-
if (
|
|
1385
|
-
|
|
1413
|
+
if (!_.startsWith(":")) {
|
|
1414
|
+
if (_.startsWith("event:")) {
|
|
1415
|
+
R = _.slice(6).trim();
|
|
1386
1416
|
continue;
|
|
1387
1417
|
}
|
|
1388
|
-
if (
|
|
1389
|
-
const
|
|
1390
|
-
if (
|
|
1391
|
-
|
|
1418
|
+
if (_.startsWith("data:")) {
|
|
1419
|
+
const N = _.slice(5).trim();
|
|
1420
|
+
if (R === "replace") {
|
|
1421
|
+
m && m(N), R = "";
|
|
1392
1422
|
continue;
|
|
1393
1423
|
}
|
|
1394
|
-
if (
|
|
1395
|
-
d(new Error(
|
|
1424
|
+
if (N.startsWith("[error]")) {
|
|
1425
|
+
d(new Error(N.slice(7).trim()));
|
|
1396
1426
|
return;
|
|
1397
1427
|
}
|
|
1398
|
-
o(
|
|
1428
|
+
o(N);
|
|
1399
1429
|
}
|
|
1400
1430
|
}
|
|
1401
1431
|
}
|
|
@@ -1405,22 +1435,22 @@ async function Zt(e, n, t, s, o, d, u, f, P) {
|
|
|
1405
1435
|
d(y instanceof Error ? y : new Error(String(y)));
|
|
1406
1436
|
}
|
|
1407
1437
|
}
|
|
1408
|
-
const
|
|
1409
|
-
async function
|
|
1410
|
-
await fetch(`${
|
|
1438
|
+
const Ge = "http://127.0.0.1:28080";
|
|
1439
|
+
async function Qt(e) {
|
|
1440
|
+
await fetch(`${Ge}/v1/sessions/${e}`, {
|
|
1411
1441
|
method: "DELETE"
|
|
1412
1442
|
});
|
|
1413
1443
|
}
|
|
1414
|
-
async function
|
|
1444
|
+
async function Kt(e = {}) {
|
|
1415
1445
|
const n = new URLSearchParams(), { name: t, scenarioInstanceId: s, page: o = 1, size: d = 50, token: u = "" } = e;
|
|
1416
1446
|
t && n.set("name", t), s != null && s !== "" && n.set("scenarioInstanceId", String(s)), n.set("page", String(o)), n.set("size", String(d)), u && n.set("token", u);
|
|
1417
|
-
const
|
|
1418
|
-
`${i}/admin/tasks${
|
|
1447
|
+
const m = n.toString(), I = await c(
|
|
1448
|
+
`${i}/admin/tasks${m ? `?${m}` : ""}`,
|
|
1419
1449
|
a
|
|
1420
1450
|
);
|
|
1421
|
-
return r(
|
|
1451
|
+
return r(I, "获取任务列表失败");
|
|
1422
1452
|
}
|
|
1423
|
-
function
|
|
1453
|
+
function Ze(e) {
|
|
1424
1454
|
const n = new URLSearchParams();
|
|
1425
1455
|
Object.entries(e).forEach(([s, o]) => {
|
|
1426
1456
|
o != null && o !== "" && n.append(s, String(o));
|
|
@@ -1428,14 +1458,14 @@ function Ge(e) {
|
|
|
1428
1458
|
const t = n.toString();
|
|
1429
1459
|
return t ? `?${t}` : "";
|
|
1430
1460
|
}
|
|
1431
|
-
async function
|
|
1461
|
+
async function Xt(e) {
|
|
1432
1462
|
const n = await c(
|
|
1433
|
-
`${i}/admin/tool-call-logs/timeline${
|
|
1463
|
+
`${i}/admin/tool-call-logs/timeline${Ze(e)}`,
|
|
1434
1464
|
a
|
|
1435
1465
|
);
|
|
1436
1466
|
return r(n, "查询工具调用时间轴统计失败");
|
|
1437
1467
|
}
|
|
1438
|
-
async function
|
|
1468
|
+
async function Yt(e) {
|
|
1439
1469
|
const n = [];
|
|
1440
1470
|
e.date && n.push(`date=${encodeURIComponent(e.date)}`), e.scenarioCode && n.push(`scenarioCode=${encodeURIComponent(e.scenarioCode)}`), e.token && n.push(`token=${encodeURIComponent(e.token)}`);
|
|
1441
1471
|
const t = n.length > 0 ? `?${n.join("&")}` : "", s = await c(
|
|
@@ -1444,14 +1474,14 @@ async function Xt(e) {
|
|
|
1444
1474
|
);
|
|
1445
1475
|
return r(s, "获取 Token 单日统计失败");
|
|
1446
1476
|
}
|
|
1447
|
-
async function
|
|
1477
|
+
async function es(e = "z-team") {
|
|
1448
1478
|
const n = await c(
|
|
1449
1479
|
`${i}/change-log/versions?repo=${encodeURIComponent(e)}`,
|
|
1450
1480
|
a
|
|
1451
1481
|
);
|
|
1452
1482
|
return r(n, "获取变更日志版本列表失败");
|
|
1453
1483
|
}
|
|
1454
|
-
async function
|
|
1484
|
+
async function ns(e, n, t = "z-team") {
|
|
1455
1485
|
const s = new URLSearchParams();
|
|
1456
1486
|
e != null && s.set("versionId", String(e)), s.set("repo", t);
|
|
1457
1487
|
const o = await c(
|
|
@@ -1460,14 +1490,14 @@ async function es(e, n, t = "z-team") {
|
|
|
1460
1490
|
);
|
|
1461
1491
|
return r(o, "获取变更日志详情失败");
|
|
1462
1492
|
}
|
|
1463
|
-
async function
|
|
1493
|
+
async function ts(e) {
|
|
1464
1494
|
const n = await c(
|
|
1465
|
-
`${
|
|
1495
|
+
`${De}/evolution/records/${e}/reset`,
|
|
1466
1496
|
{ ...a, method: "POST" }
|
|
1467
1497
|
);
|
|
1468
1498
|
return r(n, "操作失败");
|
|
1469
1499
|
}
|
|
1470
|
-
function
|
|
1500
|
+
function f(e) {
|
|
1471
1501
|
const n = new URLSearchParams();
|
|
1472
1502
|
Object.entries(e).forEach(([s, o]) => {
|
|
1473
1503
|
o != null && o !== "" && n.append(s, String(o));
|
|
@@ -1475,9 +1505,9 @@ function m(e) {
|
|
|
1475
1505
|
const t = n.toString();
|
|
1476
1506
|
return t ? `?${t}` : "";
|
|
1477
1507
|
}
|
|
1478
|
-
async function
|
|
1508
|
+
async function ss(e) {
|
|
1479
1509
|
const n = await c(
|
|
1480
|
-
`${i}/admin/qa-eval/closed-instances${
|
|
1510
|
+
`${i}/admin/qa-eval/closed-instances${f({
|
|
1481
1511
|
close_date: e.closeDate,
|
|
1482
1512
|
close_date_start: e.closeDateStart,
|
|
1483
1513
|
close_date_end: e.closeDateEnd,
|
|
@@ -1491,9 +1521,9 @@ async function ts(e) {
|
|
|
1491
1521
|
);
|
|
1492
1522
|
return Array.isArray(t == null ? void 0 : t.list) ? t.list : [];
|
|
1493
1523
|
}
|
|
1494
|
-
async function
|
|
1524
|
+
async function os(e) {
|
|
1495
1525
|
const n = await c(
|
|
1496
|
-
`${i}/admin/qa-eval/overview${
|
|
1526
|
+
`${i}/admin/qa-eval/overview${f({
|
|
1497
1527
|
close_date: e.closeDate,
|
|
1498
1528
|
close_date_start: e.closeDateStart,
|
|
1499
1529
|
close_date_end: e.closeDateEnd,
|
|
@@ -1504,16 +1534,16 @@ async function ss(e) {
|
|
|
1504
1534
|
);
|
|
1505
1535
|
return r(n, "获取 QA 评测总览失败");
|
|
1506
1536
|
}
|
|
1507
|
-
async function
|
|
1537
|
+
async function as(e, n = "") {
|
|
1508
1538
|
const t = await c(
|
|
1509
|
-
`${i}/admin/qa-eval/report/${e}/cancel${
|
|
1539
|
+
`${i}/admin/qa-eval/report/${e}/cancel${f({
|
|
1510
1540
|
token: n
|
|
1511
1541
|
})}`,
|
|
1512
1542
|
{ ...a, method: "POST" }
|
|
1513
1543
|
);
|
|
1514
1544
|
return r(t, "取消评测失败");
|
|
1515
1545
|
}
|
|
1516
|
-
async function
|
|
1546
|
+
async function rs(e, n, t = "") {
|
|
1517
1547
|
const s = t ? `?token=${encodeURIComponent(t)}` : "", o = await c(
|
|
1518
1548
|
`${i}/admin/scenario-templates/preview${s}`,
|
|
1519
1549
|
{
|
|
@@ -1526,14 +1556,14 @@ async function as(e, n, t = "") {
|
|
|
1526
1556
|
if (!o.ok) throw new Error(`HTTP ${o.status}`);
|
|
1527
1557
|
return o.text();
|
|
1528
1558
|
}
|
|
1529
|
-
async function
|
|
1559
|
+
async function is(e, n = "") {
|
|
1530
1560
|
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await c(
|
|
1531
1561
|
`${i}/tasks/${e}/human-assist${t}`,
|
|
1532
1562
|
{ ...a, method: "GET" }
|
|
1533
1563
|
);
|
|
1534
1564
|
return r(s, "查询人机协助卡片失败");
|
|
1535
1565
|
}
|
|
1536
|
-
async function
|
|
1566
|
+
async function cs(e, n, t, s = "") {
|
|
1537
1567
|
const o = s ? `?token=${encodeURIComponent(s)}` : "", d = await c(
|
|
1538
1568
|
`${i}/scenario-instances/${e}/card-forms/${n}/submit${o}`,
|
|
1539
1569
|
{
|
|
@@ -1545,7 +1575,7 @@ async function is(e, n, t, s = "") {
|
|
|
1545
1575
|
);
|
|
1546
1576
|
return r(d, "提交卡片表单失败");
|
|
1547
1577
|
}
|
|
1548
|
-
async function
|
|
1578
|
+
async function ds(e, n, t = "") {
|
|
1549
1579
|
const s = t ? `?token=${encodeURIComponent(t)}` : "", o = await c(
|
|
1550
1580
|
`${i}/tasks/${e}/submit-assist${s}`,
|
|
1551
1581
|
{
|
|
@@ -1557,17 +1587,17 @@ async function cs(e, n, t = "") {
|
|
|
1557
1587
|
);
|
|
1558
1588
|
return r(o, "提交人机协助任务失败");
|
|
1559
1589
|
}
|
|
1560
|
-
function
|
|
1590
|
+
function us(e) {
|
|
1561
1591
|
return webIdeFetch(`/instances/${e}`, { method: "DELETE" });
|
|
1562
1592
|
}
|
|
1563
|
-
async function
|
|
1593
|
+
async function ls(e = "") {
|
|
1564
1594
|
const n = await c(
|
|
1565
|
-
`${i}/admin/runtime-monitor/schedule${
|
|
1595
|
+
`${i}/admin/runtime-monitor/schedule${f({ token: e })}`,
|
|
1566
1596
|
a
|
|
1567
1597
|
);
|
|
1568
1598
|
return r(n, "查询定时任务概览失败");
|
|
1569
1599
|
}
|
|
1570
|
-
async function
|
|
1600
|
+
async function ps(e) {
|
|
1571
1601
|
const n = new URLSearchParams();
|
|
1572
1602
|
n.set("scenarioCode", e.scenarioCode), e.startDate && n.set("startDate", e.startDate), e.endDate && n.set("endDate", e.endDate), e.creatorId && n.set("creatorId", e.creatorId), e.tagFilters && Object.keys(e.tagFilters).length > 0 && n.set("tagFilters", JSON.stringify(e.tagFilters)), e.groupBy && n.set("groupBy", e.groupBy), e.token && n.set("token", e.token);
|
|
1573
1603
|
const t = await c(
|
|
@@ -1584,7 +1614,7 @@ async function ls(e) {
|
|
|
1584
1614
|
activeCreators: (s == null ? void 0 : s.activeCreators) ?? void 0
|
|
1585
1615
|
};
|
|
1586
1616
|
}
|
|
1587
|
-
async function
|
|
1617
|
+
async function ms(e, n = "") {
|
|
1588
1618
|
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await c(
|
|
1589
1619
|
`${i}/admin/scenario-tags/values/${e}${t}`,
|
|
1590
1620
|
{
|
|
@@ -1594,7 +1624,7 @@ async function ps(e, n = "") {
|
|
|
1594
1624
|
);
|
|
1595
1625
|
return r(s, "删除标签值失败");
|
|
1596
1626
|
}
|
|
1597
|
-
async function
|
|
1627
|
+
async function fs(e, n, t) {
|
|
1598
1628
|
const s = await c(
|
|
1599
1629
|
`${i}/scenario-instances/${e}/workspace/git-clone`,
|
|
1600
1630
|
{
|
|
@@ -1611,14 +1641,14 @@ async function ms(e, n, t) {
|
|
|
1611
1641
|
);
|
|
1612
1642
|
return r(s, "Git Clone 失败");
|
|
1613
1643
|
}
|
|
1614
|
-
async function
|
|
1644
|
+
async function ys() {
|
|
1615
1645
|
const e = await c(
|
|
1616
1646
|
`${i}/scenarios/biz-consult-domains`,
|
|
1617
1647
|
a
|
|
1618
1648
|
);
|
|
1619
1649
|
return r(e, "获取业务域选项失败");
|
|
1620
1650
|
}
|
|
1621
|
-
async function
|
|
1651
|
+
async function $s(e, n, t = "") {
|
|
1622
1652
|
const s = t ? `?token=${encodeURIComponent(t)}` : "", o = await c(`${i}/todo/projects/${e}${s}`, {
|
|
1623
1653
|
...a,
|
|
1624
1654
|
method: "PUT",
|
|
@@ -1627,7 +1657,7 @@ async function ys(e, n, t = "") {
|
|
|
1627
1657
|
});
|
|
1628
1658
|
return r(o, "更新项目失败");
|
|
1629
1659
|
}
|
|
1630
|
-
async function
|
|
1660
|
+
async function hs(e, n = "") {
|
|
1631
1661
|
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await c(`${i}/todo/items/reorder-batch${t}`, {
|
|
1632
1662
|
...a,
|
|
1633
1663
|
method: "POST",
|
|
@@ -1636,7 +1666,7 @@ async function $s(e, n = "") {
|
|
|
1636
1666
|
});
|
|
1637
1667
|
return r(s, "调整排序失败");
|
|
1638
1668
|
}
|
|
1639
|
-
async function
|
|
1669
|
+
async function gs(e, n = "") {
|
|
1640
1670
|
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await c(`${i}/todo/projects/reorder-batch${t}`, {
|
|
1641
1671
|
...a,
|
|
1642
1672
|
method: "POST",
|
|
@@ -1645,14 +1675,14 @@ async function hs(e, n = "") {
|
|
|
1645
1675
|
});
|
|
1646
1676
|
return r(s, "调整项目排序失败");
|
|
1647
1677
|
}
|
|
1648
|
-
async function
|
|
1678
|
+
async function Ss(e = "") {
|
|
1649
1679
|
const n = e ? `?token=${encodeURIComponent(e)}` : "", t = await c(
|
|
1650
1680
|
`${i}/admin/statistics/current-dept${n}`,
|
|
1651
1681
|
a
|
|
1652
1682
|
);
|
|
1653
1683
|
return r(t, "获取当前用户部门信息失败");
|
|
1654
1684
|
}
|
|
1655
|
-
function
|
|
1685
|
+
function Ve(e) {
|
|
1656
1686
|
const n = new URLSearchParams();
|
|
1657
1687
|
Object.entries(e).forEach(([s, o]) => {
|
|
1658
1688
|
o != null && o !== "" && n.append(s, String(o));
|
|
@@ -1660,9 +1690,9 @@ function Ze(e) {
|
|
|
1660
1690
|
const t = n.toString();
|
|
1661
1691
|
return t ? `?${t}` : "";
|
|
1662
1692
|
}
|
|
1663
|
-
async function
|
|
1693
|
+
async function ws(e) {
|
|
1664
1694
|
const n = await c(
|
|
1665
|
-
`${i}/admin/evaluation/instances/${e.id}/snapshot-preview${
|
|
1695
|
+
`${i}/admin/evaluation/instances/${e.id}/snapshot-preview${Ve({
|
|
1666
1696
|
section: e.section,
|
|
1667
1697
|
page: e.page,
|
|
1668
1698
|
size: e.size,
|
|
@@ -1673,10 +1703,10 @@ async function Ss(e) {
|
|
|
1673
1703
|
);
|
|
1674
1704
|
return r(n, "获取快照预览失败");
|
|
1675
1705
|
}
|
|
1676
|
-
const
|
|
1677
|
-
async function
|
|
1706
|
+
const Qe = typeof window < "u" && window.ZTEAM_WEBIDE_ADMIN_BASE || "http://localhost/kapi/webide/admin";
|
|
1707
|
+
async function Ke(e, n) {
|
|
1678
1708
|
try {
|
|
1679
|
-
const t = await fetch(`${
|
|
1709
|
+
const t = await fetch(`${Qe}${e}`, {
|
|
1680
1710
|
credentials: "include",
|
|
1681
1711
|
headers: {
|
|
1682
1712
|
Accept: "application/json",
|
|
@@ -1689,11 +1719,11 @@ async function Qe(e, n) {
|
|
|
1689
1719
|
return {};
|
|
1690
1720
|
}
|
|
1691
1721
|
}
|
|
1692
|
-
function
|
|
1693
|
-
return
|
|
1722
|
+
function Ts(e) {
|
|
1723
|
+
return Ke(`/presets/${e}`, { method: "DELETE" });
|
|
1694
1724
|
}
|
|
1695
|
-
const
|
|
1696
|
-
async function
|
|
1725
|
+
const Is = ae;
|
|
1726
|
+
async function _s(e) {
|
|
1697
1727
|
const n = new FormData();
|
|
1698
1728
|
n.append("file", e);
|
|
1699
1729
|
const t = await c(`${i}/common/upload-video`, {
|
|
@@ -1710,7 +1740,7 @@ function Cs() {
|
|
|
1710
1740
|
const e = "登录已失效,请重新登录";
|
|
1711
1741
|
throw g(e), { _apiUserError: !0, userMessage: e, message: e };
|
|
1712
1742
|
}
|
|
1713
|
-
async function
|
|
1743
|
+
async function bs(e) {
|
|
1714
1744
|
const n = await c(
|
|
1715
1745
|
`${i}/scenario-instances/${e}/interaction-mode`,
|
|
1716
1746
|
{ ...a }
|
|
@@ -1720,7 +1750,7 @@ async function _s(e) {
|
|
|
1720
1750
|
);
|
|
1721
1751
|
return (t == null ? void 0 : t.mode) ?? "dispatch";
|
|
1722
1752
|
}
|
|
1723
|
-
async function
|
|
1753
|
+
async function As(e, n) {
|
|
1724
1754
|
const t = await c(
|
|
1725
1755
|
`${i}/scenario-instances/${e}/interaction-mode`,
|
|
1726
1756
|
{
|
|
@@ -1735,14 +1765,14 @@ async function bs(e, n) {
|
|
|
1735
1765
|
);
|
|
1736
1766
|
return (s == null ? void 0 : s.mode) ?? n;
|
|
1737
1767
|
}
|
|
1738
|
-
async function
|
|
1768
|
+
async function Us(e = "") {
|
|
1739
1769
|
const n = e ? `?token=${encodeURIComponent(e)}` : "", t = await c(
|
|
1740
1770
|
`${i}/admin/indexer/overview${n}`,
|
|
1741
1771
|
a
|
|
1742
1772
|
);
|
|
1743
1773
|
return r(t, "获取索引概览失败");
|
|
1744
1774
|
}
|
|
1745
|
-
async function
|
|
1775
|
+
async function Os(e = "") {
|
|
1746
1776
|
const n = e ? `?token=${encodeURIComponent(e)}` : "", t = await c(`${i}/admin/indexer/repos${n}`, a), s = await r(
|
|
1747
1777
|
t,
|
|
1748
1778
|
"获取索引仓库列表失败"
|
|
@@ -1758,14 +1788,14 @@ async function Es(e, n = "") {
|
|
|
1758
1788
|
});
|
|
1759
1789
|
return r(s, "保存索引仓库失败");
|
|
1760
1790
|
}
|
|
1761
|
-
async function
|
|
1791
|
+
async function Ps(e, n = "") {
|
|
1762
1792
|
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await c(
|
|
1763
1793
|
`${i}/admin/indexer/repos/${encodeURIComponent(e)}${t}`,
|
|
1764
1794
|
{ ...a, method: "DELETE" }
|
|
1765
1795
|
);
|
|
1766
1796
|
return r(s, "删除索引仓库失败");
|
|
1767
1797
|
}
|
|
1768
|
-
async function
|
|
1798
|
+
async function ks(e, n, t = "") {
|
|
1769
1799
|
const s = t ? `?token=${encodeURIComponent(t)}` : "", o = await c(
|
|
1770
1800
|
`${i}/admin/indexer/repos/${encodeURIComponent(
|
|
1771
1801
|
e
|
|
@@ -1779,7 +1809,7 @@ async function Ps(e, n, t = "") {
|
|
|
1779
1809
|
);
|
|
1780
1810
|
return r(o, "切换仓库启停失败");
|
|
1781
1811
|
}
|
|
1782
|
-
async function
|
|
1812
|
+
async function Rs(e, n = "") {
|
|
1783
1813
|
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await c(
|
|
1784
1814
|
`${i}/admin/indexer/repos/${encodeURIComponent(
|
|
1785
1815
|
e
|
|
@@ -1788,14 +1818,14 @@ async function ks(e, n = "") {
|
|
|
1788
1818
|
);
|
|
1789
1819
|
return r(s, "触发重建失败");
|
|
1790
1820
|
}
|
|
1791
|
-
async function
|
|
1821
|
+
async function Ns(e = "") {
|
|
1792
1822
|
const n = e ? `?token=${encodeURIComponent(e)}` : "", t = await c(`${i}/admin/indexer/poll${n}`, {
|
|
1793
1823
|
...a,
|
|
1794
1824
|
method: "POST"
|
|
1795
1825
|
});
|
|
1796
1826
|
return r(t, "触发轮询失败");
|
|
1797
1827
|
}
|
|
1798
|
-
async function
|
|
1828
|
+
async function js(e = "") {
|
|
1799
1829
|
const n = e ? `?token=${encodeURIComponent(e)}` : "", t = await c(
|
|
1800
1830
|
`${i}/admin/notify-channel/list${n}`,
|
|
1801
1831
|
a
|
|
@@ -1814,9 +1844,9 @@ async function vs(e, n = "") {
|
|
|
1814
1844
|
});
|
|
1815
1845
|
return r(s, "测试发送失败");
|
|
1816
1846
|
}
|
|
1817
|
-
async function
|
|
1847
|
+
async function qs(e, n = "") {
|
|
1818
1848
|
const t = await c(
|
|
1819
|
-
`${i}/admin/schedule-task${
|
|
1849
|
+
`${i}/admin/schedule-task${f({
|
|
1820
1850
|
token: n,
|
|
1821
1851
|
task_type: e.taskType,
|
|
1822
1852
|
page: e.page,
|
|
@@ -1826,9 +1856,9 @@ async function js(e, n = "") {
|
|
|
1826
1856
|
);
|
|
1827
1857
|
return r(t, "查询定时任务模版失败");
|
|
1828
1858
|
}
|
|
1829
|
-
async function
|
|
1859
|
+
async function Ds(e, n = "") {
|
|
1830
1860
|
const t = await c(
|
|
1831
|
-
`${i}/admin/schedule-task${
|
|
1861
|
+
`${i}/admin/schedule-task${f({ token: n })}`,
|
|
1832
1862
|
{
|
|
1833
1863
|
...a,
|
|
1834
1864
|
method: "POST",
|
|
@@ -1838,11 +1868,11 @@ async function qs(e, n = "") {
|
|
|
1838
1868
|
);
|
|
1839
1869
|
return r(t, "新建定时任务模版失败");
|
|
1840
1870
|
}
|
|
1841
|
-
async function
|
|
1871
|
+
async function Js(e, n, t = "") {
|
|
1842
1872
|
const s = await c(
|
|
1843
1873
|
`${i}/admin/schedule-task/${encodeURIComponent(
|
|
1844
1874
|
e
|
|
1845
|
-
)}${
|
|
1875
|
+
)}${f({ token: t })}`,
|
|
1846
1876
|
{
|
|
1847
1877
|
...a,
|
|
1848
1878
|
method: "PUT",
|
|
@@ -1852,11 +1882,11 @@ async function Ds(e, n, t = "") {
|
|
|
1852
1882
|
);
|
|
1853
1883
|
return r(s, "更新定时任务模版失败");
|
|
1854
1884
|
}
|
|
1855
|
-
async function
|
|
1885
|
+
async function zs(e, n, t = "") {
|
|
1856
1886
|
const s = await c(
|
|
1857
1887
|
`${i}/admin/schedule-task/${encodeURIComponent(
|
|
1858
1888
|
e
|
|
1859
|
-
)}/toggle${
|
|
1889
|
+
)}/toggle${f({ token: t })}`,
|
|
1860
1890
|
{
|
|
1861
1891
|
...a,
|
|
1862
1892
|
method: "POST",
|
|
@@ -1866,36 +1896,36 @@ async function Js(e, n, t = "") {
|
|
|
1866
1896
|
);
|
|
1867
1897
|
return r(s, "切换模版状态失败");
|
|
1868
1898
|
}
|
|
1869
|
-
async function
|
|
1899
|
+
async function Ls(e, n = "") {
|
|
1870
1900
|
const t = await c(
|
|
1871
1901
|
`${i}/admin/schedule-task/${encodeURIComponent(
|
|
1872
1902
|
e
|
|
1873
|
-
)}/activate${
|
|
1903
|
+
)}/activate${f({ token: n })}`,
|
|
1874
1904
|
{ ...a, method: "POST" }
|
|
1875
1905
|
);
|
|
1876
1906
|
return r(t, "激活模版失败");
|
|
1877
1907
|
}
|
|
1878
|
-
async function
|
|
1908
|
+
async function Ms(e, n = "") {
|
|
1879
1909
|
const t = await c(
|
|
1880
1910
|
`${i}/admin/schedule-task/${encodeURIComponent(
|
|
1881
1911
|
e
|
|
1882
|
-
)}${
|
|
1912
|
+
)}${f({ token: n })}`,
|
|
1883
1913
|
{ ...a, method: "DELETE" }
|
|
1884
1914
|
);
|
|
1885
1915
|
return r(t, "删除模版失败");
|
|
1886
1916
|
}
|
|
1887
|
-
async function
|
|
1917
|
+
async function Bs(e, n = "") {
|
|
1888
1918
|
const t = await c(
|
|
1889
1919
|
`${i}/admin/schedule-task/${encodeURIComponent(
|
|
1890
1920
|
e
|
|
1891
|
-
)}/run${
|
|
1921
|
+
)}/run${f({ token: n })}`,
|
|
1892
1922
|
{ ...a, method: "POST" }
|
|
1893
1923
|
);
|
|
1894
1924
|
return r(t, "手动执行失败");
|
|
1895
1925
|
}
|
|
1896
|
-
async function
|
|
1926
|
+
async function Fs(e, n = "") {
|
|
1897
1927
|
const t = await c(
|
|
1898
|
-
`${i}/admin/schedule-task/history-all${
|
|
1928
|
+
`${i}/admin/schedule-task/history-all${f({
|
|
1899
1929
|
token: n,
|
|
1900
1930
|
task_type: e.taskType,
|
|
1901
1931
|
page: e.page,
|
|
@@ -1905,7 +1935,7 @@ async function Bs(e, n = "") {
|
|
|
1905
1935
|
);
|
|
1906
1936
|
return r(t, "查询运行记录失败");
|
|
1907
1937
|
}
|
|
1908
|
-
async function
|
|
1938
|
+
async function xs(e, n, t, s, o = "") {
|
|
1909
1939
|
const d = o ? `?token=${encodeURIComponent(o)}` : "", u = await c(
|
|
1910
1940
|
`${i}/admin/permissions/users/${e}/roles${d}`,
|
|
1911
1941
|
{
|
|
@@ -1917,25 +1947,25 @@ async function Fs(e, n, t, s, o = "") {
|
|
|
1917
1947
|
);
|
|
1918
1948
|
return r(u, "更新用户角色失败");
|
|
1919
1949
|
}
|
|
1920
|
-
async function
|
|
1950
|
+
async function Ws(e, n = "") {
|
|
1921
1951
|
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await c(
|
|
1922
1952
|
`${i}/admin/permissions/users/${e}/detail${t}`,
|
|
1923
1953
|
a
|
|
1924
1954
|
);
|
|
1925
1955
|
return r(s, "获取用户授权详情失败");
|
|
1926
1956
|
}
|
|
1927
|
-
async function
|
|
1957
|
+
async function Hs(e = "") {
|
|
1928
1958
|
const n = e ? `?token=${encodeURIComponent(e)}` : "", t = await c(`${i}/admin/roles${n}`, a);
|
|
1929
1959
|
return r(t, "获取角色列表失败") ?? [];
|
|
1930
1960
|
}
|
|
1931
|
-
async function
|
|
1961
|
+
async function Gs(e, n = "") {
|
|
1932
1962
|
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await c(
|
|
1933
1963
|
`${i}/admin/roles/${e}${t}`,
|
|
1934
1964
|
a
|
|
1935
1965
|
);
|
|
1936
1966
|
return r(s, "获取角色详情失败");
|
|
1937
1967
|
}
|
|
1938
|
-
async function
|
|
1968
|
+
async function Zs(e, n = "") {
|
|
1939
1969
|
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await c(`${i}/admin/roles${t}`, {
|
|
1940
1970
|
...a,
|
|
1941
1971
|
method: "POST",
|
|
@@ -1944,7 +1974,7 @@ async function Gs(e, n = "") {
|
|
|
1944
1974
|
});
|
|
1945
1975
|
return r(s, "创建角色失败");
|
|
1946
1976
|
}
|
|
1947
|
-
async function
|
|
1977
|
+
async function Vs(e, n, t = "") {
|
|
1948
1978
|
const s = t ? `?token=${encodeURIComponent(t)}` : "", o = await c(`${i}/admin/roles/${e}${s}`, {
|
|
1949
1979
|
...a,
|
|
1950
1980
|
method: "PUT",
|
|
@@ -1953,14 +1983,14 @@ async function Zs(e, n, t = "") {
|
|
|
1953
1983
|
});
|
|
1954
1984
|
return r(o, "更新角色失败");
|
|
1955
1985
|
}
|
|
1956
|
-
async function
|
|
1986
|
+
async function Qs(e, n = "") {
|
|
1957
1987
|
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await c(`${i}/admin/roles/${e}${t}`, {
|
|
1958
1988
|
...a,
|
|
1959
1989
|
method: "DELETE"
|
|
1960
1990
|
});
|
|
1961
1991
|
return r(s, "删除角色失败");
|
|
1962
1992
|
}
|
|
1963
|
-
async function
|
|
1993
|
+
async function Ks(e, n, t = "") {
|
|
1964
1994
|
const s = t ? `?token=${encodeURIComponent(t)}` : "", o = await c(`${i}/admin/roles/${e}/users${s}`, {
|
|
1965
1995
|
...a,
|
|
1966
1996
|
method: "PUT",
|
|
@@ -1970,184 +2000,184 @@ async function Qs(e, n, t = "") {
|
|
|
1970
2000
|
return r(o, "更新角色成员失败");
|
|
1971
2001
|
}
|
|
1972
2002
|
export {
|
|
1973
|
-
|
|
1974
|
-
|
|
2003
|
+
Jn as $,
|
|
2004
|
+
Gn as A,
|
|
1975
2005
|
S as B,
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2006
|
+
mt as C,
|
|
2007
|
+
pt as D,
|
|
2008
|
+
rt as E,
|
|
2009
|
+
lt as F,
|
|
2010
|
+
Qn as G,
|
|
2011
|
+
Zn as H,
|
|
2012
|
+
Vn as I,
|
|
2013
|
+
Hn as J,
|
|
2014
|
+
gn as K,
|
|
2015
|
+
Wn as L,
|
|
2016
|
+
pn as M,
|
|
2017
|
+
at as N,
|
|
2018
|
+
ot as O,
|
|
2019
|
+
st as P,
|
|
2020
|
+
On as Q,
|
|
2021
|
+
tt as R,
|
|
2022
|
+
nt as S,
|
|
2023
|
+
ae as T,
|
|
2024
|
+
et as U,
|
|
2025
|
+
Yn as V,
|
|
2026
|
+
Xn as W,
|
|
2027
|
+
Kn as X,
|
|
2028
|
+
Mn as Y,
|
|
2029
|
+
Ln as Z,
|
|
2030
|
+
zn as _,
|
|
2031
|
+
$n as a,
|
|
2002
2032
|
vt as a$,
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2033
|
+
Dn as a0,
|
|
2034
|
+
qn as a1,
|
|
2035
|
+
Fn as a2,
|
|
2036
|
+
Bn as a3,
|
|
2037
|
+
Nn as a4,
|
|
2038
|
+
Rn as a5,
|
|
2039
|
+
jn as a6,
|
|
2010
2040
|
vn as a7,
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2041
|
+
kn as a8,
|
|
2042
|
+
dt as a9,
|
|
2043
|
+
us as aA,
|
|
2044
|
+
Bt as aB,
|
|
2045
|
+
Ft as aC,
|
|
2046
|
+
hn as aD,
|
|
2047
|
+
mn as aE,
|
|
2048
|
+
is as aF,
|
|
2049
|
+
ds as aG,
|
|
2050
|
+
cs as aH,
|
|
2051
|
+
cn as aI,
|
|
2052
|
+
an as aJ,
|
|
2053
|
+
rn as aK,
|
|
2054
|
+
tn as aL,
|
|
2055
|
+
sn as aM,
|
|
2056
|
+
on as aN,
|
|
2027
2057
|
i as aO,
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2058
|
+
bs as aP,
|
|
2059
|
+
As as aQ,
|
|
2060
|
+
Un as aR,
|
|
2031
2061
|
r as aS,
|
|
2032
|
-
|
|
2033
|
-
|
|
2062
|
+
Ie as aT,
|
|
2063
|
+
Is as aU,
|
|
2034
2064
|
Cs as aV,
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2065
|
+
ts as aW,
|
|
2066
|
+
ut as aX,
|
|
2067
|
+
fs as aY,
|
|
2068
|
+
_s as aZ,
|
|
2069
|
+
De as a_,
|
|
2070
|
+
ct as aa,
|
|
2071
|
+
it as ab,
|
|
2042
2072
|
Cn as ac,
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2073
|
+
b as ad,
|
|
2074
|
+
wn as ae,
|
|
2075
|
+
Qt as af,
|
|
2076
|
+
Zt as ag,
|
|
2077
|
+
St as ah,
|
|
2078
|
+
xt as ai,
|
|
2079
|
+
Wt as aj,
|
|
2080
|
+
Lt as ak,
|
|
2081
|
+
Mt as al,
|
|
2082
|
+
Gt as am,
|
|
2083
|
+
Ht as an,
|
|
2084
|
+
Vt as ao,
|
|
2085
|
+
bn as ap,
|
|
2086
|
+
Nt as aq,
|
|
2087
|
+
Jt as ar,
|
|
2088
|
+
jt as as,
|
|
2089
|
+
qt as at,
|
|
2090
|
+
Dt as au,
|
|
2091
|
+
zt as av,
|
|
2092
|
+
Me as aw,
|
|
2093
|
+
$s as ax,
|
|
2094
|
+
hs as ay,
|
|
2095
|
+
gs as az,
|
|
2096
|
+
yn as b,
|
|
2097
|
+
ys as b0,
|
|
2098
|
+
ht as b1,
|
|
2069
2099
|
Ct as b2,
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2100
|
+
_n as b3,
|
|
2101
|
+
fn as b4,
|
|
2102
|
+
wt as b5,
|
|
2103
|
+
Tt as b6,
|
|
2104
|
+
It as b7,
|
|
2105
|
+
gt as b8,
|
|
2106
|
+
$t as b9,
|
|
2107
|
+
Qs as bA,
|
|
2108
|
+
Ks as bB,
|
|
2109
|
+
Ws as bC,
|
|
2110
|
+
xs as bD,
|
|
2111
|
+
as as bE,
|
|
2112
|
+
ss as bF,
|
|
2113
|
+
os as bG,
|
|
2114
|
+
Rt as bH,
|
|
2115
|
+
kt as bI,
|
|
2116
|
+
rs as bJ,
|
|
2117
|
+
ls as bK,
|
|
2118
|
+
Fs as bL,
|
|
2119
|
+
qs as bM,
|
|
2120
|
+
Js as bN,
|
|
2121
|
+
Ds as bO,
|
|
2122
|
+
zs as bP,
|
|
2123
|
+
Ls as bQ,
|
|
2124
|
+
Bs as bR,
|
|
2125
|
+
Ms as bS,
|
|
2126
|
+
_t as bT,
|
|
2127
|
+
ps as bU,
|
|
2128
|
+
Ss as bV,
|
|
2129
|
+
Yt as bW,
|
|
2130
|
+
ms as bX,
|
|
2131
|
+
dn as bY,
|
|
2132
|
+
Ts as bZ,
|
|
2133
|
+
yt as ba,
|
|
2134
|
+
Q as bb,
|
|
2135
|
+
be as bc,
|
|
2136
|
+
Kt as bd,
|
|
2137
|
+
Xt as be,
|
|
2138
|
+
ft as bf,
|
|
2139
|
+
ws as bg,
|
|
2140
|
+
bt as bh,
|
|
2141
|
+
Ut as bi,
|
|
2142
|
+
At as bj,
|
|
2143
|
+
Os as bk,
|
|
2144
|
+
Us as bl,
|
|
2145
|
+
Rs as bm,
|
|
2146
|
+
ks as bn,
|
|
2147
|
+
Ps as bo,
|
|
2148
|
+
Ns as bp,
|
|
2119
2149
|
Es as bq,
|
|
2120
|
-
|
|
2150
|
+
js as br,
|
|
2121
2151
|
vs as bs,
|
|
2122
|
-
|
|
2152
|
+
Ot as bt,
|
|
2123
2153
|
Et as bu,
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2154
|
+
Pt as bv,
|
|
2155
|
+
Hs as bw,
|
|
2156
|
+
Gs as bx,
|
|
2157
|
+
Zs as by,
|
|
2158
|
+
Vs as bz,
|
|
2159
|
+
Be as c,
|
|
2130
2160
|
T as d,
|
|
2131
2161
|
w as e,
|
|
2132
2162
|
$ as f,
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2163
|
+
An as g,
|
|
2164
|
+
Tn as h,
|
|
2165
|
+
$e as i,
|
|
2166
|
+
B as j,
|
|
2167
|
+
es as k,
|
|
2168
|
+
ns as l,
|
|
2169
|
+
en as m,
|
|
2170
|
+
_e as n,
|
|
2171
|
+
un as o,
|
|
2142
2172
|
En as p,
|
|
2143
|
-
|
|
2173
|
+
ln as q,
|
|
2144
2174
|
Ce as r,
|
|
2145
|
-
|
|
2175
|
+
xn as s,
|
|
2146
2176
|
p as t,
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2177
|
+
Pn as u,
|
|
2178
|
+
Sn as v,
|
|
2179
|
+
In as w,
|
|
2180
|
+
nn as x,
|
|
2181
|
+
he as y,
|
|
2182
|
+
Ye as z
|
|
2153
2183
|
};
|