@yuku123/z-team-component 0.2.149 → 0.2.151
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/{AdminModuleContent-DSevBIXW.js → AdminModuleContent-CxcZ6lo5.js} +8 -8
- package/dist/{ChangeLogView-CQSpFxHU.js → ChangeLogView-B91pCpdT.js} +1 -1
- package/dist/{ComponentDoc-BBNZLfGu.js → ComponentDoc-cfot01Mt.js} +3 -3
- package/dist/{InvitationManagementPage-C3YKZ2zw.js → InvitationManagementPage-Bbkdpzps.js} +1 -1
- package/dist/{OnboardingPage-Bq3ekVzQ.js → OnboardingPage-LC1Ht1Rn.js} +2 -2
- package/dist/{ScheduledTasks-CthKSllh.js → ScheduledTasks-BcaOM5OA.js} +9 -9
- package/dist/{SettingsModal-DdN6DQ2i.js → SettingsModal-C2bwZ9ru.js} +4 -4
- package/dist/{SystemShell-CbeG5R2P.js → SystemShell-ZevSFEQN.js} +7 -7
- package/dist/{admin-logs-ZjsuGQVf.js → admin-logs-B1K4av1A.js} +1 -1
- package/dist/{api-QWhELrcB.js → api-C6tulmw3.js} +1 -1
- package/dist/{api-DEzNFYEH.js → api-Dq3FCOLf.js} +1 -1
- package/dist/{browser-CmttQ9gO.js → browser-DkF2REvf.js} +1 -1
- package/dist/{createWorkspaceWsHandler-BUgifiWL.js → createWorkspaceWsHandler-Bn7O2Nsp.js} +3 -3
- package/dist/{index-DO8xW6Uf.js → index-33yA36JK.js} +4 -4
- package/dist/{index-0bNTx_sy.js → index-B4UHttS3.js} +3 -3
- package/dist/{index-B68lOg7l.js → index-BZgnnSZn.js} +1 -1
- package/dist/{index-CrNg1FzI.js → index-Bl_TsLY7.js} +2 -2
- package/dist/{index-1wScWl73.js → index-Bq2fUt1G.js} +1 -1
- package/dist/{index-BZU5-rtH.js → index-BrY5TVwN.js} +890 -916
- package/dist/{index-BzLwboRj.js → index-BtYuCKRa.js} +1 -1
- package/dist/{index-D1zwryIw.js → index-CN-sRlNh.js} +3 -3
- package/dist/{index-Vb4pEEuc.js → index-CYQV1ZNd.js} +2 -2
- package/dist/{index-Bz8xkCyF.js → index-Cepgb2JT.js} +2 -2
- package/dist/{index-DSDZX0dw.js → index-ClL1cAfT.js} +4 -4
- package/dist/{index-mNVzO0-T.js → index-CxPgkh7p.js} +2 -2
- package/dist/{index-BXuTSm6D.js → index-Cy_j3HP-.js} +3 -3
- package/dist/{index-wx1lWcF9.js → index-D9PwpEzb.js} +2 -2
- package/dist/{index-CZeRMcpk.js → index-DF2Y_KuM.js} +1 -1
- package/dist/{index-D8XV1Iom.js → index-DLX2R48m.js} +3 -3
- package/dist/{index-C9znQOcs.js → index-DM3ABunf.js} +1 -1
- package/dist/{index-cx8bRUKW.js → index-DWdLZ6X9.js} +6 -6
- package/dist/{index-kh7Xdj-N.js → index-Dbb8qAvr.js} +2 -2
- package/dist/{index-VHH_xRud.js → index-DoiP0bRW.js} +1 -1
- package/dist/{index-DHDFtdyI.js → index-Drtz61k9.js} +2 -2
- package/dist/{index-CrypC8bi.js → index-DsiVsS16.js} +1 -1
- package/dist/{index-COAoN7Xw.js → index-Dzjs7Prp.js} +2 -2
- package/dist/{index-DPMUkyf2.js → index-U5tHYFYM.js} +2 -2
- package/dist/{index-DAYefbYc.js → index-smJ2gsQz.js} +4 -4
- package/dist/index.js +1 -1
- package/dist/{instance-1SutbIEu.js → instance-S3vRPLcU.js} +1 -1
- package/dist/{menuPermission-1gumYQte.js → menuPermission-NPnVI7da.js} +3 -3
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-CU73siis.js → send-default-agent-team-message-C6RiVe4R.js} +1 -1
- package/dist/{spark-md5-C6nqzhSy.js → spark-md5-JwiDleOF.js} +1 -1
- package/dist/{training-B3KU48j2.js → training-Cbl29Z3J.js} +1 -1
- package/dist/{webide-CBcpNSyT.js → webide-8-vQB1yG.js} +3 -3
- package/package.json +1 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { jsx as e, jsxs as s, Fragment as Je } from "react/jsx-runtime";
|
|
2
|
-
import { a as me, f as Ce, B as Ie, G as ze, b as ht, aq as xo, u as W, T as pn, ar as Eo, as as qn, t as Ae, at as vn, z as we, au as Po, ai as Oo, aj as Do, am as Qa, c as Ro, v as Nt, av as ga, aw as Fo, ax as jo, ay as Bo, az as Ho, aA as Wo, w as Vn, x as Uo, aB as Ut, aC as zo, aD as Go, A as Ko, y as qo, D as Vo, e as Xa, aE as Jo, i as Yo, a0 as Zo, a1 as Qo, a2 as Xo, a3 as es, a5 as ts, m as ns, aF as as, r as os, k as ya, l as _a } from "./ComponentDoc-
|
|
2
|
+
import { a as me, f as Ce, B as Ie, G as ze, b as ht, aq as xo, u as W, T as pn, ar as Eo, as as qn, t as Ae, at as vn, z as we, au as Po, ai as Oo, aj as Do, am as Qa, c as Ro, v as Nt, av as ga, aw as Fo, ax as jo, ay as Bo, az as Ho, aA as Wo, w as Vn, x as Uo, aB as Ut, aC as zo, aD as Go, A as Ko, y as qo, D as Vo, e as Xa, aE as Jo, i as Yo, a0 as Zo, a1 as Qo, a2 as Xo, a3 as es, a5 as ts, m as ns, aF as as, r as os, k as ya, l as _a } from "./ComponentDoc-cfot01Mt.js";
|
|
3
3
|
import { s as ss, r as wn, f as rs } from "./ctc-sso-Hj8fdMY0.js";
|
|
4
4
|
import { Input as is, Tooltip as In, Spin as St, Tabs as eo, Popconfirm as Fn, Button as Dt, Empty as Zt, Tag as ka, Popover as va, Dropdown as cs, Avatar as ls, Modal as wa, message as ba } from "antd";
|
|
5
5
|
import zt from "query-string";
|
|
6
|
-
import { useState as g, useRef as le, useCallback as ne, useEffect as H, createElement as ds, useLayoutEffect as Xn, useMemo as Re, memo as us, Suspense as dn, lazy as
|
|
6
|
+
import { useState as g, useRef as le, useCallback as ne, useEffect as H, createElement as ds, useLayoutEffect as Xn, useMemo as Re, memo as us, Suspense as dn, lazy as it } from "react";
|
|
7
7
|
import { useLocation as ms, useNavigate as ps } from "react-router-dom";
|
|
8
8
|
import { h as nt } from "./history-BlrA1eaW.js";
|
|
9
|
-
import { q as ve, v as hs, B as to, S as no, w as $n, u as ea, i as ao, n as fs, x as l, y as
|
|
10
|
-
import { BarChartOutlined as ks, PieChartOutlined as vs, LinkOutlined as ws, UnorderedListOutlined as bs, FileTextOutlined as ta, ReadOutlined as oo, ConsoleSqlOutlined as Ns, SearchOutlined as so, CloseOutlined as Xt, CustomerServiceOutlined as ro, ThunderboltOutlined as Na, MessageOutlined as Ss, ReloadOutlined as io, UndoOutlined as Cs, DeleteOutlined as Is, FolderOpenOutlined as Ts, BellOutlined as $s, ApartmentOutlined as Ls, DownOutlined as Ms, CrownOutlined as As, RightOutlined as xs, PlusOutlined as Es, CheckCircleOutlined as Sa, CheckOutlined as Ps, SettingOutlined as Ca, LaptopOutlined as Os, MenuFoldOutlined as Ds, HeartOutlined as Rs, BookOutlined as Fs, BulbOutlined as js, TeamOutlined as Bs, ProductOutlined as Hs,
|
|
11
|
-
import { create as
|
|
12
|
-
import { h as Ln, f as
|
|
13
|
-
import { s as co } from "./admin-logs-
|
|
9
|
+
import { q as ve, v as hs, B as to, S as no, w as $n, u as ea, i as ao, n as fs, x as l, y as E, C as gs, j as ys, U as _s } from "./createWorkspaceWsHandler-Bn7O2Nsp.js";
|
|
10
|
+
import { BarChartOutlined as ks, PieChartOutlined as vs, LinkOutlined as ws, UnorderedListOutlined as bs, FileTextOutlined as ta, ReadOutlined as oo, ConsoleSqlOutlined as Ns, SearchOutlined as so, CloseOutlined as Xt, CustomerServiceOutlined as ro, ThunderboltOutlined as Na, MessageOutlined as Ss, ReloadOutlined as io, UndoOutlined as Cs, DeleteOutlined as Is, FolderOpenOutlined as Ts, BellOutlined as $s, ApartmentOutlined as Ls, DownOutlined as Ms, CrownOutlined as As, RightOutlined as xs, PlusOutlined as Es, CheckCircleOutlined as Sa, CheckOutlined as Ps, SettingOutlined as Ca, LaptopOutlined as Os, MenuFoldOutlined as Ds, HeartOutlined as Rs, BookOutlined as Fs, BulbOutlined as js, TeamOutlined as Bs, ProductOutlined as Hs, CloudServerOutlined as Ws, AppstoreOutlined as Us, UserOutlined as zs, NotificationOutlined as Gs, LogoutOutlined as Ks } from "@ant-design/icons";
|
|
11
|
+
import { create as qs } from "zustand";
|
|
12
|
+
import { h as Ln, f as Vs, E as jn } from "./index-DoiP0bRW.js";
|
|
13
|
+
import { s as co } from "./admin-logs-B1K4av1A.js";
|
|
14
14
|
import { createPortal as na } from "react-dom";
|
|
15
15
|
import Ia from "react-markdown";
|
|
16
16
|
import Ta from "rehype-highlight";
|
|
17
17
|
import $a from "remark-gfm";
|
|
18
|
-
import { configureMeta as
|
|
19
|
-
import { l as
|
|
18
|
+
import { configureMeta as Js } from "@yuku123/z-meta-component";
|
|
19
|
+
import { l as Ys, j as Zs } from "./instance-S3vRPLcU.js";
|
|
20
20
|
/* empty css */
|
|
21
|
-
import { s as
|
|
22
|
-
async function
|
|
21
|
+
import { s as Qs, i as Xs } from "./mobile-client-O3yr9h6t.js";
|
|
22
|
+
async function Vp(t = {}, a = "") {
|
|
23
23
|
const o = new URLSearchParams();
|
|
24
24
|
a && o.set("token", a), t.page && o.set("page", String(t.page)), t.size && o.set("size", String(t.size)), t.tag && o.set("tag", t.tag), t.sort && o.set("sort", t.sort);
|
|
25
25
|
const r = o.toString(), d = await me(
|
|
@@ -28,14 +28,14 @@ async function Yp(t = {}, a = "") {
|
|
|
28
28
|
);
|
|
29
29
|
return ze(d, "获取帖子列表失败");
|
|
30
30
|
}
|
|
31
|
-
async function
|
|
31
|
+
async function Jp(t, a = "") {
|
|
32
32
|
const o = a ? `?token=${encodeURIComponent(a)}` : "", r = await me(
|
|
33
33
|
`${Ie}/community/posts/${t}${o}`,
|
|
34
34
|
Ce
|
|
35
35
|
);
|
|
36
36
|
return ze(r, "获取帖子详情失败");
|
|
37
37
|
}
|
|
38
|
-
async function
|
|
38
|
+
async function Yp(t, a = "") {
|
|
39
39
|
const o = await me(
|
|
40
40
|
`${Ie}/community/posts${a ? `?token=${encodeURIComponent(a)}` : ""}`,
|
|
41
41
|
{
|
|
@@ -47,7 +47,7 @@ async function Qp(t, a = "") {
|
|
|
47
47
|
);
|
|
48
48
|
return ze(o, "发帖失败");
|
|
49
49
|
}
|
|
50
|
-
async function
|
|
50
|
+
async function Zp(t, a, o = "") {
|
|
51
51
|
const r = await me(
|
|
52
52
|
`${Ie}/community/posts/${t}${o ? `?token=${encodeURIComponent(o)}` : ""}`,
|
|
53
53
|
{
|
|
@@ -59,28 +59,28 @@ async function Xp(t, a, o = "") {
|
|
|
59
59
|
);
|
|
60
60
|
return ze(r, "编辑帖子失败");
|
|
61
61
|
}
|
|
62
|
-
async function
|
|
62
|
+
async function Qp(t, a = "") {
|
|
63
63
|
const o = a ? `?token=${encodeURIComponent(a)}` : "", r = await me(`${Ie}/community/posts/${t}${o}`, {
|
|
64
64
|
...Ce,
|
|
65
65
|
method: "DELETE"
|
|
66
66
|
});
|
|
67
67
|
return ze(r, "删帖失败");
|
|
68
68
|
}
|
|
69
|
-
async function
|
|
69
|
+
async function Xp(t, a = "") {
|
|
70
70
|
const o = a ? `?token=${encodeURIComponent(a)}` : "", r = await me(`${Ie}/community/posts/${t}/pin${o}`, {
|
|
71
71
|
...Ce,
|
|
72
72
|
method: "POST"
|
|
73
73
|
});
|
|
74
74
|
return ze(r, "置顶操作失败");
|
|
75
75
|
}
|
|
76
|
-
async function
|
|
76
|
+
async function eh(t, a = "") {
|
|
77
77
|
const o = a ? `?token=${encodeURIComponent(a)}` : "", r = await me(`${Ie}/community/posts/${t}/feature${o}`, {
|
|
78
78
|
...Ce,
|
|
79
79
|
method: "POST"
|
|
80
80
|
});
|
|
81
81
|
return ze(r, "精华操作失败");
|
|
82
82
|
}
|
|
83
|
-
async function
|
|
83
|
+
async function th(t, a, o = "") {
|
|
84
84
|
const r = await me(
|
|
85
85
|
`${Ie}/community/posts/${t}/comments${o ? `?token=${encodeURIComponent(o)}` : ""}`,
|
|
86
86
|
{
|
|
@@ -92,7 +92,7 @@ async function ah(t, a, o = "") {
|
|
|
92
92
|
);
|
|
93
93
|
return ze(r, "发评论失败");
|
|
94
94
|
}
|
|
95
|
-
async function
|
|
95
|
+
async function nh(t, a = "") {
|
|
96
96
|
const o = await me(
|
|
97
97
|
`${Ie}/community/likes${a ? `?token=${encodeURIComponent(a)}` : ""}`,
|
|
98
98
|
{
|
|
@@ -104,7 +104,7 @@ async function oh(t, a = "") {
|
|
|
104
104
|
);
|
|
105
105
|
return ze(o, "点赞操作失败");
|
|
106
106
|
}
|
|
107
|
-
async function
|
|
107
|
+
async function ah(t, a = "") {
|
|
108
108
|
const o = await me(
|
|
109
109
|
`${Ie}/community/favorites${a ? `?token=${encodeURIComponent(a)}` : ""}`,
|
|
110
110
|
{
|
|
@@ -116,7 +116,7 @@ async function sh(t, a = "") {
|
|
|
116
116
|
);
|
|
117
117
|
return ze(o, "收藏操作失败");
|
|
118
118
|
}
|
|
119
|
-
async function
|
|
119
|
+
async function oh(t, a = "") {
|
|
120
120
|
const o = await me(
|
|
121
121
|
`${Ie}/community/follows${a ? `?token=${encodeURIComponent(a)}` : ""}`,
|
|
122
122
|
{
|
|
@@ -128,15 +128,15 @@ async function rh(t, a = "") {
|
|
|
128
128
|
);
|
|
129
129
|
return ze(o, "关注操作失败");
|
|
130
130
|
}
|
|
131
|
-
async function
|
|
131
|
+
async function sh(t = "") {
|
|
132
132
|
const a = t ? `?token=${encodeURIComponent(t)}` : "", o = await me(`${Ie}/community/tags${a}`, Ce);
|
|
133
133
|
return ze(o, "获取标签列表失败");
|
|
134
134
|
}
|
|
135
|
-
async function
|
|
135
|
+
async function rh(t = "") {
|
|
136
136
|
const a = t ? `?token=${encodeURIComponent(t)}` : "", o = await me(`${Ie}/community/my/posts${a}`, Ce);
|
|
137
137
|
return ze(o, "获取我的帖子失败");
|
|
138
138
|
}
|
|
139
|
-
async function
|
|
139
|
+
async function ih(t = "") {
|
|
140
140
|
const a = t ? `?token=${encodeURIComponent(t)}` : "", o = await me(`${Ie}/community/my/drafts${a}`, Ce);
|
|
141
141
|
return ze(o, "获取我的草稿失败");
|
|
142
142
|
}
|
|
@@ -146,7 +146,7 @@ async function La() {
|
|
|
146
146
|
}
|
|
147
147
|
const aa = "http://127.0.0.1:28080";
|
|
148
148
|
let Mn = "direct", Gt = "";
|
|
149
|
-
function
|
|
149
|
+
function er(t, a = "") {
|
|
150
150
|
Mn = t, Gt = t === "tunnel" ? a : "";
|
|
151
151
|
}
|
|
152
152
|
async function Ye(t, a = {}) {
|
|
@@ -192,13 +192,13 @@ function nn(t) {
|
|
|
192
192
|
workdir: t.workdir ?? null
|
|
193
193
|
};
|
|
194
194
|
}
|
|
195
|
-
async function
|
|
195
|
+
async function tr(t) {
|
|
196
196
|
const a = t ? `/v1/sessions?agentId=${encodeURIComponent(t)}` : "/v1/sessions", o = await Ye(a);
|
|
197
197
|
if (!o.ok) throw new Error("获取本地会话列表失败");
|
|
198
198
|
const r = await o.json();
|
|
199
199
|
return (Array.isArray(r) ? r : (r == null ? void 0 : r.sessions) ?? []).map(nn);
|
|
200
200
|
}
|
|
201
|
-
async function
|
|
201
|
+
async function ch(t, a, o) {
|
|
202
202
|
const r = { title: t };
|
|
203
203
|
a && (r.agentId = a), o && (r.workdir = o);
|
|
204
204
|
const d = await Ye("/v1/sessions", {
|
|
@@ -209,7 +209,7 @@ async function dh(t, a, o) {
|
|
|
209
209
|
if (!d.ok) throw new Error("创建本地会话失败");
|
|
210
210
|
return nn(await d.json());
|
|
211
211
|
}
|
|
212
|
-
async function
|
|
212
|
+
async function lh(t, a) {
|
|
213
213
|
const o = await Ye(`/v1/sessions/${t}`, {
|
|
214
214
|
method: "PATCH",
|
|
215
215
|
headers: { "Content-Type": "application/json" },
|
|
@@ -218,7 +218,7 @@ async function uh(t, a) {
|
|
|
218
218
|
if (!o.ok) throw new Error("绑定工作目录失败");
|
|
219
219
|
return nn(await o.json());
|
|
220
220
|
}
|
|
221
|
-
async function
|
|
221
|
+
async function dh(t) {
|
|
222
222
|
const a = t ? `?path=${encodeURIComponent(t)}` : "", o = await Ye(`/v1/fs/list${a}`);
|
|
223
223
|
if (!o.ok) {
|
|
224
224
|
const d = await o.text().catch(() => "");
|
|
@@ -232,17 +232,17 @@ async function mh(t) {
|
|
|
232
232
|
entries: Array.isArray(r.entries) ? r.entries : []
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
|
-
async function
|
|
235
|
+
async function uh(t) {
|
|
236
236
|
const a = await Ye(`/v1/sessions/${t}`);
|
|
237
237
|
if (!a.ok) throw new Error("获取本地会话详情失败");
|
|
238
238
|
return nn(await a.json());
|
|
239
239
|
}
|
|
240
|
-
async function
|
|
240
|
+
async function mh(t) {
|
|
241
241
|
await Ye(`/v1/sessions/${t}`, {
|
|
242
242
|
method: "DELETE"
|
|
243
243
|
});
|
|
244
244
|
}
|
|
245
|
-
async function
|
|
245
|
+
async function ph(t, a) {
|
|
246
246
|
const o = await Ye(
|
|
247
247
|
`/v1/sessions/${t}/truncate`,
|
|
248
248
|
{
|
|
@@ -255,7 +255,7 @@ async function fh(t, a) {
|
|
|
255
255
|
const r = await o.json();
|
|
256
256
|
return { previousId: r.previousId, session: nn(r.session) };
|
|
257
257
|
}
|
|
258
|
-
async function
|
|
258
|
+
async function hh(t, a) {
|
|
259
259
|
const o = await Ye(`/v1/sessions/${t}`, {
|
|
260
260
|
method: "PATCH",
|
|
261
261
|
headers: { "Content-Type": "application/json" },
|
|
@@ -264,7 +264,7 @@ async function gh(t, a) {
|
|
|
264
264
|
if (!o.ok) throw new Error("重命名会话失败");
|
|
265
265
|
return nn(await o.json());
|
|
266
266
|
}
|
|
267
|
-
async function
|
|
267
|
+
async function fh(t) {
|
|
268
268
|
const a = await Ye("/v1/chat/cancel", {
|
|
269
269
|
method: "POST",
|
|
270
270
|
headers: { "Content-Type": "application/json" },
|
|
@@ -273,10 +273,10 @@ async function yh(t) {
|
|
|
273
273
|
if (!a.ok) throw new Error("终止生成失败");
|
|
274
274
|
return a.json();
|
|
275
275
|
}
|
|
276
|
-
async function
|
|
276
|
+
async function gh(t, a, o, r) {
|
|
277
277
|
var U, O;
|
|
278
278
|
if (Mn === "tunnel")
|
|
279
|
-
return
|
|
279
|
+
return ar(t, a, o, r, Gt);
|
|
280
280
|
const { onToken: d, onReasoning: v, onEvent: m, onFinal: p, onError: b, onComplete: P } = o;
|
|
281
281
|
try {
|
|
282
282
|
const w = {
|
|
@@ -348,7 +348,7 @@ async function _h(t, a, o, r) {
|
|
|
348
348
|
b(w instanceof Error ? w : new Error(String(w)));
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
|
-
async function
|
|
351
|
+
async function nr() {
|
|
352
352
|
try {
|
|
353
353
|
return Mn === "tunnel" ? !!(await lo(Gt)).online : (await fetch(`${aa}/health`)).ok;
|
|
354
354
|
} catch {
|
|
@@ -360,13 +360,13 @@ async function Ma() {
|
|
|
360
360
|
if (!t.ok) throw new Error("获取本地 Agent 列表失败");
|
|
361
361
|
return (await t.json()).agents || [];
|
|
362
362
|
}
|
|
363
|
-
async function
|
|
363
|
+
async function yh() {
|
|
364
364
|
const t = await Ye("/v1/local/agents");
|
|
365
365
|
if (!t.ok) throw new Error("获取本地 Agent 列表失败");
|
|
366
366
|
const o = (await t.json()).agents;
|
|
367
367
|
return Array.isArray(o) ? o : [];
|
|
368
368
|
}
|
|
369
|
-
async function
|
|
369
|
+
async function _h(t) {
|
|
370
370
|
const a = await Ye("/v1/local/agents", {
|
|
371
371
|
method: "POST",
|
|
372
372
|
headers: { "Content-Type": "application/json" },
|
|
@@ -378,7 +378,7 @@ async function vh(t) {
|
|
|
378
378
|
}
|
|
379
379
|
return a.json();
|
|
380
380
|
}
|
|
381
|
-
async function
|
|
381
|
+
async function kh(t) {
|
|
382
382
|
const a = await Ye(`/v1/local/agents/${encodeURIComponent(t)}`, {
|
|
383
383
|
method: "DELETE"
|
|
384
384
|
});
|
|
@@ -387,13 +387,13 @@ async function wh(t) {
|
|
|
387
387
|
throw new Error(An(o) || "删除本地 Agent 失败");
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
|
-
async function
|
|
390
|
+
async function vh(t) {
|
|
391
391
|
const a = t ? `?agent=${encodeURIComponent(t)}` : "", o = await Ye(`/v1/local/skills${a}`);
|
|
392
392
|
if (!o.ok) throw new Error("获取本地技能列表失败");
|
|
393
393
|
const d = (await o.json()).items;
|
|
394
394
|
return Array.isArray(d) ? d : [];
|
|
395
395
|
}
|
|
396
|
-
async function
|
|
396
|
+
async function wh(t) {
|
|
397
397
|
const a = await Ye("/v1/local/skills", {
|
|
398
398
|
method: "POST",
|
|
399
399
|
headers: { "Content-Type": "application/json" },
|
|
@@ -405,7 +405,7 @@ async function Nh(t) {
|
|
|
405
405
|
}
|
|
406
406
|
return a.json();
|
|
407
407
|
}
|
|
408
|
-
async function
|
|
408
|
+
async function bh(t, a) {
|
|
409
409
|
const o = await Ye(
|
|
410
410
|
`/v1/local/skills/${encodeURIComponent(t)}/toggle`,
|
|
411
411
|
{
|
|
@@ -429,7 +429,7 @@ function An(t) {
|
|
|
429
429
|
}
|
|
430
430
|
return t;
|
|
431
431
|
}
|
|
432
|
-
async function
|
|
432
|
+
async function Nh(t, a = "", o = "") {
|
|
433
433
|
const r = new URLSearchParams();
|
|
434
434
|
a && r.set("subdir", a), o && r.set("token", o);
|
|
435
435
|
const d = r.toString(), v = await me(
|
|
@@ -438,7 +438,7 @@ async function Ch(t, a = "", o = "") {
|
|
|
438
438
|
);
|
|
439
439
|
return ht(v, "获取文件列表失败");
|
|
440
440
|
}
|
|
441
|
-
async function
|
|
441
|
+
async function Sh(t, a = "", o = "") {
|
|
442
442
|
const r = new URLSearchParams();
|
|
443
443
|
a && r.set("path", a), o && r.set("token", o);
|
|
444
444
|
const d = r.toString(), v = await me(
|
|
@@ -447,7 +447,7 @@ async function Ih(t, a = "", o = "") {
|
|
|
447
447
|
);
|
|
448
448
|
return ht(v, "读取文件内容失败");
|
|
449
449
|
}
|
|
450
|
-
async function
|
|
450
|
+
async function Ch(t, a = 1, o = 20, r = "") {
|
|
451
451
|
const d = new URLSearchParams();
|
|
452
452
|
d.set("page", String(a)), d.set("size", String(o)), r && d.set("token", r);
|
|
453
453
|
const v = await me(
|
|
@@ -456,7 +456,7 @@ async function Th(t, a = 1, o = 20, r = "") {
|
|
|
456
456
|
);
|
|
457
457
|
return ht(v, "获取 Skill 列表失败");
|
|
458
458
|
}
|
|
459
|
-
async function
|
|
459
|
+
async function Ih(t, a, o, r = "") {
|
|
460
460
|
const d = r ? `?token=${encodeURIComponent(r)}` : "", v = await me(
|
|
461
461
|
`${Ie}/personal-agents/${t}/skills/${encodeURIComponent(
|
|
462
462
|
a
|
|
@@ -477,7 +477,7 @@ async function lo(t = "") {
|
|
|
477
477
|
);
|
|
478
478
|
return ht(o, "获取本地 Agent 状态失败");
|
|
479
479
|
}
|
|
480
|
-
async function
|
|
480
|
+
async function ar(t, a, o, r, d = "") {
|
|
481
481
|
const { onToken: v, onReasoning: m, onEvent: p, onFinal: b, onError: P, onComplete: U } = o, O = {
|
|
482
482
|
messages: [{ role: "user", content: a }],
|
|
483
483
|
stream: !0,
|
|
@@ -576,7 +576,7 @@ async function sr(t, a, o, r, d = "") {
|
|
|
576
576
|
P(w instanceof Error ? w : new Error(String(w)));
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
|
-
function
|
|
579
|
+
function or(t, a, o, r) {
|
|
580
580
|
const [d, v] = g(t), m = le(null), p = le(!1), b = le(0), P = le(t), U = le(a), O = le(o);
|
|
581
581
|
U.current = a, O.current = o;
|
|
582
582
|
const w = ne(
|
|
@@ -606,23 +606,23 @@ function rr(t, a, o, r) {
|
|
|
606
606
|
};
|
|
607
607
|
}, [r]), { width: d, onMouseDown: w, ref: m };
|
|
608
608
|
}
|
|
609
|
-
const Jn =
|
|
609
|
+
const Jn = qs((t) => ({
|
|
610
610
|
open: !1,
|
|
611
611
|
show: () => t({ open: !0 }),
|
|
612
612
|
hide: () => t({ open: !1 })
|
|
613
|
-
})), Kt = "lifeTab",
|
|
614
|
-
function
|
|
613
|
+
})), Kt = "lifeTab", sr = "market", rr = "browser-plugin";
|
|
614
|
+
function ir(t) {
|
|
615
615
|
return t === "browser-plugin" || t === "ztools-plugin" || t === "software" || t === "coming";
|
|
616
616
|
}
|
|
617
|
-
function
|
|
617
|
+
function Th() {
|
|
618
618
|
try {
|
|
619
619
|
const a = new URL(window.location.href).searchParams.get(Kt);
|
|
620
|
-
return a && (a === "learning" || a === "community" ||
|
|
620
|
+
return a && (a === "learning" || a === "community" || ir(a)) ? a : null;
|
|
621
621
|
} catch {
|
|
622
622
|
return null;
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function $h(t) {
|
|
626
626
|
try {
|
|
627
627
|
const a = new URL(window.location.href);
|
|
628
628
|
t ? a.searchParams.set(Kt, t) : a.searchParams.delete(Kt), window.history.replaceState(window.history.state, "", a.toString());
|
|
@@ -646,12 +646,12 @@ const Cn = [
|
|
|
646
646
|
function bn() {
|
|
647
647
|
try {
|
|
648
648
|
const t = new URL(window.location.href);
|
|
649
|
-
return t.searchParams.get("mode") !==
|
|
649
|
+
return t.searchParams.get("mode") !== sr ? !1 : (t.searchParams.set("mode", "life"), t.searchParams.get(Kt) || t.searchParams.set(Kt, rr), window.history.replaceState(window.history.state, "", t.toString()), !0);
|
|
650
650
|
} catch {
|
|
651
651
|
return !1;
|
|
652
652
|
}
|
|
653
653
|
}
|
|
654
|
-
function
|
|
654
|
+
function cr() {
|
|
655
655
|
try {
|
|
656
656
|
const t = new URL(window.location.href), a = t.searchParams.get("mode");
|
|
657
657
|
if (a === "personal") return "collaboration";
|
|
@@ -666,7 +666,7 @@ function dr() {
|
|
|
666
666
|
}
|
|
667
667
|
return "collaboration";
|
|
668
668
|
}
|
|
669
|
-
function
|
|
669
|
+
function lr(t) {
|
|
670
670
|
try {
|
|
671
671
|
const a = new URL(window.location.href);
|
|
672
672
|
t === "collaboration" ? a.searchParams.delete("mode") : a.searchParams.set("mode", t), window.history.replaceState(window.history.state, "", a.toString());
|
|
@@ -684,7 +684,7 @@ const Aa = {
|
|
|
684
684
|
smart: "SMART_WORKBENCH",
|
|
685
685
|
dev: "DEV_ENTRY",
|
|
686
686
|
test: "TEST_ENTRY"
|
|
687
|
-
},
|
|
687
|
+
}, dr = ["personal", "collaboration"], ur = [
|
|
688
688
|
"PERSONAL_ENTRY",
|
|
689
689
|
"COLLABORATION_ENTRY",
|
|
690
690
|
"BRAVE_LIFE",
|
|
@@ -693,14 +693,14 @@ const Aa = {
|
|
|
693
693
|
"DEV_ENTRY",
|
|
694
694
|
"TEST_ENTRY"
|
|
695
695
|
];
|
|
696
|
-
function
|
|
696
|
+
function mr(t) {
|
|
697
697
|
return !t.is_global_admin && !(t.permissions && t.permissions.length > 0);
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function lt(t, a) {
|
|
700
700
|
if (!t)
|
|
701
|
-
return Aa[a] ?
|
|
701
|
+
return Aa[a] ? dr.includes(a) : !0;
|
|
702
702
|
const o = Aa[a];
|
|
703
|
-
return !o || Ln(t, o) ? !0 :
|
|
703
|
+
return !o || Ln(t, o) ? !0 : mr(t) && ur.includes(o);
|
|
704
704
|
}
|
|
705
705
|
function Te(t) {
|
|
706
706
|
function a({ className: o, spin: r, style: d, ...v }) {
|
|
@@ -733,7 +733,7 @@ function Te(t) {
|
|
|
733
733
|
}
|
|
734
734
|
return a;
|
|
735
735
|
}
|
|
736
|
-
const
|
|
736
|
+
const pr = Te([
|
|
737
737
|
[
|
|
738
738
|
"path",
|
|
739
739
|
{
|
|
@@ -741,7 +741,7 @@ const fr = Te([
|
|
|
741
741
|
key: "k3hazp"
|
|
742
742
|
}
|
|
743
743
|
]
|
|
744
|
-
]),
|
|
744
|
+
]), Lh = Te([
|
|
745
745
|
[
|
|
746
746
|
"path",
|
|
747
747
|
{
|
|
@@ -751,10 +751,10 @@ const fr = Te([
|
|
|
751
751
|
],
|
|
752
752
|
["path", { d: "M9 18h6", key: "x1upvd" }],
|
|
753
753
|
["path", { d: "M10 22h4", key: "ceow96" }]
|
|
754
|
-
]),
|
|
754
|
+
]), hr = Te([
|
|
755
755
|
["path", { d: "m16 18 6-6-6-6", key: "eg8j8" }],
|
|
756
756
|
["path", { d: "m8 6-6 6 6 6", key: "ppft3o" }]
|
|
757
|
-
]),
|
|
757
|
+
]), Mh = Te([
|
|
758
758
|
[
|
|
759
759
|
"path",
|
|
760
760
|
{
|
|
@@ -762,14 +762,14 @@ const fr = Te([
|
|
|
762
762
|
key: "mvr1a0"
|
|
763
763
|
}
|
|
764
764
|
]
|
|
765
|
-
]),
|
|
765
|
+
]), fr = Te([
|
|
766
766
|
[
|
|
767
767
|
"path",
|
|
768
768
|
{ d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }
|
|
769
769
|
],
|
|
770
770
|
["path", { d: "M3 3v5h5", key: "1xhq8a" }],
|
|
771
771
|
["path", { d: "M12 7v5l4 2", key: "1fdv2h" }]
|
|
772
|
-
]),
|
|
772
|
+
]), gr = Te([
|
|
773
773
|
["path", { d: "m16 17 5-5-5-5", key: "1bji2h" }],
|
|
774
774
|
["path", { d: "M21 12H9", key: "dn1m92" }],
|
|
775
775
|
["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }]
|
|
@@ -782,15 +782,15 @@ const fr = Te([
|
|
|
782
782
|
}
|
|
783
783
|
],
|
|
784
784
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
785
|
-
]),
|
|
785
|
+
]), Ah = Te([
|
|
786
786
|
["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
|
|
787
787
|
["path", { d: "M16 3.128a4 4 0 0 1 0 7.744", key: "16gr8j" }],
|
|
788
788
|
["path", { d: "M22 21v-2a4 4 0 0 0-3-3.87", key: "kshegd" }],
|
|
789
789
|
["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }]
|
|
790
|
-
]),
|
|
790
|
+
]), xh = Te([
|
|
791
791
|
["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
|
|
792
792
|
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
793
|
-
]),
|
|
793
|
+
]), yr = Te([
|
|
794
794
|
[
|
|
795
795
|
"path",
|
|
796
796
|
{ d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }
|
|
@@ -801,13 +801,13 @@ const fr = Te([
|
|
|
801
801
|
{ d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }
|
|
802
802
|
],
|
|
803
803
|
["path", { d: "M8 16H3v5", key: "1cv678" }]
|
|
804
|
-
]),
|
|
804
|
+
]), _r = Te([
|
|
805
805
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
806
806
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
807
|
-
]),
|
|
807
|
+
]), kr = Te([
|
|
808
808
|
["path", { d: "M12 6v6l4 2", key: "mmk7yg" }],
|
|
809
809
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]
|
|
810
|
-
]),
|
|
810
|
+
]), Eh = Te([
|
|
811
811
|
["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]
|
|
812
812
|
]), xa = Te([
|
|
813
813
|
[
|
|
@@ -820,14 +820,14 @@ const fr = Te([
|
|
|
820
820
|
{ d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }
|
|
821
821
|
],
|
|
822
822
|
["path", { d: "M8 16H3v5", key: "1cv678" }]
|
|
823
|
-
]),
|
|
823
|
+
]), Ph = Te([
|
|
824
824
|
["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
|
|
825
825
|
["path", { d: "M12 19V5", key: "x0mq9r" }]
|
|
826
|
-
]),
|
|
826
|
+
]), Oh = Te([
|
|
827
827
|
["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }],
|
|
828
828
|
["path", { d: "M3 5V19A9 3 0 0 0 21 19V5", key: "1wlel7" }],
|
|
829
829
|
["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }]
|
|
830
|
-
]),
|
|
830
|
+
]), vr = Te([
|
|
831
831
|
["path", { d: "M12 8V4H8", key: "hb8ula" }],
|
|
832
832
|
[
|
|
833
833
|
"rect",
|
|
@@ -837,7 +837,7 @@ const fr = Te([
|
|
|
837
837
|
["path", { d: "M20 14h2", key: "4cs60a" }],
|
|
838
838
|
["path", { d: "M15 13v2", key: "1xurst" }],
|
|
839
839
|
["path", { d: "M9 13v2", key: "rq6x2g" }]
|
|
840
|
-
]),
|
|
840
|
+
]), Dh = Te([
|
|
841
841
|
[
|
|
842
842
|
"path",
|
|
843
843
|
{
|
|
@@ -845,7 +845,7 @@ const fr = Te([
|
|
|
845
845
|
key: "1xq2db"
|
|
846
846
|
}
|
|
847
847
|
]
|
|
848
|
-
]),
|
|
848
|
+
]), Rh = Te([
|
|
849
849
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
850
850
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
851
851
|
["path", { d: "M17 20v2", key: "1rnc9c" }],
|
|
@@ -863,17 +863,17 @@ const fr = Te([
|
|
|
863
863
|
{ x: "4", y: "4", width: "16", height: "16", rx: "2", key: "1vbyd7" }
|
|
864
864
|
],
|
|
865
865
|
["rect", { x: "8", y: "8", width: "8", height: "8", rx: "1", key: "z9xiuo" }]
|
|
866
|
-
]),
|
|
866
|
+
]), wr = Te([
|
|
867
867
|
["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]
|
|
868
868
|
]);
|
|
869
|
-
function
|
|
870
|
-
return /* @__PURE__ */ e(
|
|
869
|
+
function Fh(t) {
|
|
870
|
+
return /* @__PURE__ */ e(wr, { spin: !0, ...t });
|
|
871
871
|
}
|
|
872
|
-
const
|
|
872
|
+
const br = Te([
|
|
873
873
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
874
874
|
["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
|
|
875
875
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
876
|
-
]),
|
|
876
|
+
]), jh = Te([
|
|
877
877
|
[
|
|
878
878
|
"path",
|
|
879
879
|
{
|
|
@@ -889,18 +889,18 @@ const Sr = Te([
|
|
|
889
889
|
key: "cloud1"
|
|
890
890
|
}
|
|
891
891
|
]
|
|
892
|
-
]),
|
|
892
|
+
]), Nr = Te([
|
|
893
893
|
["circle", { cx: "12", cy: "12", r: "10", key: "globe1" }],
|
|
894
894
|
[
|
|
895
895
|
"path",
|
|
896
896
|
{ d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "globe2" }
|
|
897
897
|
],
|
|
898
898
|
["path", { d: "M2 12h20", key: "globe3" }]
|
|
899
|
-
]),
|
|
899
|
+
]), Sr = Te([
|
|
900
900
|
["rect", { width: "20", height: "5", x: "2", y: "3", rx: "1", key: "arch1" }],
|
|
901
901
|
["path", { d: "M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8", key: "arch2" }],
|
|
902
902
|
["path", { d: "M10 12h4", key: "arch3" }]
|
|
903
|
-
]),
|
|
903
|
+
]), Cr = Te([
|
|
904
904
|
[
|
|
905
905
|
"rect",
|
|
906
906
|
{
|
|
@@ -914,7 +914,7 @@ const Sr = Te([
|
|
|
914
914
|
}
|
|
915
915
|
],
|
|
916
916
|
["path", { d: "M12 18h.01", key: "phone2" }]
|
|
917
|
-
]),
|
|
917
|
+
]), Ir = Te([
|
|
918
918
|
["circle", { cx: "13.5", cy: "6.5", r: ".5", key: "pal1" }],
|
|
919
919
|
["circle", { cx: "17.5", cy: "10.5", r: ".5", key: "pal2" }],
|
|
920
920
|
["circle", { cx: "8.5", cy: "7.5", r: ".5", key: "pal3" }],
|
|
@@ -926,7 +926,7 @@ const Sr = Te([
|
|
|
926
926
|
key: "pal5"
|
|
927
927
|
}
|
|
928
928
|
]
|
|
929
|
-
]),
|
|
929
|
+
]), Tr = Te([
|
|
930
930
|
["path", { d: "M10 8h.01", key: "kb1" }],
|
|
931
931
|
["path", { d: "M12 12h.01", key: "kb2" }],
|
|
932
932
|
["path", { d: "M14 8h.01", key: "kb3" }],
|
|
@@ -936,7 +936,7 @@ const Sr = Te([
|
|
|
936
936
|
["path", { d: "M7 16h10", key: "kb7" }],
|
|
937
937
|
["path", { d: "M8 12h.01", key: "kb8" }],
|
|
938
938
|
["rect", { width: "20", height: "16", x: "2", y: "4", rx: "2", key: "kb9" }]
|
|
939
|
-
]),
|
|
939
|
+
]), Bh = Te([
|
|
940
940
|
[
|
|
941
941
|
"path",
|
|
942
942
|
{
|
|
@@ -944,11 +944,11 @@ const Sr = Te([
|
|
|
944
944
|
key: "shield1"
|
|
945
945
|
}
|
|
946
946
|
]
|
|
947
|
-
]),
|
|
947
|
+
]), Hh = Te([
|
|
948
948
|
["circle", { cx: "12", cy: "12", r: "10", key: "info1" }],
|
|
949
949
|
["path", { d: "M12 16v-4", key: "info2" }],
|
|
950
950
|
["path", { d: "M12 8h.01", key: "info3" }]
|
|
951
|
-
]),
|
|
951
|
+
]), $r = Te([
|
|
952
952
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
953
953
|
["path", { d: "M12 5v14", key: "s699le" }]
|
|
954
954
|
]), Zn = Te([
|
|
@@ -973,107 +973,107 @@ const Sr = Te([
|
|
|
973
973
|
"rect",
|
|
974
974
|
{ width: "7", height: "7", x: "3", y: "14", rx: "1", key: "1bb6yr" }
|
|
975
975
|
]
|
|
976
|
-
]),
|
|
977
|
-
shell:
|
|
978
|
-
xwScope:
|
|
979
|
-
sidebar:
|
|
980
|
-
sideContent:
|
|
981
|
-
newTaskBtn:
|
|
982
|
-
sideNav:
|
|
983
|
-
moreGear:
|
|
984
|
-
moreFlyout:
|
|
985
|
-
moreFlyoutItem:
|
|
986
|
-
moreFlyoutIcon:
|
|
987
|
-
moreFlyoutDivider:
|
|
988
|
-
moreFlyoutList:
|
|
989
|
-
sideTasks:
|
|
990
|
-
laneTabs:
|
|
991
|
-
laneTab:
|
|
992
|
-
laneTabActive:
|
|
993
|
-
laneIcon:
|
|
994
|
-
laneText:
|
|
995
|
-
tasksLabel:
|
|
996
|
-
projFolder:
|
|
997
|
-
projCaret:
|
|
998
|
-
projCaretOpen:
|
|
999
|
-
projIcon:
|
|
1000
|
-
projName:
|
|
1001
|
-
projMeta:
|
|
1002
|
-
projRows:
|
|
1003
|
-
tasksEmpty:
|
|
1004
|
-
recentItem:
|
|
1005
|
-
recentItemActive:
|
|
1006
|
-
recentItemText:
|
|
1007
|
-
sessionRow:
|
|
1008
|
-
rowMore:
|
|
1009
|
-
rowRenameInput:
|
|
1010
|
-
agentDot:
|
|
1011
|
-
navItem:
|
|
1012
|
-
navItemActive:
|
|
1013
|
-
navIcon:
|
|
1014
|
-
navHint:
|
|
1015
|
-
sideFooter:
|
|
1016
|
-
footerRow:
|
|
1017
|
-
footerCard:
|
|
1018
|
-
agentMenu:
|
|
1019
|
-
settingsMenu:
|
|
1020
|
-
accountHeader:
|
|
1021
|
-
accountAvatar:
|
|
1022
|
-
accountName:
|
|
1023
|
-
accountItemDisabled:
|
|
1024
|
-
menuDivider:
|
|
1025
|
-
footerAvatar:
|
|
1026
|
-
footerMeta:
|
|
1027
|
-
footerName:
|
|
1028
|
-
footerSub:
|
|
1029
|
-
footerGear:
|
|
1030
|
-
main:
|
|
1031
|
-
chatHost:
|
|
1032
|
-
detailHost:
|
|
1033
|
-
personalTabHost:
|
|
1034
|
-
landing:
|
|
1035
|
-
landingInner:
|
|
1036
|
-
landingTitle:
|
|
1037
|
-
landingSub:
|
|
1038
|
-
landingBox:
|
|
1039
|
-
landingInput:
|
|
1040
|
-
landingBoxBar:
|
|
1041
|
-
agentChipWrap:
|
|
1042
|
-
agentChip:
|
|
1043
|
-
chipCaret:
|
|
1044
|
-
agentChipEmpty:
|
|
1045
|
-
agentMenuMask:
|
|
1046
|
-
agentMenuItem:
|
|
1047
|
-
agentMenuItemActive:
|
|
1048
|
-
landingSend:
|
|
1049
|
-
chipRow:
|
|
1050
|
-
suggestChip:
|
|
1051
|
-
emptyState:
|
|
1052
|
-
emptyTitle:
|
|
1053
|
-
newTaskWrap:
|
|
1054
|
-
dropDownMenu:
|
|
1055
|
-
spaceMenu:
|
|
1056
|
-
spaceIcon:
|
|
1057
|
-
spaceName:
|
|
1058
|
-
spaceEmpty:
|
|
1059
|
-
spaceMenuRight:
|
|
1060
|
-
mascot:
|
|
1061
|
-
recentBlock:
|
|
1062
|
-
recentHead:
|
|
1063
|
-
recentAll:
|
|
1064
|
-
recentList:
|
|
1065
|
-
recentRow:
|
|
1066
|
-
recentLane:
|
|
1067
|
-
recentLaneLocal:
|
|
1068
|
-
recentTitle:
|
|
1069
|
-
recentTime:
|
|
1070
|
-
shortcutHint:
|
|
1071
|
-
shortcutKbd:
|
|
1072
|
-
shortcutDot:
|
|
1073
|
-
capChip:
|
|
1074
|
-
capChipIcon:
|
|
976
|
+
]), Lr = "_shell_d3go4_4", Mr = "_xwScope_d3go4_11", Ar = "_sidebar_d3go4_42", xr = "_sideContent_d3go4_52", Er = "_newTaskBtn_d3go4_10", Pr = "_sideNav_d3go4_94", Or = "_moreGear_d3go4_101", Dr = "_moreFlyout_d3go4_131", Rr = "_moreFlyoutItem_d3go4_147", Fr = "_moreFlyoutIcon_d3go4_172", jr = "_moreFlyoutDivider_d3go4_179", Br = "_moreFlyoutList_d3go4_186", Hr = "_sideTasks_d3go4_195", Wr = "_laneTabs_d3go4_207", Ur = "_laneTab_d3go4_207", zr = "_laneTabActive_d3go4_247", Gr = "_laneIcon_d3go4_256", Kr = "_laneText_d3go4_260", qr = "_tasksLabel_d3go4_264", Vr = "_projFolder_d3go4_272", Jr = "_projCaret_d3go4_298", Yr = "_projCaretOpen_d3go4_306", Zr = "_projIcon_d3go4_310", Qr = "_projName_d3go4_316", Xr = "_projMeta_d3go4_325", ei = "_projRows_d3go4_331", ti = "_tasksEmpty_d3go4_340", ni = "_recentItem_d3go4_346", ai = "_recentItemActive_d3go4_377", oi = "_recentItemText_d3go4_383", si = "_sessionRow_d3go4_394", ri = "_rowMore_d3go4_416", ii = "_rowRenameInput_d3go4_451", ci = "_agentDot_d3go4_470", li = "_navItem_d3go4_483", di = "_navItemActive_d3go4_514", ui = "_navIcon_d3go4_519", mi = "_navHint_d3go4_526", pi = "_sideFooter_d3go4_535", hi = "_footerRow_d3go4_545", fi = "_footerCard_d3go4_551", gi = "_agentMenu_d3go4_8", yi = "_settingsMenu_d3go4_558", _i = "_accountHeader_d3go4_566", ki = "_accountAvatar_d3go4_575", vi = "_accountName_d3go4_588", wi = "_accountItemDisabled_d3go4_598", bi = "_menuDivider_d3go4_608", Ni = "_footerAvatar_d3go4_622", Si = "_footerMeta_d3go4_635", Ci = "_footerName_d3go4_643", Ii = "_footerSub_d3go4_652", Ti = "_footerGear_d3go4_660", $i = "_main_d3go4_681", Li = "_chatHost_d3go4_690", Mi = "_detailHost_d3go4_695", Ai = "_personalTabHost_d3go4_701", xi = "_landing_d3go4_711", Ei = "_landingInner_d3go4_721", Pi = "_landingTitle_d3go4_729", Oi = "_landingSub_d3go4_737", Di = "_landingBox_d3go4_743", Ri = "_landingInput_d3go4_759", Fi = "_landingBoxBar_d3go4_775", ji = "_agentChipWrap_d3go4_782", Bi = "_agentChip_d3go4_782", Hi = "_chipCaret_d3go4_807", Wi = "_agentChipEmpty_d3go4_812", Ui = "_agentMenuMask_d3go4_817", zi = "_agentMenuItem_d3go4_841", Gi = "_agentMenuItemActive_d3go4_862", Ki = "_landingSend_d3go4_867", qi = "_chipRow_d3go4_892", Vi = "_suggestChip_d3go4_899", Ji = "_emptyState_d3go4_919", Yi = "_emptyTitle_d3go4_931", Zi = "_newTaskWrap_d3go4_950", Qi = "_dropDownMenu_d3go4_954", Xi = "_spaceMenu_d3go4_959", ec = "_spaceIcon_d3go4_964", tc = "_spaceName_d3go4_974", nc = "_spaceEmpty_d3go4_980", ac = "_spaceMenuRight_d3go4_986", oc = "_mascot_d3go4_992", sc = "_recentBlock_d3go4_1011", rc = "_recentHead_d3go4_1018", ic = "_recentAll_d3go4_1028", cc = "_recentList_d3go4_1048", lc = "_recentRow_d3go4_1054", dc = "_recentLane_d3go4_1073", uc = "_recentLaneLocal_d3go4_1083", mc = "_recentTitle_d3go4_1088", pc = "_recentTime_d3go4_1098", hc = "_shortcutHint_d3go4_1105", fc = "_shortcutKbd_d3go4_1114", gc = "_shortcutDot_d3go4_1128", yc = "_capChip_d3go4_1133", _c = "_capChipIcon_d3go4_1156", B = {
|
|
977
|
+
shell: Lr,
|
|
978
|
+
xwScope: Mr,
|
|
979
|
+
sidebar: Ar,
|
|
980
|
+
sideContent: xr,
|
|
981
|
+
newTaskBtn: Er,
|
|
982
|
+
sideNav: Pr,
|
|
983
|
+
moreGear: Or,
|
|
984
|
+
moreFlyout: Dr,
|
|
985
|
+
moreFlyoutItem: Rr,
|
|
986
|
+
moreFlyoutIcon: Fr,
|
|
987
|
+
moreFlyoutDivider: jr,
|
|
988
|
+
moreFlyoutList: Br,
|
|
989
|
+
sideTasks: Hr,
|
|
990
|
+
laneTabs: Wr,
|
|
991
|
+
laneTab: Ur,
|
|
992
|
+
laneTabActive: zr,
|
|
993
|
+
laneIcon: Gr,
|
|
994
|
+
laneText: Kr,
|
|
995
|
+
tasksLabel: qr,
|
|
996
|
+
projFolder: Vr,
|
|
997
|
+
projCaret: Jr,
|
|
998
|
+
projCaretOpen: Yr,
|
|
999
|
+
projIcon: Zr,
|
|
1000
|
+
projName: Qr,
|
|
1001
|
+
projMeta: Xr,
|
|
1002
|
+
projRows: ei,
|
|
1003
|
+
tasksEmpty: ti,
|
|
1004
|
+
recentItem: ni,
|
|
1005
|
+
recentItemActive: ai,
|
|
1006
|
+
recentItemText: oi,
|
|
1007
|
+
sessionRow: si,
|
|
1008
|
+
rowMore: ri,
|
|
1009
|
+
rowRenameInput: ii,
|
|
1010
|
+
agentDot: ci,
|
|
1011
|
+
navItem: li,
|
|
1012
|
+
navItemActive: di,
|
|
1013
|
+
navIcon: ui,
|
|
1014
|
+
navHint: mi,
|
|
1015
|
+
sideFooter: pi,
|
|
1016
|
+
footerRow: hi,
|
|
1017
|
+
footerCard: fi,
|
|
1018
|
+
agentMenu: gi,
|
|
1019
|
+
settingsMenu: yi,
|
|
1020
|
+
accountHeader: _i,
|
|
1021
|
+
accountAvatar: ki,
|
|
1022
|
+
accountName: vi,
|
|
1023
|
+
accountItemDisabled: wi,
|
|
1024
|
+
menuDivider: bi,
|
|
1025
|
+
footerAvatar: Ni,
|
|
1026
|
+
footerMeta: Si,
|
|
1027
|
+
footerName: Ci,
|
|
1028
|
+
footerSub: Ii,
|
|
1029
|
+
footerGear: Ti,
|
|
1030
|
+
main: $i,
|
|
1031
|
+
chatHost: Li,
|
|
1032
|
+
detailHost: Mi,
|
|
1033
|
+
personalTabHost: Ai,
|
|
1034
|
+
landing: xi,
|
|
1035
|
+
landingInner: Ei,
|
|
1036
|
+
landingTitle: Pi,
|
|
1037
|
+
landingSub: Oi,
|
|
1038
|
+
landingBox: Di,
|
|
1039
|
+
landingInput: Ri,
|
|
1040
|
+
landingBoxBar: Fi,
|
|
1041
|
+
agentChipWrap: ji,
|
|
1042
|
+
agentChip: Bi,
|
|
1043
|
+
chipCaret: Hi,
|
|
1044
|
+
agentChipEmpty: Wi,
|
|
1045
|
+
agentMenuMask: Ui,
|
|
1046
|
+
agentMenuItem: zi,
|
|
1047
|
+
agentMenuItemActive: Gi,
|
|
1048
|
+
landingSend: Ki,
|
|
1049
|
+
chipRow: qi,
|
|
1050
|
+
suggestChip: Vi,
|
|
1051
|
+
emptyState: Ji,
|
|
1052
|
+
emptyTitle: Yi,
|
|
1053
|
+
newTaskWrap: Zi,
|
|
1054
|
+
dropDownMenu: Qi,
|
|
1055
|
+
spaceMenu: Xi,
|
|
1056
|
+
spaceIcon: ec,
|
|
1057
|
+
spaceName: tc,
|
|
1058
|
+
spaceEmpty: nc,
|
|
1059
|
+
spaceMenuRight: ac,
|
|
1060
|
+
mascot: oc,
|
|
1061
|
+
recentBlock: sc,
|
|
1062
|
+
recentHead: rc,
|
|
1063
|
+
recentAll: ic,
|
|
1064
|
+
recentList: cc,
|
|
1065
|
+
recentRow: lc,
|
|
1066
|
+
recentLane: dc,
|
|
1067
|
+
recentLaneLocal: uc,
|
|
1068
|
+
recentTitle: mc,
|
|
1069
|
+
recentTime: pc,
|
|
1070
|
+
shortcutHint: hc,
|
|
1071
|
+
shortcutKbd: fc,
|
|
1072
|
+
shortcutDot: gc,
|
|
1073
|
+
capChip: yc,
|
|
1074
|
+
capChipIcon: _c
|
|
1075
1075
|
};
|
|
1076
|
-
function
|
|
1076
|
+
function kc({
|
|
1077
1077
|
token: t,
|
|
1078
1078
|
down: a = !1,
|
|
1079
1079
|
alignRight: o = !1,
|
|
@@ -1083,7 +1083,7 @@ function wc({
|
|
|
1083
1083
|
const [v, m] = g(null);
|
|
1084
1084
|
return H(() => {
|
|
1085
1085
|
let p = !0;
|
|
1086
|
-
return
|
|
1086
|
+
return Vs(t).then((b) => {
|
|
1087
1087
|
if (!p) return;
|
|
1088
1088
|
const P = /* @__PURE__ */ new Set(), U = [];
|
|
1089
1089
|
for (const O of [...b.owned, ...b.joined])
|
|
@@ -1134,24 +1134,24 @@ function wc({
|
|
|
1134
1134
|
}
|
|
1135
1135
|
);
|
|
1136
1136
|
}
|
|
1137
|
-
const
|
|
1138
|
-
{ label: "智能体", icon: /* @__PURE__ */ e(
|
|
1139
|
-
{ label: "技能市场", icon: /* @__PURE__ */ e(
|
|
1137
|
+
const vc = [
|
|
1138
|
+
{ label: "智能体", icon: /* @__PURE__ */ e(vr, {}), target: "agents" },
|
|
1139
|
+
{ label: "技能市场", icon: /* @__PURE__ */ e(pr, {}), target: "market" },
|
|
1140
1140
|
{ label: "伙伴技能", icon: /* @__PURE__ */ e(mo, {}), target: "bind" },
|
|
1141
1141
|
{ label: "插件与连接器", icon: /* @__PURE__ */ e(uo, {}), target: "soon" }
|
|
1142
|
-
], Bn = { label: "聊天记录", icon: /* @__PURE__ */ e(
|
|
1143
|
-
{ label: "页面", icon: /* @__PURE__ */ e(
|
|
1144
|
-
{ label: "云盘", icon: /* @__PURE__ */ e(
|
|
1142
|
+
], Bn = { label: "聊天记录", icon: /* @__PURE__ */ e(fr, {}) }, wc = [
|
|
1143
|
+
{ label: "页面", icon: /* @__PURE__ */ e(Nr, {}), title: "实验位:页面发布后续接入" },
|
|
1144
|
+
{ label: "云盘", icon: /* @__PURE__ */ e(Sr, {}), title: "实验位:云盘后续接入" },
|
|
1145
1145
|
{
|
|
1146
1146
|
label: "IM 频道",
|
|
1147
|
-
icon: /* @__PURE__ */ e(
|
|
1147
|
+
icon: /* @__PURE__ */ e(Cr, {}),
|
|
1148
1148
|
title: "实验位:IM 频道后续接入"
|
|
1149
1149
|
}
|
|
1150
1150
|
], oa = [
|
|
1151
1151
|
{ tab: "projects", label: "工作单管理", icon: /* @__PURE__ */ e(Zn, {}) },
|
|
1152
1152
|
{ tab: "personal", label: "个人统计", icon: /* @__PURE__ */ e(ks, {}) },
|
|
1153
1153
|
{ tab: "business-stats", label: "业务指标", icon: /* @__PURE__ */ e(vs, {}) },
|
|
1154
|
-
{ tab: "tools", label: "常用工具", icon: /* @__PURE__ */ e(
|
|
1154
|
+
{ tab: "tools", label: "常用工具", icon: /* @__PURE__ */ e(hr, {}) },
|
|
1155
1155
|
{ tab: "websites", label: "常用网站", icon: /* @__PURE__ */ e(ws, {}) },
|
|
1156
1156
|
{ tab: "todo", label: "工作待办", icon: /* @__PURE__ */ e(bs, {}) },
|
|
1157
1157
|
{ tab: "notes", label: "个人笔记", icon: /* @__PURE__ */ e(ta, {}) },
|
|
@@ -1164,19 +1164,19 @@ const bc = [
|
|
|
1164
1164
|
permission: "TRAINING_CENTER"
|
|
1165
1165
|
},
|
|
1166
1166
|
{ tab: "webide", label: "WebIDE", icon: /* @__PURE__ */ e(Ns, {}) }
|
|
1167
|
-
], sa = /* @__PURE__ */ new Set(["todo", "notes"]),
|
|
1167
|
+
], sa = /* @__PURE__ */ new Set(["todo", "notes"]), bc = oa.filter(
|
|
1168
1168
|
(t) => sa.has(t.tab)
|
|
1169
1169
|
);
|
|
1170
|
-
function
|
|
1170
|
+
function Nc(t) {
|
|
1171
1171
|
var a;
|
|
1172
1172
|
return (a = oa.find((o) => o.tab === t)) == null ? void 0 : a.permission;
|
|
1173
1173
|
}
|
|
1174
|
-
function
|
|
1174
|
+
function Sc(t) {
|
|
1175
1175
|
return oa.filter(
|
|
1176
1176
|
(a) => !sa.has(a.tab) && (!a.permission || Ln(t, a.permission))
|
|
1177
1177
|
);
|
|
1178
1178
|
}
|
|
1179
|
-
function
|
|
1179
|
+
function Cc({
|
|
1180
1180
|
currentUser: t,
|
|
1181
1181
|
token: a,
|
|
1182
1182
|
isDesktop: o,
|
|
@@ -1196,7 +1196,7 @@ function Tc({
|
|
|
1196
1196
|
onCloudNav: T,
|
|
1197
1197
|
cloudNavActive: G
|
|
1198
1198
|
}) {
|
|
1199
|
-
const R =
|
|
1199
|
+
const R = Sc(t), Y = bc.filter(
|
|
1200
1200
|
(j) => !j.permission || Ln(t, j.permission)
|
|
1201
1201
|
), F = d && !(v && sa.has(v)), [K, f] = g(!1), [h, M] = g(
|
|
1202
1202
|
null
|
|
@@ -1242,7 +1242,7 @@ function Tc({
|
|
|
1242
1242
|
className: B.newTaskBtn,
|
|
1243
1243
|
onClick: C,
|
|
1244
1244
|
children: [
|
|
1245
|
-
/* @__PURE__ */ e(
|
|
1245
|
+
/* @__PURE__ */ e($r, {}),
|
|
1246
1246
|
/* @__PURE__ */ e("span", { children: o ? "新建任务" : "云端任务" })
|
|
1247
1247
|
]
|
|
1248
1248
|
}
|
|
@@ -1256,7 +1256,7 @@ function Tc({
|
|
|
1256
1256
|
}
|
|
1257
1257
|
),
|
|
1258
1258
|
/* @__PURE__ */ e(
|
|
1259
|
-
|
|
1259
|
+
kc,
|
|
1260
1260
|
{
|
|
1261
1261
|
token: a,
|
|
1262
1262
|
down: !0,
|
|
@@ -1282,7 +1282,7 @@ function Tc({
|
|
|
1282
1282
|
"aria-current": X ? "page" : void 0,
|
|
1283
1283
|
onClick: I,
|
|
1284
1284
|
children: [
|
|
1285
|
-
/* @__PURE__ */ e("span", { className: B.navIcon, children: /* @__PURE__ */ e(
|
|
1285
|
+
/* @__PURE__ */ e("span", { className: B.navIcon, children: /* @__PURE__ */ e(_r, {}) }),
|
|
1286
1286
|
/* @__PURE__ */ e("span", { children: "搜索" }),
|
|
1287
1287
|
/* @__PURE__ */ e("span", { className: B.navHint, "aria-hidden": "true", children: "⌘K" })
|
|
1288
1288
|
]
|
|
@@ -1309,7 +1309,7 @@ function Tc({
|
|
|
1309
1309
|
"aria-current": r === "schedule" ? "page" : void 0,
|
|
1310
1310
|
onClick: U,
|
|
1311
1311
|
children: [
|
|
1312
|
-
/* @__PURE__ */ e("span", { className: B.navIcon, children: /* @__PURE__ */ e(
|
|
1312
|
+
/* @__PURE__ */ e("span", { className: B.navIcon, children: /* @__PURE__ */ e(kr, {}) }),
|
|
1313
1313
|
/* @__PURE__ */ e("span", { children: "定时任务" })
|
|
1314
1314
|
]
|
|
1315
1315
|
}
|
|
@@ -1372,7 +1372,7 @@ function Tc({
|
|
|
1372
1372
|
style: { top: h.top, left: h.left },
|
|
1373
1373
|
children: (() => {
|
|
1374
1374
|
const j = [
|
|
1375
|
-
...
|
|
1375
|
+
...vc.map((Z) => ({
|
|
1376
1376
|
key: Z.label,
|
|
1377
1377
|
icon: Z.icon,
|
|
1378
1378
|
label: Z.label,
|
|
@@ -1392,7 +1392,7 @@ function Tc({
|
|
|
1392
1392
|
M(null), w();
|
|
1393
1393
|
}
|
|
1394
1394
|
},
|
|
1395
|
-
...
|
|
1395
|
+
...wc.map((Z) => ({
|
|
1396
1396
|
key: Z.label,
|
|
1397
1397
|
icon: Z.icon,
|
|
1398
1398
|
label: Z.label,
|
|
@@ -1442,10 +1442,10 @@ function Tc({
|
|
|
1442
1442
|
)
|
|
1443
1443
|
] });
|
|
1444
1444
|
}
|
|
1445
|
-
function
|
|
1445
|
+
function Ic(t) {
|
|
1446
1446
|
return t.find((a) => a.agentCode === "agent_super_agent") ?? t[0] ?? null;
|
|
1447
1447
|
}
|
|
1448
|
-
const
|
|
1448
|
+
const Tc = "/v1/ws/local-agent";
|
|
1449
1449
|
let Ze = null, Rt = "", en = null, Lt = null, Qn = 0;
|
|
1450
1450
|
const tn = /* @__PURE__ */ new Map();
|
|
1451
1451
|
function ra() {
|
|
@@ -1453,13 +1453,13 @@ function ra() {
|
|
|
1453
1453
|
const t = window;
|
|
1454
1454
|
return !!t.__TAURI__ || !!t.__TAURI_INTERNALS__ || !!t.__FT_DESKTOP__;
|
|
1455
1455
|
}
|
|
1456
|
-
function
|
|
1457
|
-
return `${window.location.protocol === "https:" ? "wss:" : "ws:"}//${window.location.host}${xo}${
|
|
1456
|
+
function $c() {
|
|
1457
|
+
return `${window.location.protocol === "https:" ? "wss:" : "ws:"}//${window.location.host}${xo}${Tc}`;
|
|
1458
1458
|
}
|
|
1459
1459
|
function $t(t) {
|
|
1460
1460
|
Ze && Ze.readyState === WebSocket.OPEN && Ze.send(JSON.stringify(t));
|
|
1461
1461
|
}
|
|
1462
|
-
function
|
|
1462
|
+
function Lc() {
|
|
1463
1463
|
Lt != null && window.clearInterval(Lt), Lt = window.setInterval(() => {
|
|
1464
1464
|
$t({ type: "register", token: Rt });
|
|
1465
1465
|
}, 3e4);
|
|
@@ -1472,7 +1472,7 @@ function Ea() {
|
|
|
1472
1472
|
en = null, po();
|
|
1473
1473
|
}, t);
|
|
1474
1474
|
}
|
|
1475
|
-
async function
|
|
1475
|
+
async function Mc(t) {
|
|
1476
1476
|
const a = String(t.requestId ?? ""), o = String(t.method ?? "GET"), r = String(t.path ?? "");
|
|
1477
1477
|
if (!a || !r.startsWith("/v1/")) {
|
|
1478
1478
|
$t({ type: "error", requestId: a, message: "invalid proxy request" });
|
|
@@ -1526,19 +1526,19 @@ async function xc(t) {
|
|
|
1526
1526
|
function po() {
|
|
1527
1527
|
if (Rt && !(Ze && (Ze.readyState === WebSocket.CONNECTING || Ze.readyState === WebSocket.OPEN))) {
|
|
1528
1528
|
try {
|
|
1529
|
-
Ze = new WebSocket(
|
|
1529
|
+
Ze = new WebSocket($c());
|
|
1530
1530
|
} catch {
|
|
1531
1531
|
Ea();
|
|
1532
1532
|
return;
|
|
1533
1533
|
}
|
|
1534
1534
|
Ze.onopen = () => {
|
|
1535
|
-
Qn = 0, $t({ type: "register", token: Rt }),
|
|
1535
|
+
Qn = 0, $t({ type: "register", token: Rt }), Lc();
|
|
1536
1536
|
}, Ze.onmessage = (t) => {
|
|
1537
1537
|
var a;
|
|
1538
1538
|
try {
|
|
1539
1539
|
const o = JSON.parse(t.data), r = String(o.type ?? "");
|
|
1540
1540
|
if (r === "request")
|
|
1541
|
-
|
|
1541
|
+
Mc(o);
|
|
1542
1542
|
else if (r === "cancel") {
|
|
1543
1543
|
const d = String(o.requestId ?? "");
|
|
1544
1544
|
(a = tn.get(d)) == null || a.abort(), tn.delete(d);
|
|
@@ -1551,13 +1551,13 @@ function po() {
|
|
|
1551
1551
|
};
|
|
1552
1552
|
}
|
|
1553
1553
|
}
|
|
1554
|
-
function
|
|
1555
|
-
!ra() || !t || (Rt && Rt !== t &&
|
|
1554
|
+
function Ac(t) {
|
|
1555
|
+
!ra() || !t || (Rt && Rt !== t && xc(), Rt = t, po());
|
|
1556
1556
|
}
|
|
1557
|
-
function
|
|
1557
|
+
function xc() {
|
|
1558
1558
|
Rt = "", en != null && (window.clearTimeout(en), en = null), Lt != null && (window.clearInterval(Lt), Lt = null), tn.forEach((t) => t.abort()), tn.clear(), Ze && (Ze.onclose = null, Ze.close(), Ze = null);
|
|
1559
1559
|
}
|
|
1560
|
-
function
|
|
1560
|
+
function Wh(t) {
|
|
1561
1561
|
return t.type === "jar" ? {
|
|
1562
1562
|
id: "-1",
|
|
1563
1563
|
userId: "local",
|
|
@@ -1578,7 +1578,7 @@ function zh(t) {
|
|
|
1578
1578
|
localAgentType: t.type
|
|
1579
1579
|
};
|
|
1580
1580
|
}
|
|
1581
|
-
function
|
|
1581
|
+
function Ec() {
|
|
1582
1582
|
const t = W((Y) => Y.token), a = ra() || typeof localStorage < "u" && localStorage.getItem("ft_exclusive_force_desktop") === "1", [o, r] = g(!1), [d, v] = g([]), [m, p] = g(null), [b, P] = g(!1), [U, O] = g([]), [w, I] = g(0), X = a || b, ae = d.find((Y) => Y.id === m) ?? null, T = X && o && d.length > 0;
|
|
1583
1583
|
H(() => {
|
|
1584
1584
|
let Y = !0;
|
|
@@ -1591,7 +1591,7 @@ function Oc() {
|
|
|
1591
1591
|
h = !1;
|
|
1592
1592
|
}
|
|
1593
1593
|
if (!Y) return;
|
|
1594
|
-
if (P(h),
|
|
1594
|
+
if (P(h), er(h ? "tunnel" : "direct", t), r(h), !h) {
|
|
1595
1595
|
v([]);
|
|
1596
1596
|
return;
|
|
1597
1597
|
}
|
|
@@ -1602,7 +1602,7 @@ function Oc() {
|
|
|
1602
1602
|
}
|
|
1603
1603
|
return;
|
|
1604
1604
|
}
|
|
1605
|
-
const f = await
|
|
1605
|
+
const f = await nr();
|
|
1606
1606
|
if (Y) {
|
|
1607
1607
|
if (r(f), !f) {
|
|
1608
1608
|
v([]);
|
|
@@ -1630,7 +1630,7 @@ function Oc() {
|
|
|
1630
1630
|
if (!X || !o) return;
|
|
1631
1631
|
const Y = ae && ae.type !== "jar" ? ae.id : void 0;
|
|
1632
1632
|
try {
|
|
1633
|
-
const F = await
|
|
1633
|
+
const F = await tr(Y);
|
|
1634
1634
|
O(
|
|
1635
1635
|
[...F].sort((K, f) => f.updatedAt - K.updatedAt)
|
|
1636
1636
|
);
|
|
@@ -1655,7 +1655,7 @@ function Oc() {
|
|
|
1655
1655
|
};
|
|
1656
1656
|
}
|
|
1657
1657
|
const ho = 15;
|
|
1658
|
-
function
|
|
1658
|
+
function Pc(t) {
|
|
1659
1659
|
const a = (o) => o == null ? null : String(o);
|
|
1660
1660
|
return {
|
|
1661
1661
|
id: String(t.id ?? ""),
|
|
@@ -1676,7 +1676,7 @@ function Dc(t) {
|
|
|
1676
1676
|
function Pa(t) {
|
|
1677
1677
|
return {
|
|
1678
1678
|
records: (Array.isArray(t.records) ? t.records : []).map(
|
|
1679
|
-
(o) =>
|
|
1679
|
+
(o) => Pc(o)
|
|
1680
1680
|
),
|
|
1681
1681
|
total: Number(t.total ?? 0),
|
|
1682
1682
|
current: Number(t.current ?? 1),
|
|
@@ -1696,12 +1696,12 @@ const Da = {
|
|
|
1696
1696
|
3: { label: "已完成", cls: ve.todoStatusDone },
|
|
1697
1697
|
4: { label: "失败", cls: ve.todoStatusFailed },
|
|
1698
1698
|
5: { label: "已取消", cls: ve.todoStatusCancelled }
|
|
1699
|
-
},
|
|
1700
|
-
function
|
|
1699
|
+
}, Oc = /* @__PURE__ */ new Set(["JUDGE_CONTINUE", "SUSPEND_FOR_TEAM"]);
|
|
1700
|
+
function Dc(t) {
|
|
1701
1701
|
const a = Da[t.status] || Da[0];
|
|
1702
|
-
return t.status === 2 && t.waitReason &&
|
|
1702
|
+
return t.status === 2 && t.waitReason && Oc.has(t.waitReason) ? { label: "等待输入", cls: a.cls } : a;
|
|
1703
1703
|
}
|
|
1704
|
-
function
|
|
1704
|
+
function Rc(t) {
|
|
1705
1705
|
if (!t) return "";
|
|
1706
1706
|
try {
|
|
1707
1707
|
const a = new Date(t), o = String(a.getMonth() + 1).padStart(2, "0"), r = String(a.getDate()).padStart(2, "0"), d = String(a.getHours()).padStart(2, "0"), v = String(a.getMinutes()).padStart(2, "0");
|
|
@@ -1717,14 +1717,14 @@ const Ra = {
|
|
|
1717
1717
|
minLoadedPage: 1,
|
|
1718
1718
|
maxLoadedPage: 0
|
|
1719
1719
|
};
|
|
1720
|
-
function
|
|
1720
|
+
function Fc({
|
|
1721
1721
|
onCountChange: t
|
|
1722
1722
|
}) {
|
|
1723
|
-
const a = W((
|
|
1723
|
+
const a = W((x) => x.projects), o = W((x) => x.openTaskFromTodo), [r, d] = g(Ra), [v, m] = g(!1), [p, b] = g(!1), [P, U] = g(!1), [O, w] = g(null), [I, X] = g(""), [ae, T] = g(""), G = le(null), R = le(null), Y = le(null), F = le(!1), K = le(r), f = le(null), h = le(null), M = le(ae);
|
|
1724
1724
|
K.current = r, M.current = ae;
|
|
1725
|
-
const te = ne(async (
|
|
1725
|
+
const te = ne(async (x) => {
|
|
1726
1726
|
const y = new URLSearchParams({
|
|
1727
|
-
current: String(
|
|
1727
|
+
current: String(x),
|
|
1728
1728
|
size: String(ho)
|
|
1729
1729
|
}), V = M.current;
|
|
1730
1730
|
V && y.set("keyword", V);
|
|
@@ -1744,25 +1744,25 @@ function Bc({
|
|
|
1744
1744
|
if (!F.current) {
|
|
1745
1745
|
F.current = !0, m(!0), w(null);
|
|
1746
1746
|
try {
|
|
1747
|
-
const
|
|
1747
|
+
const x = await te(1);
|
|
1748
1748
|
d({
|
|
1749
|
-
tasks:
|
|
1750
|
-
total:
|
|
1751
|
-
pages:
|
|
1749
|
+
tasks: x.records,
|
|
1750
|
+
total: x.total,
|
|
1751
|
+
pages: x.pages,
|
|
1752
1752
|
minLoadedPage: 1,
|
|
1753
|
-
maxLoadedPage:
|
|
1753
|
+
maxLoadedPage: x.records.length > 0 ? 1 : 0
|
|
1754
1754
|
});
|
|
1755
|
-
} catch (
|
|
1756
|
-
qn(
|
|
1755
|
+
} catch (x) {
|
|
1756
|
+
qn(x) || (w(x instanceof Error ? x.message : "加载失败"), d(Ra));
|
|
1757
1757
|
} finally {
|
|
1758
1758
|
m(!1), F.current = !1;
|
|
1759
1759
|
}
|
|
1760
1760
|
}
|
|
1761
1761
|
}, [te]), C = ne(async () => {
|
|
1762
|
-
const
|
|
1763
|
-
if (F.current ||
|
|
1762
|
+
const x = K.current;
|
|
1763
|
+
if (F.current || x.maxLoadedPage <= 0 || x.maxLoadedPage >= x.pages)
|
|
1764
1764
|
return;
|
|
1765
|
-
const y =
|
|
1765
|
+
const y = x.maxLoadedPage + 1;
|
|
1766
1766
|
F.current = !0, b(!0);
|
|
1767
1767
|
try {
|
|
1768
1768
|
const V = await te(y);
|
|
@@ -1778,9 +1778,9 @@ function Bc({
|
|
|
1778
1778
|
b(!1), F.current = !1;
|
|
1779
1779
|
}
|
|
1780
1780
|
}, [te]), q = ne(async () => {
|
|
1781
|
-
const
|
|
1782
|
-
if (F.current ||
|
|
1783
|
-
const y =
|
|
1781
|
+
const x = K.current;
|
|
1782
|
+
if (F.current || x.minLoadedPage <= 1) return;
|
|
1783
|
+
const y = x.minLoadedPage - 1, V = G.current;
|
|
1784
1784
|
V && (f.current = V.scrollHeight), F.current = !0, U(!0);
|
|
1785
1785
|
try {
|
|
1786
1786
|
const J = await te(y);
|
|
@@ -1798,14 +1798,14 @@ function Bc({
|
|
|
1798
1798
|
}
|
|
1799
1799
|
}, [te]);
|
|
1800
1800
|
Xn(() => {
|
|
1801
|
-
const
|
|
1802
|
-
!
|
|
1801
|
+
const x = G.current, y = f.current;
|
|
1802
|
+
!x || y == null || (x.scrollTop += x.scrollHeight - y, f.current = null);
|
|
1803
1803
|
}, [r.tasks]), H(() => {
|
|
1804
1804
|
i();
|
|
1805
1805
|
}, [i, ae]);
|
|
1806
|
-
const j = ne((
|
|
1807
|
-
X(
|
|
1808
|
-
T(
|
|
1806
|
+
const j = ne((x) => {
|
|
1807
|
+
X(x), h.current && clearTimeout(h.current), h.current = setTimeout(() => {
|
|
1808
|
+
T(x.trim());
|
|
1809
1809
|
}, 400);
|
|
1810
1810
|
}, []);
|
|
1811
1811
|
H(() => () => {
|
|
@@ -1813,38 +1813,38 @@ function Bc({
|
|
|
1813
1813
|
}, []), H(() => {
|
|
1814
1814
|
t == null || t(r.total);
|
|
1815
1815
|
}, [r.total, t]), H(() => {
|
|
1816
|
-
const
|
|
1816
|
+
const x = setInterval(() => {
|
|
1817
1817
|
K.current.maxLoadedPage <= 1 && !M.current && i();
|
|
1818
1818
|
}, 15e3);
|
|
1819
|
-
return () => clearInterval(
|
|
1819
|
+
return () => clearInterval(x);
|
|
1820
1820
|
}, [i]), H(() => {
|
|
1821
|
-
const
|
|
1822
|
-
if (!
|
|
1821
|
+
const x = G.current, y = R.current, V = Y.current;
|
|
1822
|
+
if (!x || !y || !V) return;
|
|
1823
1823
|
const J = new IntersectionObserver(
|
|
1824
1824
|
(_e) => {
|
|
1825
1825
|
for (const ke of _e)
|
|
1826
1826
|
ke.isIntersecting && (ke.target === y ? q() : ke.target === V && C());
|
|
1827
1827
|
},
|
|
1828
|
-
{ root:
|
|
1828
|
+
{ root: x, rootMargin: "64px", threshold: 0 }
|
|
1829
1829
|
);
|
|
1830
1830
|
return J.observe(y), J.observe(V), () => J.disconnect();
|
|
1831
1831
|
}, [q, C, r.tasks.length]);
|
|
1832
1832
|
const k = Re(() => {
|
|
1833
|
-
const
|
|
1833
|
+
const x = {};
|
|
1834
1834
|
if (a)
|
|
1835
1835
|
for (const y of a)
|
|
1836
|
-
|
|
1837
|
-
return
|
|
1836
|
+
x[String(y.id)] = y.name || `项目 ${y.id}`;
|
|
1837
|
+
return x;
|
|
1838
1838
|
}, [a]), L = Re(() => {
|
|
1839
|
-
const
|
|
1839
|
+
const x = [];
|
|
1840
1840
|
for (const y of r.tasks) {
|
|
1841
|
-
const V = y.projectId || "unknown", J =
|
|
1842
|
-
J && J.projectId === V ? J.tasks.push(y) :
|
|
1841
|
+
const V = y.projectId || "unknown", J = x[x.length - 1];
|
|
1842
|
+
J && J.projectId === V ? J.tasks.push(y) : x.push({ projectId: V, tasks: [y] });
|
|
1843
1843
|
}
|
|
1844
|
-
return
|
|
1844
|
+
return x;
|
|
1845
1845
|
}, [r.tasks]), Z = ne(
|
|
1846
|
-
(
|
|
1847
|
-
o(
|
|
1846
|
+
(x) => {
|
|
1847
|
+
o(x.id, x.name, x.projectId);
|
|
1848
1848
|
},
|
|
1849
1849
|
[o]
|
|
1850
1850
|
), { tasks: _, total: S, pages: D, minLoadedPage: ye, maxLoadedPage: he } = r, se = he > 0 && he < D, be = ye > 1;
|
|
@@ -1860,7 +1860,7 @@ function Bc({
|
|
|
1860
1860
|
placeholder: "搜索待办",
|
|
1861
1861
|
className: ve.todoSearchInput,
|
|
1862
1862
|
value: I,
|
|
1863
|
-
onChange: (
|
|
1863
|
+
onChange: (x) => j(x.target.value)
|
|
1864
1864
|
}
|
|
1865
1865
|
),
|
|
1866
1866
|
/* @__PURE__ */ e(
|
|
@@ -1887,15 +1887,15 @@ function Bc({
|
|
|
1887
1887
|
}
|
|
1888
1888
|
)
|
|
1889
1889
|
] }) : _.length === 0 ? /* @__PURE__ */ e("div", { className: ve.todoEmpty, children: ae ? "未找到匹配的待办" : "暂无待办" }) : L.map(
|
|
1890
|
-
({ projectId:
|
|
1891
|
-
const J = k[
|
|
1890
|
+
({ projectId: x, tasks: y }, V) => {
|
|
1891
|
+
const J = k[x] || `项目 ${x}`;
|
|
1892
1892
|
return /* @__PURE__ */ s("div", { className: ve.todoGroup, children: [
|
|
1893
1893
|
/* @__PURE__ */ s("div", { className: ve.todoGroupHeader, children: [
|
|
1894
1894
|
/* @__PURE__ */ e(In, { title: J, placement: "topLeft", children: /* @__PURE__ */ e("span", { className: ve.todoGroupTitle, children: J }) }),
|
|
1895
1895
|
/* @__PURE__ */ e("span", { className: ve.todoGroupCount, children: y.length })
|
|
1896
1896
|
] }),
|
|
1897
1897
|
y.map((_e) => {
|
|
1898
|
-
const ke =
|
|
1898
|
+
const ke = Dc(_e), ue = hs(_e);
|
|
1899
1899
|
return /* @__PURE__ */ s(
|
|
1900
1900
|
"div",
|
|
1901
1901
|
{
|
|
@@ -1917,14 +1917,14 @@ function Bc({
|
|
|
1917
1917
|
"@",
|
|
1918
1918
|
ue.label
|
|
1919
1919
|
] }) : null,
|
|
1920
|
-
/* @__PURE__ */ e("span", { className: ve.todoTime, children:
|
|
1920
|
+
/* @__PURE__ */ e("span", { className: ve.todoTime, children: Rc(_e.createTime) })
|
|
1921
1921
|
] })
|
|
1922
1922
|
]
|
|
1923
1923
|
},
|
|
1924
1924
|
_e.id
|
|
1925
1925
|
);
|
|
1926
1926
|
})
|
|
1927
|
-
] }, `${
|
|
1927
|
+
] }, `${x}-${V}`);
|
|
1928
1928
|
}
|
|
1929
1929
|
),
|
|
1930
1930
|
p ? /* @__PURE__ */ e("div", { className: ve.todoLoadHint, children: "加载更多待办..." }) : se ? /* @__PURE__ */ s("div", { className: ve.todoLoadHint, children: [
|
|
@@ -1942,26 +1942,26 @@ function Bc({
|
|
|
1942
1942
|
] })
|
|
1943
1943
|
] });
|
|
1944
1944
|
}
|
|
1945
|
-
const
|
|
1946
|
-
fabWrap:
|
|
1947
|
-
menuWrap:
|
|
1948
|
-
menuItem:
|
|
1949
|
-
fab:
|
|
1950
|
-
catSvg:
|
|
1951
|
-
catTail:
|
|
1952
|
-
catEyesNormal:
|
|
1953
|
-
}, Fa = "ft_floating_dock_top", fo = 40, go = 80,
|
|
1954
|
-
function
|
|
1945
|
+
const jc = "_fabWrap_1o03n_1", Bc = "_menuWrap_1o03n_11", Hc = "_menuItem_1o03n_31", Wc = "_fab_1o03n_1", Uc = "_catSvg_1o03n_91", zc = "_catTail_1o03n_100", Gc = "_catEyesNormal_1o03n_116", Tt = {
|
|
1946
|
+
fabWrap: jc,
|
|
1947
|
+
menuWrap: Bc,
|
|
1948
|
+
menuItem: Hc,
|
|
1949
|
+
fab: Wc,
|
|
1950
|
+
catSvg: Uc,
|
|
1951
|
+
catTail: zc,
|
|
1952
|
+
catEyesNormal: Gc
|
|
1953
|
+
}, Fa = "ft_floating_dock_top", fo = 40, go = 80, Kc = 8, qc = 4;
|
|
1954
|
+
function Vc() {
|
|
1955
1955
|
return Math.max(go, window.innerHeight - fo - 100);
|
|
1956
1956
|
}
|
|
1957
1957
|
function Hn(t) {
|
|
1958
|
-
const a = window.innerHeight - fo -
|
|
1958
|
+
const a = window.innerHeight - fo - Kc;
|
|
1959
1959
|
return Math.max(go, Math.min(t, a));
|
|
1960
1960
|
}
|
|
1961
|
-
function
|
|
1961
|
+
function Jc() {
|
|
1962
1962
|
const [t, a] = g(!1), [o, r] = g(!1), [d, v] = g(() => {
|
|
1963
1963
|
const f = Number(localStorage.getItem(Fa));
|
|
1964
|
-
return Number.isFinite(f) && f > 0 ? Hn(f) :
|
|
1964
|
+
return Number.isFinite(f) && f > 0 ? Hn(f) : Vc();
|
|
1965
1965
|
}), [m, p] = g(!1), b = le({
|
|
1966
1966
|
active: !1,
|
|
1967
1967
|
moved: !1,
|
|
@@ -1981,7 +1981,7 @@ function Zc() {
|
|
|
1981
1981
|
(f) => {
|
|
1982
1982
|
if (!b.current.active) return;
|
|
1983
1983
|
const h = f.clientY - b.current.startY;
|
|
1984
|
-
Math.abs(h) >
|
|
1984
|
+
Math.abs(h) > qc && (b.current.moved = !0, p(!0)), v(Hn(b.current.startTop + h));
|
|
1985
1985
|
},
|
|
1986
1986
|
[]
|
|
1987
1987
|
), Y = ne(
|
|
@@ -2178,86 +2178,86 @@ function Zc() {
|
|
|
2178
2178
|
)
|
|
2179
2179
|
] });
|
|
2180
2180
|
}
|
|
2181
|
-
const
|
|
2182
|
-
resumeModal:
|
|
2183
|
-
modalHeader:
|
|
2184
|
-
closeBtn:
|
|
2185
|
-
resumeBody:
|
|
2186
|
-
leftPanel:
|
|
2187
|
-
avatarWrap:
|
|
2188
|
-
avatarSvg:
|
|
2189
|
-
avatarFallback:
|
|
2190
|
-
profileName:
|
|
2191
|
-
profileCreator:
|
|
2192
|
-
profileType:
|
|
2193
|
-
profileDesc:
|
|
2194
|
-
profileCapabilities:
|
|
2195
|
-
capabilityTag:
|
|
2196
|
-
leftFooter:
|
|
2197
|
-
rightPanel:
|
|
2198
|
-
tabs:
|
|
2199
|
-
infoTab:
|
|
2200
|
-
infoRow:
|
|
2201
|
-
infoLabel:
|
|
2202
|
-
infoValue:
|
|
2203
|
-
infoTags:
|
|
2204
|
-
infoTag:
|
|
2205
|
-
memoryTab:
|
|
2206
|
-
memoryToolbar:
|
|
2207
|
-
memoryHint:
|
|
2208
|
-
memoryList:
|
|
2209
|
-
memoryItemInfo:
|
|
2210
|
-
memoryItemTitle:
|
|
2211
|
-
memoryItemDesc:
|
|
2212
|
-
memoryItemKeywords:
|
|
2213
|
-
memoryItemActions:
|
|
2214
|
-
memoryItemFileName:
|
|
2215
|
-
skillsTab:
|
|
2216
|
-
skillList:
|
|
2217
|
-
skillIcon:
|
|
2218
|
-
skillInfo:
|
|
2219
|
-
skillName:
|
|
2220
|
-
skillBadge:
|
|
2221
|
-
skillDesc:
|
|
2222
|
-
skillPath:
|
|
2223
|
-
loadingWrap:
|
|
2224
|
-
memoryDetailOverlay:
|
|
2225
|
-
memoryDetailModal:
|
|
2226
|
-
memoryDetailHeader:
|
|
2227
|
-
memoryDetailTitle:
|
|
2228
|
-
memoryDetailBody:
|
|
2229
|
-
memoryDetailMeta:
|
|
2230
|
-
memoryDetailMetaTag:
|
|
2231
|
-
memoryDetailContent:
|
|
2232
|
-
skillDetailOverlay:
|
|
2233
|
-
skillDetailModal:
|
|
2234
|
-
skillDetailHeader:
|
|
2235
|
-
skillDetailTitle:
|
|
2236
|
-
skillDetailBody:
|
|
2237
|
-
skillFileTree:
|
|
2238
|
-
skillFileTreeNode:
|
|
2239
|
-
skillFileTreeNodeActive:
|
|
2240
|
-
skillFileTreeIcon:
|
|
2241
|
-
skillFileTreeName:
|
|
2242
|
-
skillFileTreeEmpty:
|
|
2243
|
-
skillFileContent:
|
|
2244
|
-
skillFileContentPath:
|
|
2245
|
-
skillFileContentMarkdown:
|
|
2246
|
-
skillFileContentEmpty:
|
|
2247
|
-
skillItemClickable:
|
|
2248
|
-
memoryItemClickable:
|
|
2249
|
-
},
|
|
2250
|
-
overlay:
|
|
2251
|
-
modal:
|
|
2252
|
-
modalHeader:
|
|
2253
|
-
title:
|
|
2254
|
-
modalContent:
|
|
2255
|
-
modalFooter:
|
|
2256
|
-
btnPrimary:
|
|
2257
|
-
btnCancel:
|
|
2258
|
-
label:
|
|
2181
|
+
const Yc = "_resumeModal_1ytri_3", Zc = "_modalHeader_1ytri_10", Qc = "_closeBtn_1ytri_19", Xc = "_resumeBody_1ytri_38", el = "_leftPanel_1ytri_46", tl = "_avatarWrap_1ytri_57", nl = "_avatarSvg_1ytri_70", al = "_avatarFallback_1ytri_83", ol = "_profileName_1ytri_87", sl = "_profileCreator_1ytri_98", rl = "_profileType_1ytri_105", il = "_profileDesc_1ytri_112", cl = "_profileCapabilities_1ytri_121", ll = "_capabilityTag_1ytri_128", dl = "_leftFooter_1ytri_136", ul = "_rightPanel_1ytri_143", ml = "_tabs_1ytri_151", pl = "_infoTab_1ytri_183", hl = "_infoRow_1ytri_189", fl = "_infoLabel_1ytri_197", gl = "_infoValue_1ytri_206", yl = "_infoTags_1ytri_213", _l = "_infoTag_1ytri_213", kl = "_memoryTab_1ytri_230", vl = "_memoryToolbar_1ytri_236", wl = "_memoryHint_1ytri_244", bl = "_memoryList_1ytri_254", Nl = "_memoryItemInfo_1ytri_285", Sl = "_memoryItemTitle_1ytri_290", Cl = "_memoryItemDesc_1ytri_297", Il = "_memoryItemKeywords_1ytri_307", Tl = "_memoryItemActions_1ytri_312", $l = "_memoryItemFileName_1ytri_319", Ll = "_skillsTab_1ytri_354", Ml = "_skillList_1ytri_359", Al = "_skillIcon_1ytri_379", xl = "_skillInfo_1ytri_384", El = "_skillName_1ytri_389", Pl = "_skillBadge_1ytri_398", Ol = "_skillDesc_1ytri_406", Dl = "_skillPath_1ytri_416", Rl = "_loadingWrap_1ytri_425", Fl = "_memoryDetailOverlay_1ytri_435", jl = "_memoryDetailModal_1ytri_448", Bl = "_memoryDetailHeader_1ytri_460", Hl = "_memoryDetailTitle_1ytri_469", Wl = "_memoryDetailBody_1ytri_475", Ul = "_memoryDetailMeta_1ytri_481", zl = "_memoryDetailMetaTag_1ytri_488", Gl = "_memoryDetailContent_1ytri_496", Kl = "_skillDetailOverlay_1ytri_517", ql = "_skillDetailModal_1ytri_530", Vl = "_skillDetailHeader_1ytri_543", Jl = "_skillDetailTitle_1ytri_552", Yl = "_skillDetailBody_1ytri_561", Zl = "_skillFileTree_1ytri_567", Ql = "_skillFileTreeNode_1ytri_575", Xl = "_skillFileTreeNodeActive_1ytri_593", ed = "_skillFileTreeIcon_1ytri_599", td = "_skillFileTreeName_1ytri_604", nd = "_skillFileTreeEmpty_1ytri_609", ad = "_skillFileContent_1ytri_616", od = "_skillFileContentPath_1ytri_622", sd = "_skillFileContentMarkdown_1ytri_631", rd = "_skillFileContentEmpty_1ytri_723", id = "_skillItemClickable_1ytri_734", cd = "_memoryItemClickable_1ytri_752", $ = {
|
|
2182
|
+
resumeModal: Yc,
|
|
2183
|
+
modalHeader: Zc,
|
|
2184
|
+
closeBtn: Qc,
|
|
2185
|
+
resumeBody: Xc,
|
|
2186
|
+
leftPanel: el,
|
|
2187
|
+
avatarWrap: tl,
|
|
2188
|
+
avatarSvg: nl,
|
|
2189
|
+
avatarFallback: al,
|
|
2190
|
+
profileName: ol,
|
|
2191
|
+
profileCreator: sl,
|
|
2192
|
+
profileType: rl,
|
|
2193
|
+
profileDesc: il,
|
|
2194
|
+
profileCapabilities: cl,
|
|
2195
|
+
capabilityTag: ll,
|
|
2196
|
+
leftFooter: dl,
|
|
2197
|
+
rightPanel: ul,
|
|
2198
|
+
tabs: ml,
|
|
2199
|
+
infoTab: pl,
|
|
2200
|
+
infoRow: hl,
|
|
2201
|
+
infoLabel: fl,
|
|
2202
|
+
infoValue: gl,
|
|
2203
|
+
infoTags: yl,
|
|
2204
|
+
infoTag: _l,
|
|
2205
|
+
memoryTab: kl,
|
|
2206
|
+
memoryToolbar: vl,
|
|
2207
|
+
memoryHint: wl,
|
|
2208
|
+
memoryList: bl,
|
|
2209
|
+
memoryItemInfo: Nl,
|
|
2210
|
+
memoryItemTitle: Sl,
|
|
2211
|
+
memoryItemDesc: Cl,
|
|
2212
|
+
memoryItemKeywords: Il,
|
|
2213
|
+
memoryItemActions: Tl,
|
|
2214
|
+
memoryItemFileName: $l,
|
|
2215
|
+
skillsTab: Ll,
|
|
2216
|
+
skillList: Ml,
|
|
2217
|
+
skillIcon: Al,
|
|
2218
|
+
skillInfo: xl,
|
|
2219
|
+
skillName: El,
|
|
2220
|
+
skillBadge: Pl,
|
|
2221
|
+
skillDesc: Ol,
|
|
2222
|
+
skillPath: Dl,
|
|
2223
|
+
loadingWrap: Rl,
|
|
2224
|
+
memoryDetailOverlay: Fl,
|
|
2225
|
+
memoryDetailModal: jl,
|
|
2226
|
+
memoryDetailHeader: Bl,
|
|
2227
|
+
memoryDetailTitle: Hl,
|
|
2228
|
+
memoryDetailBody: Wl,
|
|
2229
|
+
memoryDetailMeta: Ul,
|
|
2230
|
+
memoryDetailMetaTag: zl,
|
|
2231
|
+
memoryDetailContent: Gl,
|
|
2232
|
+
skillDetailOverlay: Kl,
|
|
2233
|
+
skillDetailModal: ql,
|
|
2234
|
+
skillDetailHeader: Vl,
|
|
2235
|
+
skillDetailTitle: Jl,
|
|
2236
|
+
skillDetailBody: Yl,
|
|
2237
|
+
skillFileTree: Zl,
|
|
2238
|
+
skillFileTreeNode: Ql,
|
|
2239
|
+
skillFileTreeNodeActive: Xl,
|
|
2240
|
+
skillFileTreeIcon: ed,
|
|
2241
|
+
skillFileTreeName: td,
|
|
2242
|
+
skillFileTreeEmpty: nd,
|
|
2243
|
+
skillFileContent: ad,
|
|
2244
|
+
skillFileContentPath: od,
|
|
2245
|
+
skillFileContentMarkdown: sd,
|
|
2246
|
+
skillFileContentEmpty: rd,
|
|
2247
|
+
skillItemClickable: id,
|
|
2248
|
+
memoryItemClickable: cd
|
|
2249
|
+
}, ld = "_overlay_m9czp_11", dd = "_modal_m9czp_22", ud = "_modalHeader_m9czp_35", md = "_title_m9czp_45", pd = "_modalContent_m9czp_52", hd = "_modalFooter_m9czp_59", fd = "_btnPrimary_m9czp_70", gd = "_btnCancel_m9czp_94", yd = "_label_m9czp_110", rt = {
|
|
2250
|
+
overlay: ld,
|
|
2251
|
+
modal: dd,
|
|
2252
|
+
modalHeader: ud,
|
|
2253
|
+
title: md,
|
|
2254
|
+
modalContent: pd,
|
|
2255
|
+
modalFooter: hd,
|
|
2256
|
+
btnPrimary: fd,
|
|
2257
|
+
btnCancel: gd,
|
|
2258
|
+
label: yd
|
|
2259
2259
|
}, { TabPane: Wn } = eo;
|
|
2260
|
-
function
|
|
2260
|
+
function _d() {
|
|
2261
2261
|
var qe, Mt;
|
|
2262
2262
|
const { agentProfileState: t, closeAgentProfile: a, navigateToPersonalChat: o } = W(), r = W((z) => z.token), [d, v] = g(!1), [m, p] = g(
|
|
2263
2263
|
null
|
|
@@ -2287,7 +2287,7 @@ function vd() {
|
|
|
2287
2287
|
P(!1);
|
|
2288
2288
|
}
|
|
2289
2289
|
}
|
|
2290
|
-
}, [D]),
|
|
2290
|
+
}, [D]), x = ne(async () => {
|
|
2291
2291
|
if (!(!se || !S)) {
|
|
2292
2292
|
_(!0);
|
|
2293
2293
|
try {
|
|
@@ -2312,12 +2312,12 @@ function vd() {
|
|
|
2312
2312
|
}
|
|
2313
2313
|
}, [se, S]);
|
|
2314
2314
|
H(() => {
|
|
2315
|
-
t.visible && D && (p(null), O(null), ae("info"), L([]), be(),
|
|
2315
|
+
t.visible && D && (p(null), O(null), ae("info"), L([]), be(), x());
|
|
2316
2316
|
}, [
|
|
2317
2317
|
t.visible,
|
|
2318
2318
|
D,
|
|
2319
2319
|
be,
|
|
2320
|
-
|
|
2320
|
+
x
|
|
2321
2321
|
]);
|
|
2322
2322
|
const y = async (z) => {
|
|
2323
2323
|
if (D) {
|
|
@@ -2703,7 +2703,7 @@ function vd() {
|
|
|
2703
2703
|
var re;
|
|
2704
2704
|
const fe = ((re = z.split(".").pop()) == null ? void 0 : re.toLowerCase()) || "";
|
|
2705
2705
|
return fe === "md" || fe === "markdown";
|
|
2706
|
-
},
|
|
2706
|
+
}, dt = (z, fe) => z.map((re) => /* @__PURE__ */ s("div", { children: [
|
|
2707
2707
|
/* @__PURE__ */ s(
|
|
2708
2708
|
"div",
|
|
2709
2709
|
{
|
|
@@ -2718,7 +2718,7 @@ function vd() {
|
|
|
2718
2718
|
]
|
|
2719
2719
|
}
|
|
2720
2720
|
),
|
|
2721
|
-
re.isDir && re.children.length > 0 && /* @__PURE__ */ e("div", { children:
|
|
2721
|
+
re.isDir && re.children.length > 0 && /* @__PURE__ */ e("div", { children: dt(re.children, fe + 1) })
|
|
2722
2722
|
] }, re.path));
|
|
2723
2723
|
return /* @__PURE__ */ s(
|
|
2724
2724
|
"div",
|
|
@@ -2841,7 +2841,7 @@ function vd() {
|
|
|
2841
2841
|
/* @__PURE__ */ e(St, { size: "small" }),
|
|
2842
2842
|
" ",
|
|
2843
2843
|
/* @__PURE__ */ e("span", { style: { marginLeft: 6 }, children: "加载中..." })
|
|
2844
|
-
] }) : F.length === 0 ? /* @__PURE__ */ e("div", { className: $.skillFileTreeEmpty, children: "暂无文件" }) :
|
|
2844
|
+
] }) : F.length === 0 ? /* @__PURE__ */ e("div", { className: $.skillFileTreeEmpty, children: "暂无文件" }) : dt(at(F), 0) }),
|
|
2845
2845
|
/* @__PURE__ */ e("div", { className: $.skillFileContent, children: q ? /* @__PURE__ */ s("div", { className: $.skillFileContentEmpty, children: [
|
|
2846
2846
|
/* @__PURE__ */ e(St, { size: "small" }),
|
|
2847
2847
|
" ",
|
|
@@ -2878,12 +2878,12 @@ function vd() {
|
|
|
2878
2878
|
}
|
|
2879
2879
|
);
|
|
2880
2880
|
}
|
|
2881
|
-
const
|
|
2882
|
-
toggle:
|
|
2883
|
-
btn:
|
|
2884
|
-
btnActive:
|
|
2881
|
+
const kd = "_toggle_ewsc0_1", vd = "_btn_ewsc0_11", wd = "_btnActive_ewsc0_28", un = {
|
|
2882
|
+
toggle: kd,
|
|
2883
|
+
btn: vd,
|
|
2884
|
+
btnActive: wd
|
|
2885
2885
|
};
|
|
2886
|
-
function
|
|
2886
|
+
function bd({
|
|
2887
2887
|
lane: t,
|
|
2888
2888
|
onLaneChange: a
|
|
2889
2889
|
}) {
|
|
@@ -2912,39 +2912,39 @@ function Sd({
|
|
|
2912
2912
|
)
|
|
2913
2913
|
] });
|
|
2914
2914
|
}
|
|
2915
|
-
const
|
|
2916
|
-
welcomeRoot:
|
|
2917
|
-
welcomeInner:
|
|
2918
|
-
heroTitle:
|
|
2919
|
-
heroDivider:
|
|
2920
|
-
composer:
|
|
2921
|
-
composerTextarea:
|
|
2922
|
-
composerFooter:
|
|
2923
|
-
scenarioWrap:
|
|
2924
|
-
scenarioIcon:
|
|
2925
|
-
scenarioLabel:
|
|
2926
|
-
scenarioArrow:
|
|
2927
|
-
scenarioArrowOpen:
|
|
2928
|
-
scenarioDropdown:
|
|
2929
|
-
scenarioOption:
|
|
2930
|
-
scenarioOptionActive:
|
|
2931
|
-
scenarioOptionName:
|
|
2932
|
-
scenarioOptionDesc:
|
|
2933
|
-
scenarioDefaultBadge:
|
|
2934
|
-
scenarioMetaHint:
|
|
2935
|
-
sendBtn:
|
|
2936
|
-
suggestions:
|
|
2937
|
-
suggestionsLabel:
|
|
2938
|
-
suggestionItem:
|
|
2939
|
-
suggestionIcon:
|
|
2940
|
-
suggestionText:
|
|
2941
|
-
errorHint:
|
|
2942
|
-
}, Un = "ft_personal_llm_code",
|
|
2915
|
+
const Nd = "_welcomeRoot_2808d_2", Sd = "_welcomeInner_2808d_17", Cd = "_heroTitle_2808d_28", Id = "_heroDivider_2808d_45", Td = "_composer_2808d_54", $d = "_composerTextarea_2808d_72", Ld = "_composerFooter_2808d_91", Md = "_scenarioWrap_2808d_101", Ad = "_scenarioIcon_2808d_125", xd = "_scenarioLabel_2808d_130", Ed = "_scenarioArrow_2808d_137", Pd = "_scenarioArrowOpen_2808d_143", Od = "_scenarioDropdown_2808d_147", Dd = "_scenarioOption_2808d_167", Rd = "_scenarioOptionActive_2808d_184", Fd = "_scenarioOptionName_2808d_190", jd = "_scenarioOptionDesc_2808d_207", Bd = "_scenarioDefaultBadge_2808d_222", Hd = "_scenarioMetaHint_2808d_232", Wd = "_sendBtn_2808d_243", Ud = "_suggestions_2808d_273", zd = "_suggestionsLabel_2808d_281", Gd = "_suggestionItem_2808d_288", Kd = "_suggestionIcon_2808d_310", qd = "_suggestionText_2808d_316", Vd = "_errorHint_2808d_325", ce = {
|
|
2916
|
+
welcomeRoot: Nd,
|
|
2917
|
+
welcomeInner: Sd,
|
|
2918
|
+
heroTitle: Cd,
|
|
2919
|
+
heroDivider: Id,
|
|
2920
|
+
composer: Td,
|
|
2921
|
+
composerTextarea: $d,
|
|
2922
|
+
composerFooter: Ld,
|
|
2923
|
+
scenarioWrap: Md,
|
|
2924
|
+
scenarioIcon: Ad,
|
|
2925
|
+
scenarioLabel: xd,
|
|
2926
|
+
scenarioArrow: Ed,
|
|
2927
|
+
scenarioArrowOpen: Pd,
|
|
2928
|
+
scenarioDropdown: Od,
|
|
2929
|
+
scenarioOption: Dd,
|
|
2930
|
+
scenarioOptionActive: Rd,
|
|
2931
|
+
scenarioOptionName: Fd,
|
|
2932
|
+
scenarioOptionDesc: jd,
|
|
2933
|
+
scenarioDefaultBadge: Bd,
|
|
2934
|
+
scenarioMetaHint: Hd,
|
|
2935
|
+
sendBtn: Wd,
|
|
2936
|
+
suggestions: Ud,
|
|
2937
|
+
suggestionsLabel: zd,
|
|
2938
|
+
suggestionItem: Gd,
|
|
2939
|
+
suggestionIcon: Kd,
|
|
2940
|
+
suggestionText: qd,
|
|
2941
|
+
errorHint: Vd
|
|
2942
|
+
}, Un = "ft_personal_llm_code", Jd = [
|
|
2943
2943
|
{ icon: "🛒", text: "开发一个购物车结算流程" },
|
|
2944
2944
|
{ icon: "🧹", text: "将当前项目治理重复代码,降至 5% 以下" },
|
|
2945
2945
|
{ icon: "🔍", text: "调研 AI Agent 开发框架选型" }
|
|
2946
2946
|
], ja = 18;
|
|
2947
|
-
function
|
|
2947
|
+
function Yd(t) {
|
|
2948
2948
|
const a = t.trim();
|
|
2949
2949
|
if (!a) return "新会话";
|
|
2950
2950
|
const o = a.replace(/^[#@/·\-\s]+/, "").replace(/[。!?!?.,,;;]+$/, "").trim(), d = o.split(/\n/)[0].trim() || o;
|
|
@@ -3067,7 +3067,7 @@ function Ba({
|
|
|
3067
3067
|
return;
|
|
3068
3068
|
}
|
|
3069
3069
|
F(!0), f("");
|
|
3070
|
-
const V =
|
|
3070
|
+
const V = Yd(y);
|
|
3071
3071
|
try {
|
|
3072
3072
|
await m(
|
|
3073
3073
|
V,
|
|
@@ -3084,7 +3084,7 @@ function Ba({
|
|
|
3084
3084
|
ao(y, se.sendKey) && !y.nativeEvent.isComposing && (y.preventDefault(), he());
|
|
3085
3085
|
},
|
|
3086
3086
|
[he, se.sendKey]
|
|
3087
|
-
),
|
|
3087
|
+
), x = o ? Y || !G.trim() : Y || !G.trim() || !I.trim() || P;
|
|
3088
3088
|
return /* @__PURE__ */ e("div", { className: ce.welcomeRoot, children: /* @__PURE__ */ s("div", { className: ce.welcomeInner, children: [
|
|
3089
3089
|
/* @__PURE__ */ e("h1", { className: ce.heroTitle, children: "永远相信美好的事情即将发生" }),
|
|
3090
3090
|
/* @__PURE__ */ e("div", { className: ce.heroDivider }),
|
|
@@ -3105,7 +3105,7 @@ function Ba({
|
|
|
3105
3105
|
}
|
|
3106
3106
|
),
|
|
3107
3107
|
/* @__PURE__ */ s("div", { className: ce.composerFooter, children: [
|
|
3108
|
-
a && t ? /* @__PURE__ */ e(
|
|
3108
|
+
a && t ? /* @__PURE__ */ e(bd, { lane: t, onLaneChange: a }) : null,
|
|
3109
3109
|
o ? (
|
|
3110
3110
|
/* 单聊模式:右侧 = 模型选择下拉(无专家团概念) */
|
|
3111
3111
|
/* @__PURE__ */ s(
|
|
@@ -3222,7 +3222,7 @@ function Ba({
|
|
|
3222
3222
|
type: "button",
|
|
3223
3223
|
className: ce.sendBtn,
|
|
3224
3224
|
onClick: () => void he(),
|
|
3225
|
-
disabled:
|
|
3225
|
+
disabled: x,
|
|
3226
3226
|
title: "Ctrl/⌘ + Enter 发送",
|
|
3227
3227
|
children: [
|
|
3228
3228
|
Y ? "创建中…" : "发送",
|
|
@@ -3234,7 +3234,7 @@ function Ba({
|
|
|
3234
3234
|
] }),
|
|
3235
3235
|
/* @__PURE__ */ s("div", { className: ce.suggestions, children: [
|
|
3236
3236
|
/* @__PURE__ */ e("div", { className: ce.suggestionsLabel, children: "试试这些" }),
|
|
3237
|
-
|
|
3237
|
+
Jd.map((y) => /* @__PURE__ */ s(
|
|
3238
3238
|
"button",
|
|
3239
3239
|
{
|
|
3240
3240
|
type: "button",
|
|
@@ -3251,29 +3251,29 @@ function Ba({
|
|
|
3251
3251
|
] })
|
|
3252
3252
|
] }) });
|
|
3253
3253
|
}
|
|
3254
|
-
const
|
|
3255
|
-
landing:
|
|
3256
|
-
scrollArea:
|
|
3257
|
-
header:
|
|
3258
|
-
title:
|
|
3259
|
-
contextLine:
|
|
3260
|
-
contextItem:
|
|
3261
|
-
contextIcon:
|
|
3262
|
-
contextDivider:
|
|
3263
|
-
contextError:
|
|
3264
|
-
composerDock:
|
|
3265
|
-
inputCard:
|
|
3266
|
-
textarea:
|
|
3267
|
-
toolbar:
|
|
3268
|
-
toolbarLeft:
|
|
3269
|
-
teamChip:
|
|
3270
|
-
scenarioHint:
|
|
3271
|
-
sendBtn:
|
|
3254
|
+
const Zd = "_landing_x43mc_1", Qd = "_scrollArea_x43mc_11", Xd = "_header_x43mc_22", eu = "_title_x43mc_31", tu = "_contextLine_x43mc_39", nu = "_contextItem_x43mc_48", au = "_contextIcon_x43mc_54", ou = "_contextDivider_x43mc_58", su = "_contextError_x43mc_62", ru = "_composerDock_x43mc_71", iu = "_inputCard_x43mc_80", cu = "_textarea_x43mc_95", lu = "_toolbar_x43mc_113", du = "_toolbarLeft_x43mc_120", uu = "_teamChip_x43mc_129", mu = "_scenarioHint_x43mc_164", pu = "_sendBtn_x43mc_195", Ve = {
|
|
3255
|
+
landing: Zd,
|
|
3256
|
+
scrollArea: Qd,
|
|
3257
|
+
header: Xd,
|
|
3258
|
+
title: eu,
|
|
3259
|
+
contextLine: tu,
|
|
3260
|
+
contextItem: nu,
|
|
3261
|
+
contextIcon: au,
|
|
3262
|
+
contextDivider: ou,
|
|
3263
|
+
contextError: su,
|
|
3264
|
+
composerDock: ru,
|
|
3265
|
+
inputCard: iu,
|
|
3266
|
+
textarea: cu,
|
|
3267
|
+
toolbar: lu,
|
|
3268
|
+
toolbarLeft: du,
|
|
3269
|
+
teamChip: uu,
|
|
3270
|
+
scenarioHint: mu,
|
|
3271
|
+
sendBtn: pu
|
|
3272
3272
|
};
|
|
3273
|
-
function
|
|
3273
|
+
function hu(t) {
|
|
3274
3274
|
return t.length === 0 ? null : t.find((a) => a.isDefault || a.is_default) ?? t[0];
|
|
3275
3275
|
}
|
|
3276
|
-
function
|
|
3276
|
+
function fu({
|
|
3277
3277
|
onCreated: t,
|
|
3278
3278
|
presetScenarioCode: a
|
|
3279
3279
|
}) {
|
|
@@ -3292,7 +3292,7 @@ function yu({
|
|
|
3292
3292
|
return;
|
|
3293
3293
|
}
|
|
3294
3294
|
I(""), p(h);
|
|
3295
|
-
const M = (a || "").trim(), i = (M ? h.find((C) => C.code === M) : null) ||
|
|
3295
|
+
const M = (a || "").trim(), i = (M ? h.find((C) => C.code === M) : null) || hu(h);
|
|
3296
3296
|
i && P(i.code);
|
|
3297
3297
|
} catch (f) {
|
|
3298
3298
|
K || (p([]), I(f instanceof Error ? f.message : "加载专家团失败"));
|
|
@@ -3378,14 +3378,14 @@ function yo(t) {
|
|
|
3378
3378
|
const a = t && typeof t == "object" ? t : {}, o = Array.isArray(a.items) ? Ro(a.items) : [];
|
|
3379
3379
|
return { ...a, items: o };
|
|
3380
3380
|
}
|
|
3381
|
-
async function
|
|
3381
|
+
async function Uh(t, a = "") {
|
|
3382
3382
|
const o = a ? `?token=${encodeURIComponent(a)}` : "", r = await me(
|
|
3383
3383
|
`${Ie}/personal-agents/${t}/schedules${o}`,
|
|
3384
3384
|
Ce
|
|
3385
3385
|
);
|
|
3386
3386
|
return ze(r, "获取定时任务列表失败");
|
|
3387
3387
|
}
|
|
3388
|
-
async function
|
|
3388
|
+
async function zh(t, a, o, r, d = "", v = "", m = "") {
|
|
3389
3389
|
const p = m ? `?token=${encodeURIComponent(m)}` : "", b = await me(
|
|
3390
3390
|
`${Ie}/personal-agents/${t}/schedules${p}`,
|
|
3391
3391
|
{
|
|
@@ -3403,7 +3403,7 @@ async function Kh(t, a, o, r, d = "", v = "", m = "") {
|
|
|
3403
3403
|
);
|
|
3404
3404
|
return ze(b, "创建定时任务失败");
|
|
3405
3405
|
}
|
|
3406
|
-
async function
|
|
3406
|
+
async function Gh(t, a, o, r = "") {
|
|
3407
3407
|
const d = r ? `?token=${encodeURIComponent(r)}` : "", v = await me(
|
|
3408
3408
|
`${Ie}/personal-agents/${t}/schedules/${a}${d}`,
|
|
3409
3409
|
{
|
|
@@ -3415,7 +3415,7 @@ async function qh(t, a, o, r = "") {
|
|
|
3415
3415
|
);
|
|
3416
3416
|
return ze(v, "更新定时任务失败");
|
|
3417
3417
|
}
|
|
3418
|
-
async function
|
|
3418
|
+
async function Kh(t, a, o = "") {
|
|
3419
3419
|
const r = o ? `?token=${encodeURIComponent(o)}` : "", d = await me(
|
|
3420
3420
|
`${Ie}/personal-agents/${t}/schedules/${a}${r}`,
|
|
3421
3421
|
{
|
|
@@ -3425,7 +3425,7 @@ async function Vh(t, a, o = "") {
|
|
|
3425
3425
|
);
|
|
3426
3426
|
return ht(d, "删除定时任务失败");
|
|
3427
3427
|
}
|
|
3428
|
-
async function
|
|
3428
|
+
async function qh(t, a, o, r = "") {
|
|
3429
3429
|
const d = r ? `?token=${encodeURIComponent(r)}` : "", v = await me(
|
|
3430
3430
|
`${Ie}/personal-agents/${t}/schedules/${a}/toggle${d}`,
|
|
3431
3431
|
{
|
|
@@ -3437,7 +3437,7 @@ async function Jh(t, a, o, r = "") {
|
|
|
3437
3437
|
);
|
|
3438
3438
|
return ze(v, "切换定时任务状态失败");
|
|
3439
3439
|
}
|
|
3440
|
-
async function
|
|
3440
|
+
async function Vh(t, a, o = 1, r = 20, d = "") {
|
|
3441
3441
|
const v = new URLSearchParams();
|
|
3442
3442
|
v.set("page", String(o)), v.set("size", String(r)), d && v.set("token", d);
|
|
3443
3443
|
const m = await me(
|
|
@@ -3446,7 +3446,7 @@ async function Yh(t, a, o = 1, r = 20, d = "") {
|
|
|
3446
3446
|
), p = await ht(m, "获取执行历史失败");
|
|
3447
3447
|
return yo(p);
|
|
3448
3448
|
}
|
|
3449
|
-
async function
|
|
3449
|
+
async function Jh(t, a, o = "") {
|
|
3450
3450
|
const r = o ? `?token=${encodeURIComponent(o)}` : "", d = await me(
|
|
3451
3451
|
`${Ie}/personal-agents/${t}/schedules/${a}/run${r}`,
|
|
3452
3452
|
{
|
|
@@ -3456,7 +3456,7 @@ async function Zh(t, a, o = "") {
|
|
|
3456
3456
|
);
|
|
3457
3457
|
return ze(d, "手动触发任务失败");
|
|
3458
3458
|
}
|
|
3459
|
-
async function
|
|
3459
|
+
async function Yh(t, a = "", o = "") {
|
|
3460
3460
|
const r = new URLSearchParams();
|
|
3461
3461
|
a && r.set("keyword", a), o && r.set("token", o);
|
|
3462
3462
|
const d = await me(
|
|
@@ -3474,7 +3474,7 @@ async function Qh(t, a = "", o = "") {
|
|
|
3474
3474
|
};
|
|
3475
3475
|
});
|
|
3476
3476
|
}
|
|
3477
|
-
async function
|
|
3477
|
+
async function gu(t = "", a = 50) {
|
|
3478
3478
|
const o = new URLSearchParams();
|
|
3479
3479
|
o.set("limit", String(a)), t && o.set("token", t);
|
|
3480
3480
|
const r = await me(
|
|
@@ -3483,7 +3483,7 @@ async function _u(t = "", a = 50) {
|
|
|
3483
3483
|
), d = await ht(r, "获取通知失败");
|
|
3484
3484
|
return yo(d);
|
|
3485
3485
|
}
|
|
3486
|
-
async function
|
|
3486
|
+
async function yu(t, a = "") {
|
|
3487
3487
|
const o = a ? `?token=${encodeURIComponent(a)}` : "", r = await me(
|
|
3488
3488
|
`${Ie}/personal-agents/schedules/notifications/${t}/read${o}`,
|
|
3489
3489
|
{
|
|
@@ -3493,7 +3493,7 @@ async function ku(t, a = "") {
|
|
|
3493
3493
|
);
|
|
3494
3494
|
return ht(r, "标记已读失败");
|
|
3495
3495
|
}
|
|
3496
|
-
async function
|
|
3496
|
+
async function _u(t = "") {
|
|
3497
3497
|
const a = t ? `?token=${encodeURIComponent(t)}` : "", o = await me(
|
|
3498
3498
|
`${Ie}/personal-agents/schedules/notifications/read-all${a}`,
|
|
3499
3499
|
{
|
|
@@ -3503,31 +3503,31 @@ async function vu(t = "") {
|
|
|
3503
3503
|
);
|
|
3504
3504
|
return ht(o, "标记已读失败");
|
|
3505
3505
|
}
|
|
3506
|
-
const
|
|
3507
|
-
bellBtn:
|
|
3508
|
-
badge:
|
|
3509
|
-
overlay:
|
|
3510
|
-
panel:
|
|
3511
|
-
panelHeader:
|
|
3512
|
-
panelTitle:
|
|
3513
|
-
markAllBtn:
|
|
3514
|
-
panelBody:
|
|
3515
|
-
empty:
|
|
3516
|
-
item:
|
|
3517
|
-
itemUnread:
|
|
3518
|
-
itemHeader:
|
|
3519
|
-
statusDot:
|
|
3520
|
-
statusSuccess:
|
|
3521
|
-
statusFail:
|
|
3522
|
-
itemTask:
|
|
3523
|
-
markReadBtn:
|
|
3524
|
-
itemMeta:
|
|
3525
|
-
itemResult:
|
|
3506
|
+
const ku = "_bellBtn_zkdkx_2", vu = "_badge_zkdkx_25", wu = "_overlay_zkdkx_44", bu = "_panel_zkdkx_55", Nu = "_panelHeader_zkdkx_70", Su = "_panelTitle_zkdkx_79", Cu = "_markAllBtn_zkdkx_85", Iu = "_panelBody_zkdkx_101", Tu = "_empty_zkdkx_107", $u = "_item_zkdkx_115", Lu = "_itemUnread_zkdkx_130", Mu = "_itemHeader_zkdkx_135", Au = "_statusDot_zkdkx_142", xu = "_statusSuccess_zkdkx_149", Eu = "_statusFail_zkdkx_153", Pu = "_itemTask_zkdkx_157", Ou = "_markReadBtn_zkdkx_167", Du = "_itemMeta_zkdkx_185", Ru = "_itemResult_zkdkx_194", Ke = {
|
|
3507
|
+
bellBtn: ku,
|
|
3508
|
+
badge: vu,
|
|
3509
|
+
overlay: wu,
|
|
3510
|
+
panel: bu,
|
|
3511
|
+
panelHeader: Nu,
|
|
3512
|
+
panelTitle: Su,
|
|
3513
|
+
markAllBtn: Cu,
|
|
3514
|
+
panelBody: Iu,
|
|
3515
|
+
empty: Tu,
|
|
3516
|
+
item: $u,
|
|
3517
|
+
itemUnread: Lu,
|
|
3518
|
+
itemHeader: Mu,
|
|
3519
|
+
statusDot: Au,
|
|
3520
|
+
statusSuccess: xu,
|
|
3521
|
+
statusFail: Eu,
|
|
3522
|
+
itemTask: Pu,
|
|
3523
|
+
markReadBtn: Ou,
|
|
3524
|
+
itemMeta: Du,
|
|
3525
|
+
itemResult: Ru
|
|
3526
3526
|
};
|
|
3527
|
-
function
|
|
3527
|
+
function Fu() {
|
|
3528
3528
|
const t = W((T) => T.token), a = ea(), o = le(null), [r, d] = g([]), [v, m] = g(0), [p, b] = g(!1), P = le(null), [U, O] = g({ top: 0, right: 0 }), w = ne(async () => {
|
|
3529
3529
|
try {
|
|
3530
|
-
const T = await
|
|
3530
|
+
const T = await gu(t, 30), G = o.current;
|
|
3531
3531
|
G && a.desktopNotify && document.hidden && T.items.filter((R) => R.readFlag === 0 && !G.has(String(R.id))).slice(0, 3).forEach(
|
|
3532
3532
|
(R) => fs(
|
|
3533
3533
|
R.taskName || "工作通知",
|
|
@@ -3554,14 +3554,14 @@ function Bu() {
|
|
|
3554
3554
|
b(T);
|
|
3555
3555
|
}, X = async (T) => {
|
|
3556
3556
|
try {
|
|
3557
|
-
await
|
|
3557
|
+
await yu(T, t), d(
|
|
3558
3558
|
(G) => G.map((R) => Nt(R.id, T) ? { ...R, readFlag: 1 } : R)
|
|
3559
3559
|
), m((G) => Math.max(0, G - 1));
|
|
3560
3560
|
} catch {
|
|
3561
3561
|
}
|
|
3562
3562
|
}, ae = async () => {
|
|
3563
3563
|
try {
|
|
3564
|
-
await
|
|
3564
|
+
await _u(t), d((T) => T.map((G) => ({ ...G, readFlag: 1 }))), m(0);
|
|
3565
3565
|
} catch {
|
|
3566
3566
|
}
|
|
3567
3567
|
};
|
|
@@ -3638,25 +3638,25 @@ function Bu() {
|
|
|
3638
3638
|
] })
|
|
3639
3639
|
] });
|
|
3640
3640
|
}
|
|
3641
|
-
const
|
|
3642
|
-
tenantChip:
|
|
3643
|
-
tenantCaret:
|
|
3644
|
-
tenantName:
|
|
3645
|
-
tenantWrap:
|
|
3646
|
-
cascadePanel:
|
|
3647
|
-
cascadeCol:
|
|
3648
|
-
cascadeLoading:
|
|
3649
|
-
cascadeEmpty:
|
|
3650
|
-
cascadeItem:
|
|
3651
|
-
cascadeItemActive:
|
|
3652
|
-
cascadeItemCurrent:
|
|
3653
|
-
cascadeItemName:
|
|
3654
|
-
cascadeArrow:
|
|
3655
|
-
cascadeCurrentIcon:
|
|
3656
|
-
cascadeHint:
|
|
3657
|
-
cascadeFooter:
|
|
3641
|
+
const ju = "_tenantChip_uy6h5_3", Bu = "_tenantCaret_uy6h5_28", Hu = "_tenantName_uy6h5_34", Wu = "_tenantWrap_uy6h5_146", Uu = "_cascadePanel_uy6h5_153", zu = "_cascadeCol_uy6h5_165", Gu = "_cascadeLoading_uy6h5_181", Ku = "_cascadeEmpty_uy6h5_182", qu = "_cascadeItem_uy6h5_187", Vu = "_cascadeItemActive_uy6h5_206", Ju = "_cascadeItemCurrent_uy6h5_212", Yu = "_cascadeItemName_uy6h5_217", Zu = "_cascadeArrow_uy6h5_227", Qu = "_cascadeCurrentIcon_uy6h5_233", Xu = "_cascadeHint_uy6h5_238", em = "_cascadeFooter_uy6h5_244", Fe = {
|
|
3642
|
+
tenantChip: ju,
|
|
3643
|
+
tenantCaret: Bu,
|
|
3644
|
+
tenantName: Hu,
|
|
3645
|
+
tenantWrap: Wu,
|
|
3646
|
+
cascadePanel: Uu,
|
|
3647
|
+
cascadeCol: zu,
|
|
3648
|
+
cascadeLoading: Gu,
|
|
3649
|
+
cascadeEmpty: Ku,
|
|
3650
|
+
cascadeItem: qu,
|
|
3651
|
+
cascadeItemActive: Vu,
|
|
3652
|
+
cascadeItemCurrent: Ju,
|
|
3653
|
+
cascadeItemName: Yu,
|
|
3654
|
+
cascadeArrow: Zu,
|
|
3655
|
+
cascadeCurrentIcon: Qu,
|
|
3656
|
+
cascadeHint: Xu,
|
|
3657
|
+
cascadeFooter: em
|
|
3658
3658
|
};
|
|
3659
|
-
function
|
|
3659
|
+
function tm() {
|
|
3660
3660
|
const [t, a] = g(!1), [o, r] = g(!1), [d, v] = g(""), [m, p] = g([]), [b, P] = g({}), [U, O] = g(""), [w, I] = g(!1), [X, ae] = g(null), [T, G] = g(null), R = le(null), Y = le(null), F = le(null), K = Re(() => {
|
|
3661
3661
|
let k = "", L = null;
|
|
3662
3662
|
try {
|
|
@@ -3911,23 +3911,23 @@ function am() {
|
|
|
3911
3911
|
)
|
|
3912
3912
|
] });
|
|
3913
3913
|
}
|
|
3914
|
-
const
|
|
3915
|
-
selfSupportFabWrap:
|
|
3916
|
-
selfSupportFab:
|
|
3917
|
-
}, Wa = "ft_self_support_fab_top",
|
|
3918
|
-
function
|
|
3914
|
+
const nm = "_selfSupportFabWrap_1y10a_1", am = "_selfSupportFab_1y10a_1", Ha = {
|
|
3915
|
+
selfSupportFabWrap: nm,
|
|
3916
|
+
selfSupportFab: am
|
|
3917
|
+
}, Wa = "ft_self_support_fab_top", om = "ft_self_support_fab_visible", _o = 48, ko = 80, sm = 8, rm = 4;
|
|
3918
|
+
function im() {
|
|
3919
3919
|
return Math.max(ko, window.innerHeight - _o - 140);
|
|
3920
3920
|
}
|
|
3921
3921
|
function zn(t) {
|
|
3922
|
-
const a = window.innerHeight - _o -
|
|
3922
|
+
const a = window.innerHeight - _o - sm;
|
|
3923
3923
|
return Math.max(ko, Math.min(t, a));
|
|
3924
3924
|
}
|
|
3925
|
-
function
|
|
3925
|
+
function cm() {
|
|
3926
3926
|
const [t] = g(
|
|
3927
|
-
() => localStorage.getItem(
|
|
3927
|
+
() => localStorage.getItem(om) === "true"
|
|
3928
3928
|
), [a, o] = g(!1), [r, d] = g(() => {
|
|
3929
3929
|
const w = Number(localStorage.getItem(Wa));
|
|
3930
|
-
return Number.isFinite(w) && w > 0 ? zn(w) :
|
|
3930
|
+
return Number.isFinite(w) && w > 0 ? zn(w) : im();
|
|
3931
3931
|
}), [v, m] = g(!1), p = le({ active: !1, moved: !1, startY: 0, startTop: 0 }), b = ne(
|
|
3932
3932
|
(w) => {
|
|
3933
3933
|
p.current = {
|
|
@@ -3942,7 +3942,7 @@ function dm() {
|
|
|
3942
3942
|
(w) => {
|
|
3943
3943
|
if (!p.current.active) return;
|
|
3944
3944
|
const I = w.clientY - p.current.startY;
|
|
3945
|
-
Math.abs(I) >
|
|
3945
|
+
Math.abs(I) > rm && (p.current.moved = !0, m(!0)), d(zn(p.current.startTop + I));
|
|
3946
3946
|
},
|
|
3947
3947
|
[]
|
|
3948
3948
|
), U = ne(
|
|
@@ -3998,7 +3998,7 @@ function za(t) {
|
|
|
3998
3998
|
function Ga(t) {
|
|
3999
3999
|
return t ? t.charAt(0).toUpperCase() : "?";
|
|
4000
4000
|
}
|
|
4001
|
-
function
|
|
4001
|
+
function lm({
|
|
4002
4002
|
displayName: t,
|
|
4003
4003
|
subtitle: a,
|
|
4004
4004
|
onOpenSettings: o,
|
|
@@ -4074,7 +4074,7 @@ function um({
|
|
|
4074
4074
|
disabled: !0,
|
|
4075
4075
|
title: "即将上线",
|
|
4076
4076
|
children: [
|
|
4077
|
-
/* @__PURE__ */ e("span", { className: B.navIcon, children: /* @__PURE__ */ e(
|
|
4077
|
+
/* @__PURE__ */ e("span", { className: B.navIcon, children: /* @__PURE__ */ e(Ir, {}) }),
|
|
4078
4078
|
/* @__PURE__ */ e("span", { children: "外观" })
|
|
4079
4079
|
]
|
|
4080
4080
|
}
|
|
@@ -4088,7 +4088,7 @@ function um({
|
|
|
4088
4088
|
disabled: !0,
|
|
4089
4089
|
title: "即将上线",
|
|
4090
4090
|
children: [
|
|
4091
|
-
/* @__PURE__ */ e("span", { className: B.navIcon, children: /* @__PURE__ */ e(
|
|
4091
|
+
/* @__PURE__ */ e("span", { className: B.navIcon, children: /* @__PURE__ */ e(Tr, {}) }),
|
|
4092
4092
|
/* @__PURE__ */ e("span", { children: "快捷键" })
|
|
4093
4093
|
]
|
|
4094
4094
|
}
|
|
@@ -4102,7 +4102,7 @@ function um({
|
|
|
4102
4102
|
disabled: !0,
|
|
4103
4103
|
title: "即将上线",
|
|
4104
4104
|
children: [
|
|
4105
|
-
/* @__PURE__ */ e("span", { className: B.navIcon, children: /* @__PURE__ */ e(
|
|
4105
|
+
/* @__PURE__ */ e("span", { className: B.navIcon, children: /* @__PURE__ */ e(br, {}) }),
|
|
4106
4106
|
/* @__PURE__ */ e("span", { children: "意见反馈" })
|
|
4107
4107
|
]
|
|
4108
4108
|
}
|
|
@@ -4116,7 +4116,7 @@ function um({
|
|
|
4116
4116
|
disabled: !0,
|
|
4117
4117
|
title: "即将上线",
|
|
4118
4118
|
children: [
|
|
4119
|
-
/* @__PURE__ */ e("span", { className: B.navIcon, children: /* @__PURE__ */ e(
|
|
4119
|
+
/* @__PURE__ */ e("span", { className: B.navIcon, children: /* @__PURE__ */ e(yr, {}) }),
|
|
4120
4120
|
/* @__PURE__ */ e("span", { children: "检查更新" })
|
|
4121
4121
|
]
|
|
4122
4122
|
}
|
|
@@ -4146,7 +4146,7 @@ function um({
|
|
|
4146
4146
|
className: B.agentMenuItem,
|
|
4147
4147
|
onClick: () => void co(),
|
|
4148
4148
|
children: [
|
|
4149
|
-
/* @__PURE__ */ e("span", { className: B.navIcon, children: /* @__PURE__ */ e(
|
|
4149
|
+
/* @__PURE__ */ e("span", { className: B.navIcon, children: /* @__PURE__ */ e(gr, {}) }),
|
|
4150
4150
|
/* @__PURE__ */ e("span", { children: "退出登录" })
|
|
4151
4151
|
]
|
|
4152
4152
|
}
|
|
@@ -4208,32 +4208,32 @@ function um({
|
|
|
4208
4208
|
] })
|
|
4209
4209
|
] });
|
|
4210
4210
|
}
|
|
4211
|
-
const
|
|
4212
|
-
overlay:
|
|
4213
|
-
dialog:
|
|
4214
|
-
inputRow:
|
|
4215
|
-
inputIcon:
|
|
4216
|
-
input:
|
|
4217
|
-
clear:
|
|
4218
|
-
header:
|
|
4219
|
-
headerTitle:
|
|
4220
|
-
headerHints:
|
|
4221
|
-
kbd:
|
|
4222
|
-
searching:
|
|
4223
|
-
headerCount:
|
|
4224
|
-
list:
|
|
4225
|
-
row:
|
|
4226
|
-
rowActive:
|
|
4227
|
-
rowDisabled:
|
|
4228
|
-
rowIcon:
|
|
4229
|
-
rowMain:
|
|
4230
|
-
rowTitle:
|
|
4231
|
-
rowSnippet:
|
|
4232
|
-
rowMeta:
|
|
4233
|
-
rowTime:
|
|
4234
|
-
rowAction:
|
|
4235
|
-
rowHint:
|
|
4236
|
-
empty:
|
|
4211
|
+
const dm = "_overlay_jhnmw_2", um = "_dialog_jhnmw_14", mm = "_inputRow_jhnmw_28", pm = "_inputIcon_jhnmw_36", hm = "_input_jhnmw_28", fm = "_clear_jhnmw_56", gm = "_header_jhnmw_67", ym = "_headerTitle_jhnmw_76", _m = "_headerHints_jhnmw_83", km = "_kbd_jhnmw_93", vm = "_searching_jhnmw_108", wm = "_headerCount_jhnmw_112", bm = "_list_jhnmw_116", Nm = "_row_jhnmw_121", Sm = "_rowActive_jhnmw_131", Cm = "_rowDisabled_jhnmw_135", Im = "_rowIcon_jhnmw_140", Tm = "_rowMain_jhnmw_147", $m = "_rowTitle_jhnmw_155", Lm = "_rowSnippet_jhnmw_163", Mm = "_rowMeta_jhnmw_171", Am = "_rowTime_jhnmw_181", xm = "_rowAction_jhnmw_190", Em = "_rowHint_jhnmw_194", Pm = "_empty_jhnmw_208", Me = {
|
|
4212
|
+
overlay: dm,
|
|
4213
|
+
dialog: um,
|
|
4214
|
+
inputRow: mm,
|
|
4215
|
+
inputIcon: pm,
|
|
4216
|
+
input: hm,
|
|
4217
|
+
clear: fm,
|
|
4218
|
+
header: gm,
|
|
4219
|
+
headerTitle: ym,
|
|
4220
|
+
headerHints: _m,
|
|
4221
|
+
kbd: km,
|
|
4222
|
+
searching: vm,
|
|
4223
|
+
headerCount: wm,
|
|
4224
|
+
list: bm,
|
|
4225
|
+
row: Nm,
|
|
4226
|
+
rowActive: Sm,
|
|
4227
|
+
rowDisabled: Cm,
|
|
4228
|
+
rowIcon: Im,
|
|
4229
|
+
rowMain: Tm,
|
|
4230
|
+
rowTitle: $m,
|
|
4231
|
+
rowSnippet: Lm,
|
|
4232
|
+
rowMeta: Mm,
|
|
4233
|
+
rowTime: Am,
|
|
4234
|
+
rowAction: xm,
|
|
4235
|
+
rowHint: Em,
|
|
4236
|
+
empty: Pm
|
|
4237
4237
|
}, Nn = {
|
|
4238
4238
|
user: /* @__PURE__ */ s(
|
|
4239
4239
|
"svg",
|
|
@@ -4300,7 +4300,7 @@ const mm = "_overlay_jhnmw_2", pm = "_dialog_jhnmw_14", hm = "_inputRow_jhnmw_28
|
|
|
4300
4300
|
children: /* @__PURE__ */ e("path", { d: "M13 2 3 14h7l-1 8 10-12h-7l1-8z" })
|
|
4301
4301
|
}
|
|
4302
4302
|
)
|
|
4303
|
-
}, Sn = 200,
|
|
4303
|
+
}, Sn = 200, Om = 2, Dm = 250;
|
|
4304
4304
|
function Ka(t) {
|
|
4305
4305
|
return t.updateTime || t.createTime || "";
|
|
4306
4306
|
}
|
|
@@ -4321,7 +4321,7 @@ function qa(t) {
|
|
|
4321
4321
|
const a = new Date(t.replace(" ", "T"));
|
|
4322
4322
|
return Number.isNaN(a.getTime()) ? 0 : a.getTime();
|
|
4323
4323
|
}
|
|
4324
|
-
function
|
|
4324
|
+
function Rm({
|
|
4325
4325
|
sessions: t,
|
|
4326
4326
|
localSessions: a = [],
|
|
4327
4327
|
agentsById: o,
|
|
@@ -4335,7 +4335,7 @@ function jm({
|
|
|
4335
4335
|
}) {
|
|
4336
4336
|
const [U, O] = g(""), [w, I] = g(0), [X, ae] = g({ keyword: "", hits: [] }), [T, G] = g(!1), R = le(null), Y = le(null), F = U.trim(), K = F.toLowerCase();
|
|
4337
4337
|
H(() => {
|
|
4338
|
-
if (F.length <
|
|
4338
|
+
if (F.length < Om) {
|
|
4339
4339
|
G(!1);
|
|
4340
4340
|
return;
|
|
4341
4341
|
}
|
|
@@ -4349,7 +4349,7 @@ function jm({
|
|
|
4349
4349
|
}).finally(() => {
|
|
4350
4350
|
i || G(!1);
|
|
4351
4351
|
});
|
|
4352
|
-
},
|
|
4352
|
+
}, Dm);
|
|
4353
4353
|
return () => {
|
|
4354
4354
|
i = !0, window.clearTimeout(C);
|
|
4355
4355
|
};
|
|
@@ -4551,7 +4551,7 @@ function jm({
|
|
|
4551
4551
|
document.body
|
|
4552
4552
|
);
|
|
4553
4553
|
}
|
|
4554
|
-
function
|
|
4554
|
+
function Fm({
|
|
4555
4555
|
members: t,
|
|
4556
4556
|
loading: a,
|
|
4557
4557
|
value: o,
|
|
@@ -5243,7 +5243,7 @@ const ee = {
|
|
|
5243
5243
|
}
|
|
5244
5244
|
)
|
|
5245
5245
|
};
|
|
5246
|
-
function
|
|
5246
|
+
function jm(t) {
|
|
5247
5247
|
return /^\.z_team\/\.agent\/[^/]+\/skills$/.test(t);
|
|
5248
5248
|
}
|
|
5249
5249
|
const Va = /* @__PURE__ */ new Set([
|
|
@@ -5257,7 +5257,7 @@ const Va = /* @__PURE__ */ new Set([
|
|
|
5257
5257
|
name: "asc",
|
|
5258
5258
|
id: "asc"
|
|
5259
5259
|
};
|
|
5260
|
-
function
|
|
5260
|
+
function Bm() {
|
|
5261
5261
|
try {
|
|
5262
5262
|
const t = localStorage.getItem("ft_sidebar_sortDims");
|
|
5263
5263
|
if (!t) return [];
|
|
@@ -5282,7 +5282,7 @@ function Wm() {
|
|
|
5282
5282
|
return [];
|
|
5283
5283
|
}
|
|
5284
5284
|
}
|
|
5285
|
-
function
|
|
5285
|
+
function Hm({
|
|
5286
5286
|
onOpenTeam: t,
|
|
5287
5287
|
onOpenPersonalSession: a,
|
|
5288
5288
|
collabNav: o,
|
|
@@ -5320,7 +5320,7 @@ function Um({
|
|
|
5320
5320
|
), G = W((n) => n.selectFile), R = W((n) => n.deleteScenarioInstance), Y = W((n) => n.forkScenarioInstance), F = W((n) => n.updateScenarioInstance), K = W((n) => n.renameFile), f = W((n) => n.createFile), h = W((n) => n.createFolder), M = W((n) => n.deleteFile), te = W((n) => n.uploadFile), i = W((n) => n.uploadFolder), C = W((n) => n.downloadFile), q = W((n) => n.expandProject), j = W((n) => n.loadAllSkills), k = W((n) => n.addProjectSkill), L = W((n) => n.removeProjectSkill), Z = W((n) => n.refreshAgentSkills), _ = W((n) => n.refreshAllAgentSkills), S = W((n) => n.syncFromProduction), D = W((n) => n.fetchWorkspaceEnv), ye = W((n) => n.loadProjects), he = Re(
|
|
5321
5321
|
() => Ho(p),
|
|
5322
5322
|
[p]
|
|
5323
|
-
), [se, be] = g(null), [
|
|
5323
|
+
), [se, be] = g(null), [x, y] = g({ x: 0, y: 0 }), [V, J] = g(!1), _e = le(null), ke = le(null), [ue, at] = g(null), [ft, gt] = g(!1), [yt, Ft] = g({}), [Qe, dt] = g(
|
|
5324
5324
|
/* @__PURE__ */ new Set()
|
|
5325
5325
|
), [qe, Mt] = g(() => {
|
|
5326
5326
|
try {
|
|
@@ -5329,7 +5329,7 @@ function Um({
|
|
|
5329
5329
|
} catch {
|
|
5330
5330
|
return [];
|
|
5331
5331
|
}
|
|
5332
|
-
}), [z, fe] = g(
|
|
5332
|
+
}), [z, fe] = g(Bm), [re, xe] = g(
|
|
5333
5333
|
/* @__PURE__ */ new Set()
|
|
5334
5334
|
), [Ne, ie] = g(() => {
|
|
5335
5335
|
try {
|
|
@@ -5345,7 +5345,7 @@ function Um({
|
|
|
5345
5345
|
};
|
|
5346
5346
|
return document.addEventListener("keydown", n), () => document.removeEventListener("keydown", n);
|
|
5347
5347
|
}, [o]);
|
|
5348
|
-
const [_t, hn] = g(!1), an = le(!0), [Xe,
|
|
5348
|
+
const [_t, hn] = g(!1), an = le(!0), [Xe, ct] = g(() => {
|
|
5349
5349
|
try {
|
|
5350
5350
|
const n = localStorage.getItem("ft_sidebar_participant_filter");
|
|
5351
5351
|
return n ? JSON.parse(n) : [];
|
|
@@ -5370,7 +5370,7 @@ function Um({
|
|
|
5370
5370
|
if (!qt.current && (p != null && p.username)) {
|
|
5371
5371
|
if (!localStorage.getItem("ft_sidebar_participant_filter")) {
|
|
5372
5372
|
const c = p.id != null && Number(p.id) > 0 ? String(p.id) : String(p.username).trim();
|
|
5373
|
-
c &&
|
|
5373
|
+
c && ct([c]);
|
|
5374
5374
|
}
|
|
5375
5375
|
qt.current = !0;
|
|
5376
5376
|
}
|
|
@@ -5388,7 +5388,7 @@ function Um({
|
|
|
5388
5388
|
String(c.accountNo ?? "").trim(),
|
|
5389
5389
|
String(c.jobNumber ?? "").trim()
|
|
5390
5390
|
].filter(Boolean);
|
|
5391
|
-
for (const
|
|
5391
|
+
for (const A of u) n.set(A, u);
|
|
5392
5392
|
}
|
|
5393
5393
|
return n;
|
|
5394
5394
|
}, [jt]), Bt = ne(
|
|
@@ -5399,12 +5399,12 @@ function Um({
|
|
|
5399
5399
|
[En]
|
|
5400
5400
|
);
|
|
5401
5401
|
H(() => {
|
|
5402
|
-
|
|
5402
|
+
ct((n) => {
|
|
5403
5403
|
let c = !1;
|
|
5404
5404
|
const u = [];
|
|
5405
|
-
for (const
|
|
5406
|
-
const ge = Bt(
|
|
5407
|
-
ge !==
|
|
5405
|
+
for (const A of n) {
|
|
5406
|
+
const ge = Bt(A)[0] ?? A;
|
|
5407
|
+
ge !== A && (c = !0), u.includes(ge) ? c = !0 : u.push(ge);
|
|
5408
5408
|
}
|
|
5409
5409
|
return c ? u : n;
|
|
5410
5410
|
});
|
|
@@ -5418,14 +5418,14 @@ function Um({
|
|
|
5418
5418
|
localStorage.setItem("ft_sidebar_time_filter", Ne);
|
|
5419
5419
|
}, [Ne]);
|
|
5420
5420
|
const on = Re(
|
|
5421
|
-
() =>
|
|
5421
|
+
() => lt(p, "personal"),
|
|
5422
5422
|
[p]
|
|
5423
|
-
), [gn, sn] = g([]), [rn,
|
|
5423
|
+
), [gn, sn] = g([]), [rn, ut] = g([]), At = ne(async () => {
|
|
5424
5424
|
const n = W.getState().token, [c, u] = await Promise.allSettled([
|
|
5425
5425
|
Vn(n),
|
|
5426
5426
|
Uo(n)
|
|
5427
5427
|
]);
|
|
5428
|
-
|
|
5428
|
+
ut(c.status === "fulfilled" ? c.value : []), sn(
|
|
5429
5429
|
u.status === "fulfilled" ? u.value : []
|
|
5430
5430
|
);
|
|
5431
5431
|
}, []);
|
|
@@ -5490,22 +5490,22 @@ function Um({
|
|
|
5490
5490
|
if (mt !== "all") {
|
|
5491
5491
|
const c = mt === "1d" ? 1 : mt === "3d" ? 3 : 7, u = Date.now() - c * 864e5;
|
|
5492
5492
|
n = n.filter(
|
|
5493
|
-
(
|
|
5493
|
+
(A) => Ut(A.updateTime || A.createTime) >= u
|
|
5494
5494
|
);
|
|
5495
5495
|
}
|
|
5496
5496
|
return [...n].sort((c, u) => {
|
|
5497
5497
|
if ((je == null ? void 0 : je.dim) === "name") {
|
|
5498
|
-
const
|
|
5498
|
+
const A = (c.title || "").localeCompare(
|
|
5499
5499
|
u.title || "",
|
|
5500
5500
|
"zh-CN"
|
|
5501
5501
|
);
|
|
5502
|
-
if (
|
|
5503
|
-
return
|
|
5502
|
+
if (A !== 0)
|
|
5503
|
+
return A * (je.order === "asc" ? 1 : -1);
|
|
5504
5504
|
}
|
|
5505
5505
|
if ((je == null ? void 0 : je.dim) === "time") {
|
|
5506
|
-
const
|
|
5507
|
-
if (
|
|
5508
|
-
return
|
|
5506
|
+
const A = Ut(c.updateTime || c.createTime) - Ut(u.updateTime || u.createTime);
|
|
5507
|
+
if (A !== 0)
|
|
5508
|
+
return A * (je.order === "asc" ? 1 : -1);
|
|
5509
5509
|
}
|
|
5510
5510
|
return (u.updateTime || u.createTime || "").localeCompare(
|
|
5511
5511
|
c.updateTime || c.createTime || ""
|
|
@@ -5533,8 +5533,8 @@ function Um({
|
|
|
5533
5533
|
(n) => {
|
|
5534
5534
|
const c = vt.has(n);
|
|
5535
5535
|
Pt((u) => {
|
|
5536
|
-
const
|
|
5537
|
-
return
|
|
5536
|
+
const A = new Set(u);
|
|
5537
|
+
return A.has(n) ? A.delete(n) : A.add(n), A;
|
|
5538
5538
|
}), n === "personal" && c && At();
|
|
5539
5539
|
},
|
|
5540
5540
|
[vt, At]
|
|
@@ -5554,22 +5554,22 @@ function Um({
|
|
|
5554
5554
|
ln();
|
|
5555
5555
|
}, [ln]);
|
|
5556
5556
|
const N = ne((n) => {
|
|
5557
|
-
Mt((c) => c.indexOf(n) >= 0 ? c.filter((
|
|
5557
|
+
Mt((c) => c.indexOf(n) >= 0 ? c.filter((A) => A !== n) : [...c, n]);
|
|
5558
5558
|
}, []), Q = ne((n) => {
|
|
5559
5559
|
fe((c) => {
|
|
5560
|
-
const u = c.findIndex((
|
|
5560
|
+
const u = c.findIndex((A) => A.dim === n);
|
|
5561
5561
|
if (u < 0) return [...c, { dim: n, order: Qt[n] }];
|
|
5562
5562
|
if (c[u].order === Qt[n]) {
|
|
5563
|
-
const
|
|
5564
|
-
return
|
|
5563
|
+
const A = [...c];
|
|
5564
|
+
return A[u] = {
|
|
5565
5565
|
dim: n,
|
|
5566
5566
|
order: c[u].order === "asc" ? "desc" : "asc"
|
|
5567
|
-
},
|
|
5567
|
+
}, A;
|
|
5568
5568
|
}
|
|
5569
|
-
return c.filter((
|
|
5569
|
+
return c.filter((A) => A.dim !== n);
|
|
5570
5570
|
});
|
|
5571
5571
|
}, []), de = Ne !== "3d" || Xe.length > 0 || qe.length > 0 || z.length > 0, Pe = ne(() => {
|
|
5572
|
-
ie("3d"),
|
|
5572
|
+
ie("3d"), ct([]);
|
|
5573
5573
|
}, []);
|
|
5574
5574
|
H(() => {
|
|
5575
5575
|
if (an.current) {
|
|
@@ -5630,7 +5630,7 @@ function Um({
|
|
|
5630
5630
|
return Se.parent_id != null ? ["fork", "Fork"] : ["normal", "正式"];
|
|
5631
5631
|
}
|
|
5632
5632
|
}
|
|
5633
|
-
const
|
|
5633
|
+
const A = ((ge = z.find((Se) => Se.dim === "create_time")) == null ? void 0 : ge.order) === "asc";
|
|
5634
5634
|
function oe(Se, $e, Le) {
|
|
5635
5635
|
if ($e.length === 0) return [];
|
|
5636
5636
|
const [Be, ...We] = $e, Oe = /* @__PURE__ */ new Map();
|
|
@@ -5652,7 +5652,7 @@ function Um({
|
|
|
5652
5652
|
return et.sort((tt, wt) => {
|
|
5653
5653
|
if (Be === "time") {
|
|
5654
5654
|
const bt = tt.rawKey === "(未知时间)" ? "" : tt.rawKey || "", Ot = wt.rawKey === "(未知时间)" ? "" : wt.rawKey || "";
|
|
5655
|
-
return !bt && !Ot ? 0 : bt ? Ot ?
|
|
5655
|
+
return !bt && !Ot ? 0 : bt ? Ot ? A ? bt.localeCompare(Ot) : Ot.localeCompare(bt) : -1 : 1;
|
|
5656
5656
|
}
|
|
5657
5657
|
return wt.projects.length - tt.projects.length;
|
|
5658
5658
|
}), et;
|
|
@@ -5666,16 +5666,16 @@ function Um({
|
|
|
5666
5666
|
[It, qe]
|
|
5667
5667
|
), Vt = Re(() => {
|
|
5668
5668
|
if (Ct.length === 0) return [];
|
|
5669
|
-
function n(u,
|
|
5670
|
-
if (
|
|
5669
|
+
function n(u, A) {
|
|
5670
|
+
if (A === "time") {
|
|
5671
5671
|
const ge = u.updateTime || u.createTime || "", Se = ge.length >= 10 ? ge.slice(0, 10) : "(未知时间)";
|
|
5672
5672
|
return [Se, Se];
|
|
5673
5673
|
}
|
|
5674
5674
|
const oe = kt.get(Ae(u.personalAgentId));
|
|
5675
5675
|
return oe ? [Ae(oe.id), oe.displayName] : ["__no_agent__", "未知伙伴"];
|
|
5676
5676
|
}
|
|
5677
|
-
function c(u,
|
|
5678
|
-
const [ge, ...Se] =
|
|
5677
|
+
function c(u, A, oe) {
|
|
5678
|
+
const [ge, ...Se] = A;
|
|
5679
5679
|
if (!ge) return [];
|
|
5680
5680
|
const $e = /* @__PURE__ */ new Map();
|
|
5681
5681
|
for (const Be of u) {
|
|
@@ -5728,20 +5728,20 @@ function Um({
|
|
|
5728
5728
|
}
|
|
5729
5729
|
const n = ke.current;
|
|
5730
5730
|
if (!n) return;
|
|
5731
|
-
const { width: c, height: u } = n.getBoundingClientRect(),
|
|
5731
|
+
const { width: c, height: u } = n.getBoundingClientRect(), A = 8;
|
|
5732
5732
|
let oe = se.initialX, ge = se.initialY;
|
|
5733
5733
|
se.placement === "bottom-end" && (oe = se.initialX - c);
|
|
5734
5734
|
const Se = ($e = _e.current) == null ? void 0 : $e.getBoundingClientRect();
|
|
5735
5735
|
Se ? oe = Math.max(
|
|
5736
|
-
Se.left +
|
|
5737
|
-
Math.min(oe, Se.right - c -
|
|
5738
|
-
) : oe = Math.max(
|
|
5736
|
+
Se.left + A,
|
|
5737
|
+
Math.min(oe, Se.right - c - A)
|
|
5738
|
+
) : oe = Math.max(A, Math.min(oe, window.innerWidth - c - A)), ge = Math.max(A, Math.min(ge, window.innerHeight - u - A)), y({ x: oe, y: ge }), J(!0);
|
|
5739
5739
|
}, [se]), H(() => {
|
|
5740
5740
|
ft && j();
|
|
5741
5741
|
}, [ft, j]);
|
|
5742
5742
|
const pt = ne(
|
|
5743
|
-
(n, c, u,
|
|
5744
|
-
if (n.preventDefault(), n.stopPropagation(), J(!1),
|
|
5743
|
+
(n, c, u, A = !1) => {
|
|
5744
|
+
if (n.preventDefault(), n.stopPropagation(), J(!1), A) {
|
|
5745
5745
|
const oe = n.currentTarget.getBoundingClientRect();
|
|
5746
5746
|
be({
|
|
5747
5747
|
initialX: oe.right,
|
|
@@ -5770,26 +5770,26 @@ function Um({
|
|
|
5770
5770
|
let u;
|
|
5771
5771
|
try {
|
|
5772
5772
|
u = await Go(b.id, n);
|
|
5773
|
-
} catch (
|
|
5774
|
-
console.error("[Sidebar] 加载子目录失败:", n,
|
|
5773
|
+
} catch (A) {
|
|
5774
|
+
console.error("[Sidebar] 加载子目录失败:", n, A);
|
|
5775
5775
|
return;
|
|
5776
5776
|
}
|
|
5777
|
-
Array.isArray(u) || (u = []), console.log("[Sidebar] 子目录加载成功:", n, u.length, "项"), Ft((
|
|
5777
|
+
Array.isArray(u) || (u = []), console.log("[Sidebar] 子目录加载成功:", n, u.length, "项"), Ft((A) => ({ ...A, [c]: u }));
|
|
5778
5778
|
},
|
|
5779
5779
|
[b]
|
|
5780
5780
|
), kn = ne(
|
|
5781
5781
|
(n, c) => {
|
|
5782
|
-
Qe.has(n) || Jt(c),
|
|
5783
|
-
const oe = new Set(
|
|
5782
|
+
Qe.has(n) || Jt(c), dt((A) => {
|
|
5783
|
+
const oe = new Set(A);
|
|
5784
5784
|
return oe.has(n) ? oe.delete(n) : oe.add(n), oe;
|
|
5785
5785
|
});
|
|
5786
5786
|
},
|
|
5787
5787
|
[Qe, Jt]
|
|
5788
5788
|
), bo = ne(
|
|
5789
|
-
(n, c, u,
|
|
5789
|
+
(n, c, u, A, oe) => {
|
|
5790
5790
|
const ge = Array.isArray(n) ? n : [], Se = oe ?? 16;
|
|
5791
5791
|
return ge.map(($e) => {
|
|
5792
|
-
const Le = u ? `${u}/${$e.name}` : $e.name, Be =
|
|
5792
|
+
const Le = u ? `${u}/${$e.name}` : $e.name, Be = A ? `${A.id}/${Le}` : Le, We = A ? `${A.id}/${Le}` : Le, Oe = Qe.has(Be), et = Se + c * 20;
|
|
5793
5793
|
return /* @__PURE__ */ s("div", { children: [
|
|
5794
5794
|
/* @__PURE__ */ s(
|
|
5795
5795
|
"div",
|
|
@@ -5833,7 +5833,7 @@ function Um({
|
|
|
5833
5833
|
yt[We],
|
|
5834
5834
|
c + 1,
|
|
5835
5835
|
Le,
|
|
5836
|
-
|
|
5836
|
+
A,
|
|
5837
5837
|
oe
|
|
5838
5838
|
) : yt[We] ? /* @__PURE__ */ e(
|
|
5839
5839
|
"div",
|
|
@@ -5881,7 +5881,7 @@ function Um({
|
|
|
5881
5881
|
const c = se.target;
|
|
5882
5882
|
n === "rename-session" ? at({ type: "rename-session", target: c }) : n === "delete-session" && confirm(`确定删除会话「${c.title || "未命名会话"}」?删除后不可恢复。`) && Ko(Ae(c.personalAgentId), Ae(c.id)).then(() => {
|
|
5883
5883
|
sn(
|
|
5884
|
-
(u) => u.filter((
|
|
5884
|
+
(u) => u.filter((A) => Ae(A.id) !== Ae(c.id))
|
|
5885
5885
|
), we("会话已删除", "success");
|
|
5886
5886
|
}).catch((u) => we((u == null ? void 0 : u.message) ?? "删除会话失败", "error"));
|
|
5887
5887
|
return;
|
|
@@ -5912,16 +5912,16 @@ function Um({
|
|
|
5912
5912
|
});
|
|
5913
5913
|
else if (n === "upload-file") {
|
|
5914
5914
|
const u = document.createElement("input");
|
|
5915
|
-
u.type = "file", u.onchange = (
|
|
5915
|
+
u.type = "file", u.onchange = (A) => {
|
|
5916
5916
|
var ge;
|
|
5917
|
-
const oe = (ge =
|
|
5917
|
+
const oe = (ge = A.target.files) == null ? void 0 : ge[0];
|
|
5918
5918
|
oe && te(c.workspace_path, oe);
|
|
5919
5919
|
}, u.click();
|
|
5920
5920
|
} else if (n === "upload-folder") {
|
|
5921
5921
|
const u = document.createElement("input");
|
|
5922
|
-
u.type = "file", u.webkitdirectory = !0, u.multiple = !0, u.onchange = (
|
|
5922
|
+
u.type = "file", u.webkitdirectory = !0, u.multiple = !0, u.onchange = (A) => {
|
|
5923
5923
|
const oe = Array.from(
|
|
5924
|
-
|
|
5924
|
+
A.target.files || []
|
|
5925
5925
|
);
|
|
5926
5926
|
oe.length > 0 && i(c.workspace_path, oe);
|
|
5927
5927
|
}, u.click();
|
|
@@ -5956,16 +5956,16 @@ function Um({
|
|
|
5956
5956
|
at({ type: "new-folder", target: c });
|
|
5957
5957
|
else if (n === "upload-file") {
|
|
5958
5958
|
const u = document.createElement("input");
|
|
5959
|
-
u.type = "file", u.onchange = (
|
|
5959
|
+
u.type = "file", u.onchange = (A) => {
|
|
5960
5960
|
var ge;
|
|
5961
|
-
const oe = (ge =
|
|
5961
|
+
const oe = (ge = A.target.files) == null ? void 0 : ge[0];
|
|
5962
5962
|
oe && te(c.path, oe);
|
|
5963
5963
|
}, u.click();
|
|
5964
5964
|
} else if (n === "upload-folder") {
|
|
5965
5965
|
const u = document.createElement("input");
|
|
5966
|
-
u.type = "file", u.webkitdirectory = !0, u.multiple = !0, u.onchange = (
|
|
5966
|
+
u.type = "file", u.webkitdirectory = !0, u.multiple = !0, u.onchange = (A) => {
|
|
5967
5967
|
const oe = Array.from(
|
|
5968
|
-
|
|
5968
|
+
A.target.files || []
|
|
5969
5969
|
);
|
|
5970
5970
|
oe.length > 0 && i(c.path, oe);
|
|
5971
5971
|
}, u.click();
|
|
@@ -6001,11 +6001,11 @@ function Um({
|
|
|
6001
6001
|
const u = c.target;
|
|
6002
6002
|
qo(Ae(u.personalAgentId), Ae(u.id), n.trim()).then(() => {
|
|
6003
6003
|
sn(
|
|
6004
|
-
(
|
|
6004
|
+
(A) => A.map(
|
|
6005
6005
|
(oe) => Ae(oe.id) === Ae(u.id) ? { ...oe, title: n.trim() } : oe
|
|
6006
6006
|
)
|
|
6007
6007
|
), we("会话已重命名", "success");
|
|
6008
|
-
}).catch((
|
|
6008
|
+
}).catch((A) => we((A == null ? void 0 : A.message) ?? "重命名会话失败", "error"));
|
|
6009
6009
|
} else c.type === "rename-file" && c.target ? K(c.target.path, n.trim()) : c.type === "new-file" && c.target ? f(c.target.path, n.trim()) : c.type === "new-folder" && c.target && h(c.target.path, n.trim());
|
|
6010
6010
|
},
|
|
6011
6011
|
[
|
|
@@ -6018,7 +6018,7 @@ function Um({
|
|
|
6018
6018
|
]
|
|
6019
6019
|
), Dn = ne(
|
|
6020
6020
|
(n, c) => {
|
|
6021
|
-
const u = (b == null ? void 0 : b.id) === n.id,
|
|
6021
|
+
const u = (b == null ? void 0 : b.id) === n.id, A = n.status === "ACTIVE" ? l.iconStatusActive : n.status === "CLOSED" ? l.iconStatusClosed : l.iconStatusIdle;
|
|
6022
6022
|
return /* @__PURE__ */ e("div", { children: /* @__PURE__ */ s(
|
|
6023
6023
|
"div",
|
|
6024
6024
|
{
|
|
@@ -6032,7 +6032,7 @@ function Um({
|
|
|
6032
6032
|
},
|
|
6033
6033
|
onContextMenu: (oe) => pt(oe, "project", n),
|
|
6034
6034
|
children: [
|
|
6035
|
-
/* @__PURE__ */ e("span", { className: `${l.fileItemIcon} ${
|
|
6035
|
+
/* @__PURE__ */ e("span", { className: `${l.fileItemIcon} ${A}`, children: ee.groupChat }),
|
|
6036
6036
|
/* @__PURE__ */ e("span", { className: l.fileItemName, title: n.name, children: n.name }),
|
|
6037
6037
|
n.parent_id != null && /* @__PURE__ */ e("span", { className: l.forkBadge, title: "Fork 子单", children: ee.fork }),
|
|
6038
6038
|
/* @__PURE__ */ e(
|
|
@@ -6067,10 +6067,10 @@ function Um({
|
|
|
6067
6067
|
opacity: u ? void 0 : 0.5
|
|
6068
6068
|
},
|
|
6069
6069
|
title: u ? n.title || "未命名会话" : "伙伴已不存在,无法打开",
|
|
6070
|
-
onClick: (
|
|
6071
|
-
|
|
6070
|
+
onClick: (A) => {
|
|
6071
|
+
A.target.closest(`.${l.moreBtn}`) || u && a && a(u, Ae(n.id));
|
|
6072
6072
|
},
|
|
6073
|
-
onContextMenu: (
|
|
6073
|
+
onContextMenu: (A) => pt(A, "personal-session", n),
|
|
6074
6074
|
children: [
|
|
6075
6075
|
/* @__PURE__ */ e("span", { className: l.fileItemIcon, children: ee.user }),
|
|
6076
6076
|
/* @__PURE__ */ e("span", { className: l.fileItemName, children: n.title || "未命名会话" }),
|
|
@@ -6079,8 +6079,8 @@ function Um({
|
|
|
6079
6079
|
{
|
|
6080
6080
|
className: l.moreBtn,
|
|
6081
6081
|
title: "更多操作",
|
|
6082
|
-
onClick: (
|
|
6083
|
-
|
|
6082
|
+
onClick: (A) => {
|
|
6083
|
+
A.stopPropagation(), pt(A, "personal-session", n, !0);
|
|
6084
6084
|
},
|
|
6085
6085
|
children: ee.more
|
|
6086
6086
|
}
|
|
@@ -6093,13 +6093,13 @@ function Um({
|
|
|
6093
6093
|
[kt, a, pt]
|
|
6094
6094
|
), ia = ne(
|
|
6095
6095
|
(n, c) => {
|
|
6096
|
-
const u = re.has(n.key),
|
|
6096
|
+
const u = re.has(n.key), A = 36 + c * 24;
|
|
6097
6097
|
return /* @__PURE__ */ s("div", { children: [
|
|
6098
6098
|
/* @__PURE__ */ s(
|
|
6099
6099
|
"div",
|
|
6100
6100
|
{
|
|
6101
6101
|
className: `${l.groupHeader} ${l.groupRow}`,
|
|
6102
|
-
style: { paddingLeft:
|
|
6102
|
+
style: { paddingLeft: A },
|
|
6103
6103
|
onClick: () => Ht(n.key),
|
|
6104
6104
|
children: [
|
|
6105
6105
|
/* @__PURE__ */ e("span", { className: l.treeArrow, children: ee.chevron(!u) }),
|
|
@@ -6118,13 +6118,13 @@ function Um({
|
|
|
6118
6118
|
[re, Ht, Rn]
|
|
6119
6119
|
), ca = ne(
|
|
6120
6120
|
(n, c) => {
|
|
6121
|
-
const u = re.has(n.key),
|
|
6121
|
+
const u = re.has(n.key), A = 36 + c * 24;
|
|
6122
6122
|
return /* @__PURE__ */ s("div", { children: [
|
|
6123
6123
|
/* @__PURE__ */ s(
|
|
6124
6124
|
"div",
|
|
6125
6125
|
{
|
|
6126
6126
|
className: `${l.groupHeader} ${l.groupRow}`,
|
|
6127
|
-
style: { paddingLeft:
|
|
6127
|
+
style: { paddingLeft: A },
|
|
6128
6128
|
onClick: () => Ht(n.key),
|
|
6129
6129
|
children: [
|
|
6130
6130
|
/* @__PURE__ */ e("span", { className: l.treeArrow, children: ee.chevron(!u) }),
|
|
@@ -6169,7 +6169,7 @@ function Um({
|
|
|
6169
6169
|
pe("新建文件夹", ee.folder, "new-folder"),
|
|
6170
6170
|
pe("上传文件", ee.upload, "upload-file"),
|
|
6171
6171
|
pe("上传文件夹", ee.upload, "upload-folder")
|
|
6172
|
-
] : n.is_dir &&
|
|
6172
|
+
] : n.is_dir && jm(n.path) ? [
|
|
6173
6173
|
pe("刷新技能", ee.refresh, "refresh-agent-skills"),
|
|
6174
6174
|
pe("新建文件", ee.file, "new-file"),
|
|
6175
6175
|
pe("新建文件夹", ee.folder, "new-folder"),
|
|
@@ -6211,12 +6211,12 @@ function Um({
|
|
|
6211
6211
|
)) }),
|
|
6212
6212
|
/* @__PURE__ */ s("div", { className: l.filterSectionRow, children: [
|
|
6213
6213
|
/* @__PURE__ */ e(
|
|
6214
|
-
|
|
6214
|
+
Fm,
|
|
6215
6215
|
{
|
|
6216
6216
|
members: jt,
|
|
6217
6217
|
loading: Ee,
|
|
6218
6218
|
value: Xe,
|
|
6219
|
-
onChange:
|
|
6219
|
+
onChange: ct
|
|
6220
6220
|
}
|
|
6221
6221
|
),
|
|
6222
6222
|
/* @__PURE__ */ e(
|
|
@@ -6276,19 +6276,19 @@ function Um({
|
|
|
6276
6276
|
{ key: "name", label: "名称", shortLabel: "名称", icon: ee.textT },
|
|
6277
6277
|
{ key: "id", label: "ID", shortLabel: "ID", icon: ee.listNum }
|
|
6278
6278
|
].map((n) => {
|
|
6279
|
-
const c = z.findIndex((oe) => oe.dim === n.key), u = c >= 0,
|
|
6279
|
+
const c = z.findIndex((oe) => oe.dim === n.key), u = c >= 0, A = u ? z[c].order : void 0;
|
|
6280
6280
|
return /* @__PURE__ */ s(
|
|
6281
6281
|
"button",
|
|
6282
6282
|
{
|
|
6283
6283
|
type: "button",
|
|
6284
6284
|
className: `${l.iconChip} ${l.iconChipSort} ${u ? l.iconChipActive : ""}`,
|
|
6285
|
-
title: u ?
|
|
6285
|
+
title: u ? A === "asc" ? `${n.label}升序(再次点击切换/取消)` : `${n.label}降序(再次点击切换/取消)` : `按${n.label}排序`,
|
|
6286
6286
|
onClick: () => Q(n.key),
|
|
6287
6287
|
children: [
|
|
6288
6288
|
u && /* @__PURE__ */ e("span", { className: l.iconChipOrder, children: c + 1 }),
|
|
6289
6289
|
n.icon,
|
|
6290
6290
|
/* @__PURE__ */ e("span", { className: l.iconChipLabel, children: n.shortLabel }),
|
|
6291
|
-
u && /* @__PURE__ */ e("span", { className: l.iconChipArrow, children:
|
|
6291
|
+
u && /* @__PURE__ */ e("span", { className: l.iconChipArrow, children: A === "asc" ? "↑" : "↓" })
|
|
6292
6292
|
]
|
|
6293
6293
|
},
|
|
6294
6294
|
n.key
|
|
@@ -6375,7 +6375,7 @@ function Um({
|
|
|
6375
6375
|
},
|
|
6376
6376
|
children: [
|
|
6377
6377
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
6378
|
-
|
|
6378
|
+
Cc,
|
|
6379
6379
|
{
|
|
6380
6380
|
currentUser: p,
|
|
6381
6381
|
token: Ue,
|
|
@@ -6396,7 +6396,7 @@ function Um({
|
|
|
6396
6396
|
}
|
|
6397
6397
|
) }),
|
|
6398
6398
|
ot && /* @__PURE__ */ e(
|
|
6399
|
-
|
|
6399
|
+
Rm,
|
|
6400
6400
|
{
|
|
6401
6401
|
sessions: gn,
|
|
6402
6402
|
agentsById: kt,
|
|
@@ -6546,8 +6546,8 @@ function Um({
|
|
|
6546
6546
|
ref: ke,
|
|
6547
6547
|
className: l.contextMenu,
|
|
6548
6548
|
style: {
|
|
6549
|
-
left:
|
|
6550
|
-
top:
|
|
6549
|
+
left: x.x,
|
|
6550
|
+
top: x.y,
|
|
6551
6551
|
visibility: V ? "visible" : "hidden"
|
|
6552
6552
|
},
|
|
6553
6553
|
onClick: (n) => n.stopPropagation(),
|
|
@@ -6569,7 +6569,7 @@ function Um({
|
|
|
6569
6569
|
}
|
|
6570
6570
|
),
|
|
6571
6571
|
ue && /* @__PURE__ */ e(
|
|
6572
|
-
|
|
6572
|
+
Um,
|
|
6573
6573
|
{
|
|
6574
6574
|
title: $o,
|
|
6575
6575
|
placeholder: To,
|
|
@@ -6579,14 +6579,14 @@ function Um({
|
|
|
6579
6579
|
}
|
|
6580
6580
|
),
|
|
6581
6581
|
ft && /* @__PURE__ */ e(
|
|
6582
|
-
|
|
6582
|
+
zm,
|
|
6583
6583
|
{
|
|
6584
6584
|
allSkills: I,
|
|
6585
6585
|
projectSkills: X,
|
|
6586
6586
|
onConfirm: async (n) => {
|
|
6587
6587
|
if (!b) return;
|
|
6588
|
-
const u = new Set(X.map((ge) => ge.id)),
|
|
6589
|
-
for (const ge of
|
|
6588
|
+
const u = new Set(X.map((ge) => ge.id)), A = [...n].filter((ge) => !u.has(ge)), oe = X.filter((ge) => !n.has(ge.id));
|
|
6589
|
+
for (const ge of A)
|
|
6590
6590
|
await k(ge);
|
|
6591
6591
|
for (const ge of oe)
|
|
6592
6592
|
await L(ge.id);
|
|
@@ -6596,7 +6596,7 @@ function Um({
|
|
|
6596
6596
|
}
|
|
6597
6597
|
),
|
|
6598
6598
|
/* @__PURE__ */ e(
|
|
6599
|
-
|
|
6599
|
+
lm,
|
|
6600
6600
|
{
|
|
6601
6601
|
displayName: (p == null ? void 0 : p.display_name) || (p == null ? void 0 : p.username) || "",
|
|
6602
6602
|
subtitle: "Z-OPC · 一人公司基建",
|
|
@@ -6616,8 +6616,8 @@ function Um({
|
|
|
6616
6616
|
)
|
|
6617
6617
|
] });
|
|
6618
6618
|
}
|
|
6619
|
-
const
|
|
6620
|
-
function
|
|
6619
|
+
const Wm = us(Hm);
|
|
6620
|
+
function Um({
|
|
6621
6621
|
title: t,
|
|
6622
6622
|
placeholder: a,
|
|
6623
6623
|
defaultValue: o,
|
|
@@ -6651,7 +6651,7 @@ function Gm({
|
|
|
6651
6651
|
] })
|
|
6652
6652
|
] }) });
|
|
6653
6653
|
}
|
|
6654
|
-
function
|
|
6654
|
+
function zm({
|
|
6655
6655
|
allSkills: t,
|
|
6656
6656
|
projectSkills: a,
|
|
6657
6657
|
onConfirm: o,
|
|
@@ -6734,11 +6734,11 @@ function Km({
|
|
|
6734
6734
|
}
|
|
6735
6735
|
) });
|
|
6736
6736
|
}
|
|
6737
|
-
const
|
|
6738
|
-
|
|
6739
|
-
const
|
|
6740
|
-
|
|
6741
|
-
const
|
|
6737
|
+
const Gm = "/api";
|
|
6738
|
+
Js({ apiBase: Gm });
|
|
6739
|
+
const Km = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3ctitle%3elogo%3c/title%3e%3cg%20id='页面-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='01-1.全部应用'%20transform='translate(-20.000000,%20-8.000000)'%3e%3cg%20id='logo'%20transform='translate(20.000000,%208.000000)'%3e%3crect%20id='蒙版'%20fill='%23F5FAFF'%20x='0'%20y='0'%20width='24'%20height='24'%20rx='2'%3e%3c/rect%3e%3cg%20id='资源-1'%20transform='translate(4.000000,%204.000000)'%20fill-rule='nonzero'%3e%3cpath%20d='M1.16034197,15.1111111%20C0.519502794,15.1111111%200,14.6106136%200,13.9932187%20L0,2.69831289%20C0.00159892866,1.20871436%201.25461265,0.00154043404%202.80077542,0%20L8.75478013,0%20C10.3009429,0.00154043404%2011.5539566,1.20871436%2011.5555556,2.69831289%20L11.5555556,8.29476193%20C11.5555556,8.91215688%2011.0360528,9.41265438%2010.3952136,9.41265438%20C9.75437442,9.41265438%209.23487162,8.91215688%209.23487162,8.29476193%20L9.23487162,2.70529971%20C9.23681414,2.5814236%209.18709207,2.46197487%209.09684605,2.37371702%20C9.00660003,2.28545916%208.88337485,2.23577075%208.75478013,2.23578489%20L2.80802756,2.23578489%20C2.67944752,2.23391343%202.55546299,2.28181649%202.46385373,2.36876099%20C2.37224448,2.45570548%202.32066926,2.57442264%202.32068393,2.69831289%20L2.32068393,13.9932187%20C2.32068393,14.6106136%201.80118114,15.1111111%201.16034197,15.1111111%20Z'%20id='路径'%20fill='%231F8BFF'%3e%3c/path%3e%3cpath%20d='M13.1974657,15.1111111%20L7.2469787,15.1111111%20C5.70041075,15.1095715%204.44684388,13.9026896%204.44444444,12.4129481%20L4.44444444,6.81251221%20C4.44444444,6.19483167%204.96427348,5.69410265%205.60551509,5.69410265%20C6.24675669,5.69410265%206.76658573,6.19483167%206.76658573,6.81251221%20L6.76658573,12.4129481%20C6.76738557,12.6679673%206.98223074,12.8742932%207.2469787,12.874292%20L13.1974657,12.874292%20C13.4622137,12.8742932%2013.6770589,12.6679673%2013.6778587,12.4129481%20L13.6778587,1.11840956%20C13.6778587,0.500729014%2014.1976878,0%2014.8389294,0%20C15.480171,0%2016,0.500729014%2016,1.11840956%20L16,12.4129481%20C15.9976006,13.9026896%2014.7440337,15.1095715%2013.1974657,15.1111111%20L13.1974657,15.1111111%20Z'%20id='路径'%20fill='%23FFDC29'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e", qm = it(() => import("./index-DWdLZ6X9.js")), Vm = it(() => import("./index-DLX2R48m.js")), Jm = it(() => import("./SettingsModal-C2bwZ9ru.js")), Ym = it(() => import("./index-Dzjs7Prp.js"));
|
|
6740
|
+
it(() => import("./index-BZgnnSZn.js"));
|
|
6741
|
+
const Zm = it(() => import("./index-DrDFy5jN.js")), Qm = it(() => import("./index-CN-sRlNh.js").then((t) => t.i)), Xm = it(() => import("./index-ClL1cAfT.js")), ep = it(() => import("./index-smJ2gsQz.js")), tp = it(() => import("./index-Dbb8qAvr.js")), np = it(() => import("./index-B4UHttS3.js")), ap = it(() => import("./index-Cy_j3HP-.js").then((t) => ({ default: t.default }))), Ja = it(() => import("./SystemShell-ZevSFEQN.js")), vo = "ft_popup_read";
|
|
6742
6742
|
function Ya(t) {
|
|
6743
6743
|
return t.id != null ? String(t.id) : `${t.title ?? ""}|${t.content ?? ""}`;
|
|
6744
6744
|
}
|
|
@@ -6750,7 +6750,7 @@ function wo() {
|
|
|
6750
6750
|
return [];
|
|
6751
6751
|
}
|
|
6752
6752
|
}
|
|
6753
|
-
function
|
|
6753
|
+
function op(t) {
|
|
6754
6754
|
try {
|
|
6755
6755
|
const a = wo();
|
|
6756
6756
|
if (a.includes(t)) return;
|
|
@@ -6761,7 +6761,7 @@ function rp(t) {
|
|
|
6761
6761
|
} catch {
|
|
6762
6762
|
}
|
|
6763
6763
|
}
|
|
6764
|
-
function
|
|
6764
|
+
function sp({
|
|
6765
6765
|
onNewProject: t,
|
|
6766
6766
|
onOpenTeam: a,
|
|
6767
6767
|
forcedChatMode: o,
|
|
@@ -6776,9 +6776,9 @@ function ip({
|
|
|
6776
6776
|
currentProject: N.currentProject,
|
|
6777
6777
|
clearCurrentProject: N.clearCurrentProject
|
|
6778
6778
|
}))
|
|
6779
|
-
), U = W((N) => N.token), O = Jn((N) => N.open), w = Jn((N) => N.hide), I = le(null), X =
|
|
6779
|
+
), U = W((N) => N.token), O = Jn((N) => N.open), w = Jn((N) => N.hide), I = le(null), X = or(260, 180, 400, "left"), [ae, T] = g(
|
|
6780
6780
|
() => localStorage.getItem("ft_sidebar_collapsed") === "true"
|
|
6781
|
-
), [G, R] = g(!1), [Y, F] = g(0), [K, f] = g(!1), [h, M] = g(null), [te, i] = g(0), [C, q] = g(!1), [j, k] = g(0), [L, Z] = g([]), [_, S] = g(0), [D, ye] = g(!1), [he, se] = g([]), [be,
|
|
6781
|
+
), [G, R] = g(!1), [Y, F] = g(0), [K, f] = g(!1), [h, M] = g(null), [te, i] = g(0), [C, q] = g(!1), [j, k] = g(0), [L, Z] = g([]), [_, S] = g(0), [D, ye] = g(!1), [he, se] = g([]), [be, x] = g(0), y = Re(() => {
|
|
6782
6782
|
const N = h == null ? void 0 : h.announcements;
|
|
6783
6783
|
return (N && N.length > 0 ? N : h != null && h.announcement ? [h.announcement] : []).filter((de) => de.title || de.content);
|
|
6784
6784
|
}, [h]), V = Re(
|
|
@@ -6801,7 +6801,7 @@ function ip({
|
|
|
6801
6801
|
const J = ne(async () => {
|
|
6802
6802
|
try {
|
|
6803
6803
|
const Q = (await La()).quotes ?? [];
|
|
6804
|
-
Q.length > 0 && (se(Q),
|
|
6804
|
+
Q.length > 0 && (se(Q), x(0));
|
|
6805
6805
|
} catch {
|
|
6806
6806
|
}
|
|
6807
6807
|
}, []);
|
|
@@ -6822,15 +6822,15 @@ function ip({
|
|
|
6822
6822
|
}, []), H(() => {
|
|
6823
6823
|
if (he.length === 0) return;
|
|
6824
6824
|
const N = setInterval(() => {
|
|
6825
|
-
document.hidden ||
|
|
6825
|
+
document.hidden || x((Q) => {
|
|
6826
6826
|
const de = Q + 1;
|
|
6827
6827
|
return de < he.length ? de : (J(), 0);
|
|
6828
6828
|
});
|
|
6829
6829
|
}, 1e4);
|
|
6830
6830
|
return () => clearInterval(N);
|
|
6831
6831
|
}, [he, J]);
|
|
6832
|
-
const [_e, ke] = g(null), [ue, at] = g("chat"), [ft, gt] = g(0), [yt, Ft] = g(0), [Qe,
|
|
6833
|
-
() =>
|
|
6832
|
+
const [_e, ke] = g(null), [ue, at] = g("chat"), [ft, gt] = g(0), [yt, Ft] = g(0), [Qe, dt] = g(null), qe = Ec(), [Mt, z] = g("group"), [fe, re] = g([]), xe = Re(
|
|
6833
|
+
() => lt(p, "personal"),
|
|
6834
6834
|
[p]
|
|
6835
6835
|
);
|
|
6836
6836
|
H(() => {
|
|
@@ -6839,7 +6839,7 @@ function ip({
|
|
|
6839
6839
|
}, [xe, Qe == null ? void 0 : Qe.ts]);
|
|
6840
6840
|
const Ne = ne(
|
|
6841
6841
|
(N, Q = null, de = !1) => {
|
|
6842
|
-
R(!1), z("personal"),
|
|
6842
|
+
R(!1), z("personal"), dt(
|
|
6843
6843
|
(Pe) => Pe && Pe.kind === "chat" && Pe.agent.id === N.id && Pe.sessionId === Q && Pe.draft === de ? Pe : { kind: "chat", agent: N, sessionId: Q, draft: de, ts: Date.now() }
|
|
6844
6844
|
);
|
|
6845
6845
|
},
|
|
@@ -6848,7 +6848,7 @@ function ip({
|
|
|
6848
6848
|
(N, Q) => Ne(N, Q),
|
|
6849
6849
|
[Ne]
|
|
6850
6850
|
), Ue = ne((N) => {
|
|
6851
|
-
R(!1), z("personal"),
|
|
6851
|
+
R(!1), z("personal"), dt(
|
|
6852
6852
|
(Q) => Q && Q.kind === "chat" && Q.lane === "local" && Nt(Q.sessionId, N) ? Q : {
|
|
6853
6853
|
kind: "chat",
|
|
6854
6854
|
agent: null,
|
|
@@ -6858,7 +6858,7 @@ function ip({
|
|
|
6858
6858
|
}
|
|
6859
6859
|
);
|
|
6860
6860
|
}, []), ot = ne(() => {
|
|
6861
|
-
R(!1), z("personal"),
|
|
6861
|
+
R(!1), z("personal"), dt({
|
|
6862
6862
|
kind: "chat",
|
|
6863
6863
|
agent: null,
|
|
6864
6864
|
sessionId: null,
|
|
@@ -6866,12 +6866,12 @@ function ip({
|
|
|
6866
6866
|
ts: Date.now()
|
|
6867
6867
|
});
|
|
6868
6868
|
}, []), He = ne((N) => {
|
|
6869
|
-
R(!1), z("personal"),
|
|
6869
|
+
R(!1), z("personal"), dt(N);
|
|
6870
6870
|
}, []), _t = ne(() => {
|
|
6871
|
-
R(!1), z("group"),
|
|
6871
|
+
R(!1), z("group"), dt(null), P();
|
|
6872
6872
|
}, [P]), hn = ne(
|
|
6873
6873
|
(N) => {
|
|
6874
|
-
const Q =
|
|
6874
|
+
const Q = Ic(fe);
|
|
6875
6875
|
if (!Q) {
|
|
6876
6876
|
we("暂无可用伙伴,请先在「更多能力」里创建伙伴", "warning");
|
|
6877
6877
|
return;
|
|
@@ -6882,7 +6882,7 @@ function ip({
|
|
|
6882
6882
|
de || "新会话",
|
|
6883
6883
|
W.getState().token
|
|
6884
6884
|
).then((Pe) => {
|
|
6885
|
-
R(!1), z("personal"),
|
|
6885
|
+
R(!1), z("personal"), dt({
|
|
6886
6886
|
kind: "chat",
|
|
6887
6887
|
agent: Q,
|
|
6888
6888
|
sessionId: Pe.id,
|
|
@@ -6894,7 +6894,7 @@ function ip({
|
|
|
6894
6894
|
[fe]
|
|
6895
6895
|
), an = ne(
|
|
6896
6896
|
(N) => {
|
|
6897
|
-
const Q =
|
|
6897
|
+
const Q = Nc(N);
|
|
6898
6898
|
Q && !Ln(p, Q) || He({ kind: "tab", tab: N, ts: Date.now() });
|
|
6899
6899
|
},
|
|
6900
6900
|
[p, He]
|
|
@@ -6902,7 +6902,7 @@ function ip({
|
|
|
6902
6902
|
H(() => {
|
|
6903
6903
|
b && z("group");
|
|
6904
6904
|
}, [b]);
|
|
6905
|
-
const [Xe,
|
|
6905
|
+
const [Xe, ct] = g(() => (bn(), cr())), [jt, fn] = g(() => {
|
|
6906
6906
|
try {
|
|
6907
6907
|
bn();
|
|
6908
6908
|
const N = new URL(window.location.href).searchParams.get("mode");
|
|
@@ -6935,7 +6935,7 @@ function ip({
|
|
|
6935
6935
|
try {
|
|
6936
6936
|
const N = new URLSearchParams(window.location.search), Q = N.get("openNote");
|
|
6937
6937
|
if (Q === "1" || Q === "true") {
|
|
6938
|
-
|
|
6938
|
+
ct("collaboration"), qt(!0);
|
|
6939
6939
|
const It = String(
|
|
6940
6940
|
N.get("projectId") ?? N.get("project_id") ?? ""
|
|
6941
6941
|
).trim(), Wt = Ae(It);
|
|
@@ -6943,7 +6943,7 @@ function ip({
|
|
|
6943
6943
|
}
|
|
6944
6944
|
const de = N.get("mode"), Pe = N.get("agentId"), Ge = N.get("tab"), Ht = N.get("sessionId");
|
|
6945
6945
|
if (de === "personal" && Pe) {
|
|
6946
|
-
|
|
6946
|
+
ct("personal");
|
|
6947
6947
|
const It = Ae(Pe);
|
|
6948
6948
|
Ge && on(Ge), Ht && sn(Ae(Ht));
|
|
6949
6949
|
const Wt = W.getState().token;
|
|
@@ -6958,7 +6958,7 @@ function ip({
|
|
|
6958
6958
|
} catch {
|
|
6959
6959
|
}
|
|
6960
6960
|
}, []), H(() => {
|
|
6961
|
-
|
|
6961
|
+
lr(Xe);
|
|
6962
6962
|
}, [Xe]);
|
|
6963
6963
|
const rn = le(Xe);
|
|
6964
6964
|
H(() => {
|
|
@@ -6971,13 +6971,13 @@ function ip({
|
|
|
6971
6971
|
let de = Q.searchParams.get("mode");
|
|
6972
6972
|
!de && Q.pathname.startsWith("/admin") && (de = "admin"), !de && Q.pathname.startsWith("/ops/") && (de = "ops"), !de && Q.pathname.startsWith("/cognition/") && (de = "knowledge"), !de && Q.pathname.startsWith("/z-kb/") && (de = "knowledge"), !de && Q.pathname.startsWith("/ontology/") && (de = "knowledge");
|
|
6973
6973
|
const Pe = de && Cn.includes(de) ? de : "collaboration";
|
|
6974
|
-
Pe !== rn.current &&
|
|
6974
|
+
Pe !== rn.current && ct(Pe);
|
|
6975
6975
|
} catch {
|
|
6976
6976
|
}
|
|
6977
6977
|
};
|
|
6978
6978
|
return window.addEventListener("popstate", N), N(), () => window.removeEventListener("popstate", N);
|
|
6979
6979
|
}, []);
|
|
6980
|
-
const
|
|
6980
|
+
const ut = ne((N) => {
|
|
6981
6981
|
const Q = window.location.pathname;
|
|
6982
6982
|
if (N === "system") {
|
|
6983
6983
|
if (Ee === "system")
|
|
@@ -7022,17 +7022,17 @@ function ip({
|
|
|
7022
7022
|
T(N), localStorage.setItem("ft_sidebar_collapsed", N ? "true" : "false");
|
|
7023
7023
|
}, kt = W((N) => N.personalChatNav);
|
|
7024
7024
|
H(() => {
|
|
7025
|
-
kt.trigger > 0 && kt.agent && (
|
|
7025
|
+
kt.trigger > 0 && kt.agent && (ct("personal"), ke(kt.agent), at("chat"), gt((N) => N + 1), Ft(Date.now()));
|
|
7026
7026
|
}, [kt.trigger]);
|
|
7027
7027
|
const mt = ne(
|
|
7028
7028
|
(N, Q) => {
|
|
7029
|
-
|
|
7029
|
+
ct("collaboration"), Q && (qt(!0), Bt(N)), nt.push(`/workspace?projectId=${N}`);
|
|
7030
7030
|
},
|
|
7031
|
-
[
|
|
7031
|
+
[ct]
|
|
7032
7032
|
), On = p != null && p.avatar && (p.avatar.startsWith("http") || p.avatar.startsWith("data:")) ? p.avatar : void 0, Ct = [
|
|
7033
7033
|
{
|
|
7034
7034
|
key: "logout",
|
|
7035
|
-
icon: /* @__PURE__ */ e(
|
|
7035
|
+
icon: /* @__PURE__ */ e(Ks, {}),
|
|
7036
7036
|
label: "退出登录",
|
|
7037
7037
|
onClick: () => {
|
|
7038
7038
|
co();
|
|
@@ -7050,44 +7050,44 @@ function ip({
|
|
|
7050
7050
|
), q(!0);
|
|
7051
7051
|
}, [te, y.length]), Pt = L[_], cn = _ >= L.length - 1, ln = ne(() => {
|
|
7052
7052
|
const N = L[_];
|
|
7053
|
-
if (N &&
|
|
7053
|
+
if (N && op(Ya(N)), _ < L.length - 1) {
|
|
7054
7054
|
S((Q) => Q + 1);
|
|
7055
7055
|
return;
|
|
7056
7056
|
}
|
|
7057
7057
|
ye(!1);
|
|
7058
7058
|
}, [L, _]);
|
|
7059
|
-
return /* @__PURE__ */ s("div", { className:
|
|
7060
|
-
/* @__PURE__ */ s("div", { className:
|
|
7059
|
+
return /* @__PURE__ */ s("div", { className: E.layout, children: [
|
|
7060
|
+
/* @__PURE__ */ s("div", { className: E.banner, children: [
|
|
7061
7061
|
/* @__PURE__ */ e(
|
|
7062
7062
|
"div",
|
|
7063
7063
|
{
|
|
7064
|
-
className:
|
|
7064
|
+
className: E.bannerLeft,
|
|
7065
7065
|
onClick: () => nt.push("/welcome"),
|
|
7066
7066
|
style: { cursor: "pointer" },
|
|
7067
|
-
children: /* @__PURE__ */ e("img", { src:
|
|
7067
|
+
children: /* @__PURE__ */ e("img", { src: Km, alt: "Z-OPC 一人公司基建", className: E.logo })
|
|
7068
7068
|
}
|
|
7069
7069
|
),
|
|
7070
|
-
/* @__PURE__ */ s("div", { className:
|
|
7070
|
+
/* @__PURE__ */ s("div", { className: E.bannerCenter, children: [
|
|
7071
7071
|
yn && /* @__PURE__ */ s(
|
|
7072
7072
|
"div",
|
|
7073
7073
|
{
|
|
7074
|
-
className: `${
|
|
7074
|
+
className: `${E.bannerTipLine} ${E.bannerNoticeLine} ${E.bannerNoticeClickable}`,
|
|
7075
7075
|
title: "点击查看公告详情",
|
|
7076
7076
|
onClick: vt,
|
|
7077
7077
|
children: [
|
|
7078
|
-
/* @__PURE__ */ e("span", { className:
|
|
7079
|
-
/* @__PURE__ */ e("span", { className:
|
|
7078
|
+
/* @__PURE__ */ e("span", { className: E.bannerTipLabel, children: "公告" }),
|
|
7079
|
+
/* @__PURE__ */ e("span", { className: E.bannerTipText, children: yn })
|
|
7080
7080
|
]
|
|
7081
7081
|
}
|
|
7082
7082
|
),
|
|
7083
7083
|
(st == null ? void 0 : st.content) && /* @__PURE__ */ s(
|
|
7084
7084
|
"div",
|
|
7085
7085
|
{
|
|
7086
|
-
className: `${
|
|
7086
|
+
className: `${E.bannerTipLine} ${E.bannerQuoteLine}`,
|
|
7087
7087
|
title: st.author ? `${st.content} —— ${st.author}` : st.content,
|
|
7088
7088
|
children: [
|
|
7089
|
-
/* @__PURE__ */ e("span", { className:
|
|
7090
|
-
st.author && /* @__PURE__ */ s("span", { className:
|
|
7089
|
+
/* @__PURE__ */ e("span", { className: E.bannerTipText, children: st.content }),
|
|
7090
|
+
st.author && /* @__PURE__ */ s("span", { className: E.quoteAuthor, children: [
|
|
7091
7091
|
"—— ",
|
|
7092
7092
|
st.author
|
|
7093
7093
|
] })
|
|
@@ -7096,190 +7096,164 @@ function ip({
|
|
|
7096
7096
|
`${st.content}-${st.author}`
|
|
7097
7097
|
)
|
|
7098
7098
|
] }),
|
|
7099
|
-
/* @__PURE__ */ s("div", { className:
|
|
7100
|
-
|
|
7099
|
+
/* @__PURE__ */ s("div", { className: E.bannerRight, children: [
|
|
7100
|
+
lt(p, "life") && /* @__PURE__ */ s(
|
|
7101
7101
|
"button",
|
|
7102
7102
|
{
|
|
7103
7103
|
type: "button",
|
|
7104
|
-
className: `${
|
|
7105
|
-
onClick: () =>
|
|
7104
|
+
className: `${E.modeToggleBtn} ${Ee === "life" ? E.modeToggleBtnActive : ""}`,
|
|
7105
|
+
onClick: () => ut("life"),
|
|
7106
7106
|
title: "生活",
|
|
7107
7107
|
children: [
|
|
7108
7108
|
/* @__PURE__ */ e(Rs, {}),
|
|
7109
|
-
/* @__PURE__ */ e("span", { className:
|
|
7109
|
+
/* @__PURE__ */ e("span", { className: E.modeToggleLabel, children: "生活" })
|
|
7110
7110
|
]
|
|
7111
7111
|
}
|
|
7112
7112
|
),
|
|
7113
|
-
|
|
7113
|
+
lt(p, "training") && /* @__PURE__ */ s(
|
|
7114
7114
|
"button",
|
|
7115
7115
|
{
|
|
7116
7116
|
type: "button",
|
|
7117
|
-
className: `${
|
|
7118
|
-
onClick: () =>
|
|
7117
|
+
className: `${E.modeToggleBtn} ${Ee === "training" ? E.modeToggleBtnActive : ""}`,
|
|
7118
|
+
onClick: () => ut("training"),
|
|
7119
7119
|
title: "培训",
|
|
7120
7120
|
children: [
|
|
7121
7121
|
/* @__PURE__ */ e(oo, {}),
|
|
7122
|
-
/* @__PURE__ */ e("span", { className:
|
|
7122
|
+
/* @__PURE__ */ e("span", { className: E.modeToggleLabel, children: "培训" })
|
|
7123
7123
|
]
|
|
7124
7124
|
}
|
|
7125
7125
|
),
|
|
7126
|
-
|
|
7126
|
+
lt(p, "knowledge") && /* @__PURE__ */ s(
|
|
7127
7127
|
"button",
|
|
7128
7128
|
{
|
|
7129
7129
|
type: "button",
|
|
7130
|
-
className: `${
|
|
7131
|
-
onClick: () =>
|
|
7130
|
+
className: `${E.modeToggleBtn} ${Ee === "knowledge" ? E.modeToggleBtnActive : ""}`,
|
|
7131
|
+
onClick: () => ut("knowledge"),
|
|
7132
7132
|
title: "认知",
|
|
7133
7133
|
children: [
|
|
7134
7134
|
/* @__PURE__ */ e(Fs, {}),
|
|
7135
|
-
/* @__PURE__ */ e("span", { className:
|
|
7135
|
+
/* @__PURE__ */ e("span", { className: E.modeToggleLabel, children: "认知" })
|
|
7136
7136
|
]
|
|
7137
7137
|
}
|
|
7138
7138
|
),
|
|
7139
|
-
|
|
7139
|
+
lt(p, "smart") && /* @__PURE__ */ s(
|
|
7140
7140
|
"button",
|
|
7141
7141
|
{
|
|
7142
7142
|
type: "button",
|
|
7143
|
-
className: `${
|
|
7144
|
-
onClick: () =>
|
|
7143
|
+
className: `${E.modeToggleBtn} ${Ee === "smart" ? E.modeToggleBtnActive : ""}`,
|
|
7144
|
+
onClick: () => ut("smart"),
|
|
7145
7145
|
title: "智能",
|
|
7146
7146
|
children: [
|
|
7147
7147
|
/* @__PURE__ */ e(js, {}),
|
|
7148
|
-
/* @__PURE__ */ e("span", { className:
|
|
7148
|
+
/* @__PURE__ */ e("span", { className: E.modeToggleLabel, children: "智能" })
|
|
7149
7149
|
]
|
|
7150
7150
|
}
|
|
7151
7151
|
),
|
|
7152
|
-
|
|
7152
|
+
lt(p, "collaboration") && /* @__PURE__ */ s(
|
|
7153
7153
|
"button",
|
|
7154
7154
|
{
|
|
7155
7155
|
type: "button",
|
|
7156
|
-
className: `${
|
|
7157
|
-
onClick: () =>
|
|
7156
|
+
className: `${E.modeToggleBtn} ${Ee === "collaboration" ? E.modeToggleBtnActive : ""}`,
|
|
7157
|
+
onClick: () => ut("collaboration"),
|
|
7158
7158
|
title: "协作",
|
|
7159
7159
|
children: [
|
|
7160
7160
|
/* @__PURE__ */ e(Bs, {}),
|
|
7161
|
-
/* @__PURE__ */ e("span", { className:
|
|
7161
|
+
/* @__PURE__ */ e("span", { className: E.modeToggleLabel, children: "协作" })
|
|
7162
7162
|
]
|
|
7163
7163
|
}
|
|
7164
7164
|
),
|
|
7165
|
-
|
|
7165
|
+
(lt(p, "product") || lt(p, "dev") || lt(p, "test")) && /* @__PURE__ */ s(
|
|
7166
7166
|
"button",
|
|
7167
7167
|
{
|
|
7168
7168
|
type: "button",
|
|
7169
|
-
className: `${
|
|
7170
|
-
onClick: () =>
|
|
7171
|
-
title: "
|
|
7169
|
+
className: `${E.modeToggleBtn} ${Ee === "product" || Ee === "dev" || Ee === "test" ? E.modeToggleBtnActive : ""}`,
|
|
7170
|
+
onClick: () => ut("product"),
|
|
7171
|
+
title: "产研",
|
|
7172
7172
|
children: [
|
|
7173
7173
|
/* @__PURE__ */ e(Hs, {}),
|
|
7174
|
-
/* @__PURE__ */ e("span", { className:
|
|
7175
|
-
]
|
|
7176
|
-
}
|
|
7177
|
-
),
|
|
7178
|
-
dt(p, "dev") && /* @__PURE__ */ s(
|
|
7179
|
-
"button",
|
|
7180
|
-
{
|
|
7181
|
-
type: "button",
|
|
7182
|
-
className: `${A.modeToggleBtn} ${Ee === "dev" ? A.modeToggleBtnActive : ""}`,
|
|
7183
|
-
onClick: () => it("dev"),
|
|
7184
|
-
title: "研发",
|
|
7185
|
-
children: [
|
|
7186
|
-
/* @__PURE__ */ e(Ws, {}),
|
|
7187
|
-
/* @__PURE__ */ e("span", { className: A.modeToggleLabel, children: "研发" })
|
|
7174
|
+
/* @__PURE__ */ e("span", { className: E.modeToggleLabel, children: "产研" })
|
|
7188
7175
|
]
|
|
7189
7176
|
}
|
|
7190
7177
|
),
|
|
7191
|
-
|
|
7178
|
+
lt(p, "ops") && /* @__PURE__ */ s(
|
|
7192
7179
|
"button",
|
|
7193
7180
|
{
|
|
7194
7181
|
type: "button",
|
|
7195
|
-
className: `${
|
|
7196
|
-
onClick: () =>
|
|
7197
|
-
title: "测试",
|
|
7198
|
-
children: [
|
|
7199
|
-
/* @__PURE__ */ e(Us, {}),
|
|
7200
|
-
/* @__PURE__ */ e("span", { className: A.modeToggleLabel, children: "测试" })
|
|
7201
|
-
]
|
|
7202
|
-
}
|
|
7203
|
-
),
|
|
7204
|
-
dt(p, "ops") && /* @__PURE__ */ s(
|
|
7205
|
-
"button",
|
|
7206
|
-
{
|
|
7207
|
-
type: "button",
|
|
7208
|
-
className: `${A.modeToggleBtn} ${Ee === "ops" ? A.modeToggleBtnActive : ""}`,
|
|
7209
|
-
onClick: () => it("ops"),
|
|
7182
|
+
className: `${E.modeToggleBtn} ${Ee === "ops" ? E.modeToggleBtnActive : ""}`,
|
|
7183
|
+
onClick: () => ut("ops"),
|
|
7210
7184
|
title: "运维",
|
|
7211
7185
|
children: [
|
|
7212
|
-
/* @__PURE__ */ e(
|
|
7213
|
-
/* @__PURE__ */ e("span", { className:
|
|
7186
|
+
/* @__PURE__ */ e(Ws, {}),
|
|
7187
|
+
/* @__PURE__ */ e("span", { className: E.modeToggleLabel, children: "运维" })
|
|
7214
7188
|
]
|
|
7215
7189
|
}
|
|
7216
7190
|
),
|
|
7217
|
-
|
|
7191
|
+
lt(p, "system") && /* @__PURE__ */ s(
|
|
7218
7192
|
"button",
|
|
7219
7193
|
{
|
|
7220
7194
|
type: "button",
|
|
7221
|
-
className: `${
|
|
7222
|
-
onClick: () =>
|
|
7195
|
+
className: `${E.modeToggleBtn} ${Ee === "system" ? E.modeToggleBtnActive : ""}`,
|
|
7196
|
+
onClick: () => ut("system"),
|
|
7223
7197
|
title: "系统",
|
|
7224
7198
|
children: [
|
|
7225
|
-
/* @__PURE__ */ e(
|
|
7226
|
-
/* @__PURE__ */ e("span", { className:
|
|
7199
|
+
/* @__PURE__ */ e(Us, {}),
|
|
7200
|
+
/* @__PURE__ */ e("span", { className: E.modeToggleLabel, children: "系统" })
|
|
7227
7201
|
]
|
|
7228
7202
|
}
|
|
7229
7203
|
),
|
|
7230
|
-
/* @__PURE__ */ e("div", { className:
|
|
7204
|
+
/* @__PURE__ */ e("div", { className: E.iconGroup, children: /* @__PURE__ */ e(Fu, {}) }),
|
|
7231
7205
|
p && /* @__PURE__ */ s(Je, { children: [
|
|
7232
|
-
/* @__PURE__ */ e(
|
|
7206
|
+
/* @__PURE__ */ e(tm, {}),
|
|
7233
7207
|
/* @__PURE__ */ e(
|
|
7234
7208
|
cs,
|
|
7235
7209
|
{
|
|
7236
7210
|
menu: { items: Ct },
|
|
7237
7211
|
placement: "bottomRight",
|
|
7238
7212
|
trigger: ["click"],
|
|
7239
|
-
children: /* @__PURE__ */ s("div", { className:
|
|
7213
|
+
children: /* @__PURE__ */ s("div", { className: E.headerUser, children: [
|
|
7240
7214
|
/* @__PURE__ */ e(
|
|
7241
7215
|
ls,
|
|
7242
7216
|
{
|
|
7243
7217
|
size: 28,
|
|
7244
7218
|
src: On,
|
|
7245
|
-
icon: /* @__PURE__ */ e(
|
|
7219
|
+
icon: /* @__PURE__ */ e(zs, {}),
|
|
7246
7220
|
style: {
|
|
7247
7221
|
backgroundColor: "#2F70F1",
|
|
7248
7222
|
flexShrink: 0
|
|
7249
7223
|
}
|
|
7250
7224
|
}
|
|
7251
7225
|
),
|
|
7252
|
-
/* @__PURE__ */ e("span", { className:
|
|
7226
|
+
/* @__PURE__ */ e("span", { className: E.headerUsername, children: p.display_name })
|
|
7253
7227
|
] })
|
|
7254
7228
|
}
|
|
7255
7229
|
)
|
|
7256
7230
|
] })
|
|
7257
7231
|
] })
|
|
7258
7232
|
] }),
|
|
7259
|
-
O ? /* @__PURE__ */ e("div", { className:
|
|
7233
|
+
O ? /* @__PURE__ */ e("div", { className: E.smartWorkbenchArea, children: /* @__PURE__ */ e(dn, { fallback: null, children: /* @__PURE__ */ e(jn, { children: /* @__PURE__ */ e(Jm, { docked: !0, open: !0, onClose: w, token: U }) }) }) }) : /* @__PURE__ */ e(dn, { fallback: /* @__PURE__ */ e("div", { style: { padding: 24, color: "rgba(0,0,0,0.45)" }, children: "加载中…" }), children: Ee === "smart" ? (
|
|
7260
7234
|
/* ── 智能模式 ── */
|
|
7261
|
-
/* @__PURE__ */ e("div", { className:
|
|
7235
|
+
/* @__PURE__ */ e("div", { className: E.smartWorkbenchArea, children: /* @__PURE__ */ e(Ym, {}) })
|
|
7262
7236
|
) : Ee === "knowledge" ? (
|
|
7263
7237
|
/* ── 业务认知(z-cognition 前端系统嵌入)──
|
|
7264
7238
|
* 2026-11-08:由 KnowledgeGraphTab(因果链图数据库直查)换成
|
|
7265
7239
|
* CognitionWorkbench —— 左菜单(术语/概念/消歧/影响面/说明)+ 右渲染
|
|
7266
7240
|
* z-cognition 组件包页面。URL 落 /cognition/*(见该组件文件头注释)。
|
|
7267
7241
|
*/
|
|
7268
|
-
/* @__PURE__ */ e("div", { className:
|
|
7242
|
+
/* @__PURE__ */ e("div", { className: E.smartWorkbenchArea, children: /* @__PURE__ */ e(Zm, {}) })
|
|
7269
7243
|
) : Ee === "life" ? (
|
|
7270
7244
|
/* ── 勇敢爱生活(社区 + 学习中心 + 市场资源)──
|
|
7271
7245
|
* 2026-10-22:原顶栏「市场」入口已撤,市场资源分类进了这里的二级导航。 */
|
|
7272
|
-
/* @__PURE__ */ e(
|
|
7246
|
+
/* @__PURE__ */ e(Qm, {})
|
|
7273
7247
|
) : Ee === "ops" ? (
|
|
7274
7248
|
/* ── 运维模式:真运维面(DevOps / 基础设施 / 资源管理),见文件头 OpsWorkbench 的注释 ── */
|
|
7275
|
-
/* @__PURE__ */ e("div", { className:
|
|
7249
|
+
/* @__PURE__ */ e("div", { className: E.smartWorkbenchArea, children: /* @__PURE__ */ e(Xm, {}) })
|
|
7276
7250
|
) : Ee === "admin" ? (
|
|
7277
7251
|
/* ── 运营模式(团队后台管理):embedded 隐藏内层 Z-OPC 顶栏,导航由外层 tab 栏提供,避免双层顶栏 ── */
|
|
7278
7252
|
/* @__PURE__ */ e(
|
|
7279
|
-
|
|
7253
|
+
ep,
|
|
7280
7254
|
{
|
|
7281
7255
|
embedded: !0,
|
|
7282
|
-
onSwitchToCollaboration: () =>
|
|
7256
|
+
onSwitchToCollaboration: () => ct("collaboration")
|
|
7283
7257
|
}
|
|
7284
7258
|
)
|
|
7285
7259
|
) : Ee === "system" ? (
|
|
@@ -7289,25 +7263,25 @@ function ip({
|
|
|
7289
7263
|
* 寄宿在 z-team 工作台内部, 不再跳回 z-opc 旧 Layout (顶部 Z-One Company
|
|
7290
7264
|
* + 左侧完整菜单).
|
|
7291
7265
|
*/
|
|
7292
|
-
/* @__PURE__ */ e("div", { className:
|
|
7266
|
+
/* @__PURE__ */ e("div", { className: E.smartWorkbenchArea, children: /* @__PURE__ */ e(Ja, {}) })
|
|
7293
7267
|
) : Ee === "product" ? (
|
|
7294
7268
|
/* ── 产品工作台 v2:左(产品树/文件树)中(渲染)右(群聊) ── */
|
|
7295
|
-
/* @__PURE__ */ e("div", { className:
|
|
7269
|
+
/* @__PURE__ */ e("div", { className: E.smartWorkbenchArea, children: /* @__PURE__ */ e(dn, { fallback: null, children: /* @__PURE__ */ e(jn, { children: /* @__PURE__ */ e(ap, {}) }) }) })
|
|
7296
7270
|
) : Ee === "dev" ? (
|
|
7297
7271
|
/* ── 研发模式:z-lc 低代码平台 ──
|
|
7298
7272
|
* 左侧 DevWorkbench 出 z-lc 的 4 组 11 项菜单, 右侧 LcApp 渲染
|
|
7299
7273
|
* /lc/* 下的页面。z-lc 前端源码已并入本仓 src/lc/。
|
|
7300
7274
|
*/
|
|
7301
|
-
/* @__PURE__ */ e("div", { className:
|
|
7275
|
+
/* @__PURE__ */ e("div", { className: E.smartWorkbenchArea, children: /* @__PURE__ */ e(tp, {}) })
|
|
7302
7276
|
) : Ee === "test" ? (
|
|
7303
7277
|
/* ── 测试模式 (FEATURE061) ──
|
|
7304
7278
|
* 复用 SystemShell 体系: 左侧 SystemWorkbench 菜单 + 右侧 pathname 匹配渲染
|
|
7305
7279
|
* z-qa / MockPlatform / Agent 评测等测试组件.
|
|
7306
7280
|
*/
|
|
7307
|
-
/* @__PURE__ */ e("div", { className:
|
|
7281
|
+
/* @__PURE__ */ e("div", { className: E.smartWorkbenchArea, children: /* @__PURE__ */ e(Ja, {}) })
|
|
7308
7282
|
) : Ee === "training" ? (
|
|
7309
7283
|
/* ── 培训管理 ── */
|
|
7310
|
-
/* @__PURE__ */ e("div", { className:
|
|
7284
|
+
/* @__PURE__ */ e("div", { className: E.smartWorkbenchArea, children: /* @__PURE__ */ e(np, {}) })
|
|
7311
7285
|
) : Ee === "personal" ? (
|
|
7312
7286
|
/* ── 个人模式:workbuddy 壳(MiniMax Code 式布局) ──
|
|
7313
7287
|
* 点「个人」直接落到 workbuddy 首页:左侧项目树 + 中间大输入框。
|
|
@@ -7320,10 +7294,10 @@ function ip({
|
|
|
7320
7294
|
* 包一层后最多是「这个壳显示渲染异常 + 重试」,其余模式仍可切。
|
|
7321
7295
|
*/
|
|
7322
7296
|
/* @__PURE__ */ e(dn, { fallback: null, children: /* @__PURE__ */ e(jn, { children: /* @__PURE__ */ e(
|
|
7323
|
-
|
|
7297
|
+
qm,
|
|
7324
7298
|
{
|
|
7325
7299
|
onOpenProject: mt,
|
|
7326
|
-
onSwitchMode: (N) =>
|
|
7300
|
+
onSwitchMode: (N) => ut(N),
|
|
7327
7301
|
openAgentRequest: {
|
|
7328
7302
|
agent: _e,
|
|
7329
7303
|
view: ue,
|
|
@@ -7334,12 +7308,12 @@ function ip({
|
|
|
7334
7308
|
) }) })
|
|
7335
7309
|
) : (
|
|
7336
7310
|
/* ── 协作模式 ── */
|
|
7337
|
-
/* @__PURE__ */ s("div", { className:
|
|
7311
|
+
/* @__PURE__ */ s("div", { className: E.mainArea, ref: I, children: [
|
|
7338
7312
|
ae ? /* @__PURE__ */ e(
|
|
7339
7313
|
"button",
|
|
7340
7314
|
{
|
|
7341
7315
|
type: "button",
|
|
7342
|
-
className:
|
|
7316
|
+
className: E.sidebarExpandFab,
|
|
7343
7317
|
onClick: () => At(!1),
|
|
7344
7318
|
title: "展开工作区",
|
|
7345
7319
|
"aria-label": "展开工作区",
|
|
@@ -7349,11 +7323,11 @@ function ip({
|
|
|
7349
7323
|
"div",
|
|
7350
7324
|
{
|
|
7351
7325
|
ref: X.ref,
|
|
7352
|
-
className:
|
|
7326
|
+
className: E.sidebar,
|
|
7353
7327
|
style: { width: X.width, minWidth: X.width },
|
|
7354
7328
|
children: [
|
|
7355
7329
|
/* @__PURE__ */ e(
|
|
7356
|
-
|
|
7330
|
+
Wm,
|
|
7357
7331
|
{
|
|
7358
7332
|
onOpenTeam: a,
|
|
7359
7333
|
onOpenPersonalSession: ie,
|
|
@@ -7386,7 +7360,7 @@ function ip({
|
|
|
7386
7360
|
/* @__PURE__ */ e(
|
|
7387
7361
|
"div",
|
|
7388
7362
|
{
|
|
7389
|
-
className:
|
|
7363
|
+
className: E.sidebarResizeHandle,
|
|
7390
7364
|
onMouseDown: X.onMouseDown
|
|
7391
7365
|
}
|
|
7392
7366
|
),
|
|
@@ -7394,7 +7368,7 @@ function ip({
|
|
|
7394
7368
|
"button",
|
|
7395
7369
|
{
|
|
7396
7370
|
type: "button",
|
|
7397
|
-
className:
|
|
7371
|
+
className: E.sidebarCollapseFab,
|
|
7398
7372
|
onClick: () => At(!0),
|
|
7399
7373
|
title: "收起工作区",
|
|
7400
7374
|
"aria-label": "收起工作区",
|
|
@@ -7404,14 +7378,14 @@ function ip({
|
|
|
7404
7378
|
]
|
|
7405
7379
|
}
|
|
7406
7380
|
),
|
|
7407
|
-
/* @__PURE__ */ e("div", { className:
|
|
7408
|
-
|
|
7381
|
+
/* @__PURE__ */ e("div", { className: E.centerPanel, children: r ? /* @__PURE__ */ e(
|
|
7382
|
+
fu,
|
|
7409
7383
|
{
|
|
7410
7384
|
onCreated: m,
|
|
7411
7385
|
presetScenarioCode: d
|
|
7412
7386
|
}
|
|
7413
7387
|
) : Mt === "personal" ? Qe ? /* @__PURE__ */ e("div", { style: { flex: 1, minHeight: 0 }, children: /* @__PURE__ */ e(dn, { fallback: /* @__PURE__ */ e("div", { style: { padding: 24, color: "rgba(0,0,0,0.45)" }, children: "加载中…" }), children: /* @__PURE__ */ e(
|
|
7414
|
-
|
|
7388
|
+
Vm,
|
|
7415
7389
|
{
|
|
7416
7390
|
view: Qe,
|
|
7417
7391
|
agents: fe,
|
|
@@ -7459,15 +7433,15 @@ function ip({
|
|
|
7459
7433
|
/* @__PURE__ */ e(
|
|
7460
7434
|
"div",
|
|
7461
7435
|
{
|
|
7462
|
-
className: `${
|
|
7463
|
-
children: /* @__PURE__ */ e(
|
|
7436
|
+
className: `${E.todoPanel} ${G ? "" : E.todoPanelHidden}`,
|
|
7437
|
+
children: /* @__PURE__ */ e(Fc, { onCountChange: F })
|
|
7464
7438
|
}
|
|
7465
7439
|
)
|
|
7466
7440
|
] })
|
|
7467
7441
|
) }),
|
|
7468
|
-
/* @__PURE__ */ e(
|
|
7469
|
-
/* @__PURE__ */ e(
|
|
7470
|
-
/* @__PURE__ */ e(
|
|
7442
|
+
/* @__PURE__ */ e(_d, {}),
|
|
7443
|
+
/* @__PURE__ */ e(cm, {}),
|
|
7444
|
+
/* @__PURE__ */ e(Jc, {}),
|
|
7471
7445
|
/* @__PURE__ */ e(
|
|
7472
7446
|
to,
|
|
7473
7447
|
{
|
|
@@ -7489,18 +7463,18 @@ function ip({
|
|
|
7489
7463
|
closable: !1,
|
|
7490
7464
|
width: 720,
|
|
7491
7465
|
styles: { body: { padding: 0 } },
|
|
7492
|
-
wrapClassName:
|
|
7466
|
+
wrapClassName: E.announcementModalWrap,
|
|
7493
7467
|
children: [
|
|
7494
|
-
/* @__PURE__ */ s("div", { className:
|
|
7495
|
-
/* @__PURE__ */ s("span", { className:
|
|
7496
|
-
/* @__PURE__ */ e(
|
|
7468
|
+
/* @__PURE__ */ s("div", { className: E.announcementModalHeader, children: [
|
|
7469
|
+
/* @__PURE__ */ s("span", { className: E.announcementModalTitle, children: [
|
|
7470
|
+
/* @__PURE__ */ e(Gs, { className: E.announcementModalIcon }),
|
|
7497
7471
|
"公告中心"
|
|
7498
7472
|
] }),
|
|
7499
7473
|
/* @__PURE__ */ e(
|
|
7500
7474
|
"button",
|
|
7501
7475
|
{
|
|
7502
7476
|
type: "button",
|
|
7503
|
-
className:
|
|
7477
|
+
className: E.announcementModalClose,
|
|
7504
7478
|
onClick: () => q(!1),
|
|
7505
7479
|
title: "关闭",
|
|
7506
7480
|
"aria-label": "关闭",
|
|
@@ -7508,13 +7482,13 @@ function ip({
|
|
|
7508
7482
|
}
|
|
7509
7483
|
)
|
|
7510
7484
|
] }),
|
|
7511
|
-
/* @__PURE__ */ s("div", { className:
|
|
7512
|
-
/* @__PURE__ */ e("div", { className:
|
|
7485
|
+
/* @__PURE__ */ s("div", { className: E.announcementModalBody, children: [
|
|
7486
|
+
/* @__PURE__ */ e("div", { className: E.announcementList, children: y.map((N, Q) => {
|
|
7513
7487
|
const de = N.title || N.content;
|
|
7514
7488
|
return /* @__PURE__ */ e(
|
|
7515
7489
|
"div",
|
|
7516
7490
|
{
|
|
7517
|
-
className: `${
|
|
7491
|
+
className: `${E.announcementListItem} ${Q === _n ? E.announcementListItemActive : ""}`,
|
|
7518
7492
|
title: de,
|
|
7519
7493
|
onClick: () => k(Q),
|
|
7520
7494
|
children: de
|
|
@@ -7522,11 +7496,11 @@ function ip({
|
|
|
7522
7496
|
N.id ?? `${de}-${Q}`
|
|
7523
7497
|
);
|
|
7524
7498
|
}) }),
|
|
7525
|
-
/* @__PURE__ */ e("div", { className:
|
|
7526
|
-
/* @__PURE__ */ e("div", { className:
|
|
7527
|
-
/* @__PURE__ */ e("div", { className:
|
|
7528
|
-
Et.length > 0 && /* @__PURE__ */ e("div", { className:
|
|
7529
|
-
] }) : /* @__PURE__ */ e("div", { className:
|
|
7499
|
+
/* @__PURE__ */ e("div", { className: E.announcementDetail, children: xt ? /* @__PURE__ */ s(Je, { children: [
|
|
7500
|
+
/* @__PURE__ */ e("div", { className: E.announcementDetailTitle, children: xt.title || "公告详情" }),
|
|
7501
|
+
/* @__PURE__ */ e("div", { className: E.announcementDetailContent, children: xt.content || "暂无公告内容" }),
|
|
7502
|
+
Et.length > 0 && /* @__PURE__ */ e("div", { className: E.announcementDetailMeta, children: Et.map((N) => /* @__PURE__ */ e("span", { children: N }, N)) })
|
|
7503
|
+
] }) : /* @__PURE__ */ e("div", { className: E.announcementDetailEmpty, children: "暂无生效公告" }) })
|
|
7530
7504
|
] })
|
|
7531
7505
|
]
|
|
7532
7506
|
}
|
|
@@ -7542,28 +7516,28 @@ function ip({
|
|
|
7542
7516
|
keyboard: !1,
|
|
7543
7517
|
width: 480,
|
|
7544
7518
|
styles: { body: { padding: 0 } },
|
|
7545
|
-
wrapClassName:
|
|
7519
|
+
wrapClassName: E.popupNoticeModalWrap,
|
|
7546
7520
|
children: [
|
|
7547
|
-
/* @__PURE__ */ s("div", { className:
|
|
7548
|
-
/* @__PURE__ */ s("span", { className:
|
|
7549
|
-
/* @__PURE__ */ e("span", { className:
|
|
7521
|
+
/* @__PURE__ */ s("div", { className: E.popupNoticeHeader, children: [
|
|
7522
|
+
/* @__PURE__ */ s("span", { className: E.popupNoticeHeaderTitle, children: [
|
|
7523
|
+
/* @__PURE__ */ e("span", { className: E.popupNoticeHeaderIcon, children: "📢" }),
|
|
7550
7524
|
"重要公告"
|
|
7551
7525
|
] }),
|
|
7552
|
-
L.length > 1 && /* @__PURE__ */ s("span", { className:
|
|
7526
|
+
L.length > 1 && /* @__PURE__ */ s("span", { className: E.popupNoticeCounter, children: [
|
|
7553
7527
|
_ + 1,
|
|
7554
7528
|
" / ",
|
|
7555
7529
|
L.length
|
|
7556
7530
|
] })
|
|
7557
7531
|
] }),
|
|
7558
|
-
/* @__PURE__ */ s("div", { className:
|
|
7559
|
-
/* @__PURE__ */ e("div", { className:
|
|
7560
|
-
/* @__PURE__ */ e("div", { className:
|
|
7532
|
+
/* @__PURE__ */ s("div", { className: E.popupNoticeBody, children: [
|
|
7533
|
+
/* @__PURE__ */ e("div", { className: E.popupNoticeTitle, children: (Pt == null ? void 0 : Pt.title) || "公告详情" }),
|
|
7534
|
+
/* @__PURE__ */ e("div", { className: E.popupNoticeContent, children: (Pt == null ? void 0 : Pt.content) || "暂无公告内容" })
|
|
7561
7535
|
] }),
|
|
7562
|
-
/* @__PURE__ */ e("div", { className:
|
|
7536
|
+
/* @__PURE__ */ e("div", { className: E.popupNoticeFooter, children: /* @__PURE__ */ e(
|
|
7563
7537
|
"button",
|
|
7564
7538
|
{
|
|
7565
7539
|
type: "button",
|
|
7566
|
-
className: `${
|
|
7540
|
+
className: `${E.popupNoticeBtn} ${cn ? E.popupNoticeBtnConfirm : ""}`,
|
|
7567
7541
|
onClick: ln,
|
|
7568
7542
|
children: cn ? "✓ 我已阅读" : "下一条 →"
|
|
7569
7543
|
}
|
|
@@ -7573,25 +7547,25 @@ function ip({
|
|
|
7573
7547
|
)
|
|
7574
7548
|
] });
|
|
7575
7549
|
}
|
|
7576
|
-
const
|
|
7577
|
-
selectList:
|
|
7578
|
-
selectItem:
|
|
7579
|
-
selectItemInfo:
|
|
7580
|
-
selectItemName:
|
|
7581
|
-
selectItemDesc:
|
|
7582
|
-
selectedBadge:
|
|
7583
|
-
divider:
|
|
7584
|
-
memberList:
|
|
7585
|
-
memberRow:
|
|
7586
|
-
memberRowLeft:
|
|
7587
|
-
removeBtn:
|
|
7588
|
-
searchInput:
|
|
7589
|
-
spinBody:
|
|
7550
|
+
const rp = "_selectList_13hpp_1", ip = "_selectItem_13hpp_14", cp = "_selectItemInfo_13hpp_32", lp = "_selectItemName_13hpp_38", dp = "_selectItemDesc_13hpp_45", up = "_selectedBadge_13hpp_54", mp = "_divider_13hpp_62", pp = "_memberList_13hpp_68", hp = "_memberRow_13hpp_72", fp = "_memberRowLeft_13hpp_80", gp = "_removeBtn_13hpp_86", yp = "_searchInput_13hpp_98", _p = "_spinBody_13hpp_119", De = {
|
|
7551
|
+
selectList: rp,
|
|
7552
|
+
selectItem: ip,
|
|
7553
|
+
selectItemInfo: cp,
|
|
7554
|
+
selectItemName: lp,
|
|
7555
|
+
selectItemDesc: dp,
|
|
7556
|
+
selectedBadge: up,
|
|
7557
|
+
divider: mp,
|
|
7558
|
+
memberList: pp,
|
|
7559
|
+
memberRow: hp,
|
|
7560
|
+
memberRowLeft: fp,
|
|
7561
|
+
removeBtn: gp,
|
|
7562
|
+
searchInput: yp,
|
|
7563
|
+
spinBody: _p
|
|
7590
7564
|
}, Za = (t) => {
|
|
7591
7565
|
var a;
|
|
7592
7566
|
return (t.agent_code || ((a = t._agenthub_raw) == null ? void 0 : a.agentCode) || "").trim();
|
|
7593
7567
|
}, Yt = (t, a) => `${t}:${a}`;
|
|
7594
|
-
function
|
|
7568
|
+
function kp({ onClose: t }) {
|
|
7595
7569
|
const {
|
|
7596
7570
|
members: a,
|
|
7597
7571
|
availableAgents: o,
|
|
@@ -7938,12 +7912,12 @@ function wp({ onClose: t }) {
|
|
|
7938
7912
|
}
|
|
7939
7913
|
);
|
|
7940
7914
|
}
|
|
7941
|
-
const
|
|
7942
|
-
teamWorkspaceRoot:
|
|
7943
|
-
loadingWrap:
|
|
7944
|
-
openingOverlay:
|
|
7945
|
-
},
|
|
7946
|
-
function
|
|
7915
|
+
const vp = "_teamWorkspaceRoot_1ydrp_1", wp = "_loadingWrap_1ydrp_7", bp = "_openingOverlay_1ydrp_13", mn = {
|
|
7916
|
+
teamWorkspaceRoot: vp,
|
|
7917
|
+
loadingWrap: wp,
|
|
7918
|
+
openingOverlay: bp
|
|
7919
|
+
}, Np = 2e4, Sp = 8e3;
|
|
7920
|
+
function Cp(t, a) {
|
|
7947
7921
|
return new Promise((o, r) => {
|
|
7948
7922
|
const d = window.setTimeout(
|
|
7949
7923
|
() => r(
|
|
@@ -7974,10 +7948,10 @@ async function Kn(t, a) {
|
|
|
7974
7948
|
W.getState().setPermissionState("ok");
|
|
7975
7949
|
a(o);
|
|
7976
7950
|
}
|
|
7977
|
-
function
|
|
7951
|
+
function Ip({
|
|
7978
7952
|
forcedChatMode: t
|
|
7979
7953
|
} = {}) {
|
|
7980
|
-
const a = ms(), o = ps(), d = !["system", "ops", "middleware", "knowledge", "dev"].includes(t ?? "") &&
|
|
7954
|
+
const a = ms(), o = ps(), d = !["system", "ops", "middleware", "knowledge", "dev"].includes(t ?? "") && Qs() && !Xs(a.search);
|
|
7981
7955
|
H(() => {
|
|
7982
7956
|
d && nt.replace({
|
|
7983
7957
|
pathname: "/workspace/phone",
|
|
@@ -7996,7 +7970,7 @@ function $p({
|
|
|
7996
7970
|
}))
|
|
7997
7971
|
), U = W((_) => _.loadProjects), O = W((_) => _.loadRunningExecutions), w = W((_) => _.updateCurrentUser), I = W((_) => _.selectFile), X = W((_) => _.clearCurrentProject), [ae, T] = g(!1), [G, R] = g(!1), [Y, F] = g(null), K = le(!1), f = le(!1);
|
|
7998
7972
|
H(() => {
|
|
7999
|
-
|
|
7973
|
+
Ac(P);
|
|
8000
7974
|
}, [P]), H(() => {
|
|
8001
7975
|
const _ = zt.parse(a.search), S = String(_.newChat ?? "").trim();
|
|
8002
7976
|
if (!S) return;
|
|
@@ -8035,7 +8009,7 @@ function $p({
|
|
|
8035
8009
|
let S = !1, D = 0;
|
|
8036
8010
|
const ye = 100;
|
|
8037
8011
|
let he = !1, se = 0;
|
|
8038
|
-
const be = 3,
|
|
8012
|
+
const be = 3, x = (V) => {
|
|
8039
8013
|
const J = W.getState().token;
|
|
8040
8014
|
if (Z.current != null) {
|
|
8041
8015
|
S || (w(_a(V)), M(!0)), Kn(J, (ke) => {
|
|
@@ -8045,11 +8019,11 @@ function $p({
|
|
|
8045
8019
|
});
|
|
8046
8020
|
return;
|
|
8047
8021
|
}
|
|
8048
|
-
|
|
8022
|
+
Cp(
|
|
8049
8023
|
Kn(J, (ke) => {
|
|
8050
8024
|
S || w(ke);
|
|
8051
8025
|
}),
|
|
8052
|
-
|
|
8026
|
+
Sp
|
|
8053
8027
|
).catch((ke) => {
|
|
8054
8028
|
S || (!(ke && ke.timedOut) && J && (localStorage.removeItem("z_team_token"), W.setState({ token: "" })), w(_a(V)));
|
|
8055
8029
|
}).finally(() => {
|
|
@@ -8072,7 +8046,7 @@ function $p({
|
|
|
8072
8046
|
}
|
|
8073
8047
|
}
|
|
8074
8048
|
if (J && ya(J)) {
|
|
8075
|
-
|
|
8049
|
+
x(J);
|
|
8076
8050
|
return;
|
|
8077
8051
|
}
|
|
8078
8052
|
if (se >= be) {
|
|
@@ -8098,7 +8072,7 @@ function $p({
|
|
|
8098
8072
|
}
|
|
8099
8073
|
const _ = window.setTimeout(() => {
|
|
8100
8074
|
i(!0);
|
|
8101
|
-
},
|
|
8075
|
+
}, Np);
|
|
8102
8076
|
return () => {
|
|
8103
8077
|
window.clearTimeout(_);
|
|
8104
8078
|
};
|
|
@@ -8139,8 +8113,8 @@ function $p({
|
|
|
8139
8113
|
j.current = !0;
|
|
8140
8114
|
return;
|
|
8141
8115
|
}
|
|
8142
|
-
const
|
|
8143
|
-
if (
|
|
8116
|
+
const x = W.getState();
|
|
8117
|
+
if (x.currentProject && String(x.currentProject.id) === String(_)) {
|
|
8144
8118
|
j.current = !0;
|
|
8145
8119
|
return;
|
|
8146
8120
|
}
|
|
@@ -8185,32 +8159,32 @@ function $p({
|
|
|
8185
8159
|
try {
|
|
8186
8160
|
if (await ye(), D)
|
|
8187
8161
|
return;
|
|
8188
|
-
let { token:
|
|
8162
|
+
let { token: x, projects: y, expandProject: V } = W.getState(), J = y.find((_e) => _e.id === _);
|
|
8189
8163
|
if (!J) {
|
|
8190
|
-
const _e = await
|
|
8164
|
+
const _e = await Ys(_, x);
|
|
8191
8165
|
if (D)
|
|
8192
8166
|
return;
|
|
8193
8167
|
if (_e.status === "NOT_FOUND" || !_e.scenarioInstance) {
|
|
8194
8168
|
ba.info("无此工程");
|
|
8195
8169
|
return;
|
|
8196
8170
|
}
|
|
8197
|
-
if (J = await
|
|
8171
|
+
if (J = await Zs(_, x), D)
|
|
8198
8172
|
return;
|
|
8199
8173
|
}
|
|
8200
8174
|
await V(J), D || (k.current = _);
|
|
8201
8175
|
} catch {
|
|
8202
8176
|
} finally {
|
|
8203
8177
|
if (be(), q(null), Nt(L.current, _) && (L.current = null), !D && !Nt(k.current, _)) {
|
|
8204
|
-
const
|
|
8205
|
-
delete
|
|
8206
|
-
const y = zt.stringify(
|
|
8178
|
+
const x = zt.parse(nt.location.search);
|
|
8179
|
+
delete x.projectId, delete x.project_id;
|
|
8180
|
+
const y = zt.stringify(x);
|
|
8207
8181
|
nt.replace({
|
|
8208
8182
|
pathname: nt.location.pathname,
|
|
8209
8183
|
search: y ? `?${y}` : ""
|
|
8210
8184
|
});
|
|
8211
8185
|
}
|
|
8212
8186
|
(() => {
|
|
8213
|
-
const
|
|
8187
|
+
const x = localStorage.getItem("ft_sidebar_time_filter") || "all", y = x === "1d" ? 1 : x === "3d" ? 3 : x === "7d" ? 7 : 0;
|
|
8214
8188
|
if (y > 0) {
|
|
8215
8189
|
const V = new Date(Date.now() - y * 864e5), J = `${V.getFullYear()}-${String(
|
|
8216
8190
|
V.getMonth() + 1
|
|
@@ -8241,8 +8215,8 @@ function $p({
|
|
|
8241
8215
|
be.loadMessages().catch(() => {
|
|
8242
8216
|
}), be.loadRunningExecutions().catch(() => {
|
|
8243
8217
|
});
|
|
8244
|
-
const
|
|
8245
|
-
|
|
8218
|
+
const x = be.activeTaskChat;
|
|
8219
|
+
x != null && x.taskId && be.loadTaskMessages(x.taskId).catch(() => {
|
|
8246
8220
|
}), be.loadFileTree(void 0, !0).catch(() => {
|
|
8247
8221
|
});
|
|
8248
8222
|
}, S = Zo((be) => {
|
|
@@ -8289,7 +8263,7 @@ function $p({
|
|
|
8289
8263
|
] })
|
|
8290
8264
|
] }) : /* @__PURE__ */ e("div", { className: mn.loadingWrap, children: /* @__PURE__ */ e(St, { description: "正在接入 4A 统一登录…" }) }) : /* @__PURE__ */ e(_s, { children: /* @__PURE__ */ s("div", { className: `${mn.teamWorkspaceRoot} team-workspace-root`, children: [
|
|
8291
8265
|
/* @__PURE__ */ e(
|
|
8292
|
-
|
|
8266
|
+
sp,
|
|
8293
8267
|
{
|
|
8294
8268
|
onNewProject: () => {
|
|
8295
8269
|
W.getState().currentProject && X();
|
|
@@ -8303,109 +8277,109 @@ function $p({
|
|
|
8303
8277
|
}
|
|
8304
8278
|
),
|
|
8305
8279
|
C != null ? /* @__PURE__ */ e("div", { className: mn.openingOverlay, children: /* @__PURE__ */ e(St, { description: `正在打开工程 ${C}…` }) }) : null,
|
|
8306
|
-
ae && /* @__PURE__ */ e(
|
|
8280
|
+
ae && /* @__PURE__ */ e(kp, { onClose: () => T(!1) }),
|
|
8307
8281
|
/* @__PURE__ */ e(ts, {})
|
|
8308
8282
|
] }) });
|
|
8309
8283
|
}
|
|
8310
|
-
const
|
|
8284
|
+
const Zh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8311
8285
|
__proto__: null,
|
|
8312
|
-
default:
|
|
8286
|
+
default: Ip
|
|
8313
8287
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
8314
8288
|
export {
|
|
8315
|
-
|
|
8316
|
-
|
|
8317
|
-
|
|
8318
|
-
|
|
8319
|
-
|
|
8289
|
+
ih as $,
|
|
8290
|
+
Ph as A,
|
|
8291
|
+
Lh as B,
|
|
8292
|
+
hr as C,
|
|
8293
|
+
Eh as D,
|
|
8320
8294
|
mo as E,
|
|
8321
8295
|
Zn as F,
|
|
8322
|
-
|
|
8323
|
-
|
|
8324
|
-
|
|
8325
|
-
|
|
8326
|
-
|
|
8327
|
-
|
|
8328
|
-
|
|
8329
|
-
|
|
8330
|
-
|
|
8331
|
-
|
|
8332
|
-
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8296
|
+
Bh as G,
|
|
8297
|
+
Mh as H,
|
|
8298
|
+
Hh as I,
|
|
8299
|
+
vh as J,
|
|
8300
|
+
Tr as K,
|
|
8301
|
+
Fh as L,
|
|
8302
|
+
Jp as M,
|
|
8303
|
+
ur as N,
|
|
8304
|
+
Zp as O,
|
|
8305
|
+
kc as P,
|
|
8306
|
+
br as Q,
|
|
8307
|
+
vr as R,
|
|
8308
|
+
Rm as S,
|
|
8309
|
+
Km as T,
|
|
8310
|
+
xh as U,
|
|
8311
|
+
Yp as V,
|
|
8312
|
+
Cc as W,
|
|
8313
|
+
Th as X,
|
|
8314
|
+
Vp as Y,
|
|
8315
|
+
Dh as Z,
|
|
8316
|
+
sh as _,
|
|
8343
8317
|
za as a,
|
|
8344
|
-
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8348
|
-
|
|
8349
|
-
|
|
8350
|
-
|
|
8351
|
-
|
|
8352
|
-
|
|
8353
|
-
|
|
8354
|
-
|
|
8355
|
-
|
|
8356
|
-
|
|
8357
|
-
|
|
8318
|
+
rh as a0,
|
|
8319
|
+
$h as a1,
|
|
8320
|
+
ir as a2,
|
|
8321
|
+
Qp as a3,
|
|
8322
|
+
Xp as a4,
|
|
8323
|
+
eh as a5,
|
|
8324
|
+
nh as a6,
|
|
8325
|
+
oh as a7,
|
|
8326
|
+
ah as a8,
|
|
8327
|
+
th as a9,
|
|
8328
|
+
bh as aA,
|
|
8329
|
+
wh as aB,
|
|
8330
|
+
_h as aC,
|
|
8331
|
+
kh as aD,
|
|
8358
8332
|
Ye as aE,
|
|
8359
|
-
|
|
8360
|
-
|
|
8361
|
-
|
|
8362
|
-
|
|
8363
|
-
|
|
8364
|
-
|
|
8365
|
-
|
|
8366
|
-
|
|
8367
|
-
|
|
8368
|
-
|
|
8369
|
-
|
|
8370
|
-
|
|
8371
|
-
|
|
8372
|
-
|
|
8373
|
-
|
|
8374
|
-
|
|
8375
|
-
|
|
8376
|
-
|
|
8377
|
-
|
|
8378
|
-
|
|
8379
|
-
|
|
8380
|
-
|
|
8381
|
-
|
|
8333
|
+
Zh as aF,
|
|
8334
|
+
dh as aa,
|
|
8335
|
+
ch as ab,
|
|
8336
|
+
uh as ac,
|
|
8337
|
+
fh as ad,
|
|
8338
|
+
lh as ae,
|
|
8339
|
+
gh as af,
|
|
8340
|
+
ph as ag,
|
|
8341
|
+
Uh as ah,
|
|
8342
|
+
gu as ai,
|
|
8343
|
+
Yh as aj,
|
|
8344
|
+
Vh as ak,
|
|
8345
|
+
zh as al,
|
|
8346
|
+
Gh as am,
|
|
8347
|
+
Kh as an,
|
|
8348
|
+
qh as ao,
|
|
8349
|
+
Jh as ap,
|
|
8350
|
+
yu as aq,
|
|
8351
|
+
_u as ar,
|
|
8352
|
+
Ch as as,
|
|
8353
|
+
Nh as at,
|
|
8354
|
+
Ih as au,
|
|
8355
|
+
Sh as av,
|
|
8382
8356
|
Tn as aw,
|
|
8383
|
-
|
|
8384
|
-
|
|
8385
|
-
|
|
8386
|
-
|
|
8387
|
-
|
|
8388
|
-
|
|
8357
|
+
yh as ax,
|
|
8358
|
+
$r as ay,
|
|
8359
|
+
pr as az,
|
|
8360
|
+
Ir as b,
|
|
8361
|
+
Nc as c,
|
|
8362
|
+
tr as d,
|
|
8389
8363
|
uo as e,
|
|
8390
8364
|
Ga as f,
|
|
8391
|
-
|
|
8392
|
-
|
|
8393
|
-
|
|
8365
|
+
jh as g,
|
|
8366
|
+
lt as h,
|
|
8367
|
+
lm as i,
|
|
8394
8368
|
lo as j,
|
|
8395
8369
|
Ma as k,
|
|
8396
|
-
|
|
8397
|
-
|
|
8398
|
-
|
|
8370
|
+
nr as l,
|
|
8371
|
+
mh as m,
|
|
8372
|
+
Ah as n,
|
|
8399
8373
|
ra as o,
|
|
8400
|
-
|
|
8401
|
-
|
|
8402
|
-
|
|
8374
|
+
Ic as p,
|
|
8375
|
+
er as q,
|
|
8376
|
+
hh as r,
|
|
8403
8377
|
B as s,
|
|
8404
|
-
|
|
8378
|
+
_r as t,
|
|
8405
8379
|
Jn as u,
|
|
8406
8380
|
Yn as v,
|
|
8407
|
-
|
|
8408
|
-
|
|
8409
|
-
|
|
8410
|
-
|
|
8381
|
+
Wh as w,
|
|
8382
|
+
Oh as x,
|
|
8383
|
+
Rh as y,
|
|
8384
|
+
Cr as z
|
|
8411
8385
|
};
|