@yuku123/z-team-component 0.2.114 → 0.2.116
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-1-S4MEB1.js → ChangeLogView-Cv96n8Vn.js} +1 -1
- package/dist/{ComponentDoc-Sa3tPY-g.js → ComponentDoc-C4t3POeE.js} +76 -76
- package/dist/{InvitationManagementPage-HZs4bdak.js → InvitationManagementPage-DUn17QCS.js} +1 -1
- package/dist/{OnboardingPage-B5OgZASN.js → OnboardingPage-BEIz3UzA.js} +2 -2
- package/dist/{ScheduledTasks-CToyeRUq.js → ScheduledTasks-LfhdhCAY.js} +6 -6
- package/dist/{SystemShell-BhHPNWpZ.js → SystemShell-Bj5dg5T9.js} +188 -182
- package/dist/{admin-logs-D11ATzyh.js → admin-logs-mEZ5eIy_.js} +1 -1
- package/dist/{api-Bh2pIpgt.js → api-C6250RDm.js} +1 -1
- package/dist/{api-CeeVdjN0.js → api-wdtxPcUU.js} +1 -1
- package/dist/{createWorkspaceWsHandler-u1JoCPmD.js → createWorkspaceWsHandler-KhhUQlnq.js} +3 -3
- package/dist/{index-S4KVdYhB.js → index-Anzy5fRy.js} +3 -3
- package/dist/{index--Drbx2jZ.js → index-BEc9pRby.js} +2 -2
- package/dist/{index-58Ncrbai.js → index-BLmpGn4u.js} +141 -132
- package/dist/{index-CflRaLqk.js → index-BO3QXJr-.js} +3 -3
- package/dist/{index-C3WQJJ0C.js → index-BQZmRqi3.js} +1 -1
- package/dist/{index-BFhr0Fay.js → index-BUX0VaUT.js} +2 -2
- package/dist/{index-BfHaPjcW.js → index-BlxvmuP_.js} +2 -2
- package/dist/{index-B37k7sBw.js → index-CCOnQNiK.js} +3 -3
- package/dist/{index-BvZEUp32.js → index-COoMPVeT.js} +2 -2
- package/dist/index-CX43f-gO.js +66 -0
- package/dist/{index-DuUUslV_.js → index-Cg8V_zHA.js} +2 -2
- package/dist/{index-CMgNvlmo.js → index-CgZ5ETm8.js} +5 -5
- package/dist/{index-dmJO62ji.js → index-Cq_nDl8e.js} +6 -6
- package/dist/{index-BCvF-oLV.js → index-CtuN4U8T.js} +2 -2
- package/dist/{index-CsjvSiEq.js → index-CvzYak_c.js} +3 -3
- package/dist/{index-C9CF7Nsd.js → index-D5yLemBC.js} +1 -1
- package/dist/{index-CoyGbqjP.js → index-DG7nF8i4.js} +2 -2
- package/dist/{index-eOBmPcNH.js → index-DNiC85xO.js} +6 -6
- package/dist/{index-DTWfL9EF.js → index-DWBcTstU.js} +3 -3
- package/dist/{index-CpQ71Ipv.js → index-DaqMJot5.js} +1 -1
- package/dist/{index-BhmgPrmH.js → index-DelTEsve.js} +1 -1
- package/dist/{index-Iy3bCyGV.js → index-ilrh7uNR.js} +2 -2
- package/dist/{index-kG57tOUk.js → index-p9ZtmTpt.js} +1 -1
- package/dist/{index-Dbgu1GMZ.js → index-pGzj-Q0_.js} +4 -4
- package/dist/{index-Bjc1DKF1.js → index-x_sOxJhz.js} +3 -3
- package/dist/{index-C2dLZ4oU.js → index-ymNh74M6.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/{instance-HaVeSP6w.js → instance-DnByJfWG.js} +1 -1
- package/dist/{menuPermission-DbAZEF9A.js → menuPermission-BclbbPRQ.js} +3 -3
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-D6QVPUN-.js → send-default-agent-team-message-D_9J3Ldb.js} +1 -1
- package/dist/{sso-user-hSducls9.js → sso-user-Bs5AHCMR.js} +1 -1
- package/dist/{training-CDkhiMNH.js → training-Det34FfS.js} +1 -1
- package/dist/{webide-TsIJlh_u.js → webide-aLU3PcOG.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-C4t3POeE.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-Bs5AHCMR.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
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-
|
|
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-KhhUQlnq.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-D5yLemBC.js";
|
|
13
|
+
import { s as Lo } from "./admin-logs-mEZ5eIy_.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-DnByJfWG.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" },
|
|
@@ -450,7 +450,7 @@ 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
|
);
|
|
@@ -459,7 +459,7 @@ async function f_(t, n = "", a = "") {
|
|
|
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
|
);
|
|
@@ -468,14 +468,14 @@ async function g_(t, n = "", a = "") {
|
|
|
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
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}`,
|
|
@@ -489,7 +489,7 @@ async function y_(t, n, a, r = "") {
|
|
|
489
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
|
);
|
|
@@ -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
|
}
|
|
@@ -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) {
|
|
@@ -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: [
|
|
@@ -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(
|
|
@@ -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(
|
|
@@ -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: [
|
|
@@ -3395,7 +3396,7 @@ function Ru({
|
|
|
3395
3396
|
onClose: n,
|
|
3396
3397
|
onCreated: a
|
|
3397
3398
|
}) {
|
|
3398
|
-
var
|
|
3399
|
+
var ge, pe, rt;
|
|
3399
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(
|
|
@@ -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(
|
|
@@ -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,7 +4090,7 @@ 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,
|
|
@@ -4099,7 +4100,7 @@ async function A_(t, n, a = "") {
|
|
|
4099
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
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,7 +4133,7 @@ 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
|
);
|
|
@@ -4150,14 +4151,14 @@ 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
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,
|
|
@@ -4167,7 +4168,7 @@ async function Tm(t, n = "") {
|
|
|
4167
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,
|
|
@@ -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.116"
|
|
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" }) }),
|
|
@@ -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 {
|
|
@@ -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), Tt = ue(!0), [
|
|
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) {
|
|
@@ -6830,7 +6831,7 @@ 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
6836
|
if (It !== "all") {
|
|
6836
6837
|
const l = It === "1d" ? 1 : It === "3d" ? 3 : 7, _ = Date.now() - l * 864e5;
|
|
@@ -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,7 +6914,7 @@ 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(() => {
|
|
@@ -6924,7 +6925,7 @@ function zh({
|
|
|
6924
6925
|
Pt(!0);
|
|
6925
6926
|
const s = setTimeout(() => Pt(!1), 300);
|
|
6926
6927
|
return () => clearTimeout(s);
|
|
6927
|
-
}, [ze, ee,
|
|
6928
|
+
}, [ze, ee, kt, xe]);
|
|
6928
6929
|
const Ot = $ || bn, Dt = J((s) => {
|
|
6929
6930
|
Be((l) => {
|
|
6930
6931
|
const _ = new Set(l);
|
|
@@ -6932,9 +6933,9 @@ function zh({
|
|
|
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) => {
|
|
@@ -7003,7 +7004,7 @@ function zh({
|
|
|
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
7010
|
return ze.length === 0 ? ((s = Lt[0]) == null ? void 0 : s.projects.length) ?? 0 : Lt.reduce((l, _) => l + _.projects.length, 0);
|
|
@@ -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
|
),
|
|
@@ -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,
|
|
@@ -7725,7 +7726,7 @@ function zh({
|
|
|
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,12 +7789,12 @@ 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(
|
|
@@ -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,
|
|
@@ -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(
|
|
@@ -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) => {
|
|
@@ -8350,7 +8351,7 @@ 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
|
{
|
|
@@ -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-Cq_nDl8e.js")), Rg = yt(() => import("./index-DWBcTstU.js")), Fg = yt(() => import("./index-DelTEsve.js"));
|
|
8480
|
+
yt(() => import("./index-DaqMJot5.js"));
|
|
8481
|
+
const Bg = yt(() => import("./index-CX43f-gO.js")), jg = yt(() => import("./index-pGzj-Q0_.js").then((t) => t.i)), Hg = yt(() => import("./index-ymNh74M6.js")), Wg = yt(() => import("./index-DG7nF8i4.js")), Ug = yt(() => import("./index-DNiC85xO.js")), zg = yt(() => import("./index-BUX0VaUT.js")), Gg = yt(() => import("./index-CCOnQNiK.js")), Kg = yt(() => import("./index-BO3QXJr-.js").then((t) => ({ default: t.default }))), fo = yt(() => import("./SystemShell-Bj5dg5T9.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
|
}
|
|
@@ -8517,7 +8520,7 @@ function Vg({
|
|
|
8517
8520
|
() => localStorage.getItem("ft_sidebar_collapsed") === "true"
|
|
8518
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(() => {
|
|
8519
8522
|
const M = f == null ? void 0 : f.announcements;
|
|
8520
|
-
return (M && M.length > 0 ? M : f != null && f.announcement ? [f.announcement] : []).filter((
|
|
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]
|
|
@@ -8531,7 +8534,7 @@ function Vg({
|
|
|
8531
8534
|
}, [P.length, i, v]), z(() => {
|
|
8532
8535
|
if (N) return;
|
|
8533
8536
|
const M = Ko(), oe = P.filter(
|
|
8534
|
-
(
|
|
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]);
|
|
@@ -8552,21 +8555,21 @@ function Vg({
|
|
|
8552
8555
|
}
|
|
8553
8556
|
};
|
|
8554
8557
|
oe();
|
|
8555
|
-
const
|
|
8558
|
+
const he = setInterval(() => void oe(), 6e4);
|
|
8556
8559
|
return () => {
|
|
8557
|
-
M = !1, clearInterval(
|
|
8560
|
+
M = !1, clearInterval(he);
|
|
8558
8561
|
};
|
|
8559
8562
|
}, []), z(() => {
|
|
8560
8563
|
if ($e.length === 0) return;
|
|
8561
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
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
|
);
|
|
@@ -8575,9 +8578,9 @@ function Vg({
|
|
|
8575
8578
|
});
|
|
8576
8579
|
}, [ie, Fe == null ? void 0 : Fe.ts]);
|
|
8577
8580
|
const Be = J(
|
|
8578
|
-
(M, oe = null,
|
|
8581
|
+
(M, oe = null, he = !1) => {
|
|
8579
8582
|
O(!1), at("personal"), Ue(
|
|
8580
|
-
(je) => je && je.kind === "chat" && je.agent.id === M.id && je.sessionId === oe && je.draft ===
|
|
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
|
[]
|
|
@@ -8613,10 +8616,10 @@ function Vg({
|
|
|
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({
|
|
@@ -8641,7 +8644,7 @@ function Vg({
|
|
|
8641
8644
|
z(() => {
|
|
8642
8645
|
k && at("group");
|
|
8643
8646
|
}, [k]);
|
|
8644
|
-
const [Pt, Tt] = d(() => (An(), Vr())), [
|
|
8647
|
+
const [Pt, Tt] = d(() => (An(), Vr())), [kt, Qt] = d(() => {
|
|
8645
8648
|
try {
|
|
8646
8649
|
An();
|
|
8647
8650
|
const M = new URL(window.location.href).searchParams.get("mode");
|
|
@@ -8666,7 +8669,7 @@ function Vg({
|
|
|
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
|
);
|
|
@@ -8680,8 +8683,8 @@ function Vg({
|
|
|
8680
8683
|
).trim(), Dt = Xe(Ot);
|
|
8681
8684
|
bo(Dt) && Zt(Dt);
|
|
8682
8685
|
}
|
|
8683
|
-
const
|
|
8684
|
-
if (
|
|
8686
|
+
const he = M.get("mode"), je = M.get("agentId"), lt = M.get("tab"), Cn = M.get("sessionId");
|
|
8687
|
+
if (he === "personal" && je) {
|
|
8685
8688
|
Tt("personal");
|
|
8686
8689
|
const Ot = Xe(je);
|
|
8687
8690
|
lt && Xt(lt), Cn && dn(Xe(Cn));
|
|
@@ -8707,9 +8710,9 @@ function Vg({
|
|
|
8707
8710
|
try {
|
|
8708
8711
|
An();
|
|
8709
8712
|
const oe = new URL(window.location.href);
|
|
8710
|
-
let
|
|
8711
|
-
!
|
|
8712
|
-
const je =
|
|
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";
|
|
8713
8716
|
je !== en.current && Tt(je);
|
|
8714
8717
|
} catch {
|
|
8715
8718
|
}
|
|
@@ -8726,26 +8729,28 @@ function Vg({
|
|
|
8726
8729
|
}
|
|
8727
8730
|
if ((M === "ops" || M === "middleware") && ia(oe) === M)
|
|
8728
8731
|
return;
|
|
8729
|
-
if (M === "test") {
|
|
8730
|
-
wt.push("/test/qa/dashboard");
|
|
8731
|
-
return;
|
|
8732
|
-
}
|
|
8733
8732
|
if (M === "dev") {
|
|
8734
8733
|
if (oe.startsWith("/lc/"))
|
|
8735
8734
|
return;
|
|
8736
8735
|
wt.push("/lc/apps");
|
|
8737
8736
|
return;
|
|
8738
8737
|
}
|
|
8738
|
+
if (M === "knowledge") {
|
|
8739
|
+
if (oe.startsWith("/cognition/"))
|
|
8740
|
+
return;
|
|
8741
|
+
wt.push("/cognition/terms");
|
|
8742
|
+
return;
|
|
8743
|
+
}
|
|
8739
8744
|
if (M === "admin") {
|
|
8740
8745
|
if (oe.startsWith("/admin"))
|
|
8741
8746
|
return;
|
|
8742
8747
|
wt.push("/admin?mode=admin");
|
|
8743
8748
|
return;
|
|
8744
8749
|
}
|
|
8745
|
-
let
|
|
8750
|
+
let he = "";
|
|
8746
8751
|
try {
|
|
8747
8752
|
const lt = new URL(window.location.href).searchParams.get("desktop");
|
|
8748
|
-
(lt === "1" || lt === "true") && (
|
|
8753
|
+
(lt === "1" || lt === "true") && (he = `&desktop=${lt}`);
|
|
8749
8754
|
} catch {
|
|
8750
8755
|
}
|
|
8751
8756
|
let je = "";
|
|
@@ -8754,7 +8759,7 @@ function Vg({
|
|
|
8754
8759
|
lt && (je = `&${Jt}=${encodeURIComponent(lt)}`);
|
|
8755
8760
|
} catch {
|
|
8756
8761
|
}
|
|
8757
|
-
wt.push(`/workspace?mode=${M}${
|
|
8762
|
+
wt.push(`/workspace?mode=${M}${he}${je}`);
|
|
8758
8763
|
}, [Ee]), tn = (M) => {
|
|
8759
8764
|
Y(M), localStorage.setItem("ft_sidebar_collapsed", M ? "true" : "false");
|
|
8760
8765
|
}, nn = V((M) => M.personalChatNav);
|
|
@@ -8777,15 +8782,15 @@ function Vg({
|
|
|
8777
8782
|
}
|
|
8778
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(() => {
|
|
8779
8784
|
if (!Bt) return [];
|
|
8780
|
-
const M = [], { publishTime: oe, effectiveStartTime:
|
|
8781
|
-
return oe && M.push(`发布时间:${oe}`), (
|
|
8782
|
-
`生效时间:${
|
|
8785
|
+
const M = [], { publishTime: oe, effectiveStartTime: he, effectiveEndTime: je } = Bt;
|
|
8786
|
+
return oe && M.push(`发布时间:${oe}`), (he || je) && M.push(
|
|
8787
|
+
`生效时间:${he || "不限"} ~ ${je || "不限"}`
|
|
8783
8788
|
), M;
|
|
8784
8789
|
}, [Bt]), qn = J(() => {
|
|
8785
8790
|
ae(
|
|
8786
8791
|
P.length > 0 ? y % P.length : 0
|
|
8787
8792
|
), I(!0);
|
|
8788
|
-
}, [y, P.length]),
|
|
8793
|
+
}, [y, P.length]), bt = j[F], vt = F >= j.length - 1, Vn = J(() => {
|
|
8789
8794
|
const M = j[F];
|
|
8790
8795
|
if (M && qg(go(M)), F < j.length - 1) {
|
|
8791
8796
|
S((oe) => oe + 1);
|
|
@@ -9031,8 +9036,12 @@ function Vg({
|
|
|
9031
9036
|
/* ── 智能模式 ── */
|
|
9032
9037
|
/* @__PURE__ */ e("div", { className: A.smartWorkbenchArea, children: /* @__PURE__ */ e(Fg, {}) })
|
|
9033
9038
|
) : Ee === "knowledge" ? (
|
|
9034
|
-
/* ──
|
|
9035
|
-
|
|
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, {}) })
|
|
9036
9045
|
) : Ee === "life" ? (
|
|
9037
9046
|
/* ── 勇敢爱生活(社区 + 学习中心 + 市场资源)──
|
|
9038
9047
|
* 2026-10-22:原顶栏「市场」入口已撤,市场资源分类进了这里的二级导航。 */
|
|
@@ -9099,7 +9108,7 @@ function Vg({
|
|
|
9099
9108
|
onSwitchMode: (M) => ct(M),
|
|
9100
9109
|
openAgentRequest: {
|
|
9101
9110
|
agent: Z,
|
|
9102
|
-
view:
|
|
9111
|
+
view: ge,
|
|
9103
9112
|
newSession: rt,
|
|
9104
9113
|
ts: ye
|
|
9105
9114
|
}
|
|
@@ -9288,16 +9297,16 @@ function Vg({
|
|
|
9288
9297
|
] }),
|
|
9289
9298
|
/* @__PURE__ */ o("div", { className: A.announcementModalBody, children: [
|
|
9290
9299
|
/* @__PURE__ */ e("div", { className: A.announcementList, children: P.map((M, oe) => {
|
|
9291
|
-
const
|
|
9300
|
+
const he = M.title || M.content;
|
|
9292
9301
|
return /* @__PURE__ */ e(
|
|
9293
9302
|
"div",
|
|
9294
9303
|
{
|
|
9295
9304
|
className: `${A.announcementListItem} ${oe === ot ? A.announcementListItemActive : ""}`,
|
|
9296
|
-
title:
|
|
9305
|
+
title: he,
|
|
9297
9306
|
onClick: () => ae(oe),
|
|
9298
|
-
children:
|
|
9307
|
+
children: he
|
|
9299
9308
|
},
|
|
9300
|
-
M.id ?? `${
|
|
9309
|
+
M.id ?? `${he}-${oe}`
|
|
9301
9310
|
);
|
|
9302
9311
|
}) }),
|
|
9303
9312
|
/* @__PURE__ */ e("div", { className: A.announcementDetail, children: Bt ? /* @__PURE__ */ o(et, { children: [
|
|
@@ -9334,8 +9343,8 @@ function Vg({
|
|
|
9334
9343
|
] })
|
|
9335
9344
|
] }),
|
|
9336
9345
|
/* @__PURE__ */ o("div", { className: A.popupNoticeBody, children: [
|
|
9337
|
-
/* @__PURE__ */ e("div", { className: A.popupNoticeTitle, children: (
|
|
9338
|
-
/* @__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) || "暂无公告内容" })
|
|
9339
9348
|
] }),
|
|
9340
9349
|
/* @__PURE__ */ e("div", { className: A.popupNoticeFooter, children: /* @__PURE__ */ e(
|
|
9341
9350
|
"button",
|
|
@@ -9766,7 +9775,7 @@ function yo() {
|
|
|
9766
9775
|
function f1({
|
|
9767
9776
|
forcedChatMode: t
|
|
9768
9777
|
} = {}) {
|
|
9769
|
-
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);
|
|
9770
9779
|
z(() => {
|
|
9771
9780
|
c && wt.replace({
|
|
9772
9781
|
pathname: "/workspace/phone",
|
|
@@ -9830,20 +9839,20 @@ function f1({
|
|
|
9830
9839
|
const _e = 3, P = (Q) => {
|
|
9831
9840
|
const Z = V.getState().token;
|
|
9832
9841
|
if (F.current != null) {
|
|
9833
|
-
N || (w(Ea(Q)), y(!0)), ra(Z, (
|
|
9834
|
-
N || w(
|
|
9842
|
+
N || (w(Ea(Q)), y(!0)), ra(Z, (ge) => {
|
|
9843
|
+
N || w(ge);
|
|
9835
9844
|
}).catch(() => {
|
|
9836
9845
|
!N && Z && (localStorage.removeItem("z_team_token"), V.setState({ token: "" }));
|
|
9837
9846
|
});
|
|
9838
9847
|
return;
|
|
9839
9848
|
}
|
|
9840
9849
|
h1(
|
|
9841
|
-
ra(Z, (
|
|
9842
|
-
N || w(
|
|
9850
|
+
ra(Z, (ge) => {
|
|
9851
|
+
N || w(ge);
|
|
9843
9852
|
}),
|
|
9844
9853
|
p1
|
|
9845
|
-
).catch((
|
|
9846
|
-
N || (!(
|
|
9854
|
+
).catch((ge) => {
|
|
9855
|
+
N || (!(ge && ge.timedOut) && Z && (localStorage.removeItem("z_team_token"), V.setState({ token: "" })), w(Ea(Q)));
|
|
9847
9856
|
}).finally(() => {
|
|
9848
9857
|
N || y(!0);
|
|
9849
9858
|
});
|