@yuku123/z-team-component 0.2.115 → 0.2.117
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/{ChangeLogView-ets-YU_p.js → ChangeLogView-CqkWDtQB.js} +1 -1
- package/dist/{ComponentDoc-Bul3tVS0.js → ComponentDoc-CUZbyM00.js} +76 -76
- package/dist/{InvitationManagementPage-BHNsgONK.js → InvitationManagementPage-B5SYspmz.js} +1 -1
- package/dist/{OnboardingPage-De1kfdAD.js → OnboardingPage-DX8ibRCc.js} +2 -2
- package/dist/{ScheduledTasks-DmhnhrY6.js → ScheduledTasks-D138OQTB.js} +6 -6
- package/dist/{SystemShell-CJWriW1j.js → SystemShell-Dj1zO3Lq.js} +4 -4
- package/dist/{admin-logs-xM8D9mkq.js → admin-logs-Ck-CRslW.js} +1 -1
- package/dist/{api-C3rTmzXM.js → api-CebDeOMT.js} +1 -1
- package/dist/{api-TeByLzeZ.js → api-Kes33Ygp.js} +1 -1
- package/dist/{createWorkspaceWsHandler-C-PLYwzv.js → createWorkspaceWsHandler-BY6-Akio.js} +3 -3
- package/dist/{index-Ba4E-5J-.js → index--i2GJRsY.js} +3 -3
- package/dist/{index-Bmvmm__k.js → index-2lN-Rl1M.js} +1 -1
- package/dist/{index-BQ56YcGk.js → index-7BLiamsQ.js} +6 -6
- package/dist/{index-DOXq-Koz.js → index-898QE4rN.js} +2 -2
- package/dist/{index-B_WoFo2Z.js → index-9zY5SwTt.js} +2 -2
- package/dist/{index-Bxe-H2mz.js → index-B3pRyMCs.js} +4 -4
- package/dist/{index-BYKkp889.js → index-BJdLTG7d.js} +3 -3
- package/dist/{index-CeqAe1OU.js → index-BUmU1hQz.js} +3 -3
- package/dist/{index-WbRlN6kd.js → index-BdUeSRYz.js} +3 -3
- package/dist/{index-CzGY0mgh.js → index-BfvQtfad.js} +2 -2
- package/dist/{index-B7Bget_b.js → index-BkOqGHou.js} +2 -2
- package/dist/{index-m_OPyFaC.js → index-BsqIHqY6.js} +365 -352
- package/dist/{index-D-9amgkq.js → index-C1Jh7av2.js} +2 -2
- package/dist/{index-D1ihnJf6.js → index-C5v-QY-g.js} +3 -3
- package/dist/{index-QR5b57oy.js → index-CKZNKAX2.js} +1 -1
- package/dist/index-CX43f-gO.js +66 -0
- package/dist/{index-DGCp5aRw.js → index-CiqqwYc_.js} +6 -6
- package/dist/{index-BBcagQWW.js → index-CjKGX5WH.js} +2 -2
- package/dist/{index-iri2aiuv.js → index-CtXVZhUk.js} +1 -1
- package/dist/{index-D-hBjYcu.js → index-CyJm_WXi.js} +2 -2
- package/dist/{index-_hO4cSgH.js → index-DAXz73FW.js} +2 -2
- package/dist/{index-DLb30x1u.js → index-DIb-hDQV.js} +1 -1
- package/dist/{index-lGyYnsgh.js → index-DW0jqFnh.js} +1 -1
- package/dist/{index-DaM-iwXC.js → index-DqOu9BQz.js} +3 -3
- package/dist/{index-zs_rPvSU.js → index-Du9NadzD.js} +3 -3
- package/dist/{index-am7SQrxT.js → index-lH6EMUoT.js} +5 -5
- package/dist/index.js +1 -1
- package/dist/{instance-L5Nzl1Ap.js → instance-BhG4hLC6.js} +1 -1
- package/dist/{menuPermission-DXdko4yC.js → menuPermission-A0VWPO-L.js} +3 -3
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-6tpaMV7F.js → send-default-agent-team-message-BPXqU_ZO.js} +1 -1
- package/dist/{sso-user-D2hilDyx.js → sso-user-4DoJaBdW.js} +1 -1
- package/dist/{training-lAuyHLZB.js → training-BVPUlpci.js} +1 -1
- package/dist/{webide-DfQVzEwH.js → webide-DMr6hG3P.js} +3 -3
- package/dist/z-team-component.css +1 -1
- package/package.json +2 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o, Fragment as et } from "react/jsx-runtime";
|
|
2
|
-
import { a as
|
|
2
|
+
import { a as fe, f as Le, B as Me, v as Ye, b as Ct, aq as ia, ar as as, u as V, T as hn, as as os, at as ca, t as Xe, au as In, a6 as Re, av as ss, aw as rs, g as is, aa as cs, an as ko, c as ls, n as Wt, ax as ds, ay as us, az as ms, _ as la, a4 as ps, aA as qt, aB as hs, aC as fs, aj as gs, ak as _s, a8 as ys, e as bo, i as ks, Q as bs, U as vs, V as ws, W as Ns, Y as Cs, k as Ss, aD as Ts } from "./ComponentDoc-CUZbyM00.js";
|
|
3
3
|
import { s as Is, r as Ln, f as Ls } from "./ctc-sso-DtJHC-2M.js";
|
|
4
|
-
import { r as Ms, h as xa, s as Ea } from "./sso-user-
|
|
4
|
+
import { r as Ms, h as xa, s as Ea } from "./sso-user-4DoJaBdW.js";
|
|
5
5
|
import { Input as gn, Tooltip as _n, Spin as _t, Tabs as ha, Popconfirm as Zn, Button as At, Empty as Mn, Modal as yn, Form as un, Checkbox as $s, Tag as As, Select as xs, Popover as Pa, Dropdown as Es, Avatar as Ps, message as Oa } from "antd";
|
|
6
6
|
import fn from "query-string";
|
|
7
|
-
import { useState as d, useRef as ue, useCallback as J, useEffect as z, createElement as Os, useLayoutEffect as vo, useMemo as De, memo as Ds, Suspense as $n, lazy as
|
|
7
|
+
import { useState as d, useRef as ue, useCallback as J, useEffect as z, createElement as Os, useLayoutEffect as vo, useMemo as De, memo as Ds, Suspense as $n, lazy as yt } from "react";
|
|
8
8
|
import { useLocation as Rs, useNavigate as Fs } from "react-router-dom";
|
|
9
|
-
import { h as
|
|
10
|
-
import { z as Ne, A as Bs, B as wo, S as No, D as js, E as Da, F as Ra, G as Hs, H as Ws, u as fa, i as Co, v as Us, I as zs, J as Fa, K as Gs, L as Ks, M as qs, N as Vs, O as Js, a as Ys, P as Qs, Q as Zs, R as Xs, U as er, V as m, W as Bn, C as tr, c as nr, X as ar } from "./createWorkspaceWsHandler-
|
|
9
|
+
import { h as wt } from "./history-BlrA1eaW.js";
|
|
10
|
+
import { z as Ne, A as Bs, B as wo, S as No, D as js, E as Da, F as Ra, G as Hs, H as Ws, u as fa, i as Co, v as Us, I as zs, J as Fa, K as Gs, L as Ks, M as qs, N as Vs, O as Js, a as Ys, P as Qs, Q as Zs, R as Xs, U as er, V as m, W as Bn, C as tr, c as nr, X as ar } from "./createWorkspaceWsHandler-BY6-Akio.js";
|
|
11
11
|
import { BarChartOutlined as or, PieChartOutlined as sr, LinkOutlined as So, UnorderedListOutlined as rr, FileTextOutlined as ga, ReadOutlined as To, ConsoleSqlOutlined as ir, DashboardOutlined as cr, SearchOutlined as Rn, CloseOutlined as sn, ProfileOutlined as lr, CustomerServiceOutlined as Io, ThunderboltOutlined as Ba, MessageOutlined as dr, ReloadOutlined as ur, UndoOutlined as mr, DeleteOutlined as pr, FolderOpenOutlined as hr, BugOutlined as _a, SolutionOutlined as fr, BellOutlined as gr, CheckOutlined as _r, SettingOutlined as da, LaptopOutlined as yr, MenuFoldOutlined as kr, HeartOutlined as br, BookOutlined as vr, BulbOutlined as wr, TeamOutlined as Nr, ProductOutlined as Cr, CodeOutlined as Sr, CloudServerOutlined as Tr, DatabaseOutlined as Ir, AppstoreOutlined as Lr, UserOutlined as Mr, NotificationOutlined as $r, LogoutOutlined as Ar } from "@ant-design/icons";
|
|
12
|
-
import { h as jn, f as xr, E as ja } from "./index-
|
|
13
|
-
import { s as Lo } from "./admin-logs-
|
|
12
|
+
import { h as jn, f as xr, E as ja } from "./index-CtXVZhUk.js";
|
|
13
|
+
import { s as Lo } from "./admin-logs-Ck-CRslW.js";
|
|
14
14
|
import { createPortal as Mo } from "react-dom";
|
|
15
|
-
import { c as Er, l as Pr, j as Or } from "./instance-
|
|
15
|
+
import { c as Er, l as Pr, j as Or } from "./instance-BhG4hLC6.js";
|
|
16
16
|
import Ha from "react-markdown";
|
|
17
17
|
import Wa from "rehype-highlight";
|
|
18
18
|
import Ua from "remark-gfm";
|
|
@@ -23,21 +23,21 @@ import { s as Fr, i as Br } from "./mobile-client-O3yr9h6t.js";
|
|
|
23
23
|
async function F1(t = {}, n = "") {
|
|
24
24
|
const a = new URLSearchParams();
|
|
25
25
|
n && a.set("token", n), t.page && a.set("page", String(t.page)), t.size && a.set("size", String(t.size)), t.tag && a.set("tag", t.tag), t.sort && a.set("sort", t.sort);
|
|
26
|
-
const r = a.toString(), c = await
|
|
26
|
+
const r = a.toString(), c = await fe(
|
|
27
27
|
`${Me}/community/posts${r ? `?${r}` : ""}`,
|
|
28
28
|
Le
|
|
29
29
|
);
|
|
30
30
|
return Ye(c, "获取帖子列表失败");
|
|
31
31
|
}
|
|
32
32
|
async function B1(t, n = "") {
|
|
33
|
-
const a = n ? `?token=${encodeURIComponent(n)}` : "", r = await
|
|
33
|
+
const a = n ? `?token=${encodeURIComponent(n)}` : "", r = await fe(
|
|
34
34
|
`${Me}/community/posts/${t}${a}`,
|
|
35
35
|
Le
|
|
36
36
|
);
|
|
37
37
|
return Ye(r, "获取帖子详情失败");
|
|
38
38
|
}
|
|
39
39
|
async function j1(t, n = "") {
|
|
40
|
-
const a = await
|
|
40
|
+
const a = await fe(
|
|
41
41
|
`${Me}/community/posts${n ? `?token=${encodeURIComponent(n)}` : ""}`,
|
|
42
42
|
{
|
|
43
43
|
...Le,
|
|
@@ -49,7 +49,7 @@ async function j1(t, n = "") {
|
|
|
49
49
|
return Ye(a, "发帖失败");
|
|
50
50
|
}
|
|
51
51
|
async function H1(t, n, a = "") {
|
|
52
|
-
const r = await
|
|
52
|
+
const r = await fe(
|
|
53
53
|
`${Me}/community/posts/${t}${a ? `?token=${encodeURIComponent(a)}` : ""}`,
|
|
54
54
|
{
|
|
55
55
|
...Le,
|
|
@@ -61,28 +61,28 @@ async function H1(t, n, a = "") {
|
|
|
61
61
|
return Ye(r, "编辑帖子失败");
|
|
62
62
|
}
|
|
63
63
|
async function W1(t, n = "") {
|
|
64
|
-
const a = n ? `?token=${encodeURIComponent(n)}` : "", r = await
|
|
64
|
+
const a = n ? `?token=${encodeURIComponent(n)}` : "", r = await fe(`${Me}/community/posts/${t}${a}`, {
|
|
65
65
|
...Le,
|
|
66
66
|
method: "DELETE"
|
|
67
67
|
});
|
|
68
68
|
return Ye(r, "删帖失败");
|
|
69
69
|
}
|
|
70
70
|
async function U1(t, n = "") {
|
|
71
|
-
const a = n ? `?token=${encodeURIComponent(n)}` : "", r = await
|
|
71
|
+
const a = n ? `?token=${encodeURIComponent(n)}` : "", r = await fe(`${Me}/community/posts/${t}/pin${a}`, {
|
|
72
72
|
...Le,
|
|
73
73
|
method: "POST"
|
|
74
74
|
});
|
|
75
75
|
return Ye(r, "置顶操作失败");
|
|
76
76
|
}
|
|
77
77
|
async function z1(t, n = "") {
|
|
78
|
-
const a = n ? `?token=${encodeURIComponent(n)}` : "", r = await
|
|
78
|
+
const a = n ? `?token=${encodeURIComponent(n)}` : "", r = await fe(`${Me}/community/posts/${t}/feature${a}`, {
|
|
79
79
|
...Le,
|
|
80
80
|
method: "POST"
|
|
81
81
|
});
|
|
82
82
|
return Ye(r, "精华操作失败");
|
|
83
83
|
}
|
|
84
84
|
async function G1(t, n, a = "") {
|
|
85
|
-
const r = await
|
|
85
|
+
const r = await fe(
|
|
86
86
|
`${Me}/community/posts/${t}/comments${a ? `?token=${encodeURIComponent(a)}` : ""}`,
|
|
87
87
|
{
|
|
88
88
|
...Le,
|
|
@@ -94,7 +94,7 @@ async function G1(t, n, a = "") {
|
|
|
94
94
|
return Ye(r, "发评论失败");
|
|
95
95
|
}
|
|
96
96
|
async function K1(t, n = "") {
|
|
97
|
-
const a = await
|
|
97
|
+
const a = await fe(
|
|
98
98
|
`${Me}/community/likes${n ? `?token=${encodeURIComponent(n)}` : ""}`,
|
|
99
99
|
{
|
|
100
100
|
...Le,
|
|
@@ -106,7 +106,7 @@ async function K1(t, n = "") {
|
|
|
106
106
|
return Ye(a, "点赞操作失败");
|
|
107
107
|
}
|
|
108
108
|
async function q1(t, n = "") {
|
|
109
|
-
const a = await
|
|
109
|
+
const a = await fe(
|
|
110
110
|
`${Me}/community/favorites${n ? `?token=${encodeURIComponent(n)}` : ""}`,
|
|
111
111
|
{
|
|
112
112
|
...Le,
|
|
@@ -118,7 +118,7 @@ async function q1(t, n = "") {
|
|
|
118
118
|
return Ye(a, "收藏操作失败");
|
|
119
119
|
}
|
|
120
120
|
async function V1(t, n = "") {
|
|
121
|
-
const a = await
|
|
121
|
+
const a = await fe(
|
|
122
122
|
`${Me}/community/follows${n ? `?token=${encodeURIComponent(n)}` : ""}`,
|
|
123
123
|
{
|
|
124
124
|
...Le,
|
|
@@ -130,19 +130,19 @@ async function V1(t, n = "") {
|
|
|
130
130
|
return Ye(a, "关注操作失败");
|
|
131
131
|
}
|
|
132
132
|
async function J1(t = "") {
|
|
133
|
-
const n = t ? `?token=${encodeURIComponent(t)}` : "", a = await
|
|
133
|
+
const n = t ? `?token=${encodeURIComponent(t)}` : "", a = await fe(`${Me}/community/tags${n}`, Le);
|
|
134
134
|
return Ye(a, "获取标签列表失败");
|
|
135
135
|
}
|
|
136
136
|
async function Y1(t = "") {
|
|
137
|
-
const n = t ? `?token=${encodeURIComponent(t)}` : "", a = await
|
|
137
|
+
const n = t ? `?token=${encodeURIComponent(t)}` : "", a = await fe(`${Me}/community/my/posts${n}`, Le);
|
|
138
138
|
return Ye(a, "获取我的帖子失败");
|
|
139
139
|
}
|
|
140
140
|
async function Q1(t = "") {
|
|
141
|
-
const n = t ? `?token=${encodeURIComponent(t)}` : "", a = await
|
|
141
|
+
const n = t ? `?token=${encodeURIComponent(t)}` : "", a = await fe(`${Me}/community/my/drafts${n}`, Le);
|
|
142
142
|
return Ye(a, "获取我的草稿失败");
|
|
143
143
|
}
|
|
144
144
|
async function za() {
|
|
145
|
-
const t = await
|
|
145
|
+
const t = await fe(`${Me}/common/portal/header-tips`, Le);
|
|
146
146
|
return Ye(t, "获取顶部提示失败");
|
|
147
147
|
}
|
|
148
148
|
const ya = "http://127.0.0.1:28080";
|
|
@@ -157,7 +157,7 @@ async function tt(t, n = {}) {
|
|
|
157
157
|
let c;
|
|
158
158
|
if (a === "GET") {
|
|
159
159
|
const p = new URLSearchParams();
|
|
160
|
-
p.set("path", t), Vt && p.set("token", Vt), c = await
|
|
160
|
+
p.set("path", t), Vt && p.set("token", Vt), c = await fe(`${r}?${p.toString()}`, Le);
|
|
161
161
|
} else {
|
|
162
162
|
let p = {};
|
|
163
163
|
if (typeof n.body == "string" && n.body)
|
|
@@ -167,7 +167,7 @@ async function tt(t, n = {}) {
|
|
|
167
167
|
p = {};
|
|
168
168
|
}
|
|
169
169
|
const h = Vt ? `?token=${encodeURIComponent(Vt)}` : "";
|
|
170
|
-
c = await
|
|
170
|
+
c = await fe(`${r}${h}`, {
|
|
171
171
|
...Le,
|
|
172
172
|
method: "POST",
|
|
173
173
|
headers: { "Content-Type": "application/json" },
|
|
@@ -298,14 +298,14 @@ async function r_(t, n, a, r) {
|
|
|
298
298
|
return;
|
|
299
299
|
}
|
|
300
300
|
const K = T.body.getReader(), Y = new TextDecoder();
|
|
301
|
-
let
|
|
301
|
+
let $ = "";
|
|
302
302
|
for (; ; ) {
|
|
303
303
|
const { done: O, value: G } = await K.read();
|
|
304
304
|
if (O) break;
|
|
305
|
-
|
|
306
|
-
const U =
|
|
305
|
+
$ += Y.decode(G, { stream: !0 });
|
|
306
|
+
const U = $.split(`
|
|
307
307
|
`);
|
|
308
|
-
|
|
308
|
+
$ = U.pop() || "";
|
|
309
309
|
for (const E of U) {
|
|
310
310
|
const R = E.trim();
|
|
311
311
|
if (!(!R || R.startsWith(":")) && R.startsWith("data:")) {
|
|
@@ -450,32 +450,32 @@ function Wn(t) {
|
|
|
450
450
|
async function f_(t, n = "", a = "") {
|
|
451
451
|
const r = new URLSearchParams();
|
|
452
452
|
n && r.set("subdir", n), a && r.set("token", a);
|
|
453
|
-
const c = r.toString(), u = await
|
|
453
|
+
const c = r.toString(), u = await fe(
|
|
454
454
|
`${Me}/personal-agents/${t}/files/tree${c ? "?" + c : ""}`,
|
|
455
455
|
Le
|
|
456
456
|
);
|
|
457
|
-
return
|
|
457
|
+
return Ct(u, "获取文件列表失败");
|
|
458
458
|
}
|
|
459
459
|
async function g_(t, n = "", a = "") {
|
|
460
460
|
const r = new URLSearchParams();
|
|
461
461
|
n && r.set("path", n), a && r.set("token", a);
|
|
462
|
-
const c = r.toString(), u = await
|
|
462
|
+
const c = r.toString(), u = await fe(
|
|
463
463
|
`${Me}/personal-agents/${t}/files/content${c ? "?" + c : ""}`,
|
|
464
464
|
Le
|
|
465
465
|
);
|
|
466
|
-
return
|
|
466
|
+
return Ct(u, "读取文件内容失败");
|
|
467
467
|
}
|
|
468
468
|
async function __(t, n = 1, a = 20, r = "") {
|
|
469
469
|
const c = new URLSearchParams();
|
|
470
470
|
c.set("page", String(n)), c.set("size", String(a)), r && c.set("token", r);
|
|
471
|
-
const u = await
|
|
471
|
+
const u = await fe(
|
|
472
472
|
`${Me}/personal-agents/${t}/skills?${c.toString()}`,
|
|
473
473
|
Le
|
|
474
474
|
);
|
|
475
|
-
return
|
|
475
|
+
return Ct(u, "获取 Skill 列表失败");
|
|
476
476
|
}
|
|
477
477
|
async function y_(t, n, a, r = "") {
|
|
478
|
-
const c = r ? `?token=${encodeURIComponent(r)}` : "", u = await
|
|
478
|
+
const c = r ? `?token=${encodeURIComponent(r)}` : "", u = await fe(
|
|
479
479
|
`${Me}/personal-agents/${t}/skills/${encodeURIComponent(
|
|
480
480
|
n
|
|
481
481
|
)}/toggle${c}`,
|
|
@@ -486,14 +486,14 @@ async function y_(t, n, a, r = "") {
|
|
|
486
486
|
body: JSON.stringify({ enable: a })
|
|
487
487
|
}
|
|
488
488
|
);
|
|
489
|
-
return
|
|
489
|
+
return Ct(u, "切换 Skill 失败");
|
|
490
490
|
}
|
|
491
491
|
async function $o(t = "") {
|
|
492
|
-
const n = t ? `?token=${encodeURIComponent(t)}` : "", a = await
|
|
492
|
+
const n = t ? `?token=${encodeURIComponent(t)}` : "", a = await fe(
|
|
493
493
|
`${Me}/personal/local-agent/status${n}`,
|
|
494
494
|
Le
|
|
495
495
|
);
|
|
496
|
-
return
|
|
496
|
+
return Ct(a, "获取本地 Agent 状态失败");
|
|
497
497
|
}
|
|
498
498
|
async function Ur(t, n, a, r, c = "") {
|
|
499
499
|
const { onToken: u, onReasoning: p, onEvent: h, onFinal: k, onError: L, onComplete: W } = a, x = {
|
|
@@ -519,7 +519,7 @@ async function Ur(t, n, a, r, c = "") {
|
|
|
519
519
|
return;
|
|
520
520
|
}
|
|
521
521
|
const K = T.body.getReader(), Y = new TextDecoder();
|
|
522
|
-
let
|
|
522
|
+
let $ = "", O = "";
|
|
523
523
|
const G = (U) => {
|
|
524
524
|
var f, g;
|
|
525
525
|
const E = U.trim();
|
|
@@ -556,9 +556,9 @@ async function Ur(t, n, a, r, c = "") {
|
|
|
556
556
|
for (; ; ) {
|
|
557
557
|
const { done: U, value: E } = await K.read();
|
|
558
558
|
if (U) break;
|
|
559
|
-
|
|
560
|
-
const R =
|
|
561
|
-
|
|
559
|
+
$ += Y.decode(E, { stream: !0 });
|
|
560
|
+
const R = $.split(/\r?\n\r?\n/);
|
|
561
|
+
$ = R.pop() ?? "";
|
|
562
562
|
for (const f of R)
|
|
563
563
|
for (const g of f.split(/\r?\n/)) {
|
|
564
564
|
const y = g.trim();
|
|
@@ -608,7 +608,7 @@ function zr(t, n, a, r) {
|
|
|
608
608
|
}, [n, a]), z(() => {
|
|
609
609
|
const T = (Y) => {
|
|
610
610
|
if (!h.current) return;
|
|
611
|
-
const
|
|
611
|
+
const $ = Y.clientX - k.current, O = L.current + $, G = Math.min(
|
|
612
612
|
x.current,
|
|
613
613
|
Math.max(W.current, O)
|
|
614
614
|
), U = p.current;
|
|
@@ -675,6 +675,7 @@ function Vr() {
|
|
|
675
675
|
if (t.pathname.startsWith("/admin")) return "admin";
|
|
676
676
|
if (t.pathname.startsWith("/ops/")) return "ops";
|
|
677
677
|
if (t.pathname.startsWith("/lc/")) return "dev";
|
|
678
|
+
if (t.pathname.startsWith("/cognition/")) return "knowledge";
|
|
678
679
|
if (ia(t.pathname) === "middleware") return "middleware";
|
|
679
680
|
} catch {
|
|
680
681
|
}
|
|
@@ -1235,7 +1236,7 @@ function kl({
|
|
|
1235
1236
|
onOpenSearch: T,
|
|
1236
1237
|
searchActive: K,
|
|
1237
1238
|
onOpenPersonalTab: Y,
|
|
1238
|
-
onOpenWorkbenchShell:
|
|
1239
|
+
onOpenWorkbenchShell: $,
|
|
1239
1240
|
onCloudNav: O,
|
|
1240
1241
|
cloudNavActive: G
|
|
1241
1242
|
}) {
|
|
@@ -1484,7 +1485,7 @@ function kl({
|
|
|
1484
1485
|
type: "button",
|
|
1485
1486
|
className: H.moreFlyoutItem,
|
|
1486
1487
|
onClick: () => {
|
|
1487
|
-
C(null),
|
|
1488
|
+
C(null), $();
|
|
1488
1489
|
},
|
|
1489
1490
|
children: [
|
|
1490
1491
|
/* @__PURE__ */ e(
|
|
@@ -1663,7 +1664,7 @@ function I_(t) {
|
|
|
1663
1664
|
};
|
|
1664
1665
|
}
|
|
1665
1666
|
function Il() {
|
|
1666
|
-
const t = V((U) => U.token), n = va() || typeof localStorage < "u" && localStorage.getItem("ft_exclusive_force_desktop") === "1", [a, r] = d(!1), [c, u] = d([]), [p, h] = d(null), [k, L] = d(!1), [W, x] = d([]), [w, T] = d(0), K = n || k, Y = c.find((U) => U.id === p) ?? null,
|
|
1667
|
+
const t = V((U) => U.token), n = va() || typeof localStorage < "u" && localStorage.getItem("ft_exclusive_force_desktop") === "1", [a, r] = d(!1), [c, u] = d([]), [p, h] = d(null), [k, L] = d(!1), [W, x] = d([]), [w, T] = d(0), K = n || k, Y = c.find((U) => U.id === p) ?? null, $ = K && a && c.length > 0;
|
|
1667
1668
|
z(() => {
|
|
1668
1669
|
let U = !0;
|
|
1669
1670
|
const E = async () => {
|
|
@@ -1723,8 +1724,8 @@ function Il() {
|
|
|
1723
1724
|
}
|
|
1724
1725
|
}, [K, a, Y]);
|
|
1725
1726
|
z(() => {
|
|
1726
|
-
|
|
1727
|
-
}, [
|
|
1727
|
+
$ && O();
|
|
1728
|
+
}, [$, O, w]);
|
|
1728
1729
|
const G = J(() => {
|
|
1729
1730
|
T((U) => U + 1);
|
|
1730
1731
|
}, []);
|
|
@@ -1804,7 +1805,7 @@ const Xa = {
|
|
|
1804
1805
|
function xl({
|
|
1805
1806
|
onCountChange: t
|
|
1806
1807
|
}) {
|
|
1807
|
-
const n = V((P) => P.projects), a = V((P) => P.openTaskFromTodo), [r, c] = d(Xa), [u, p] = d(!1), [h, k] = d(!1), [L, W] = d(!1), [x, w] = d(null), [T, K] = d(""), [Y,
|
|
1808
|
+
const n = V((P) => P.projects), a = V((P) => P.openTaskFromTodo), [r, c] = d(Xa), [u, p] = d(!1), [h, k] = d(!1), [L, W] = d(!1), [x, w] = d(null), [T, K] = d(""), [Y, $] = d(""), O = ue(null), G = ue(null), U = ue(null), E = ue(!1), R = ue(r), f = ue(null), g = ue(null), y = ue(Y);
|
|
1808
1809
|
R.current = r, y.current = Y;
|
|
1809
1810
|
const C = J(async (P) => {
|
|
1810
1811
|
const v = new URLSearchParams({
|
|
@@ -1814,15 +1815,15 @@ function xl({
|
|
|
1814
1815
|
Q && v.set("keyword", Q);
|
|
1815
1816
|
const Z = typeof window < "u" && (window.localStorage.getItem("token") || window.localStorage.getItem("z_ctc_token") || window.localStorage.getItem("z_team_token")) || "", me = {};
|
|
1816
1817
|
Z && (me.Authorization = `Bearer ${Z}`);
|
|
1817
|
-
const
|
|
1818
|
+
const ge = await fetch(`${hn}/tasks/my?${v}`, {
|
|
1818
1819
|
credentials: "include",
|
|
1819
1820
|
headers: {
|
|
1820
1821
|
...me,
|
|
1821
1822
|
Accept: "application/json"
|
|
1822
1823
|
}
|
|
1823
1824
|
});
|
|
1824
|
-
if (
|
|
1825
|
-
const pe = await
|
|
1825
|
+
if (ge.status === 401 && os(), !ge.ok) throw new Error(`HTTP ${ge.status}`);
|
|
1826
|
+
const pe = await ge.json();
|
|
1826
1827
|
return pe.data && typeof pe.data == "object" ? Ya(pe.data) : Ya({});
|
|
1827
1828
|
}, []), i = J(async () => {
|
|
1828
1829
|
if (!E.current) {
|
|
@@ -1889,7 +1890,7 @@ function xl({
|
|
|
1889
1890
|
}, [i, Y]);
|
|
1890
1891
|
const ae = J((P) => {
|
|
1891
1892
|
K(P), g.current && clearTimeout(g.current), g.current = setTimeout(() => {
|
|
1892
|
-
|
|
1893
|
+
$(P.trim());
|
|
1893
1894
|
}, 400);
|
|
1894
1895
|
}, []);
|
|
1895
1896
|
z(() => () => {
|
|
@@ -1906,8 +1907,8 @@ function xl({
|
|
|
1906
1907
|
if (!P || !v || !Q) return;
|
|
1907
1908
|
const Z = new IntersectionObserver(
|
|
1908
1909
|
(me) => {
|
|
1909
|
-
for (const
|
|
1910
|
-
|
|
1910
|
+
for (const ge of me)
|
|
1911
|
+
ge.isIntersecting && (ge.target === v ? B() : ge.target === Q && I());
|
|
1911
1912
|
},
|
|
1912
1913
|
{ root: P, rootMargin: "64px", threshold: 0 }
|
|
1913
1914
|
);
|
|
@@ -1979,7 +1980,7 @@ function xl({
|
|
|
1979
1980
|
/* @__PURE__ */ e("span", { className: Ne.todoGroupCount, children: v.length })
|
|
1980
1981
|
] }),
|
|
1981
1982
|
v.map((me) => {
|
|
1982
|
-
const
|
|
1983
|
+
const ge = $l(me), pe = Bs(me);
|
|
1983
1984
|
return /* @__PURE__ */ o(
|
|
1984
1985
|
"div",
|
|
1985
1986
|
{
|
|
@@ -1990,11 +1991,11 @@ function xl({
|
|
|
1990
1991
|
/* @__PURE__ */ e(
|
|
1991
1992
|
"span",
|
|
1992
1993
|
{
|
|
1993
|
-
className: `${Ne.todoStatusDot} ${
|
|
1994
|
+
className: `${Ne.todoStatusDot} ${ge.cls}`
|
|
1994
1995
|
}
|
|
1995
1996
|
),
|
|
1996
1997
|
/* @__PURE__ */ e("span", { className: Ne.todoName, children: me.name }),
|
|
1997
|
-
/* @__PURE__ */ e("span", { className: `${Ne.todoTag} ${
|
|
1998
|
+
/* @__PURE__ */ e("span", { className: `${Ne.todoTag} ${ge.cls}`, children: ge.label })
|
|
1998
1999
|
] }),
|
|
1999
2000
|
/* @__PURE__ */ o("div", { className: Ne.todoCardMeta, children: [
|
|
2000
2001
|
pe ? /* @__PURE__ */ o("span", { className: Ne.todoFrom, children: [
|
|
@@ -2079,7 +2080,7 @@ function dd() {
|
|
|
2079
2080
|
moved: !1,
|
|
2080
2081
|
startY: 0,
|
|
2081
2082
|
startTop: 0
|
|
2082
|
-
}), L = ue(null), [W, x] = d([]), [w, T] = d(!1), K = ue(null), [Y,
|
|
2083
|
+
}), L = ue(null), [W, x] = d([]), [w, T] = d(!1), K = ue(null), [Y, $] = d(!1), O = V((F) => F.currentProject), G = V((F) => F.token), U = O ? `${O.workspace_path}_${O.id}` : "global_scratchpad", E = (O == null ? void 0 : O.name) || (O == null ? void 0 : O.scenario_name) || "速记", R = O ? JSON.stringify({ type: "team", id: O.id }) : "", f = J(() => {
|
|
2083
2084
|
K.current && (clearTimeout(K.current), K.current = null);
|
|
2084
2085
|
}, []), g = J(
|
|
2085
2086
|
(F) => {
|
|
@@ -2171,7 +2172,7 @@ function dd() {
|
|
|
2171
2172
|
icon: /* @__PURE__ */ e(Io, {}),
|
|
2172
2173
|
label: "自身答疑",
|
|
2173
2174
|
onClick: () => {
|
|
2174
|
-
|
|
2175
|
+
$(!0), n(!1);
|
|
2175
2176
|
}
|
|
2176
2177
|
}
|
|
2177
2178
|
], j = (F) => {
|
|
@@ -2408,7 +2409,7 @@ function dd() {
|
|
|
2408
2409
|
No,
|
|
2409
2410
|
{
|
|
2410
2411
|
open: Y,
|
|
2411
|
-
onClose: () =>
|
|
2412
|
+
onClose: () => $(!1)
|
|
2412
2413
|
}
|
|
2413
2414
|
)
|
|
2414
2415
|
] });
|
|
@@ -2496,7 +2497,7 @@ function Eu() {
|
|
|
2496
2497
|
var ze, at;
|
|
2497
2498
|
const { agentProfileState: t, closeAgentProfile: n, navigateToPersonalChat: a } = V(), r = V((ee) => ee.token), [c, u] = d(!1), [p, h] = d(
|
|
2498
2499
|
null
|
|
2499
|
-
), [k, L] = d(!1), [W, x] = d(null), [w, T] = d(!1), [K, Y] = d("info"), [
|
|
2500
|
+
), [k, L] = d(!1), [W, x] = d(null), [w, T] = d(!1), [K, Y] = d("info"), [$, O] = d(
|
|
2500
2501
|
null
|
|
2501
2502
|
), [G, U] = d(null), [E, R] = d([]), [f, g] = d(
|
|
2502
2503
|
null
|
|
@@ -2506,7 +2507,7 @@ function Eu() {
|
|
|
2506
2507
|
if (ne) {
|
|
2507
2508
|
L(!0);
|
|
2508
2509
|
try {
|
|
2509
|
-
const ee = await
|
|
2510
|
+
const ee = await fe(
|
|
2510
2511
|
`${In}/evolution/agents/${encodeURIComponent(
|
|
2511
2512
|
ne
|
|
2512
2513
|
)}`
|
|
@@ -2528,7 +2529,7 @@ function Eu() {
|
|
|
2528
2529
|
try {
|
|
2529
2530
|
const ee = `${hn}/scenario-instances/${ce}/team/agents/${encodeURIComponent(
|
|
2530
2531
|
N.name
|
|
2531
|
-
)}/skills`, ke = await
|
|
2532
|
+
)}/skills`, ke = await fe(ee);
|
|
2532
2533
|
if (ke.ok) {
|
|
2533
2534
|
const ie = await ke.json(), xe = (Array.isArray(ie == null ? void 0 : ie.data) ? ie.data : Array.isArray(ie) ? ie : []).map((le) => ({
|
|
2534
2535
|
skillName: le.skillName,
|
|
@@ -2558,7 +2559,7 @@ function Eu() {
|
|
|
2558
2559
|
if (ne) {
|
|
2559
2560
|
T(!0);
|
|
2560
2561
|
try {
|
|
2561
|
-
const ie = await (await
|
|
2562
|
+
const ie = await (await fe(
|
|
2562
2563
|
`${In}/evolution/agents/${encodeURIComponent(
|
|
2563
2564
|
ne
|
|
2564
2565
|
)}/memory/${encodeURIComponent(ee)}`,
|
|
@@ -2575,7 +2576,7 @@ function Eu() {
|
|
|
2575
2576
|
if (ne) {
|
|
2576
2577
|
T(!0);
|
|
2577
2578
|
try {
|
|
2578
|
-
const ie = await (await
|
|
2579
|
+
const ie = await (await fe(
|
|
2579
2580
|
`${In}/evolution/agents/${encodeURIComponent(
|
|
2580
2581
|
ne
|
|
2581
2582
|
)}/memory/${encodeURIComponent(ee)}/reset`,
|
|
@@ -2592,7 +2593,7 @@ function Eu() {
|
|
|
2592
2593
|
if (ne) {
|
|
2593
2594
|
T(!0);
|
|
2594
2595
|
try {
|
|
2595
|
-
(await (await
|
|
2596
|
+
(await (await fe(
|
|
2596
2597
|
`${In}/evolution/agents/${encodeURIComponent(
|
|
2597
2598
|
ne
|
|
2598
2599
|
)}/memory/reset`,
|
|
@@ -2629,12 +2630,12 @@ function Eu() {
|
|
|
2629
2630
|
} finally {
|
|
2630
2631
|
u(!1);
|
|
2631
2632
|
}
|
|
2632
|
-
},
|
|
2633
|
+
}, ge = async (ee) => {
|
|
2633
2634
|
var ke;
|
|
2634
2635
|
if (!(!ce || !N)) {
|
|
2635
2636
|
U(ee), R([]), g(null), C(""), I(!0), ae(!0);
|
|
2636
2637
|
try {
|
|
2637
|
-
const ie = await
|
|
2638
|
+
const ie = await fe(
|
|
2638
2639
|
`${hn}/scenario-instances/${ce}/team/agents/${encodeURIComponent(
|
|
2639
2640
|
N.name
|
|
2640
2641
|
)}/skills/${encodeURIComponent(ee.skillName)}/files`
|
|
@@ -2647,7 +2648,7 @@ function Eu() {
|
|
|
2647
2648
|
), Qe = (le == null ? void 0 : le.path) || ((ke = xe.find((qe) => !qe.isDir)) == null ? void 0 : ke.path);
|
|
2648
2649
|
if (Qe) {
|
|
2649
2650
|
g(Qe);
|
|
2650
|
-
const qe = await
|
|
2651
|
+
const qe = await fe(
|
|
2651
2652
|
`${hn}/scenario-instances/${ce}/team/agents/${encodeURIComponent(
|
|
2652
2653
|
N.name
|
|
2653
2654
|
)}/skills/${encodeURIComponent(
|
|
@@ -2655,8 +2656,8 @@ function Eu() {
|
|
|
2655
2656
|
)}/files/content?path=${encodeURIComponent(Qe)}`
|
|
2656
2657
|
);
|
|
2657
2658
|
if (qe.ok) {
|
|
2658
|
-
const it = await qe.json(),
|
|
2659
|
-
C((
|
|
2659
|
+
const it = await qe.json(), St = (it == null ? void 0 : it.data) || it;
|
|
2660
|
+
C((St == null ? void 0 : St.content) || "");
|
|
2660
2661
|
}
|
|
2661
2662
|
}
|
|
2662
2663
|
}
|
|
@@ -2669,7 +2670,7 @@ function Eu() {
|
|
|
2669
2670
|
if (!(!G || ee === f) && !(!ce || !N)) {
|
|
2670
2671
|
g(ee), ae(!0);
|
|
2671
2672
|
try {
|
|
2672
|
-
const ke = await
|
|
2673
|
+
const ke = await fe(
|
|
2673
2674
|
`${hn}/scenario-instances/${ce}/team/agents/${encodeURIComponent(
|
|
2674
2675
|
N.name
|
|
2675
2676
|
)}/skills/${encodeURIComponent(
|
|
@@ -2694,7 +2695,7 @@ function Eu() {
|
|
|
2694
2695
|
let le = ke;
|
|
2695
2696
|
for (let Qe = 0; Qe < xe.length; Qe++) {
|
|
2696
2697
|
const qe = xe.slice(0, Qe + 1).join("/");
|
|
2697
|
-
let it = le.children.find((
|
|
2698
|
+
let it = le.children.find((St) => St.name === xe[Qe]);
|
|
2698
2699
|
it || (it = {
|
|
2699
2700
|
name: xe[Qe],
|
|
2700
2701
|
path: qe,
|
|
@@ -2913,7 +2914,7 @@ function Eu() {
|
|
|
2913
2914
|
"div",
|
|
2914
2915
|
{
|
|
2915
2916
|
className: D.skillItemClickable,
|
|
2916
|
-
onClick: () => void
|
|
2917
|
+
onClick: () => void ge(le),
|
|
2917
2918
|
children: [
|
|
2918
2919
|
/* @__PURE__ */ e("div", { className: D.skillIcon, children: /* @__PURE__ */ e(Ba, {}) }),
|
|
2919
2920
|
/* @__PURE__ */ o("div", { className: D.skillInfo, children: [
|
|
@@ -2987,7 +2988,7 @@ function Eu() {
|
|
|
2987
2988
|
]
|
|
2988
2989
|
}
|
|
2989
2990
|
),
|
|
2990
|
-
|
|
2991
|
+
$ && /* @__PURE__ */ e(
|
|
2991
2992
|
"div",
|
|
2992
2993
|
{
|
|
2993
2994
|
className: D.memoryDetailOverlay,
|
|
@@ -3001,7 +3002,7 @@ function Eu() {
|
|
|
3001
3002
|
onClick: (ee) => ee.stopPropagation(),
|
|
3002
3003
|
children: [
|
|
3003
3004
|
/* @__PURE__ */ o("div", { className: D.memoryDetailHeader, children: [
|
|
3004
|
-
/* @__PURE__ */ e("div", { className: D.memoryDetailTitle, children:
|
|
3005
|
+
/* @__PURE__ */ e("div", { className: D.memoryDetailTitle, children: $.title || $.name }),
|
|
3005
3006
|
/* @__PURE__ */ e(
|
|
3006
3007
|
"button",
|
|
3007
3008
|
{
|
|
@@ -3014,10 +3015,10 @@ function Eu() {
|
|
|
3014
3015
|
] }),
|
|
3015
3016
|
/* @__PURE__ */ o("div", { className: D.memoryDetailBody, children: [
|
|
3016
3017
|
/* @__PURE__ */ o("div", { className: D.memoryDetailMeta, children: [
|
|
3017
|
-
|
|
3018
|
-
|
|
3018
|
+
$.name && /* @__PURE__ */ e("span", { className: D.memoryDetailMetaTag, children: $.name }),
|
|
3019
|
+
$.keywords && /* @__PURE__ */ e("span", { className: D.memoryDetailMetaTag, children: $.keywords })
|
|
3019
3020
|
] }),
|
|
3020
|
-
|
|
3021
|
+
$.description && /* @__PURE__ */ e(
|
|
3021
3022
|
"p",
|
|
3022
3023
|
{
|
|
3023
3024
|
style: {
|
|
@@ -3025,7 +3026,7 @@ function Eu() {
|
|
|
3025
3026
|
color: "var(--text-secondary, #666)",
|
|
3026
3027
|
marginBottom: 16
|
|
3027
3028
|
},
|
|
3028
|
-
children:
|
|
3029
|
+
children: $.description
|
|
3029
3030
|
}
|
|
3030
3031
|
),
|
|
3031
3032
|
/* @__PURE__ */ e("div", { className: D.memoryDetailContent, children: /* @__PURE__ */ e(
|
|
@@ -3033,7 +3034,7 @@ function Eu() {
|
|
|
3033
3034
|
{
|
|
3034
3035
|
remarkPlugins: [Ua],
|
|
3035
3036
|
rehypePlugins: [Wa],
|
|
3036
|
-
children:
|
|
3037
|
+
children: $.content || "(空文件)"
|
|
3037
3038
|
}
|
|
3038
3039
|
) })
|
|
3039
3040
|
] })
|
|
@@ -3126,7 +3127,7 @@ function Ou({
|
|
|
3126
3127
|
onClose: n,
|
|
3127
3128
|
onCreated: a
|
|
3128
3129
|
}) {
|
|
3129
|
-
const [r, c] = d(""), [u, p] = d([]), [h, k] = d(Pu), [L, W] = d([]), [x, w] = d(!1), [T, K] = d(null), [Y,
|
|
3130
|
+
const [r, c] = d(""), [u, p] = d([]), [h, k] = d(Pu), [L, W] = d([]), [x, w] = d(!1), [T, K] = d(null), [Y, $] = d(""), [O, G] = d(!1), [U, E] = d("");
|
|
3130
3131
|
z(() => {
|
|
3131
3132
|
let y = !1;
|
|
3132
3133
|
return rs().then((C) => {
|
|
@@ -3221,7 +3222,7 @@ function Ou({
|
|
|
3221
3222
|
rows: 4,
|
|
3222
3223
|
placeholder: "请输入想咨询的业务问题,如:这个页面上的 XX 功能是怎么实现的?(支持 Ctrl+V 粘贴图片)",
|
|
3223
3224
|
value: Y,
|
|
3224
|
-
onChange: (y) =>
|
|
3225
|
+
onChange: (y) => $(y.target.value),
|
|
3225
3226
|
onPaste: f
|
|
3226
3227
|
}
|
|
3227
3228
|
) }),
|
|
@@ -3395,8 +3396,8 @@ function Ru({
|
|
|
3395
3396
|
onClose: n,
|
|
3396
3397
|
onCreated: a
|
|
3397
3398
|
}) {
|
|
3398
|
-
var
|
|
3399
|
-
const [r, c] = d("link"), [u, p] = d(""), [h, k] = d([]), [L, W] = d(!1), [x, w] = d(), [T, K] = d(""), [Y,
|
|
3399
|
+
var ge, pe, rt;
|
|
3400
|
+
const [r, c] = d("link"), [u, p] = d(""), [h, k] = d([]), [L, W] = d(!1), [x, w] = d(), [T, K] = d(""), [Y, $] = d([]), [O, G] = d(0), [U, E] = d(!1), [R, f] = d(1), [g, y] = d(10), [C, i] = d(
|
|
3400
3401
|
null
|
|
3401
3402
|
), [I, B] = d(!1), [ae, j] = d(""), [te, F] = d(""), [S, N] = d(!1), [ne, $e] = d(
|
|
3402
3403
|
null
|
|
@@ -3448,9 +3449,9 @@ function Ru({
|
|
|
3448
3449
|
R,
|
|
3449
3450
|
g
|
|
3450
3451
|
);
|
|
3451
|
-
|
|
3452
|
+
$(q.records || []), G(q.total || 0);
|
|
3452
3453
|
} catch (q) {
|
|
3453
|
-
|
|
3454
|
+
$([]), G(0), j(q.message || "查询工单列表失败");
|
|
3454
3455
|
} finally {
|
|
3455
3456
|
E(!1);
|
|
3456
3457
|
}
|
|
@@ -3657,7 +3658,7 @@ function Ru({
|
|
|
3657
3658
|
] }),
|
|
3658
3659
|
children: /* @__PURE__ */ o("div", { children: [
|
|
3659
3660
|
/* @__PURE__ */ e("div", { style: { marginBottom: 8 }, children: /* @__PURE__ */ o("label", { style: { fontWeight: 500, fontSize: 13 }, children: [
|
|
3660
|
-
(
|
|
3661
|
+
(ge = t.inputConfig) == null ? void 0 : ge.label,
|
|
3661
3662
|
((pe = t.inputConfig) == null ? void 0 : pe.required) && /* @__PURE__ */ e("span", { style: { color: "#ff4d4f", marginLeft: 4 }, children: "*" })
|
|
3662
3663
|
] }) }),
|
|
3663
3664
|
/* @__PURE__ */ e(
|
|
@@ -3927,7 +3928,7 @@ function Cm({
|
|
|
3927
3928
|
onProjectCreated: n,
|
|
3928
3929
|
presetScenarioCode: a
|
|
3929
3930
|
}) {
|
|
3930
|
-
const { createScenarioInstance: r, sendChatMessage: c, token: u } = V(), p = fa(), [h, k] = d([]), [L, W] = d(""), [x, w] = d(!0), [T, K] = d(""), [Y,
|
|
3931
|
+
const { createScenarioInstance: r, sendChatMessage: c, token: u } = V(), p = fa(), [h, k] = d([]), [L, W] = d(""), [x, w] = d(!0), [T, K] = d(""), [Y, $] = d(""), [O, G] = d(!1);
|
|
3931
3932
|
z(() => {
|
|
3932
3933
|
let f = !1;
|
|
3933
3934
|
return (async () => {
|
|
@@ -4000,7 +4001,7 @@ function Cm({
|
|
|
4000
4001
|
rows: 4,
|
|
4001
4002
|
placeholder: "规划与编程,@ 添加上下文,/ 使用命令",
|
|
4002
4003
|
value: Y,
|
|
4003
|
-
onChange: (f) =>
|
|
4004
|
+
onChange: (f) => $(f.target.value),
|
|
4004
4005
|
onKeyDown: (f) => {
|
|
4005
4006
|
Co(f, p.sendKey) && !f.nativeEvent.isComposing && (f.preventDefault(), E());
|
|
4006
4007
|
},
|
|
@@ -4052,14 +4053,14 @@ function Wo(t) {
|
|
|
4052
4053
|
return { ...n, items: a };
|
|
4053
4054
|
}
|
|
4054
4055
|
async function L_(t, n = "") {
|
|
4055
|
-
const a = n ? `?token=${encodeURIComponent(n)}` : "", r = await
|
|
4056
|
+
const a = n ? `?token=${encodeURIComponent(n)}` : "", r = await fe(
|
|
4056
4057
|
`${Me}/personal-agents/${t}/schedules${a}`,
|
|
4057
4058
|
Le
|
|
4058
4059
|
);
|
|
4059
4060
|
return Ye(r, "获取定时任务列表失败");
|
|
4060
4061
|
}
|
|
4061
4062
|
async function M_(t, n, a, r, c = "", u = "", p = "") {
|
|
4062
|
-
const h = p ? `?token=${encodeURIComponent(p)}` : "", k = await
|
|
4063
|
+
const h = p ? `?token=${encodeURIComponent(p)}` : "", k = await fe(
|
|
4063
4064
|
`${Me}/personal-agents/${t}/schedules${h}`,
|
|
4064
4065
|
{
|
|
4065
4066
|
...Le,
|
|
@@ -4077,7 +4078,7 @@ async function M_(t, n, a, r, c = "", u = "", p = "") {
|
|
|
4077
4078
|
return Ye(k, "创建定时任务失败");
|
|
4078
4079
|
}
|
|
4079
4080
|
async function $_(t, n, a, r = "") {
|
|
4080
|
-
const c = r ? `?token=${encodeURIComponent(r)}` : "", u = await
|
|
4081
|
+
const c = r ? `?token=${encodeURIComponent(r)}` : "", u = await fe(
|
|
4081
4082
|
`${Me}/personal-agents/${t}/schedules/${n}${c}`,
|
|
4082
4083
|
{
|
|
4083
4084
|
...Le,
|
|
@@ -4089,17 +4090,17 @@ async function $_(t, n, a, r = "") {
|
|
|
4089
4090
|
return Ye(u, "更新定时任务失败");
|
|
4090
4091
|
}
|
|
4091
4092
|
async function A_(t, n, a = "") {
|
|
4092
|
-
const r = a ? `?token=${encodeURIComponent(a)}` : "", c = await
|
|
4093
|
+
const r = a ? `?token=${encodeURIComponent(a)}` : "", c = await fe(
|
|
4093
4094
|
`${Me}/personal-agents/${t}/schedules/${n}${r}`,
|
|
4094
4095
|
{
|
|
4095
4096
|
...Le,
|
|
4096
4097
|
method: "DELETE"
|
|
4097
4098
|
}
|
|
4098
4099
|
);
|
|
4099
|
-
return
|
|
4100
|
+
return Ct(c, "删除定时任务失败");
|
|
4100
4101
|
}
|
|
4101
4102
|
async function x_(t, n, a, r = "") {
|
|
4102
|
-
const c = r ? `?token=${encodeURIComponent(r)}` : "", u = await
|
|
4103
|
+
const c = r ? `?token=${encodeURIComponent(r)}` : "", u = await fe(
|
|
4103
4104
|
`${Me}/personal-agents/${t}/schedules/${n}/toggle${c}`,
|
|
4104
4105
|
{
|
|
4105
4106
|
...Le,
|
|
@@ -4113,14 +4114,14 @@ async function x_(t, n, a, r = "") {
|
|
|
4113
4114
|
async function E_(t, n, a = 1, r = 20, c = "") {
|
|
4114
4115
|
const u = new URLSearchParams();
|
|
4115
4116
|
u.set("page", String(a)), u.set("size", String(r)), c && u.set("token", c);
|
|
4116
|
-
const p = await
|
|
4117
|
+
const p = await fe(
|
|
4117
4118
|
`${Me}/personal-agents/${t}/schedules/${n}/logs?${u.toString()}`,
|
|
4118
4119
|
Le
|
|
4119
|
-
), h = await
|
|
4120
|
+
), h = await Ct(p, "获取执行历史失败");
|
|
4120
4121
|
return Wo(h);
|
|
4121
4122
|
}
|
|
4122
4123
|
async function P_(t, n, a = "") {
|
|
4123
|
-
const r = a ? `?token=${encodeURIComponent(a)}` : "", c = await
|
|
4124
|
+
const r = a ? `?token=${encodeURIComponent(a)}` : "", c = await fe(
|
|
4124
4125
|
`${Me}/personal-agents/${t}/schedules/${n}/run${r}`,
|
|
4125
4126
|
{
|
|
4126
4127
|
...Le,
|
|
@@ -4132,11 +4133,11 @@ async function P_(t, n, a = "") {
|
|
|
4132
4133
|
async function O_(t, n = "", a = "") {
|
|
4133
4134
|
const r = new URLSearchParams();
|
|
4134
4135
|
n && r.set("keyword", n), a && r.set("token", a);
|
|
4135
|
-
const c = await
|
|
4136
|
+
const c = await fe(
|
|
4136
4137
|
`${Me}/personal-agents/${t}/schedules/staff-search?${r.toString()}`,
|
|
4137
4138
|
Le
|
|
4138
4139
|
);
|
|
4139
|
-
return (await
|
|
4140
|
+
return (await Ct(c, "搜索员工失败") ?? []).map((p) => {
|
|
4140
4141
|
const h = (p == null ? void 0 : p.extend) ?? {};
|
|
4141
4142
|
return {
|
|
4142
4143
|
userId: String((p == null ? void 0 : p.userId) ?? (p == null ? void 0 : p.id) ?? ""),
|
|
@@ -4150,31 +4151,31 @@ async function O_(t, n = "", a = "") {
|
|
|
4150
4151
|
async function Sm(t = "", n = 50) {
|
|
4151
4152
|
const a = new URLSearchParams();
|
|
4152
4153
|
a.set("limit", String(n)), t && a.set("token", t);
|
|
4153
|
-
const r = await
|
|
4154
|
+
const r = await fe(
|
|
4154
4155
|
`${Me}/personal-agents/schedules/notifications?${a.toString()}`,
|
|
4155
4156
|
Le
|
|
4156
|
-
), c = await
|
|
4157
|
+
), c = await Ct(r, "获取通知失败");
|
|
4157
4158
|
return Wo(c);
|
|
4158
4159
|
}
|
|
4159
4160
|
async function Tm(t, n = "") {
|
|
4160
|
-
const a = n ? `?token=${encodeURIComponent(n)}` : "", r = await
|
|
4161
|
+
const a = n ? `?token=${encodeURIComponent(n)}` : "", r = await fe(
|
|
4161
4162
|
`${Me}/personal-agents/schedules/notifications/${t}/read${a}`,
|
|
4162
4163
|
{
|
|
4163
4164
|
...Le,
|
|
4164
4165
|
method: "POST"
|
|
4165
4166
|
}
|
|
4166
4167
|
);
|
|
4167
|
-
return
|
|
4168
|
+
return Ct(r, "标记已读失败");
|
|
4168
4169
|
}
|
|
4169
4170
|
async function Im(t = "") {
|
|
4170
|
-
const n = t ? `?token=${encodeURIComponent(t)}` : "", a = await
|
|
4171
|
+
const n = t ? `?token=${encodeURIComponent(t)}` : "", a = await fe(
|
|
4171
4172
|
`${Me}/personal-agents/schedules/notifications/read-all${n}`,
|
|
4172
4173
|
{
|
|
4173
4174
|
...Le,
|
|
4174
4175
|
method: "POST"
|
|
4175
4176
|
}
|
|
4176
4177
|
);
|
|
4177
|
-
return
|
|
4178
|
+
return Ct(a, "标记已读失败");
|
|
4178
4179
|
}
|
|
4179
4180
|
const Lm = "_bellBtn_zkdkx_2", Mm = "_badge_zkdkx_25", $m = "_overlay_zkdkx_44", Am = "_panel_zkdkx_55", xm = "_panelHeader_zkdkx_70", Em = "_panelTitle_zkdkx_79", Pm = "_markAllBtn_zkdkx_85", Om = "_panelBody_zkdkx_101", Dm = "_empty_zkdkx_107", Rm = "_item_zkdkx_115", Fm = "_itemUnread_zkdkx_130", Bm = "_itemHeader_zkdkx_135", jm = "_statusDot_zkdkx_142", Hm = "_statusSuccess_zkdkx_149", Wm = "_statusFail_zkdkx_153", Um = "_itemTask_zkdkx_157", zm = "_markReadBtn_zkdkx_167", Gm = "_itemMeta_zkdkx_185", Km = "_itemResult_zkdkx_194", Ze = {
|
|
4180
4181
|
bellBtn: Lm,
|
|
@@ -4198,43 +4199,43 @@ const Lm = "_bellBtn_zkdkx_2", Mm = "_badge_zkdkx_25", $m = "_overlay_zkdkx_44",
|
|
|
4198
4199
|
itemResult: Km
|
|
4199
4200
|
};
|
|
4200
4201
|
function qm() {
|
|
4201
|
-
const t = V((
|
|
4202
|
+
const t = V(($) => $.token), n = fa(), a = ue(null), [r, c] = d([]), [u, p] = d(0), [h, k] = d(!1), L = ue(null), [W, x] = d({ top: 0, right: 0 }), w = J(async () => {
|
|
4202
4203
|
try {
|
|
4203
|
-
const
|
|
4204
|
-
O && n.desktopNotify && document.hidden &&
|
|
4204
|
+
const $ = await Sm(t, 30), O = a.current;
|
|
4205
|
+
O && n.desktopNotify && document.hidden && $.items.filter((G) => G.readFlag === 0 && !O.has(String(G.id))).slice(0, 3).forEach(
|
|
4205
4206
|
(G) => Us(
|
|
4206
4207
|
G.taskName || "工作通知",
|
|
4207
4208
|
G.result || G.agentDisplayName || "有新的工作通知"
|
|
4208
4209
|
)
|
|
4209
|
-
), a.current = new Set(
|
|
4210
|
+
), a.current = new Set($.items.map((G) => String(G.id))), c($.items), p($.unread);
|
|
4210
4211
|
} catch {
|
|
4211
4212
|
}
|
|
4212
4213
|
}, [t, n.desktopNotify]);
|
|
4213
4214
|
z(() => {
|
|
4214
4215
|
w();
|
|
4215
|
-
const
|
|
4216
|
-
return () => clearInterval(
|
|
4216
|
+
const $ = setInterval(w, 3e4);
|
|
4217
|
+
return () => clearInterval($);
|
|
4217
4218
|
}, [w]);
|
|
4218
4219
|
const T = () => {
|
|
4219
|
-
const
|
|
4220
|
-
if (
|
|
4220
|
+
const $ = !h;
|
|
4221
|
+
if ($ && L.current) {
|
|
4221
4222
|
const O = L.current.getBoundingClientRect();
|
|
4222
4223
|
x({
|
|
4223
4224
|
top: O.bottom + 4,
|
|
4224
4225
|
right: window.innerWidth - O.right
|
|
4225
4226
|
}), w();
|
|
4226
4227
|
}
|
|
4227
|
-
k(
|
|
4228
|
-
}, K = async (
|
|
4228
|
+
k($);
|
|
4229
|
+
}, K = async ($) => {
|
|
4229
4230
|
try {
|
|
4230
|
-
await Tm(
|
|
4231
|
-
(O) => O.map((G) => Wt(G.id,
|
|
4231
|
+
await Tm($, t), c(
|
|
4232
|
+
(O) => O.map((G) => Wt(G.id, $) ? { ...G, readFlag: 1 } : G)
|
|
4232
4233
|
), p((O) => Math.max(0, O - 1));
|
|
4233
4234
|
} catch {
|
|
4234
4235
|
}
|
|
4235
4236
|
}, Y = async () => {
|
|
4236
4237
|
try {
|
|
4237
|
-
await Im(t), c((
|
|
4238
|
+
await Im(t), c(($) => $.map((O) => ({ ...O, readFlag: 1 }))), p(0);
|
|
4238
4239
|
} catch {
|
|
4239
4240
|
}
|
|
4240
4241
|
};
|
|
@@ -4273,37 +4274,37 @@ function qm() {
|
|
|
4273
4274
|
}
|
|
4274
4275
|
)
|
|
4275
4276
|
] }),
|
|
4276
|
-
/* @__PURE__ */ e("div", { className: Ze.panelBody, children: r.length === 0 ? /* @__PURE__ */ e("div", { className: Ze.empty, children: "暂无通知" }) : r.map((
|
|
4277
|
+
/* @__PURE__ */ e("div", { className: Ze.panelBody, children: r.length === 0 ? /* @__PURE__ */ e("div", { className: Ze.empty, children: "暂无通知" }) : r.map(($) => /* @__PURE__ */ o(
|
|
4277
4278
|
"div",
|
|
4278
4279
|
{
|
|
4279
|
-
className: `${Ze.item} ${
|
|
4280
|
+
className: `${Ze.item} ${$.readFlag === 0 ? Ze.itemUnread : ""}`,
|
|
4280
4281
|
children: [
|
|
4281
4282
|
/* @__PURE__ */ o("div", { className: Ze.itemHeader, children: [
|
|
4282
4283
|
/* @__PURE__ */ e(
|
|
4283
4284
|
"span",
|
|
4284
4285
|
{
|
|
4285
|
-
className: `${Ze.statusDot} ${
|
|
4286
|
+
className: `${Ze.statusDot} ${$.status === "success" ? Ze.statusSuccess : Ze.statusFail}`
|
|
4286
4287
|
}
|
|
4287
4288
|
),
|
|
4288
|
-
/* @__PURE__ */ e("span", { className: Ze.itemTask, children:
|
|
4289
|
-
|
|
4289
|
+
/* @__PURE__ */ e("span", { className: Ze.itemTask, children: $.taskName || "未知任务" }),
|
|
4290
|
+
$.readFlag === 0 && /* @__PURE__ */ e(
|
|
4290
4291
|
"button",
|
|
4291
4292
|
{
|
|
4292
4293
|
type: "button",
|
|
4293
4294
|
className: Ze.markReadBtn,
|
|
4294
|
-
onClick: () => K(
|
|
4295
|
+
onClick: () => K($.id),
|
|
4295
4296
|
children: "已读"
|
|
4296
4297
|
}
|
|
4297
4298
|
)
|
|
4298
4299
|
] }),
|
|
4299
4300
|
/* @__PURE__ */ o("div", { className: Ze.itemMeta, children: [
|
|
4300
|
-
/* @__PURE__ */ e("span", { children:
|
|
4301
|
-
|
|
4301
|
+
/* @__PURE__ */ e("span", { children: $.agentDisplayName || "Agent" }),
|
|
4302
|
+
$.createTime && /* @__PURE__ */ e("span", { children: $.createTime.slice(5, 16).replace("T", " ") })
|
|
4302
4303
|
] }),
|
|
4303
|
-
|
|
4304
|
+
$.result && /* @__PURE__ */ e("div", { className: Ze.itemResult, children: $.result.length > 120 ? $.result.slice(0, 120) + "..." : $.result })
|
|
4304
4305
|
]
|
|
4305
4306
|
},
|
|
4306
|
-
|
|
4307
|
+
$.id
|
|
4307
4308
|
)) })
|
|
4308
4309
|
]
|
|
4309
4310
|
}
|
|
@@ -4409,9 +4410,9 @@ function tp({
|
|
|
4409
4410
|
return z(() => {
|
|
4410
4411
|
if (!u) return;
|
|
4411
4412
|
const x = (T) => {
|
|
4412
|
-
var Y,
|
|
4413
|
+
var Y, $;
|
|
4413
4414
|
const K = T.target;
|
|
4414
|
-
(Y = L.current) != null && Y.contains(K) || (
|
|
4415
|
+
(Y = L.current) != null && Y.contains(K) || ($ = W.current) != null && $.contains(K) || p(!1);
|
|
4415
4416
|
}, w = (T) => {
|
|
4416
4417
|
T.key === "Escape" && p(!1);
|
|
4417
4418
|
};
|
|
@@ -4720,7 +4721,7 @@ function Et(t, n, a, r = !1) {
|
|
|
4720
4721
|
const c = (u = t[n]) == null ? void 0 : u[a];
|
|
4721
4722
|
return typeof c == "boolean" ? c : r;
|
|
4722
4723
|
}
|
|
4723
|
-
function
|
|
4724
|
+
function Nt({
|
|
4724
4725
|
checked: t,
|
|
4725
4726
|
onChange: n,
|
|
4726
4727
|
title: a
|
|
@@ -4792,7 +4793,7 @@ function Qp({
|
|
|
4792
4793
|
/* @__PURE__ */ o("section", { className: b.section, children: [
|
|
4793
4794
|
/* @__PURE__ */ e("h3", { className: b.sectionTitle, children: "存储" }),
|
|
4794
4795
|
/* @__PURE__ */ e("div", { className: b.card, children: /* @__PURE__ */ e(Ie, { title: "本地会话缓存", desc: "缓存会话记录以加速历史加载。", children: /* @__PURE__ */ e(
|
|
4795
|
-
|
|
4796
|
+
Nt,
|
|
4796
4797
|
{
|
|
4797
4798
|
checked: Et(t, "general", "chatCache", !0),
|
|
4798
4799
|
onChange: (a) => n("general", { chatCache: a })
|
|
@@ -4857,7 +4858,7 @@ function Xp({
|
|
|
4857
4858
|
}
|
|
4858
4859
|
),
|
|
4859
4860
|
/* @__PURE__ */ e(Ie, { title: "紧凑消息密度", desc: "聊天消息行距更紧凑。", children: /* @__PURE__ */ e(
|
|
4860
|
-
|
|
4861
|
+
Nt,
|
|
4861
4862
|
{
|
|
4862
4863
|
checked: Et(t, "appearance", "compact"),
|
|
4863
4864
|
onChange: (a) => n("appearance", { compact: a })
|
|
@@ -4927,7 +4928,7 @@ function th({
|
|
|
4927
4928
|
}
|
|
4928
4929
|
) }),
|
|
4929
4930
|
/* @__PURE__ */ e(Ie, { title: "建议追问", desc: "回复结束后给出可点的追问建议。", children: /* @__PURE__ */ e(
|
|
4930
|
-
|
|
4931
|
+
Nt,
|
|
4931
4932
|
{
|
|
4932
4933
|
checked: Et(t, "personalize", "suggestReplies", !0),
|
|
4933
4934
|
onChange: (a) => n("personalize", { suggestReplies: a })
|
|
@@ -4944,7 +4945,7 @@ function nh({
|
|
|
4944
4945
|
/* @__PURE__ */ e("h3", { className: b.sectionTitle, children: "记忆与进化" }),
|
|
4945
4946
|
/* @__PURE__ */ o("div", { className: b.card, children: [
|
|
4946
4947
|
/* @__PURE__ */ e(Ie, { title: "对话记忆", desc: "允许伙伴记住对话要点,越用越懂你。", children: /* @__PURE__ */ e(
|
|
4947
|
-
|
|
4948
|
+
Nt,
|
|
4948
4949
|
{
|
|
4949
4950
|
checked: Et(t, "memory", "enabled", !0),
|
|
4950
4951
|
onChange: (a) => n("memory", { enabled: a })
|
|
@@ -4972,14 +4973,14 @@ function ah({
|
|
|
4972
4973
|
/* @__PURE__ */ e("h3", { className: b.sectionTitle, children: "智能体" }),
|
|
4973
4974
|
/* @__PURE__ */ o("div", { className: b.card, children: [
|
|
4974
4975
|
/* @__PURE__ */ e(Ie, { title: "会话自动小结", desc: "新建会话时自动为上一个会话生成小结,显示在聊天记录里。", children: /* @__PURE__ */ e(
|
|
4975
|
-
|
|
4976
|
+
Nt,
|
|
4976
4977
|
{
|
|
4977
4978
|
checked: Et(t, "agents", "autoSummary", !0),
|
|
4978
4979
|
onChange: (a) => n("agents", { autoSummary: a })
|
|
4979
4980
|
}
|
|
4980
4981
|
) }),
|
|
4981
4982
|
/* @__PURE__ */ e(Ie, { title: "开场问候", desc: "新任务页显示伙伴问候语。", children: /* @__PURE__ */ e(
|
|
4982
|
-
|
|
4983
|
+
Nt,
|
|
4983
4984
|
{
|
|
4984
4985
|
checked: Et(t, "agents", "greeting", !0),
|
|
4985
4986
|
onChange: (a) => n("agents", { greeting: a })
|
|
@@ -4996,14 +4997,14 @@ function oh({
|
|
|
4996
4997
|
/* @__PURE__ */ e("h3", { className: b.sectionTitle, children: "助理" }),
|
|
4997
4998
|
/* @__PURE__ */ o("div", { className: b.card, children: [
|
|
4998
4999
|
/* @__PURE__ */ e(Ie, { title: "任务到期提醒", desc: "定时任务到期时提醒你。", children: /* @__PURE__ */ e(
|
|
4999
|
-
|
|
5000
|
+
Nt,
|
|
5000
5001
|
{
|
|
5001
5002
|
checked: Et(t, "assistant", "reminders", !0),
|
|
5002
5003
|
onChange: (a) => n("assistant", { reminders: a })
|
|
5003
5004
|
}
|
|
5004
5005
|
) }),
|
|
5005
5006
|
/* @__PURE__ */ e(Ie, { title: "每日工作摘要", desc: "每天汇总你的任务进展。", children: /* @__PURE__ */ e(
|
|
5006
|
-
|
|
5007
|
+
Nt,
|
|
5007
5008
|
{
|
|
5008
5009
|
checked: Et(t, "assistant", "dailyDigest"),
|
|
5009
5010
|
onChange: (a) => n("assistant", { dailyDigest: a })
|
|
@@ -5037,7 +5038,7 @@ function sh({
|
|
|
5037
5038
|
title: "桌面端系统通知",
|
|
5038
5039
|
desc: c ? "收到伙伴回复或工作通知时弹系统通知。" : "当前浏览器不支持系统通知,请在桌面客户端使用。",
|
|
5039
5040
|
children: /* @__PURE__ */ e(
|
|
5040
|
-
|
|
5041
|
+
Nt,
|
|
5041
5042
|
{
|
|
5042
5043
|
checked: Et(t, "devices", "desktopNotify", !0),
|
|
5043
5044
|
onChange: (k) => {
|
|
@@ -5066,7 +5067,7 @@ function rh({
|
|
|
5066
5067
|
/* @__PURE__ */ e("h3", { className: b.sectionTitle, children: "安全中心" }),
|
|
5067
5068
|
/* @__PURE__ */ o("div", { className: b.card, children: [
|
|
5068
5069
|
/* @__PURE__ */ e(Ie, { title: "登录提醒", desc: "新设备首次访问工作台时通知你。", children: /* @__PURE__ */ e(
|
|
5069
|
-
|
|
5070
|
+
Nt,
|
|
5070
5071
|
{
|
|
5071
5072
|
checked: Et(t, "security", "loginNotify", !0),
|
|
5072
5073
|
onChange: (a) => n("security", { loginNotify: a })
|
|
@@ -5157,7 +5158,7 @@ function ch({ token: t }) {
|
|
|
5157
5158
|
z(() => {
|
|
5158
5159
|
Y();
|
|
5159
5160
|
}, [Y]);
|
|
5160
|
-
const
|
|
5161
|
+
const $ = /^https?:\/\/.+/i.test(u.endpoint.trim()), O = !L && u.name.trim() !== "" && $ && u.apiKey.trim() !== "" && u.modelName.trim() !== "", G = async () => {
|
|
5161
5162
|
if (O) {
|
|
5162
5163
|
W(!0);
|
|
5163
5164
|
try {
|
|
@@ -5217,7 +5218,7 @@ function ch({ token: t }) {
|
|
|
5217
5218
|
] })
|
|
5218
5219
|
] }),
|
|
5219
5220
|
/* @__PURE__ */ e(
|
|
5220
|
-
|
|
5221
|
+
Nt,
|
|
5221
5222
|
{
|
|
5222
5223
|
checked: R.enable,
|
|
5223
5224
|
title: R.enable ? "停用" : "启用",
|
|
@@ -5280,7 +5281,7 @@ function ch({ token: t }) {
|
|
|
5280
5281
|
onChange: (R) => p({ ...u, endpoint: R.target.value })
|
|
5281
5282
|
}
|
|
5282
5283
|
),
|
|
5283
|
-
u.endpoint.trim() !== "" &&
|
|
5284
|
+
u.endpoint.trim() !== "" && !$ && /* @__PURE__ */ e("div", { className: b.formHint, children: "端点需以 http:// 或 https:// 开头" })
|
|
5284
5285
|
] }),
|
|
5285
5286
|
/* @__PURE__ */ e(
|
|
5286
5287
|
"input",
|
|
@@ -5334,7 +5335,7 @@ function dh() {
|
|
|
5334
5335
|
/* @__PURE__ */ o("div", { className: b.card, children: [
|
|
5335
5336
|
/* @__PURE__ */ e(Ie, { title: "z-team 智能工作台", desc: "个人工作台 / 协作工作台 / 群学习。", children: /* @__PURE__ */ o("span", { className: b.mono, children: [
|
|
5336
5337
|
"v",
|
|
5337
|
-
"0.2.
|
|
5338
|
+
"0.2.117"
|
|
5338
5339
|
] }) }),
|
|
5339
5340
|
/* @__PURE__ */ e(Ie, { title: "运行形态", desc: "Web 浏览器接入,也可内嵌于桌面客户端。", children: /* @__PURE__ */ e("span", { className: b.mono, children: "Web" }) }),
|
|
5340
5341
|
/* @__PURE__ */ e(Ie, { title: "统一认证", desc: "登录态由 4A / CTC SSO 托管。", children: /* @__PURE__ */ e("span", { className: b.mono, children: "SSO" }) }),
|
|
@@ -5395,7 +5396,7 @@ function mh({
|
|
|
5395
5396
|
onClose: n,
|
|
5396
5397
|
token: a
|
|
5397
5398
|
}) {
|
|
5398
|
-
const [r, c] = d("general"), [u, p] = d(""), [h, k] = d({}), [L, W] = d(!1), [x, w] = d(!1), [T, K] = d("idle"), Y = ue({}),
|
|
5399
|
+
const [r, c] = d("general"), [u, p] = d(""), [h, k] = d({}), [L, W] = d(!1), [x, w] = d(!1), [T, K] = d("idle"), Y = ue({}), $ = ue(null);
|
|
5399
5400
|
Y.current = h;
|
|
5400
5401
|
const O = De(() => {
|
|
5401
5402
|
const g = u.trim().toLowerCase();
|
|
@@ -5422,7 +5423,7 @@ function mh({
|
|
|
5422
5423
|
};
|
|
5423
5424
|
}, [t, a]);
|
|
5424
5425
|
const U = J(async () => {
|
|
5425
|
-
|
|
5426
|
+
$.current != null && (window.clearTimeout($.current), $.current = null), K("saving");
|
|
5426
5427
|
try {
|
|
5427
5428
|
await Gs(a, Y.current), K("saved");
|
|
5428
5429
|
} catch {
|
|
@@ -5436,15 +5437,15 @@ function mh({
|
|
|
5436
5437
|
[g]: { ...C[g] ?? {}, ...y }
|
|
5437
5438
|
};
|
|
5438
5439
|
return Y.current = i, Fa(i), i;
|
|
5439
|
-
}), K("saving"),
|
|
5440
|
+
}), K("saving"), $.current != null && window.clearTimeout($.current), $.current = window.setTimeout(() => void U(), 600);
|
|
5440
5441
|
},
|
|
5441
5442
|
[U]
|
|
5442
5443
|
), R = J(() => {
|
|
5443
|
-
|
|
5444
|
+
$.current != null && U(), n();
|
|
5444
5445
|
}, [U, n]);
|
|
5445
5446
|
if (z(
|
|
5446
5447
|
() => () => {
|
|
5447
|
-
|
|
5448
|
+
$.current != null && window.clearTimeout($.current);
|
|
5448
5449
|
},
|
|
5449
5450
|
[]
|
|
5450
5451
|
), !t) return null;
|
|
@@ -5678,7 +5679,7 @@ function jh({
|
|
|
5678
5679
|
onOpenProject: k,
|
|
5679
5680
|
onClose: L
|
|
5680
5681
|
}) {
|
|
5681
|
-
const [W, x] = d(""), [w, T] = d(0), [K, Y] = d({ keyword: "", hits: [] }), [
|
|
5682
|
+
const [W, x] = d(""), [w, T] = d(0), [K, Y] = d({ keyword: "", hits: [] }), [$, O] = d(!1), G = ue(null), U = ue(null), E = W.trim(), R = E.toLowerCase();
|
|
5682
5683
|
z(() => {
|
|
5683
5684
|
if (E.length < Fh) {
|
|
5684
5685
|
O(!1);
|
|
@@ -5834,7 +5835,7 @@ function jh({
|
|
|
5834
5835
|
/* @__PURE__ */ o("div", { className: Oe.header, children: [
|
|
5835
5836
|
/* @__PURE__ */ e("span", { className: Oe.headerTitle, children: E ? "搜索结果" : "快捷操作 · 最近会话" }),
|
|
5836
5837
|
/* @__PURE__ */ o("span", { className: Oe.headerHints, children: [
|
|
5837
|
-
|
|
5838
|
+
$ ? /* @__PURE__ */ e("span", { className: Oe.searching, children: "搜索中…" }) : null,
|
|
5838
5839
|
/* @__PURE__ */ e("kbd", { className: Oe.kbd, children: "↑" }),
|
|
5839
5840
|
/* @__PURE__ */ e("kbd", { className: Oe.kbd, children: "↓" }),
|
|
5840
5841
|
/* @__PURE__ */ e("span", { children: "选择" }),
|
|
@@ -5941,7 +5942,7 @@ function Hh({
|
|
|
5941
5942
|
y && (f.add(T(y)), y.accountNo && f.add(String(y.accountNo)), y.jobNumber && f.add(String(y.jobNumber)));
|
|
5942
5943
|
}
|
|
5943
5944
|
return f;
|
|
5944
|
-
}, [a, K, T]),
|
|
5945
|
+
}, [a, K, T]), $ = J(
|
|
5945
5946
|
(f) => {
|
|
5946
5947
|
const g = K.get(String(f).trim());
|
|
5947
5948
|
return g ? g.name ? `${g.name} (${g.accountNo})` : g.accountNo : f;
|
|
@@ -5988,8 +5989,8 @@ function Hh({
|
|
|
5988
5989
|
(f) => r(a.filter((g) => g !== f)),
|
|
5989
5990
|
[a, r]
|
|
5990
5991
|
), R = De(
|
|
5991
|
-
() => a.map(
|
|
5992
|
-
[a,
|
|
5992
|
+
() => a.map($).join("、"),
|
|
5993
|
+
[a, $]
|
|
5993
5994
|
);
|
|
5994
5995
|
return /* @__PURE__ */ o("div", { className: m.participantWrap, children: [
|
|
5995
5996
|
/* @__PURE__ */ o(
|
|
@@ -6116,7 +6117,7 @@ function Hh({
|
|
|
6116
6117
|
)
|
|
6117
6118
|
] }),
|
|
6118
6119
|
/* @__PURE__ */ e("div", { className: m.participantList, children: a.length === 0 ? /* @__PURE__ */ e("div", { className: m.participantEmpty, children: "未选择参与人" }) : a.map((f) => /* @__PURE__ */ o("div", { className: m.participantSelectedItem, children: [
|
|
6119
|
-
/* @__PURE__ */ e("span", { className: m.participantItemName, children:
|
|
6120
|
+
/* @__PURE__ */ e("span", { className: m.participantItemName, children: $(f) }),
|
|
6120
6121
|
/* @__PURE__ */ e(
|
|
6121
6122
|
"button",
|
|
6122
6123
|
{
|
|
@@ -6647,7 +6648,7 @@ function zh({
|
|
|
6647
6648
|
allSkills: T,
|
|
6648
6649
|
skills: K,
|
|
6649
6650
|
isLocal: Y,
|
|
6650
|
-
projectsLoading:
|
|
6651
|
+
projectsLoading: $
|
|
6651
6652
|
} = V(
|
|
6652
6653
|
Bn((s) => ({
|
|
6653
6654
|
currentUser: s.currentUser,
|
|
@@ -6665,7 +6666,7 @@ function zh({
|
|
|
6665
6666
|
), O = V((s) => s.selectFile), G = V((s) => s.deleteScenarioInstance), U = V((s) => s.forkScenarioInstance), E = V((s) => s.updateScenarioInstance), R = V((s) => s.renameFile), f = V((s) => s.createFile), g = V((s) => s.createFolder), y = V((s) => s.deleteFile), C = V((s) => s.uploadFile), i = V((s) => s.uploadFolder), I = V((s) => s.downloadFile), B = V((s) => s.expandProject), ae = V((s) => s.loadAllSkills), j = V((s) => s.addProjectSkill), te = V((s) => s.removeProjectSkill), F = V((s) => s.refreshAgentSkills), S = V((s) => s.refreshAllAgentSkills), N = V((s) => s.syncFromProduction), ne = V((s) => s.fetchWorkspaceEnv), $e = V((s) => s.loadProjects), Se = De(
|
|
6666
6667
|
() => us(h),
|
|
6667
6668
|
[h]
|
|
6668
|
-
), [ce, _e] = d(null), [P, v] = d({ x: 0, y: 0 }), [Q, Z] = d(!1), me = ue(null),
|
|
6669
|
+
), [ce, _e] = d(null), [P, v] = d({ x: 0, y: 0 }), [Q, Z] = d(!1), me = ue(null), ge = ue(null), [pe, rt] = d(null), [q, ye] = d(!1), [Ce, Fe] = d({}), [Ue, nt] = d(
|
|
6669
6670
|
/* @__PURE__ */ new Set()
|
|
6670
6671
|
), [ze, at] = d(() => {
|
|
6671
6672
|
try {
|
|
@@ -6682,7 +6683,7 @@ function zh({
|
|
|
6682
6683
|
} catch {
|
|
6683
6684
|
return "3d";
|
|
6684
6685
|
}
|
|
6685
|
-
}), [Qe, qe] = d(!1), it = V((s) => s.token), [
|
|
6686
|
+
}), [Qe, qe] = d(!1), it = V((s) => s.token), [St, Yt] = d(!1);
|
|
6686
6687
|
z(() => {
|
|
6687
6688
|
if (!a) return;
|
|
6688
6689
|
const s = (l) => {
|
|
@@ -6690,7 +6691,7 @@ function zh({
|
|
|
6690
6691
|
};
|
|
6691
6692
|
return document.addEventListener("keydown", s), () => document.removeEventListener("keydown", s);
|
|
6692
6693
|
}, [a]);
|
|
6693
|
-
const [bn, Pt] = d(!1),
|
|
6694
|
+
const [bn, Pt] = d(!1), Tt = ue(!0), [kt, Qt] = d(() => {
|
|
6694
6695
|
try {
|
|
6695
6696
|
const s = localStorage.getItem("ft_sidebar_participant_filter");
|
|
6696
6697
|
return s ? JSON.parse(s) : [];
|
|
@@ -6722,9 +6723,9 @@ function zh({
|
|
|
6722
6723
|
}, [h]), z(() => {
|
|
6723
6724
|
Zt.current && localStorage.setItem(
|
|
6724
6725
|
"ft_sidebar_participant_filter",
|
|
6725
|
-
JSON.stringify(
|
|
6726
|
+
JSON.stringify(kt)
|
|
6726
6727
|
);
|
|
6727
|
-
}, [
|
|
6728
|
+
}, [kt]);
|
|
6728
6729
|
const Gn = De(() => {
|
|
6729
6730
|
const s = /* @__PURE__ */ new Map();
|
|
6730
6731
|
for (const l of Ee) {
|
|
@@ -6781,7 +6782,7 @@ function zh({
|
|
|
6781
6782
|
const s = /* @__PURE__ */ new Map();
|
|
6782
6783
|
for (const l of tn) s.set(Xe(l.id), l);
|
|
6783
6784
|
return s;
|
|
6784
|
-
}, [tn]), [
|
|
6785
|
+
}, [tn]), [It, pt] = d(
|
|
6785
6786
|
() => {
|
|
6786
6787
|
try {
|
|
6787
6788
|
return localStorage.getItem(
|
|
@@ -6809,8 +6810,8 @@ function zh({
|
|
|
6809
6810
|
}
|
|
6810
6811
|
});
|
|
6811
6812
|
z(() => {
|
|
6812
|
-
localStorage.setItem("ft_sidebar_session_time_filter",
|
|
6813
|
-
}, [
|
|
6813
|
+
localStorage.setItem("ft_sidebar_session_time_filter", It);
|
|
6814
|
+
}, [It]), z(() => {
|
|
6814
6815
|
localStorage.setItem(
|
|
6815
6816
|
"ft_sidebar_session_groupDims",
|
|
6816
6817
|
JSON.stringify(ht)
|
|
@@ -6830,10 +6831,10 @@ function zh({
|
|
|
6830
6831
|
dim: s,
|
|
6831
6832
|
order: l.order === "asc" ? "desc" : "asc"
|
|
6832
6833
|
} : null);
|
|
6833
|
-
}, []),
|
|
6834
|
+
}, []), bt = De(() => {
|
|
6834
6835
|
let s = en;
|
|
6835
|
-
if (
|
|
6836
|
-
const l =
|
|
6836
|
+
if (It !== "all") {
|
|
6837
|
+
const l = It === "1d" ? 1 : It === "3d" ? 3 : 7, _ = Date.now() - l * 864e5;
|
|
6837
6838
|
s = s.filter(
|
|
6838
6839
|
(X) => qt(X.updateTime || X.createTime) >= _
|
|
6839
6840
|
);
|
|
@@ -6856,7 +6857,7 @@ function zh({
|
|
|
6856
6857
|
l.updateTime || l.createTime || ""
|
|
6857
6858
|
);
|
|
6858
6859
|
});
|
|
6859
|
-
}, [en,
|
|
6860
|
+
}, [en, It, ot]), [vt, Vn] = d(() => {
|
|
6860
6861
|
try {
|
|
6861
6862
|
const s = localStorage.getItem("ft_sidebar_section_collapsed"), l = s ? JSON.parse(s) : [];
|
|
6862
6863
|
return new Set(
|
|
@@ -6874,7 +6875,7 @@ function zh({
|
|
|
6874
6875
|
JSON.stringify([...vt])
|
|
6875
6876
|
);
|
|
6876
6877
|
}, [vt]);
|
|
6877
|
-
const
|
|
6878
|
+
const M = J(
|
|
6878
6879
|
(s) => {
|
|
6879
6880
|
const l = vt.has(s);
|
|
6880
6881
|
Vn((_) => {
|
|
@@ -6898,7 +6899,7 @@ function zh({
|
|
|
6898
6899
|
z(() => {
|
|
6899
6900
|
oe();
|
|
6900
6901
|
}, [oe]);
|
|
6901
|
-
const
|
|
6902
|
+
const he = J((s) => {
|
|
6902
6903
|
at((l) => l.indexOf(s) >= 0 ? l.filter((X) => X !== s) : [...l, s]);
|
|
6903
6904
|
}, []), je = J((s) => {
|
|
6904
6905
|
ke((l) => {
|
|
@@ -6913,28 +6914,28 @@ function zh({
|
|
|
6913
6914
|
}
|
|
6914
6915
|
return l.filter((X) => X.dim !== s);
|
|
6915
6916
|
});
|
|
6916
|
-
}, []), lt = xe !== "3d" ||
|
|
6917
|
+
}, []), lt = xe !== "3d" || kt.length > 0 || ze.length > 0 || ee.length > 0, Cn = J(() => {
|
|
6917
6918
|
le("3d"), Qt([]);
|
|
6918
6919
|
}, []);
|
|
6919
6920
|
z(() => {
|
|
6920
|
-
if (
|
|
6921
|
-
|
|
6921
|
+
if (Tt.current) {
|
|
6922
|
+
Tt.current = !1;
|
|
6922
6923
|
return;
|
|
6923
6924
|
}
|
|
6924
6925
|
Pt(!0);
|
|
6925
6926
|
const s = setTimeout(() => Pt(!1), 300);
|
|
6926
6927
|
return () => clearTimeout(s);
|
|
6927
|
-
}, [ze, ee,
|
|
6928
|
-
const Ot =
|
|
6928
|
+
}, [ze, ee, kt, xe]);
|
|
6929
|
+
const Ot = $ || bn, Dt = J((s) => {
|
|
6929
6930
|
Be((l) => {
|
|
6930
6931
|
const _ = new Set(l);
|
|
6931
6932
|
return _.has(s) ? _.delete(s) : _.add(s), _;
|
|
6932
6933
|
});
|
|
6933
|
-
}, []),
|
|
6934
|
+
}, []), Lt = De(() => {
|
|
6934
6935
|
var be;
|
|
6935
|
-
const l = [...
|
|
6936
|
+
const l = [...kt.length === 0 ? L : L.filter((Te) => {
|
|
6936
6937
|
const Ae = Array.isArray(Te.members) ? Te.members.map((Pe) => String(Pe)) : [];
|
|
6937
|
-
return
|
|
6938
|
+
return kt.some(
|
|
6938
6939
|
(Pe) => Xt(Pe).some((Ke) => Ae.includes(Ke))
|
|
6939
6940
|
);
|
|
6940
6941
|
})].sort((Te, Ae) => {
|
|
@@ -6980,35 +6981,35 @@ function zh({
|
|
|
6980
6981
|
if (Ae.length === 0) return [];
|
|
6981
6982
|
const [Ke, ...Ve] = Ae, He = /* @__PURE__ */ new Map();
|
|
6982
6983
|
for (const mt of Te) {
|
|
6983
|
-
const [
|
|
6984
|
-
He.has(
|
|
6984
|
+
const [Mt, $t] = _(mt, Ke);
|
|
6985
|
+
He.has(Mt) || He.set(Mt, { label: $t, items: [] }), He.get(Mt).items.push(mt);
|
|
6985
6986
|
}
|
|
6986
6987
|
const ut = [];
|
|
6987
|
-
for (const [mt, { label:
|
|
6988
|
+
for (const [mt, { label: Mt, items: $t }] of He) {
|
|
6988
6989
|
const Ht = `${Pe}::${Ke}=${mt}`;
|
|
6989
|
-
Ve.length === 0 ? ut.push({ key: Ht, label:
|
|
6990
|
+
Ve.length === 0 ? ut.push({ key: Ht, label: Mt, projects: $t, rawKey: mt }) : ut.push({
|
|
6990
6991
|
key: Ht,
|
|
6991
|
-
label:
|
|
6992
|
-
projects:
|
|
6993
|
-
children: re(
|
|
6992
|
+
label: Mt,
|
|
6993
|
+
projects: $t,
|
|
6994
|
+
children: re($t, Ve, Ht),
|
|
6994
6995
|
rawKey: mt
|
|
6995
6996
|
});
|
|
6996
6997
|
}
|
|
6997
|
-
return ut.sort((mt,
|
|
6998
|
+
return ut.sort((mt, Mt) => {
|
|
6998
6999
|
if (Ke === "time") {
|
|
6999
|
-
const
|
|
7000
|
-
return
|
|
7000
|
+
const $t = mt.rawKey === "(未知时间)" ? "" : mt.rawKey || "", Ht = Mt.rawKey === "(未知时间)" ? "" : Mt.rawKey || "";
|
|
7001
|
+
return !$t && !Ht ? 0 : $t ? Ht ? X ? $t.localeCompare(Ht) : Ht.localeCompare($t) : -1 : 1;
|
|
7001
7002
|
}
|
|
7002
|
-
return
|
|
7003
|
+
return Mt.projects.length - mt.projects.length;
|
|
7003
7004
|
}), ut;
|
|
7004
7005
|
}
|
|
7005
7006
|
return re(l, ze, "");
|
|
7006
|
-
}, [L, ze, ee,
|
|
7007
|
+
}, [L, ze, ee, kt, Xt]), Sn = De(
|
|
7007
7008
|
() => {
|
|
7008
7009
|
var s;
|
|
7009
|
-
return ze.length === 0 ? ((s =
|
|
7010
|
+
return ze.length === 0 ? ((s = Lt[0]) == null ? void 0 : s.projects.length) ?? 0 : Lt.reduce((l, _) => l + _.projects.length, 0);
|
|
7010
7011
|
},
|
|
7011
|
-
[
|
|
7012
|
+
[Lt, ze]
|
|
7012
7013
|
), Tn = De(() => {
|
|
7013
7014
|
if (ht.length === 0) return [];
|
|
7014
7015
|
function s(_, X) {
|
|
@@ -7045,8 +7046,8 @@ function zh({
|
|
|
7045
7046
|
return Ve.sessions.length - Ke.sessions.length;
|
|
7046
7047
|
}), Pe;
|
|
7047
7048
|
}
|
|
7048
|
-
return l(
|
|
7049
|
-
}, [
|
|
7049
|
+
return l(bt, ht, "");
|
|
7050
|
+
}, [bt, ht, Kt]);
|
|
7050
7051
|
z(() => {
|
|
7051
7052
|
Fe({}), k && Kn.current.forEach((s) => {
|
|
7052
7053
|
const l = s.indexOf("/");
|
|
@@ -7071,7 +7072,7 @@ function zh({
|
|
|
7071
7072
|
Z(!1);
|
|
7072
7073
|
return;
|
|
7073
7074
|
}
|
|
7074
|
-
const s =
|
|
7075
|
+
const s = ge.current;
|
|
7075
7076
|
if (!s) return;
|
|
7076
7077
|
const { width: l, height: _ } = s.getBoundingClientRect(), X = 8;
|
|
7077
7078
|
let re = ce.initialX, be = ce.initialY;
|
|
@@ -7522,7 +7523,7 @@ function zh({
|
|
|
7522
7523
|
{
|
|
7523
7524
|
members: Ee,
|
|
7524
7525
|
loading: vn,
|
|
7525
|
-
value:
|
|
7526
|
+
value: kt,
|
|
7526
7527
|
onChange: Qt
|
|
7527
7528
|
}
|
|
7528
7529
|
),
|
|
@@ -7542,10 +7543,10 @@ function zh({
|
|
|
7542
7543
|
{
|
|
7543
7544
|
type: "button",
|
|
7544
7545
|
className: m.iconBtn,
|
|
7545
|
-
disabled:
|
|
7546
|
+
disabled: $,
|
|
7546
7547
|
title: "刷新工作区",
|
|
7547
7548
|
onClick: oe,
|
|
7548
|
-
children: /* @__PURE__ */ e("span", { className:
|
|
7549
|
+
children: /* @__PURE__ */ e("span", { className: $ ? m.refreshIconLoading : void 0, children: se.refresh })
|
|
7549
7550
|
}
|
|
7550
7551
|
)
|
|
7551
7552
|
] })
|
|
@@ -7565,7 +7566,7 @@ function zh({
|
|
|
7565
7566
|
type: "button",
|
|
7566
7567
|
className: `${m.iconChip} ${m.iconChipWithLabel} ${_ ? m.iconChipActive : ""}`,
|
|
7567
7568
|
title: `按${s.label}分组`,
|
|
7568
|
-
onClick: () =>
|
|
7569
|
+
onClick: () => he(s.key),
|
|
7569
7570
|
children: [
|
|
7570
7571
|
_ && /* @__PURE__ */ e("span", { className: m.iconChipOrder, children: l + 1 }),
|
|
7571
7572
|
s.icon,
|
|
@@ -7614,7 +7615,7 @@ function zh({
|
|
|
7614
7615
|
"button",
|
|
7615
7616
|
{
|
|
7616
7617
|
type: "button",
|
|
7617
|
-
className: `${m.filterTimeOption} ${
|
|
7618
|
+
className: `${m.filterTimeOption} ${It === s.key ? m.filterTimeOptionActive : ""}`,
|
|
7618
7619
|
onClick: () => pt(s.key),
|
|
7619
7620
|
children: s.label
|
|
7620
7621
|
},
|
|
@@ -7690,10 +7691,10 @@ function zh({
|
|
|
7690
7691
|
onOpenPersonalTab: a.onOpenPersonalTab,
|
|
7691
7692
|
onOpenWorkbenchShell: a.onOpenWorkbenchShell,
|
|
7692
7693
|
onOpenSearch: () => Yt((s) => !s),
|
|
7693
|
-
searchActive:
|
|
7694
|
+
searchActive: St
|
|
7694
7695
|
}
|
|
7695
7696
|
) }),
|
|
7696
|
-
|
|
7697
|
+
St && /* @__PURE__ */ e(
|
|
7697
7698
|
jh,
|
|
7698
7699
|
{
|
|
7699
7700
|
sessions: en,
|
|
@@ -7720,12 +7721,12 @@ function zh({
|
|
|
7720
7721
|
"div",
|
|
7721
7722
|
{
|
|
7722
7723
|
className: `${m.groupHeader} ${m.sectionHeader}`,
|
|
7723
|
-
onClick: () =>
|
|
7724
|
+
onClick: () => M("personal"),
|
|
7724
7725
|
children: [
|
|
7725
7726
|
/* @__PURE__ */ e("span", { className: m.treeArrow, children: se.chevron(!vt.has("personal")) }),
|
|
7726
7727
|
/* @__PURE__ */ e("span", { className: m.sectionIcon, children: se.user }),
|
|
7727
7728
|
/* @__PURE__ */ e("span", { className: m.groupLabel, children: "单聊" }),
|
|
7728
|
-
/* @__PURE__ */ e("span", { className: m.groupCount, children:
|
|
7729
|
+
/* @__PURE__ */ e("span", { className: m.groupCount, children: bt.length }),
|
|
7729
7730
|
/* @__PURE__ */ e(
|
|
7730
7731
|
Pa,
|
|
7731
7732
|
{
|
|
@@ -7788,19 +7789,19 @@ function zh({
|
|
|
7788
7789
|
)
|
|
7789
7790
|
] }) : /* @__PURE__ */ e("div", { className: m.emptyHint, children: "本机 Agent 未运行:启动 Z-OPC 桌面端伴生服务后可用" })
|
|
7790
7791
|
] }),
|
|
7791
|
-
ht.length === 0 ?
|
|
7792
|
+
ht.length === 0 ? bt.map(
|
|
7792
7793
|
(s) => Qn(s)
|
|
7793
7794
|
) : Tn.map(
|
|
7794
7795
|
(s) => Na(s, 0)
|
|
7795
7796
|
),
|
|
7796
|
-
!Ot &&
|
|
7797
|
+
!Ot && bt.length === 0 && /* @__PURE__ */ e("div", { className: m.emptyHint, children: It !== "all" ? "该时间段内无单聊" : "暂无单聊,点「云端任务」开始" })
|
|
7797
7798
|
] })
|
|
7798
7799
|
] }),
|
|
7799
7800
|
/* @__PURE__ */ o(
|
|
7800
7801
|
"div",
|
|
7801
7802
|
{
|
|
7802
7803
|
className: `${m.groupHeader} ${m.sectionHeader}`,
|
|
7803
|
-
onClick: () =>
|
|
7804
|
+
onClick: () => M("group"),
|
|
7804
7805
|
children: [
|
|
7805
7806
|
/* @__PURE__ */ e("span", { className: m.treeArrow, children: se.chevron(!vt.has("group")) }),
|
|
7806
7807
|
/* @__PURE__ */ e("span", { className: m.sectionIcon, children: se.groupChat }),
|
|
@@ -7829,9 +7830,9 @@ function zh({
|
|
|
7829
7830
|
}
|
|
7830
7831
|
),
|
|
7831
7832
|
!vt.has("group") && /* @__PURE__ */ o(et, { children: [
|
|
7832
|
-
ze.length === 0 ? (Aa =
|
|
7833
|
+
ze.length === 0 ? (Aa = Lt[0]) == null ? void 0 : Aa.projects.map(
|
|
7833
7834
|
(s) => Yn(s)
|
|
7834
|
-
) :
|
|
7835
|
+
) : Lt.map((s) => Ca(s, 0)),
|
|
7835
7836
|
!Ot && L.length === 0 && /* @__PURE__ */ e("div", { className: m.emptyHint, children: "暂无工作区,点击「+ 新建」创建" }),
|
|
7836
7837
|
!Ot && L.length > 0 && Sn === 0 && /* @__PURE__ */ e("div", { className: m.emptyHint, children: "无匹配的工作区,请调整过滤条件" })
|
|
7837
7838
|
] })
|
|
@@ -7840,7 +7841,7 @@ function zh({
|
|
|
7840
7841
|
ce && /* @__PURE__ */ e(
|
|
7841
7842
|
"div",
|
|
7842
7843
|
{
|
|
7843
|
-
ref:
|
|
7844
|
+
ref: ge,
|
|
7844
7845
|
className: m.contextMenu,
|
|
7845
7846
|
style: {
|
|
7846
7847
|
left: P.x,
|
|
@@ -8124,7 +8125,7 @@ function ho({
|
|
|
8124
8125
|
token: v.token,
|
|
8125
8126
|
createProjectAndSendFirstMessage: v.createProjectAndSendFirstMessage
|
|
8126
8127
|
}))
|
|
8127
|
-
), [h, k] = d([]), [L, W] = d(!0), [x, w] = d(""), [T, K] = d(""), [Y,
|
|
8128
|
+
), [h, k] = d([]), [L, W] = d(!0), [x, w] = d(""), [T, K] = d(""), [Y, $] = d(!1), [O, G] = d(""), [U, E] = d(!1), [R, f] = d(""), [g, y] = d([]), [C, i] = d([]), [I, B] = d(
|
|
8128
8129
|
() => localStorage.getItem(sa) || ""
|
|
8129
8130
|
), [ae, j] = d(!1);
|
|
8130
8131
|
z(() => {
|
|
@@ -8167,7 +8168,7 @@ function ho({
|
|
|
8167
8168
|
return;
|
|
8168
8169
|
}
|
|
8169
8170
|
w(""), k(Z);
|
|
8170
|
-
const me = Z.find((
|
|
8171
|
+
const me = Z.find((ge) => ge.isDefault || ge.is_default) ?? (Z.length === 1 ? Z[0] : null);
|
|
8171
8172
|
me && K(me.code);
|
|
8172
8173
|
} catch (Q) {
|
|
8173
8174
|
v || (k([]), w(
|
|
@@ -8183,7 +8184,7 @@ function ho({
|
|
|
8183
8184
|
if (!Y) return;
|
|
8184
8185
|
const v = (Q) => {
|
|
8185
8186
|
const Z = document.querySelector(`.${de.scenarioWrap}`);
|
|
8186
|
-
Z && !Z.contains(Q.target) &&
|
|
8187
|
+
Z && !Z.contains(Q.target) && $(!1);
|
|
8187
8188
|
};
|
|
8188
8189
|
return document.addEventListener("mousedown", v), () => document.removeEventListener("mousedown", v);
|
|
8189
8190
|
}, [Y]);
|
|
@@ -8235,9 +8236,9 @@ function ho({
|
|
|
8235
8236
|
T,
|
|
8236
8237
|
v
|
|
8237
8238
|
);
|
|
8238
|
-
} catch (
|
|
8239
|
-
const pe =
|
|
8240
|
-
f(pe), ca(
|
|
8239
|
+
} catch (ge) {
|
|
8240
|
+
const pe = ge instanceof Error ? ge.message : ca(ge) && ge.userMessage || "创建失败";
|
|
8241
|
+
f(pe), ca(ge) || Re(pe, "error"), E(!1);
|
|
8241
8242
|
}
|
|
8242
8243
|
}, [O, T, p, a, r]), ce = fa(), _e = J(
|
|
8243
8244
|
(v) => {
|
|
@@ -8331,7 +8332,7 @@ function ho({
|
|
|
8331
8332
|
{
|
|
8332
8333
|
className: de.scenarioWrap,
|
|
8333
8334
|
onClick: () => {
|
|
8334
|
-
h.length === 0 || U ||
|
|
8335
|
+
h.length === 0 || U || $((v) => !v);
|
|
8335
8336
|
},
|
|
8336
8337
|
title: "选择场景",
|
|
8337
8338
|
children: [
|
|
@@ -8350,13 +8351,13 @@ function ho({
|
|
|
8350
8351
|
className: de.scenarioDropdown,
|
|
8351
8352
|
onClick: (v) => v.stopPropagation(),
|
|
8352
8353
|
children: h.map((v) => {
|
|
8353
|
-
const Q = (v.workspaceDirectories ?? v.workspace_directories ?? []).filter((ye) => ye && ye !== ".z_team"), Z = Q.length > 0 ? Q.join("、") : "(无业务目录)", me = v.agentCount ?? v.agent_count ?? 0,
|
|
8354
|
+
const Q = (v.workspaceDirectories ?? v.workspace_directories ?? []).filter((ye) => ye && ye !== ".z_team"), Z = Q.length > 0 ? Q.join("、") : "(无业务目录)", me = v.agentCount ?? v.agent_count ?? 0, ge = v.skillInstallCount ?? v.skill_install_count ?? 0, pe = `将创建目录:${Z};智能体 ${me} 个;预装技能 ${ge} 个`, rt = !!(v.isDefault || v.is_default), q = v.code === T;
|
|
8354
8355
|
return /* @__PURE__ */ o(
|
|
8355
8356
|
"div",
|
|
8356
8357
|
{
|
|
8357
8358
|
className: `${de.scenarioOption} ${q ? de.scenarioOptionActive : ""}`,
|
|
8358
8359
|
onClick: () => {
|
|
8359
|
-
K(v.code),
|
|
8360
|
+
K(v.code), $(!1);
|
|
8360
8361
|
},
|
|
8361
8362
|
children: [
|
|
8362
8363
|
/* @__PURE__ */ o("div", { className: de.scenarioOptionName, children: [
|
|
@@ -8475,7 +8476,9 @@ const Mf = "_layout_1ae41_1", $f = "_banner_1ae41_8", Af = "_bannerLeft_1ae41_20
|
|
|
8475
8476
|
smartWorkbenchArea: Eg
|
|
8476
8477
|
}, Pg = "/api";
|
|
8477
8478
|
Rr({ apiBase: Pg });
|
|
8478
|
-
const Og = "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", Dg =
|
|
8479
|
+
const Og = "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", Dg = yt(() => import("./index-7BLiamsQ.js")), Rg = yt(() => import("./index-DqOu9BQz.js")), Fg = yt(() => import("./index-2lN-Rl1M.js"));
|
|
8480
|
+
yt(() => import("./index-CKZNKAX2.js"));
|
|
8481
|
+
const Bg = yt(() => import("./index-CX43f-gO.js")), jg = yt(() => import("./index-B3pRyMCs.js").then((t) => t.i)), Hg = yt(() => import("./index-C5v-QY-g.js")), Wg = yt(() => import("./index-CjKGX5WH.js")), Ug = yt(() => import("./index-CiqqwYc_.js")), zg = yt(() => import("./index-BkOqGHou.js")), Gg = yt(() => import("./index-BJdLTG7d.js")), Kg = yt(() => import("./index-BUmU1hQz.js").then((t) => ({ default: t.default }))), fo = yt(() => import("./SystemShell-Dj1zO3Lq.js")), Go = "ft_popup_read";
|
|
8479
8482
|
function go(t) {
|
|
8480
8483
|
return t.id != null ? String(t.id) : `${t.title ?? ""}|${t.content ?? ""}`;
|
|
8481
8484
|
}
|
|
@@ -8508,30 +8511,30 @@ function Vg({
|
|
|
8508
8511
|
onCloseNewChat: p
|
|
8509
8512
|
}) {
|
|
8510
8513
|
const { currentUser: h, currentProject: k, clearCurrentProject: L } = V(
|
|
8511
|
-
Bn((
|
|
8512
|
-
currentUser:
|
|
8513
|
-
currentProject:
|
|
8514
|
-
clearCurrentProject:
|
|
8514
|
+
Bn((M) => ({
|
|
8515
|
+
currentUser: M.currentUser,
|
|
8516
|
+
currentProject: M.currentProject,
|
|
8517
|
+
clearCurrentProject: M.clearCurrentProject
|
|
8515
8518
|
}))
|
|
8516
|
-
), W = V((
|
|
8519
|
+
), W = V((M) => M.wsState), x = V((M) => M.token), w = ue(null), T = zr(260, 180, 400, "left"), [K, Y] = d(
|
|
8517
8520
|
() => localStorage.getItem("ft_sidebar_collapsed") === "true"
|
|
8518
|
-
), [
|
|
8519
|
-
const
|
|
8520
|
-
return (
|
|
8521
|
+
), [$, O] = d(!1), [G, U] = d(0), [E, R] = d(!1), [f, g] = d(null), [y, C] = d(0), [i, I] = d(!1), [B, ae] = d(0), [j, te] = d([]), [F, S] = d(0), [N, ne] = d(!1), [$e, Se] = d([]), [ce, _e] = d(0), P = De(() => {
|
|
8522
|
+
const M = f == null ? void 0 : f.announcements;
|
|
8523
|
+
return (M && M.length > 0 ? M : f != null && f.announcement ? [f.announcement] : []).filter((he) => he.title || he.content);
|
|
8521
8524
|
}, [f]), v = De(
|
|
8522
8525
|
() => Math.max(1e3, (f == null ? void 0 : f.bannerRotateInterval) ?? 5e3),
|
|
8523
8526
|
[f == null ? void 0 : f.bannerRotateInterval]
|
|
8524
8527
|
);
|
|
8525
8528
|
z(() => {
|
|
8526
8529
|
if (P.length <= 1 || i) return;
|
|
8527
|
-
const
|
|
8530
|
+
const M = setInterval(() => {
|
|
8528
8531
|
document.hidden || C((oe) => (oe + 1) % P.length);
|
|
8529
8532
|
}, v);
|
|
8530
|
-
return () => clearInterval(
|
|
8533
|
+
return () => clearInterval(M);
|
|
8531
8534
|
}, [P.length, i, v]), z(() => {
|
|
8532
8535
|
if (N) return;
|
|
8533
|
-
const
|
|
8534
|
-
(
|
|
8536
|
+
const M = Ko(), oe = P.filter(
|
|
8537
|
+
(he) => he.remindType === "POPUP" && !M.includes(go(he))
|
|
8535
8538
|
);
|
|
8536
8539
|
oe.length !== 0 && (te(oe), S(0), ne(!0));
|
|
8537
8540
|
}, [P, N]);
|
|
@@ -8543,53 +8546,53 @@ function Vg({
|
|
|
8543
8546
|
}
|
|
8544
8547
|
}, []);
|
|
8545
8548
|
z(() => {
|
|
8546
|
-
let
|
|
8549
|
+
let M = !0;
|
|
8547
8550
|
const oe = async () => {
|
|
8548
8551
|
try {
|
|
8549
8552
|
const je = await za();
|
|
8550
|
-
|
|
8553
|
+
M && (g(je), Se((lt) => lt.length > 0 ? lt : je.quotes ?? []));
|
|
8551
8554
|
} catch {
|
|
8552
8555
|
}
|
|
8553
8556
|
};
|
|
8554
8557
|
oe();
|
|
8555
|
-
const
|
|
8558
|
+
const he = setInterval(() => void oe(), 6e4);
|
|
8556
8559
|
return () => {
|
|
8557
|
-
|
|
8560
|
+
M = !1, clearInterval(he);
|
|
8558
8561
|
};
|
|
8559
8562
|
}, []), z(() => {
|
|
8560
8563
|
if ($e.length === 0) return;
|
|
8561
|
-
const
|
|
8564
|
+
const M = setInterval(() => {
|
|
8562
8565
|
document.hidden || _e((oe) => {
|
|
8563
|
-
const
|
|
8564
|
-
return
|
|
8566
|
+
const he = oe + 1;
|
|
8567
|
+
return he < $e.length ? he : (Q(), 0);
|
|
8565
8568
|
});
|
|
8566
8569
|
}, 1e4);
|
|
8567
|
-
return () => clearInterval(
|
|
8570
|
+
return () => clearInterval(M);
|
|
8568
8571
|
}, [$e, Q]);
|
|
8569
|
-
const [Z, me] = d(null), [
|
|
8572
|
+
const [Z, me] = d(null), [ge, pe] = d("chat"), [rt, q] = d(0), [ye, Ce] = d(0), [Fe, Ue] = d(null), nt = Il(), [ze, at] = d("group"), [ee, ke] = d([]), ie = De(
|
|
8570
8573
|
() => ft(h, "personal"),
|
|
8571
8574
|
[h]
|
|
8572
8575
|
);
|
|
8573
8576
|
z(() => {
|
|
8574
|
-
ie && la(V.getState().token).then((
|
|
8577
|
+
ie && la(V.getState().token).then((M) => ke(M)).catch(() => {
|
|
8575
8578
|
});
|
|
8576
8579
|
}, [ie, Fe == null ? void 0 : Fe.ts]);
|
|
8577
8580
|
const Be = J(
|
|
8578
|
-
(
|
|
8581
|
+
(M, oe = null, he = !1) => {
|
|
8579
8582
|
O(!1), at("personal"), Ue(
|
|
8580
|
-
(je) => je && je.kind === "chat" && je.agent.id ===
|
|
8583
|
+
(je) => je && je.kind === "chat" && je.agent.id === M.id && je.sessionId === oe && je.draft === he ? je : { kind: "chat", agent: M, sessionId: oe, draft: he, ts: Date.now() }
|
|
8581
8584
|
);
|
|
8582
8585
|
},
|
|
8583
8586
|
[]
|
|
8584
8587
|
), xe = J(
|
|
8585
|
-
(
|
|
8588
|
+
(M, oe) => Be(M, oe),
|
|
8586
8589
|
[Be]
|
|
8587
|
-
), le = J((
|
|
8590
|
+
), le = J((M) => {
|
|
8588
8591
|
O(!1), at("personal"), Ue(
|
|
8589
|
-
(oe) => oe && oe.kind === "chat" && oe.lane === "local" && Wt(oe.sessionId,
|
|
8592
|
+
(oe) => oe && oe.kind === "chat" && oe.lane === "local" && Wt(oe.sessionId, M) ? oe : {
|
|
8590
8593
|
kind: "chat",
|
|
8591
8594
|
agent: null,
|
|
8592
|
-
sessionId:
|
|
8595
|
+
sessionId: M,
|
|
8593
8596
|
lane: "local",
|
|
8594
8597
|
ts: Date.now()
|
|
8595
8598
|
}
|
|
@@ -8602,37 +8605,37 @@ function Vg({
|
|
|
8602
8605
|
lane: "local",
|
|
8603
8606
|
ts: Date.now()
|
|
8604
8607
|
});
|
|
8605
|
-
}, []), qe = J((
|
|
8606
|
-
O(!1), at("personal"), Ue(
|
|
8608
|
+
}, []), qe = J((M) => {
|
|
8609
|
+
O(!1), at("personal"), Ue(M);
|
|
8607
8610
|
}, []), it = J(() => {
|
|
8608
8611
|
O(!1), at("group"), Ue(null), L();
|
|
8609
|
-
}, [L]),
|
|
8610
|
-
(
|
|
8612
|
+
}, [L]), St = J(
|
|
8613
|
+
(M) => {
|
|
8611
8614
|
const oe = bl(ee);
|
|
8612
8615
|
if (!oe) {
|
|
8613
8616
|
Re("暂无可用伙伴,请先在「更多能力」里创建伙伴", "warning");
|
|
8614
8617
|
return;
|
|
8615
8618
|
}
|
|
8616
|
-
const
|
|
8619
|
+
const he = M.length > 20 ? `${M.slice(0, 20)}…` : M;
|
|
8617
8620
|
ys(
|
|
8618
8621
|
oe.id,
|
|
8619
|
-
|
|
8622
|
+
he || "新会话",
|
|
8620
8623
|
V.getState().token
|
|
8621
8624
|
).then((je) => {
|
|
8622
8625
|
O(!1), at("personal"), Ue({
|
|
8623
8626
|
kind: "chat",
|
|
8624
8627
|
agent: oe,
|
|
8625
8628
|
sessionId: je.id,
|
|
8626
|
-
autoSendDraft:
|
|
8629
|
+
autoSendDraft: M,
|
|
8627
8630
|
ts: Date.now()
|
|
8628
8631
|
});
|
|
8629
8632
|
}).catch(() => Re("会话创建失败,请重试", "error"));
|
|
8630
8633
|
},
|
|
8631
8634
|
[ee]
|
|
8632
8635
|
), Yt = J(
|
|
8633
|
-
(
|
|
8634
|
-
const oe = _l(
|
|
8635
|
-
oe && !jn(h, oe) || qe({ kind: "tab", tab:
|
|
8636
|
+
(M) => {
|
|
8637
|
+
const oe = _l(M);
|
|
8638
|
+
oe && !jn(h, oe) || qe({ kind: "tab", tab: M, ts: Date.now() });
|
|
8636
8639
|
},
|
|
8637
8640
|
[h, qe]
|
|
8638
8641
|
), bn = J(() => {
|
|
@@ -8641,17 +8644,17 @@ function Vg({
|
|
|
8641
8644
|
z(() => {
|
|
8642
8645
|
k && at("group");
|
|
8643
8646
|
}, [k]);
|
|
8644
|
-
const [Pt,
|
|
8647
|
+
const [Pt, Tt] = d(() => (An(), Vr())), [kt, Qt] = d(() => {
|
|
8645
8648
|
try {
|
|
8646
8649
|
An();
|
|
8647
|
-
const
|
|
8648
|
-
if (
|
|
8650
|
+
const M = new URL(window.location.href).searchParams.get("mode");
|
|
8651
|
+
if (M && Dn.includes(M)) return M;
|
|
8649
8652
|
} catch {
|
|
8650
8653
|
}
|
|
8651
8654
|
return null;
|
|
8652
8655
|
});
|
|
8653
8656
|
z(() => {
|
|
8654
|
-
const
|
|
8657
|
+
const M = () => {
|
|
8655
8658
|
try {
|
|
8656
8659
|
An();
|
|
8657
8660
|
const oe = new URL(window.location.href).searchParams.get("mode");
|
|
@@ -8661,28 +8664,28 @@ function Vg({
|
|
|
8661
8664
|
} catch {
|
|
8662
8665
|
}
|
|
8663
8666
|
};
|
|
8664
|
-
return window.addEventListener("popstate",
|
|
8667
|
+
return window.addEventListener("popstate", M), () => window.removeEventListener("popstate", M);
|
|
8665
8668
|
}, []);
|
|
8666
8669
|
const Ee = (
|
|
8667
8670
|
// /test/ 路径优先识别为 test 模式 (main.jsx 的 /test/* 路由传入 forcedChatMode='system',
|
|
8668
8671
|
// 但测试工作台需要 test 模式来渲染正确的菜单和高亮)
|
|
8669
|
-
|
|
8672
|
+
kt === "test" || a === "system" && window.location.pathname.startsWith("/test/") ? "test" : a && !kt ? a : kt ?? a ?? Pt
|
|
8670
8673
|
), [Un, vn] = d(!1), [zn, Zt] = d(null), [Gn, Xt] = d(null), [Kn, dn] = d(
|
|
8671
8674
|
null
|
|
8672
8675
|
);
|
|
8673
8676
|
z(() => {
|
|
8674
8677
|
try {
|
|
8675
|
-
const
|
|
8678
|
+
const M = new URLSearchParams(window.location.search), oe = M.get("openNote");
|
|
8676
8679
|
if (oe === "1" || oe === "true") {
|
|
8677
|
-
|
|
8680
|
+
Tt("collaboration"), vn(!0);
|
|
8678
8681
|
const Ot = String(
|
|
8679
|
-
|
|
8682
|
+
M.get("projectId") ?? M.get("project_id") ?? ""
|
|
8680
8683
|
).trim(), Dt = Xe(Ot);
|
|
8681
8684
|
bo(Dt) && Zt(Dt);
|
|
8682
8685
|
}
|
|
8683
|
-
const
|
|
8684
|
-
if (
|
|
8685
|
-
|
|
8686
|
+
const he = M.get("mode"), je = M.get("agentId"), lt = M.get("tab"), Cn = M.get("sessionId");
|
|
8687
|
+
if (he === "personal" && je) {
|
|
8688
|
+
Tt("personal");
|
|
8686
8689
|
const Ot = Xe(je);
|
|
8687
8690
|
lt && Xt(lt), Cn && dn(Xe(Cn));
|
|
8688
8691
|
const Dt = V.getState().token;
|
|
@@ -8691,8 +8694,8 @@ function Vg({
|
|
|
8691
8694
|
Tn && (me(Tn), pe(lt === "schedule" ? "detail" : "chat"), Ce(Date.now()));
|
|
8692
8695
|
}).catch(() => {
|
|
8693
8696
|
});
|
|
8694
|
-
const
|
|
8695
|
-
|
|
8697
|
+
const Lt = new URL(window.location.href);
|
|
8698
|
+
Lt.searchParams.delete("agentId"), Lt.searchParams.delete("tab"), Lt.searchParams.delete("sessionId"), window.history.replaceState({}, "", Lt.toString());
|
|
8696
8699
|
}
|
|
8697
8700
|
} catch {
|
|
8698
8701
|
}
|
|
@@ -8703,45 +8706,51 @@ function Vg({
|
|
|
8703
8706
|
z(() => {
|
|
8704
8707
|
en.current = Pt;
|
|
8705
8708
|
}, [Pt]), z(() => {
|
|
8706
|
-
const
|
|
8709
|
+
const M = () => {
|
|
8707
8710
|
try {
|
|
8708
8711
|
An();
|
|
8709
8712
|
const oe = new URL(window.location.href);
|
|
8710
|
-
let
|
|
8711
|
-
!
|
|
8712
|
-
const je =
|
|
8713
|
-
je !== en.current &&
|
|
8713
|
+
let he = oe.searchParams.get("mode");
|
|
8714
|
+
!he && oe.pathname.startsWith("/admin") && (he = "admin"), !he && oe.pathname.startsWith("/ops/") && (he = "ops"), !he && ia(oe.pathname) === "middleware" && (he = "middleware"), !he && oe.pathname.startsWith("/cognition/") && (he = "knowledge");
|
|
8715
|
+
const je = he && Dn.includes(he) ? he : "collaboration";
|
|
8716
|
+
je !== en.current && Tt(je);
|
|
8714
8717
|
} catch {
|
|
8715
8718
|
}
|
|
8716
8719
|
};
|
|
8717
|
-
return window.addEventListener("popstate",
|
|
8720
|
+
return window.addEventListener("popstate", M), M(), () => window.removeEventListener("popstate", M);
|
|
8718
8721
|
}, []);
|
|
8719
|
-
const ct = J((
|
|
8722
|
+
const ct = J((M) => {
|
|
8720
8723
|
const oe = window.location.pathname;
|
|
8721
|
-
if (
|
|
8724
|
+
if (M === "system") {
|
|
8722
8725
|
if (Ee === "system")
|
|
8723
8726
|
return;
|
|
8724
|
-
|
|
8727
|
+
wt.push("/ctc/4a/account");
|
|
8725
8728
|
return;
|
|
8726
8729
|
}
|
|
8727
|
-
if ((
|
|
8730
|
+
if ((M === "ops" || M === "middleware") && ia(oe) === M)
|
|
8728
8731
|
return;
|
|
8729
|
-
if (
|
|
8732
|
+
if (M === "dev") {
|
|
8730
8733
|
if (oe.startsWith("/lc/"))
|
|
8731
8734
|
return;
|
|
8732
|
-
|
|
8735
|
+
wt.push("/lc/apps");
|
|
8733
8736
|
return;
|
|
8734
8737
|
}
|
|
8735
|
-
if (
|
|
8738
|
+
if (M === "knowledge") {
|
|
8739
|
+
if (oe.startsWith("/cognition/"))
|
|
8740
|
+
return;
|
|
8741
|
+
wt.push("/cognition/terms");
|
|
8742
|
+
return;
|
|
8743
|
+
}
|
|
8744
|
+
if (M === "admin") {
|
|
8736
8745
|
if (oe.startsWith("/admin"))
|
|
8737
8746
|
return;
|
|
8738
|
-
|
|
8747
|
+
wt.push("/admin?mode=admin");
|
|
8739
8748
|
return;
|
|
8740
8749
|
}
|
|
8741
|
-
let
|
|
8750
|
+
let he = "";
|
|
8742
8751
|
try {
|
|
8743
8752
|
const lt = new URL(window.location.href).searchParams.get("desktop");
|
|
8744
|
-
(lt === "1" || lt === "true") && (
|
|
8753
|
+
(lt === "1" || lt === "true") && (he = `&desktop=${lt}`);
|
|
8745
8754
|
} catch {
|
|
8746
8755
|
}
|
|
8747
8756
|
let je = "";
|
|
@@ -8750,19 +8759,19 @@ function Vg({
|
|
|
8750
8759
|
lt && (je = `&${Jt}=${encodeURIComponent(lt)}`);
|
|
8751
8760
|
} catch {
|
|
8752
8761
|
}
|
|
8753
|
-
|
|
8754
|
-
}, [Ee]), tn = (
|
|
8755
|
-
Y(
|
|
8756
|
-
}, nn = V((
|
|
8762
|
+
wt.push(`/workspace?mode=${M}${he}${je}`);
|
|
8763
|
+
}, [Ee]), tn = (M) => {
|
|
8764
|
+
Y(M), localStorage.setItem("ft_sidebar_collapsed", M ? "true" : "false");
|
|
8765
|
+
}, nn = V((M) => M.personalChatNav);
|
|
8757
8766
|
z(() => {
|
|
8758
|
-
nn.trigger > 0 && nn.agent && (
|
|
8767
|
+
nn.trigger > 0 && nn.agent && (Tt("personal"), me(nn.agent), pe("chat"), q((M) => M + 1), Ce(Date.now()));
|
|
8759
8768
|
}, [nn.trigger]);
|
|
8760
8769
|
const Gt = J(
|
|
8761
|
-
(
|
|
8762
|
-
|
|
8770
|
+
(M, oe) => {
|
|
8771
|
+
Tt("collaboration"), oe && (vn(!0), Zt(M)), wt.push(`/workspace?projectId=${M}`);
|
|
8763
8772
|
},
|
|
8764
|
-
[
|
|
8765
|
-
), Kt = h != null && h.avatar && (h.avatar.startsWith("http") || h.avatar.startsWith("data:")) ? h.avatar : void 0,
|
|
8773
|
+
[Tt]
|
|
8774
|
+
), Kt = h != null && h.avatar && (h.avatar.startsWith("http") || h.avatar.startsWith("data:")) ? h.avatar : void 0, It = [
|
|
8766
8775
|
{
|
|
8767
8776
|
key: "logout",
|
|
8768
8777
|
icon: /* @__PURE__ */ e(Ar, {}),
|
|
@@ -8773,17 +8782,17 @@ function Vg({
|
|
|
8773
8782
|
}
|
|
8774
8783
|
], pt = $e[ce], ht = P.length > 0 ? P[y % P.length] : void 0, wn = (ht == null ? void 0 : ht.title) || (ht == null ? void 0 : ht.content) || "", ot = P.length > 0 ? B % P.length : 0, Bt = P[ot], Nn = De(() => {
|
|
8775
8784
|
if (!Bt) return [];
|
|
8776
|
-
const
|
|
8777
|
-
return oe &&
|
|
8778
|
-
`生效时间:${
|
|
8779
|
-
),
|
|
8785
|
+
const M = [], { publishTime: oe, effectiveStartTime: he, effectiveEndTime: je } = Bt;
|
|
8786
|
+
return oe && M.push(`发布时间:${oe}`), (he || je) && M.push(
|
|
8787
|
+
`生效时间:${he || "不限"} ~ ${je || "不限"}`
|
|
8788
|
+
), M;
|
|
8780
8789
|
}, [Bt]), qn = J(() => {
|
|
8781
8790
|
ae(
|
|
8782
8791
|
P.length > 0 ? y % P.length : 0
|
|
8783
8792
|
), I(!0);
|
|
8784
|
-
}, [y, P.length]),
|
|
8785
|
-
const
|
|
8786
|
-
if (
|
|
8793
|
+
}, [y, P.length]), bt = j[F], vt = F >= j.length - 1, Vn = J(() => {
|
|
8794
|
+
const M = j[F];
|
|
8795
|
+
if (M && qg(go(M)), F < j.length - 1) {
|
|
8787
8796
|
S((oe) => oe + 1);
|
|
8788
8797
|
return;
|
|
8789
8798
|
}
|
|
@@ -8795,7 +8804,7 @@ function Vg({
|
|
|
8795
8804
|
"div",
|
|
8796
8805
|
{
|
|
8797
8806
|
className: A.bannerLeft,
|
|
8798
|
-
onClick: () =>
|
|
8807
|
+
onClick: () => wt.push("/welcome"),
|
|
8799
8808
|
style: { cursor: "pointer" },
|
|
8800
8809
|
children: /* @__PURE__ */ e("img", { src: Og, alt: "Z-OPC 一人公司基建", className: A.logo })
|
|
8801
8810
|
}
|
|
@@ -9001,7 +9010,7 @@ function Vg({
|
|
|
9001
9010
|
h && /* @__PURE__ */ e(
|
|
9002
9011
|
Es,
|
|
9003
9012
|
{
|
|
9004
|
-
menu: { items:
|
|
9013
|
+
menu: { items: It },
|
|
9005
9014
|
placement: "bottomRight",
|
|
9006
9015
|
trigger: ["click"],
|
|
9007
9016
|
children: /* @__PURE__ */ o("div", { className: A.headerUser, children: [
|
|
@@ -9027,8 +9036,12 @@ function Vg({
|
|
|
9027
9036
|
/* ── 智能模式 ── */
|
|
9028
9037
|
/* @__PURE__ */ e("div", { className: A.smartWorkbenchArea, children: /* @__PURE__ */ e(Fg, {}) })
|
|
9029
9038
|
) : Ee === "knowledge" ? (
|
|
9030
|
-
/* ──
|
|
9031
|
-
|
|
9039
|
+
/* ── 业务认知(z-cognition 前端系统嵌入)──
|
|
9040
|
+
* 2026-11-08:由 KnowledgeGraphTab(因果链图数据库直查)换成
|
|
9041
|
+
* CognitionWorkbench —— 左菜单(术语/概念/消歧/影响面/说明)+ 右渲染
|
|
9042
|
+
* z-cognition 组件包页面。URL 落 /cognition/*(见该组件文件头注释)。
|
|
9043
|
+
*/
|
|
9044
|
+
/* @__PURE__ */ e("div", { className: A.smartWorkbenchArea, children: /* @__PURE__ */ e(Bg, {}) })
|
|
9032
9045
|
) : Ee === "life" ? (
|
|
9033
9046
|
/* ── 勇敢爱生活(社区 + 学习中心 + 市场资源)──
|
|
9034
9047
|
* 2026-10-22:原顶栏「市场」入口已撤,市场资源分类进了这里的二级导航。 */
|
|
@@ -9048,7 +9061,7 @@ function Vg({
|
|
|
9048
9061
|
Ug,
|
|
9049
9062
|
{
|
|
9050
9063
|
embedded: !0,
|
|
9051
|
-
onSwitchToCollaboration: () =>
|
|
9064
|
+
onSwitchToCollaboration: () => Tt("collaboration")
|
|
9052
9065
|
}
|
|
9053
9066
|
)
|
|
9054
9067
|
) : Ee === "system" ? (
|
|
@@ -9092,10 +9105,10 @@ function Vg({
|
|
|
9092
9105
|
Dg,
|
|
9093
9106
|
{
|
|
9094
9107
|
onOpenProject: Gt,
|
|
9095
|
-
onSwitchMode: (
|
|
9108
|
+
onSwitchMode: (M) => ct(M),
|
|
9096
9109
|
openAgentRequest: {
|
|
9097
9110
|
agent: Z,
|
|
9098
|
-
view:
|
|
9111
|
+
view: ge,
|
|
9099
9112
|
newSession: rt,
|
|
9100
9113
|
ts: ye
|
|
9101
9114
|
}
|
|
@@ -9138,10 +9151,10 @@ function Vg({
|
|
|
9138
9151
|
kind: "schedule",
|
|
9139
9152
|
ts: Date.now()
|
|
9140
9153
|
}),
|
|
9141
|
-
onOpenExtensions: (
|
|
9154
|
+
onOpenExtensions: (M) => qe({
|
|
9142
9155
|
kind: "extensions",
|
|
9143
9156
|
ts: Date.now(),
|
|
9144
|
-
cap:
|
|
9157
|
+
cap: M === "skills" ? "bind" : M ? "soon" : void 0
|
|
9145
9158
|
}),
|
|
9146
9159
|
onOpenHistory: () => qe({
|
|
9147
9160
|
kind: "history",
|
|
@@ -9187,15 +9200,15 @@ function Vg({
|
|
|
9187
9200
|
token: x,
|
|
9188
9201
|
currentUser: h,
|
|
9189
9202
|
localLane: nt,
|
|
9190
|
-
onOpenChat: (
|
|
9191
|
-
onOpenAgentDetail: (
|
|
9203
|
+
onOpenChat: (M, oe) => Be(M, oe ?? null),
|
|
9204
|
+
onOpenAgentDetail: (M) => qe({
|
|
9192
9205
|
kind: "agentDetail",
|
|
9193
|
-
agent:
|
|
9206
|
+
agent: M,
|
|
9194
9207
|
ts: Date.now()
|
|
9195
9208
|
}),
|
|
9196
9209
|
onBackToExtensions: () => qe({ kind: "extensions", ts: Date.now() }),
|
|
9197
9210
|
onOpenTab: Yt,
|
|
9198
|
-
onAgentCreated: (
|
|
9211
|
+
onAgentCreated: (M) => ke((oe) => [...oe, M]),
|
|
9199
9212
|
onOpenProject: Gt,
|
|
9200
9213
|
onOpenWorkbenchShell: bn,
|
|
9201
9214
|
onOpenHistory: () => qe({
|
|
@@ -9212,15 +9225,15 @@ function Vg({
|
|
|
9212
9225
|
lane: ze,
|
|
9213
9226
|
onLaneChange: at,
|
|
9214
9227
|
personal: !0,
|
|
9215
|
-
onPersonalSend:
|
|
9228
|
+
onPersonalSend: St
|
|
9216
9229
|
}
|
|
9217
9230
|
)
|
|
9218
9231
|
) : k ? /* @__PURE__ */ e(
|
|
9219
9232
|
tr,
|
|
9220
9233
|
{
|
|
9221
9234
|
onOpenTeamModal: n,
|
|
9222
|
-
todoPanelVisible:
|
|
9223
|
-
onToggleTodoPanel: () => O((
|
|
9235
|
+
todoPanelVisible: $,
|
|
9236
|
+
onToggleTodoPanel: () => O((M) => !M),
|
|
9224
9237
|
todoCount: G
|
|
9225
9238
|
}
|
|
9226
9239
|
) : /* @__PURE__ */ e(
|
|
@@ -9233,7 +9246,7 @@ function Vg({
|
|
|
9233
9246
|
/* @__PURE__ */ e(
|
|
9234
9247
|
"div",
|
|
9235
9248
|
{
|
|
9236
|
-
className: `${A.todoPanel} ${
|
|
9249
|
+
className: `${A.todoPanel} ${$ ? "" : A.todoPanelHidden}`,
|
|
9237
9250
|
children: /* @__PURE__ */ e(xl, { onCountChange: U })
|
|
9238
9251
|
}
|
|
9239
9252
|
)
|
|
@@ -9283,23 +9296,23 @@ function Vg({
|
|
|
9283
9296
|
)
|
|
9284
9297
|
] }),
|
|
9285
9298
|
/* @__PURE__ */ o("div", { className: A.announcementModalBody, children: [
|
|
9286
|
-
/* @__PURE__ */ e("div", { className: A.announcementList, children: P.map((
|
|
9287
|
-
const
|
|
9299
|
+
/* @__PURE__ */ e("div", { className: A.announcementList, children: P.map((M, oe) => {
|
|
9300
|
+
const he = M.title || M.content;
|
|
9288
9301
|
return /* @__PURE__ */ e(
|
|
9289
9302
|
"div",
|
|
9290
9303
|
{
|
|
9291
9304
|
className: `${A.announcementListItem} ${oe === ot ? A.announcementListItemActive : ""}`,
|
|
9292
|
-
title:
|
|
9305
|
+
title: he,
|
|
9293
9306
|
onClick: () => ae(oe),
|
|
9294
|
-
children:
|
|
9307
|
+
children: he
|
|
9295
9308
|
},
|
|
9296
|
-
|
|
9309
|
+
M.id ?? `${he}-${oe}`
|
|
9297
9310
|
);
|
|
9298
9311
|
}) }),
|
|
9299
9312
|
/* @__PURE__ */ e("div", { className: A.announcementDetail, children: Bt ? /* @__PURE__ */ o(et, { children: [
|
|
9300
9313
|
/* @__PURE__ */ e("div", { className: A.announcementDetailTitle, children: Bt.title || "公告详情" }),
|
|
9301
9314
|
/* @__PURE__ */ e("div", { className: A.announcementDetailContent, children: Bt.content || "暂无公告内容" }),
|
|
9302
|
-
Nn.length > 0 && /* @__PURE__ */ e("div", { className: A.announcementDetailMeta, children: Nn.map((
|
|
9315
|
+
Nn.length > 0 && /* @__PURE__ */ e("div", { className: A.announcementDetailMeta, children: Nn.map((M) => /* @__PURE__ */ e("span", { children: M }, M)) })
|
|
9303
9316
|
] }) : /* @__PURE__ */ e("div", { className: A.announcementDetailEmpty, children: "暂无生效公告" }) })
|
|
9304
9317
|
] })
|
|
9305
9318
|
]
|
|
@@ -9330,8 +9343,8 @@ function Vg({
|
|
|
9330
9343
|
] })
|
|
9331
9344
|
] }),
|
|
9332
9345
|
/* @__PURE__ */ o("div", { className: A.popupNoticeBody, children: [
|
|
9333
|
-
/* @__PURE__ */ e("div", { className: A.popupNoticeTitle, children: (
|
|
9334
|
-
/* @__PURE__ */ e("div", { className: A.popupNoticeContent, children: (
|
|
9346
|
+
/* @__PURE__ */ e("div", { className: A.popupNoticeTitle, children: (bt == null ? void 0 : bt.title) || "公告详情" }),
|
|
9347
|
+
/* @__PURE__ */ e("div", { className: A.popupNoticeContent, children: (bt == null ? void 0 : bt.content) || "暂无公告内容" })
|
|
9335
9348
|
] }),
|
|
9336
9349
|
/* @__PURE__ */ e("div", { className: A.popupNoticeFooter, children: /* @__PURE__ */ e(
|
|
9337
9350
|
"button",
|
|
@@ -9378,13 +9391,13 @@ function c1({ onClose: t }) {
|
|
|
9378
9391
|
z(() => {
|
|
9379
9392
|
p();
|
|
9380
9393
|
}, [p]);
|
|
9381
|
-
const [k, L] = d(""), [W, x] = d(""), [w, T] = d(!1), [K, Y] = d(() => /* @__PURE__ */ new Set()),
|
|
9382
|
-
if (
|
|
9383
|
-
|
|
9394
|
+
const [k, L] = d(""), [W, x] = d(""), [w, T] = d(!1), [K, Y] = d(() => /* @__PURE__ */ new Set()), $ = ue(!1), O = (i) => i.staff_id != null && i.staff_id > 0 ? String(i.staff_id) : i.id != null && i.id > 0 ? String(i.id) : String(i.username ?? ""), G = async (i, I) => {
|
|
9395
|
+
if (!$.current) {
|
|
9396
|
+
$.current = !0, i && Y((B) => new Set(B).add(i)), T(!0);
|
|
9384
9397
|
try {
|
|
9385
9398
|
await I();
|
|
9386
9399
|
} finally {
|
|
9387
|
-
|
|
9400
|
+
$.current = !1, T(!1), i && Y((B) => {
|
|
9388
9401
|
const ae = new Set(B);
|
|
9389
9402
|
return ae.delete(i), ae;
|
|
9390
9403
|
});
|
|
@@ -9749,12 +9762,12 @@ async function ra(t, n) {
|
|
|
9749
9762
|
n(a);
|
|
9750
9763
|
}
|
|
9751
9764
|
function yo() {
|
|
9752
|
-
const { pathname: t, search: n } =
|
|
9765
|
+
const { pathname: t, search: n } = wt.location, a = fn.parse(n);
|
|
9753
9766
|
if (!a.projectId && !a.project_id)
|
|
9754
9767
|
return;
|
|
9755
9768
|
delete a.projectId, delete a.project_id;
|
|
9756
9769
|
const r = fn.stringify(a);
|
|
9757
|
-
|
|
9770
|
+
wt.replace({
|
|
9758
9771
|
pathname: t,
|
|
9759
9772
|
search: r ? `?${r}` : ""
|
|
9760
9773
|
});
|
|
@@ -9762,9 +9775,9 @@ function yo() {
|
|
|
9762
9775
|
function f1({
|
|
9763
9776
|
forcedChatMode: t
|
|
9764
9777
|
} = {}) {
|
|
9765
|
-
const n = Rs(), a = Fs(), c = !["system", "ops", "middleware"].includes(t ?? "") && Fr() && !Br(n.search);
|
|
9778
|
+
const n = Rs(), a = Fs(), c = !["system", "ops", "middleware", "knowledge"].includes(t ?? "") && Fr() && !Br(n.search);
|
|
9766
9779
|
z(() => {
|
|
9767
|
-
c &&
|
|
9780
|
+
c && wt.replace({
|
|
9768
9781
|
pathname: "/workspace/phone",
|
|
9769
9782
|
search: n.search
|
|
9770
9783
|
});
|
|
@@ -9782,7 +9795,7 @@ function f1({
|
|
|
9782
9795
|
projects: S.projects,
|
|
9783
9796
|
token: S.token
|
|
9784
9797
|
}))
|
|
9785
|
-
), W = V((S) => S.loadProjects), x = V((S) => S.loadRunningExecutions), w = V((S) => S.updateCurrentUser), T = V((S) => S.selectFile), K = V((S) => S.clearCurrentProject), [Y,
|
|
9798
|
+
), W = V((S) => S.loadProjects), x = V((S) => S.loadRunningExecutions), w = V((S) => S.updateCurrentUser), T = V((S) => S.selectFile), K = V((S) => S.clearCurrentProject), [Y, $] = d(!1), [O, G] = d(!1), [U, E] = d(null), R = ue(!1), f = ue(!1);
|
|
9786
9799
|
z(() => {
|
|
9787
9800
|
Sl(L);
|
|
9788
9801
|
}, [L]), z(() => {
|
|
@@ -9790,7 +9803,7 @@ function f1({
|
|
|
9790
9803
|
if (!N) return;
|
|
9791
9804
|
/^(1|true)$/i.test(N) || E(N), R.current = !0, G(!0), delete S.newChat;
|
|
9792
9805
|
const ne = fn.stringify(S);
|
|
9793
|
-
|
|
9806
|
+
wt.replace({
|
|
9794
9807
|
pathname: n.pathname,
|
|
9795
9808
|
search: ne ? `?${ne}` : ""
|
|
9796
9809
|
});
|
|
@@ -9826,20 +9839,20 @@ function f1({
|
|
|
9826
9839
|
const _e = 3, P = (Q) => {
|
|
9827
9840
|
const Z = V.getState().token;
|
|
9828
9841
|
if (F.current != null) {
|
|
9829
|
-
N || (w(Ea(Q)), y(!0)), ra(Z, (
|
|
9830
|
-
N || w(
|
|
9842
|
+
N || (w(Ea(Q)), y(!0)), ra(Z, (ge) => {
|
|
9843
|
+
N || w(ge);
|
|
9831
9844
|
}).catch(() => {
|
|
9832
9845
|
!N && Z && (localStorage.removeItem("z_team_token"), V.setState({ token: "" }));
|
|
9833
9846
|
});
|
|
9834
9847
|
return;
|
|
9835
9848
|
}
|
|
9836
9849
|
h1(
|
|
9837
|
-
ra(Z, (
|
|
9838
|
-
N || w(
|
|
9850
|
+
ra(Z, (ge) => {
|
|
9851
|
+
N || w(ge);
|
|
9839
9852
|
}),
|
|
9840
9853
|
p1
|
|
9841
|
-
).catch((
|
|
9842
|
-
N || (!(
|
|
9854
|
+
).catch((ge) => {
|
|
9855
|
+
N || (!(ge && ge.timedOut) && Z && (localStorage.removeItem("z_team_token"), V.setState({ token: "" })), w(Ea(Q)));
|
|
9843
9856
|
}).finally(() => {
|
|
9844
9857
|
N || y(!0);
|
|
9845
9858
|
});
|
|
@@ -10062,7 +10075,7 @@ function f1({
|
|
|
10062
10075
|
onNewProject: () => {
|
|
10063
10076
|
V.getState().currentProject && K();
|
|
10064
10077
|
},
|
|
10065
|
-
onOpenTeam: () =>
|
|
10078
|
+
onOpenTeam: () => $(!0),
|
|
10066
10079
|
forcedChatMode: t,
|
|
10067
10080
|
showNewChat: O,
|
|
10068
10081
|
presetNewChatScenario: U,
|
|
@@ -10071,7 +10084,7 @@ function f1({
|
|
|
10071
10084
|
}
|
|
10072
10085
|
),
|
|
10073
10086
|
I != null ? /* @__PURE__ */ e("div", { className: pn.openingOverlay, children: /* @__PURE__ */ e(_t, { description: `正在打开工程 ${I}…` }) }) : null,
|
|
10074
|
-
Y && /* @__PURE__ */ e(c1, { onClose: () =>
|
|
10087
|
+
Y && /* @__PURE__ */ e(c1, { onClose: () => $(!1) }),
|
|
10075
10088
|
/* @__PURE__ */ e(Cs, {})
|
|
10076
10089
|
] }) });
|
|
10077
10090
|
}
|