@yuku123/z-team-component 0.2.138 → 0.2.140

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.
Files changed (52) hide show
  1. package/dist/{AdminModuleContent-9gH_G78B.js → AdminModuleContent-DDB35gOh.js} +11463 -12034
  2. package/dist/{ChangeLogView-DzFmZVBw.js → ChangeLogView-AKOZ6Ski.js} +1 -1
  3. package/dist/{ComponentDoc-KyD5wtuW.js → ComponentDoc-SiXXhka1.js} +204 -212
  4. package/dist/{InvitationManagementPage-6-0uZNuO.js → InvitationManagementPage-CRbABOKe.js} +1 -1
  5. package/dist/{OnboardingPage-tLarxnp5.js → OnboardingPage-BNJopRYO.js} +2 -2
  6. package/dist/{ScheduledTasks-QGmD7Uhz.js → ScheduledTasks-Cn_CEZ-B.js} +3104 -3141
  7. package/dist/{SystemShell-CWawiWOn.js → SystemShell-B8Tyluzu.js} +170 -162
  8. package/dist/SystemWorkbench.module-DpLM0zgA.js +36 -0
  9. package/dist/{admin-logs-DXjxD-y2.js → admin-logs-B3IxooG2.js} +1 -1
  10. package/dist/{api-Dzr8HLsU.js → api-DW8nsucC.js} +1 -1
  11. package/dist/{api-DOjASQ0k.js → api-DmBlT5MH.js} +1 -1
  12. package/dist/{createWorkspaceWsHandler-DCokPv4M.js → createWorkspaceWsHandler-5MHgQGfJ.js} +3417 -3479
  13. package/dist/{index-PJZV-bFc.js → index-BBLRGBWu.js} +1 -1
  14. package/dist/{index-4icVyiM3.js → index-BSqUODiN.js} +6 -6
  15. package/dist/{index-DXA0r7Co.js → index-BT4oQJby.js} +2 -2
  16. package/dist/{index-DC1fQH0J.js → index-BV64kKse.js} +2 -2
  17. package/dist/{index-CUOByyqy.js → index-C1nr0UeB.js} +5 -5
  18. package/dist/index-C24QsGsG.js +576 -0
  19. package/dist/{index-0AjMJyFL.js → index-C7DSDopw.js} +5 -5
  20. package/dist/{index-BdEokzAv.js → index-CEoS_jEa.js} +6 -6
  21. package/dist/{index-8VddM67M.js → index-CJ7dJejJ.js} +2 -2
  22. package/dist/{index-DZcMGMHV.js → index-CXjen4Gx.js} +292 -292
  23. package/dist/{index-CjYmL2yJ.js → index-CvHMXrAD.js} +2 -2
  24. package/dist/{index-Crzx3zh2.js → index-D-G4mbxH.js} +2 -2
  25. package/dist/{index-CLP0LnEz.js → index-D440bEgm.js} +5 -5
  26. package/dist/{index-C9NwYJh-.js → index-D7thpI99.js} +1 -1
  27. package/dist/{index-DGdtqBi4.js → index-DCAO83Wb.js} +4 -4
  28. package/dist/index-DDOfdrn4.js +9527 -0
  29. package/dist/{index-DarTFF-M.js → index-DHrMSEVJ.js} +1 -1
  30. package/dist/{index-ZqDoLUxb.js → index-DULYXalY.js} +1 -1
  31. package/dist/{index-VqKcDrn3.js → index-DjbLq5lI.js} +2 -2
  32. package/dist/{index-4NOi2xz4.js → index-Du95tdVf.js} +2 -2
  33. package/dist/{index-Cwptuq_d.js → index-DvslXAjT.js} +7 -7
  34. package/dist/{index-BHfNKXIA.js → index-Hv2KDG7i.js} +3 -3
  35. package/dist/{index-CNmSLd0s.js → index-NIu3OKHi.js} +610 -636
  36. package/dist/index-QNpTaU--.js +237 -0
  37. package/dist/{index-B75TTql4.js → index-VmRWH4U5.js} +2 -2
  38. package/dist/{index-BgdqkNkT.js → index-l9KH8r7F.js} +3 -3
  39. package/dist/index.js +1 -1
  40. package/dist/{instance-CDA6R8yG.js → instance-B4SrJ-BY.js} +1 -1
  41. package/dist/{menuPermission-LCjN8Osm.js → menuPermission-DxknHmt8.js} +3 -3
  42. package/dist/{menuTree-Ctcz41N8.js → menuTree-BjchjhUw.js} +25 -23
  43. package/dist/pages.js +1 -1
  44. package/dist/{send-default-agent-team-message-3Uyy88s_.js → send-default-agent-team-message-DYytBtLc.js} +1 -1
  45. package/dist/{sso-user-DX2FYQCh.js → sso-user-DN6kSAc0.js} +1 -1
  46. package/dist/{training-BgYM7EV-.js → training-CKYPSkUP.js} +1 -1
  47. package/dist/{webide-BsF30aLX.js → webide-JAalC_Wr.js} +213 -213
  48. package/dist/z-team-component.css +1 -1
  49. package/package.json +13 -4
  50. package/dist/SystemWorkbench.module-CZv_ruUa.js +0 -36
  51. package/dist/index-DhDdFRHC.js +0 -279
  52. package/dist/index-DxZEpsT6.js +0 -10339
@@ -0,0 +1,237 @@
1
+ import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
+ import { CloseOutlined as I } from "@ant-design/icons";
3
+ import { useState as m, useEffect as E, useCallback as v } from "react";
4
+ import { h as C } from "./history-BlrA1eaW.js";
5
+ const D = "_portalRoot_1sa2c_7", A = "_portalHeader_1sa2c_47", S = "_brandRow_1sa2c_53", w = "_brandLogo_1sa2c_59", y = "_brandTitle_1sa2c_63", L = "_brandSubtitle_1sa2c_70", j = "_portalMain_1sa2c_76", B = "_sectionTitle_1sa2c_85", F = "_cardGrid_1sa2c_92", $ = "_scenarioCard_1sa2c_98", G = "_cardTop_1sa2c_114", H = "_cardIcon_1sa2c_119", O = "_cardInfo_1sa2c_123", R = "_cardTitle_1sa2c_127", M = "_cardTags_1sa2c_134", P = "_tag_1sa2c_139", q = "_cardDesc_1sa2c_148", W = "_cardAction_1sa2c_154", z = "_btnCreate_1sa2c_159", Z = "_portalFooter_1sa2c_184", J = "_linkWorkspace_1sa2c_190", K = "_modalOverlay_1sa2c_206", Q = "_modalBox_1sa2c_217", U = "_modalHeader_1sa2c_226", V = "_modalIcon_1sa2c_239", X = "_modalClose_1sa2c_242", Y = "_modalBody_1sa2c_255", aa = "_modalDesc_1sa2c_258", ea = "_fieldGroup_1sa2c_264", ca = "_fieldLabel_1sa2c_269", sa = "_required_1sa2c_274", ra = "_fieldTextarea_1sa2c_301", oa = "_fieldTextareaError_1sa2c_325", na = "_fieldError_1sa2c_328", la = "_modalFooter_1sa2c_333", ta = "_btnCancel_1sa2c_339", da = "_btnConfirm_1sa2c_354", a = {
6
+ portalRoot: D,
7
+ portalHeader: A,
8
+ brandRow: S,
9
+ brandLogo: w,
10
+ brandTitle: y,
11
+ brandSubtitle: L,
12
+ portalMain: j,
13
+ sectionTitle: B,
14
+ cardGrid: F,
15
+ scenarioCard: $,
16
+ cardTop: G,
17
+ cardIcon: H,
18
+ cardInfo: O,
19
+ cardTitle: R,
20
+ cardTags: M,
21
+ tag: P,
22
+ cardDesc: q,
23
+ cardAction: W,
24
+ btnCreate: z,
25
+ portalFooter: Z,
26
+ linkWorkspace: J,
27
+ modalOverlay: K,
28
+ modalBox: Q,
29
+ modalHeader: U,
30
+ modalIcon: V,
31
+ modalClose: X,
32
+ modalBody: Y,
33
+ modalDesc: aa,
34
+ fieldGroup: ea,
35
+ fieldLabel: ca,
36
+ required: sa,
37
+ fieldTextarea: ra,
38
+ fieldTextareaError: oa,
39
+ fieldError: na,
40
+ modalFooter: la,
41
+ btnCancel: ta,
42
+ btnConfirm: da
43
+ }, k = window.ZTEAM_USE_KAPI === !0 ? "/kapi/z-team/api" : "/z-team/api";
44
+ function ia(c) {
45
+ return c.length === 0 ? null : c.find((n) => n.isDefault || n.is_default) ?? c[0];
46
+ }
47
+ function N(c) {
48
+ return c.isDefault || c.is_default ? "默认专家团" : (c.name || "").replace(/场景/g, "专家团");
49
+ }
50
+ function _a() {
51
+ return fetch(`${k}/scenarios`, {
52
+ credentials: "include",
53
+ headers: { Accept: "application/json" }
54
+ }).then((c) => c.json()).then((c) => {
55
+ if (c && c.success === !1)
56
+ throw new Error(c.message || "加载专家团失败");
57
+ const n = (c == null ? void 0 : c.data) ?? c;
58
+ return Array.isArray(n) ? n : [];
59
+ });
60
+ }
61
+ function ma({
62
+ team: c,
63
+ onClose: n,
64
+ onCreated: p
65
+ }) {
66
+ const [d, h] = m(""), [i, l] = m(!1), [_, t] = m(""), r = v(async () => {
67
+ var g, T;
68
+ const o = d.trim();
69
+ if (!o) {
70
+ t("请填写需求描述");
71
+ return;
72
+ }
73
+ t(""), l(!0);
74
+ try {
75
+ const f = ((g = o.split(`
76
+ `)[0]) == null ? void 0 : g.trim()) ?? "", x = f.length > 0 ? f.length > 32 ? `${f.slice(0, 32)}…` : f : `${Date.now()}`, b = `${N(c)}-${x}`, u = await (await fetch(`${k}/scenario-instances/`, {
77
+ method: "POST",
78
+ credentials: "include",
79
+ headers: {
80
+ Accept: "application/json",
81
+ "Content-Type": "application/json"
82
+ },
83
+ body: JSON.stringify({
84
+ name: b,
85
+ description: o.length > 120 ? `${o.slice(0, 120)}…` : o,
86
+ workspace_path: b,
87
+ scenario_code: c.code,
88
+ extend_params: { topic: o, source: "expert-team" }
89
+ })
90
+ })).json();
91
+ u.success && ((T = u.data) != null && T.id) ? p(u.data.id) : t(u.message || "创建失败,请重试");
92
+ } catch {
93
+ t("网络错误,请检查服务是否可用");
94
+ } finally {
95
+ l(!1);
96
+ }
97
+ }, [d, c, p]);
98
+ return /* @__PURE__ */ e("div", { className: a.modalOverlay, onClick: n, children: /* @__PURE__ */ s("div", { className: a.modalBox, onClick: (o) => o.stopPropagation(), children: [
99
+ /* @__PURE__ */ s("div", { className: a.modalHeader, children: [
100
+ /* @__PURE__ */ e("span", { className: a.modalIcon, children: c.isDefault || c.is_default ? "👥" : "🧩" }),
101
+ /* @__PURE__ */ e("h3", { children: N(c) }),
102
+ /* @__PURE__ */ e("button", { className: a.modalClose, onClick: n, children: /* @__PURE__ */ e(I, {}) })
103
+ ] }),
104
+ /* @__PURE__ */ s("div", { className: a.modalBody, children: [
105
+ /* @__PURE__ */ e("p", { className: a.modalDesc, children: c.isDefault || c.is_default ? "唯一大 leader 常驻,什么活都能接。" : c.description || "大 leader 领衔的专家组。" }),
106
+ /* @__PURE__ */ s("div", { className: a.fieldGroup, children: [
107
+ /* @__PURE__ */ s("label", { className: a.fieldLabel, children: [
108
+ "需求描述",
109
+ /* @__PURE__ */ e("span", { className: a.required, children: "*" })
110
+ ] }),
111
+ /* @__PURE__ */ e(
112
+ "textarea",
113
+ {
114
+ className: `${a.fieldTextarea} ${_ ? a.fieldTextareaError : ""}`,
115
+ value: d,
116
+ placeholder: `描述你要完成的事情,例如:
117
+ 主题:2026 Q3 产品回顾
118
+ 要求:按季度重点分三部分,突出数据变化`,
119
+ onChange: (o) => {
120
+ h(o.target.value), _ && t("");
121
+ },
122
+ rows: 5,
123
+ autoFocus: !0
124
+ }
125
+ ),
126
+ _ && /* @__PURE__ */ e("p", { className: a.fieldError, children: _ })
127
+ ] })
128
+ ] }),
129
+ /* @__PURE__ */ s("div", { className: a.modalFooter, children: [
130
+ /* @__PURE__ */ e("button", { className: a.btnCancel, onClick: n, children: "取消" }),
131
+ /* @__PURE__ */ e(
132
+ "button",
133
+ {
134
+ className: a.btnConfirm,
135
+ onClick: r,
136
+ disabled: i,
137
+ children: i ? "创建中..." : "确认并开始"
138
+ }
139
+ )
140
+ ] })
141
+ ] }) });
142
+ }
143
+ function ga() {
144
+ const [c, n] = m([]), [p, d] = m(""), [h, i] = m(null);
145
+ E(() => {
146
+ let r = !1;
147
+ return _a().then((o) => {
148
+ r || (n(o), d(o.length === 0 ? "专家团未加载到" : ""));
149
+ }).catch((o) => {
150
+ r || d(o instanceof Error ? o.message : "加载专家团失败");
151
+ }), () => {
152
+ r = !0;
153
+ };
154
+ }, []);
155
+ const l = ia(c), _ = c.filter((r) => r.code !== (l == null ? void 0 : l.code)), t = v((r) => {
156
+ localStorage.setItem("ft_last_project_id", String(r)), localStorage.removeItem("ft_last_file_path"), C.push("/workspace");
157
+ }, []);
158
+ return /* @__PURE__ */ s("div", { className: a.portalRoot, children: [
159
+ /* @__PURE__ */ s("header", { className: a.portalHeader, children: [
160
+ /* @__PURE__ */ s("div", { className: a.brandRow, children: [
161
+ /* @__PURE__ */ e("img", { src: "/logo.svg", alt: "logo", className: a.brandLogo }),
162
+ /* @__PURE__ */ e("h1", { className: a.brandTitle, children: "Z-OPC 一人公司基建" })
163
+ ] }),
164
+ /* @__PURE__ */ e("p", { className: a.brandSubtitle, children: "一人公司的 AI 基建 — 默认专家团随叫随到,额外需要再引入专家团" })
165
+ ] }),
166
+ /* @__PURE__ */ s("main", { className: a.portalMain, children: [
167
+ /* @__PURE__ */ e("h2", { className: a.sectionTitle, children: "专家团" }),
168
+ p ? /* @__PURE__ */ e("p", { className: a.cardDesc, children: p }) : null,
169
+ /* @__PURE__ */ s("div", { className: a.cardGrid, children: [
170
+ l ? /* @__PURE__ */ s("div", { className: a.scenarioCard, children: [
171
+ /* @__PURE__ */ s("div", { className: a.cardTop, children: [
172
+ /* @__PURE__ */ e("span", { className: a.cardIcon, children: "👥" }),
173
+ /* @__PURE__ */ s("div", { className: a.cardInfo, children: [
174
+ /* @__PURE__ */ e("h3", { className: a.cardTitle, children: N(l) }),
175
+ /* @__PURE__ */ s("div", { className: a.cardTags, children: [
176
+ /* @__PURE__ */ e("span", { className: a.tag, children: "默认" }),
177
+ /* @__PURE__ */ e("span", { className: a.tag, children: "唯一大 leader" })
178
+ ] })
179
+ ] })
180
+ ] }),
181
+ /* @__PURE__ */ e("p", { className: a.cardDesc, children: "什么活都能接:直接描述需求即可开始。" }),
182
+ /* @__PURE__ */ e("div", { className: a.cardAction, children: /* @__PURE__ */ e(
183
+ "button",
184
+ {
185
+ className: a.btnCreate,
186
+ onClick: () => i(l),
187
+ children: "开始"
188
+ }
189
+ ) })
190
+ ] }) : null,
191
+ _.map((r) => /* @__PURE__ */ s("div", { className: a.scenarioCard, children: [
192
+ /* @__PURE__ */ s("div", { className: a.cardTop, children: [
193
+ /* @__PURE__ */ e("span", { className: a.cardIcon, children: "🧩" }),
194
+ /* @__PURE__ */ s("div", { className: a.cardInfo, children: [
195
+ /* @__PURE__ */ e("h3", { className: a.cardTitle, children: r.name }),
196
+ /* @__PURE__ */ s("div", { className: a.cardTags, children: [
197
+ /* @__PURE__ */ e("span", { className: a.tag, children: "大 leader 领衔" }),
198
+ r.agentCount ?? r.agent_count ? /* @__PURE__ */ s("span", { className: a.tag, children: [
199
+ r.agentCount ?? r.agent_count,
200
+ " 位专家"
201
+ ] }) : null
202
+ ] })
203
+ ] })
204
+ ] }),
205
+ /* @__PURE__ */ e("p", { className: a.cardDesc, children: r.description || "针对专项领域引入的专家组。" }),
206
+ /* @__PURE__ */ e("div", { className: a.cardAction, children: /* @__PURE__ */ e(
207
+ "button",
208
+ {
209
+ className: a.btnCreate,
210
+ onClick: () => i(r),
211
+ children: "开始"
212
+ }
213
+ ) })
214
+ ] }, r.code))
215
+ ] })
216
+ ] }),
217
+ /* @__PURE__ */ e("footer", { className: a.portalFooter, children: /* @__PURE__ */ e(
218
+ "button",
219
+ {
220
+ className: a.linkWorkspace,
221
+ onClick: () => C.push("/workspace"),
222
+ children: "进入工作台 →"
223
+ }
224
+ ) }),
225
+ h && /* @__PURE__ */ e(
226
+ ma,
227
+ {
228
+ team: h,
229
+ onClose: () => i(null),
230
+ onCreated: t
231
+ }
232
+ )
233
+ ] });
234
+ }
235
+ export {
236
+ ga as default
237
+ };
@@ -1,8 +1,8 @@
1
1
  import { jsxs as c, jsx as a } from "react/jsx-runtime";
2
2
  import v, { useState as d, useEffect as _, useMemo as h } from "react";
3
3
  import { useLocation as N } from "react-router-dom";
4
- import { E as b, F as g } from "./ComponentDoc-KyD5wtuW.js";
5
- import { i as K, P as x } from "./index-ZqDoLUxb.js";
4
+ import { E as b, F as g } from "./ComponentDoc-SiXXhka1.js";
5
+ import { i as K, P as x } from "./index-DULYXalY.js";
6
6
  const E = "_banner_2v7mc_1", F = "_dot_2v7mc_18", S = "_text_2v7mc_26", f = "_retry_2v7mc_31", A = "_dismiss_2v7mc_44", P = "_details_2v7mc_57", k = "_method_2v7mc_85", C = "_status_2v7mc_86", D = "_statusNet_2v7mc_87", $ = "_url_2v7mc_88", e = {
7
7
  banner: E,
8
8
  dot: F,
@@ -3,15 +3,15 @@ import { SearchOutlined as Ie, ReloadOutlined as Te, PlusOutlined as xe, ArrowUp
3
3
  import { Input as K, Select as ae, Button as M, Modal as ve, Space as qe, Tooltip as oe, message as P, Tag as H, Popconfirm as Ne, Spin as Ze, Empty as He, AutoComplete as rt, Segmented as $t, TreeSelect as Xe, Descriptions as ne, InputNumber as ze, Drawer as cl, Tabs as Pt, Switch as Ot, Radio as pt, Tree as ul, Table as Pe } from "antd";
4
4
  import { ListTable as _e, DEFAULT_PAGINATION as hl } from "@yuku123/z-frontend-common/ui";
5
5
  import { useState as o, useCallback as de, useEffect as ce, useMemo as pe, useRef as Bt } from "react";
6
- import { f as Mt, a as zt, b as st, c as dt, s as gt, d as ml, e as pl, g as et, h as gl, i as yl, j as vl, k as Ft, l as yt, m as fl, n as wl, o as Cl, r as Gt, p as Ut, q as bl, t as vt, u as Il, v as ct, w as ut, x as xl, y as Tl, z as Nl, A as kl, B as ft, C as Sl, D as _l, E as Al, F as El, G as Dl, H as wt, I as Rl, J as Ll, K as $l, L as Pl, M as Ol, N as Bl, O as Ml, P as Ct, Q as zl, R as Fl, S as Gl, T as Ul, U as jl } from "./training-BgYM7EV-.js";
7
- import { u as Ce, a4 as Wl } from "./ComponentDoc-KyD5wtuW.js";
6
+ import { f as Mt, a as zt, b as st, c as dt, s as gt, d as ml, e as pl, g as et, h as gl, i as yl, j as vl, k as Ft, l as yt, m as fl, n as wl, o as Cl, r as Gt, p as Ut, q as bl, t as vt, u as Il, v as ct, w as ut, x as xl, y as Tl, z as Nl, A as kl, B as ft, C as Sl, D as _l, E as Al, F as El, G as Dl, H as wt, I as Rl, J as Ll, K as $l, L as Pl, M as Ol, N as Bl, O as Ml, P as Ct, Q as zl, R as Fl, S as Gl, T as Ul, U as jl } from "./training-CKYPSkUP.js";
7
+ import { u as Ce, a4 as Wl } from "./ComponentDoc-SiXXhka1.js";
8
8
  import { s as r } from "./index.module-UI0iz8K0.js";
9
9
  import Hl from "dayjs";
10
10
  import bt from "react-markdown";
11
11
  import It from "remark-gfm";
12
12
  import { h as be } from "./index.module-CAa-2T7m.js";
13
13
  import { MarkdownLiveEditor as Kl } from "@yuku123/z-markdown-component";
14
- import { h as ql } from "./index-ZqDoLUxb.js";
14
+ import { h as ql } from "./index-DULYXalY.js";
15
15
  function Vl() {
16
16
  const l = Ce((i) => i.token), [n, D] = o([]), [k, L] = o(!1), [x, B] = o(""), [E, z] = o(null), [c, A] = o(!1), [C, T] = o(!1), [I, G] = o(null), [u, v] = o([]), [_, y] = o([]), [j, J] = o([]), [Z, O] = o([]), [w, F] = o([]), h = de(async () => {
17
17
  L(!0);
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as e, P as s, S as a, Z as r, i } from "./ComponentDoc-KyD5wtuW.js";
1
+ import { C as e, P as s, S as a, Z as r, i } from "./ComponentDoc-SiXXhka1.js";
2
2
  import { h as m } from "./history-BlrA1eaW.js";
3
3
  export {
4
4
  e as ComponentDocPage,
@@ -1,4 +1,4 @@
1
- import { a as o, f as l, B as r, b as c } from "./ComponentDoc-KyD5wtuW.js";
1
+ import { a as o, f as l, B as r, b as c } from "./ComponentDoc-SiXXhka1.js";
2
2
  async function I(e, n = "") {
3
3
  const t = new URLSearchParams();
4
4
  n && t.set("token", n), e.scenario_code && t.set("scenario_code", e.scenario_code), e.status && t.set("status", e.status), e.name && t.set("name", e.name), e.role && t.set("role", e.role), e.create_time_start && t.set("create_time_start", e.create_time_start), e.create_time_end && t.set("create_time_end", e.create_time_end), t.set("page", String(e.page ?? 1)), t.set("size", String(e.size ?? 20));
@@ -1,8 +1,8 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import { Alert as h } from "antd";
3
- import { u as d } from "./ComponentDoc-KyD5wtuW.js";
4
- import { h as g } from "./index-ZqDoLUxb.js";
5
- import { N as A } from "./index-DxZEpsT6.js";
3
+ import { u as d } from "./ComponentDoc-SiXXhka1.js";
4
+ import { h as g } from "./index-DULYXalY.js";
5
+ import { N as A } from "./index-DDOfdrn4.js";
6
6
  function P() {
7
7
  return d((n) => n.permissionState) !== "failed" ? null : /* @__PURE__ */ a(
8
8
  h,
@@ -1,13 +1,13 @@
1
1
  import { useCallback as m, useState as p, useRef as h, useEffect as I } from "react";
2
2
  import { jsx as n } from "react/jsx-runtime";
3
3
  import { BarChartOutlined as O, MonitorOutlined as f, SettingOutlined as w, ControlOutlined as _, ToolOutlined as N, BookOutlined as M, ThunderboltOutlined as S, CodeSandboxOutlined as T } from "@ant-design/icons";
4
- function C(i, t, l = 176, o = 480) {
4
+ function C(i, t, a = 176, o = 480) {
5
5
  const s = m(
6
6
  (e) => {
7
- const a = window.innerWidth > 0 ? Math.floor(window.innerWidth / 2) : o, d = Math.max(l, Math.min(o, a));
8
- return Math.min(Math.max(l, Math.round(e)), d);
7
+ const l = window.innerWidth > 0 ? Math.floor(window.innerWidth / 2) : o, b = Math.max(a, Math.min(o, l));
8
+ return Math.min(Math.max(a, Math.round(e)), b);
9
9
  },
10
- [l, o]
10
+ [a, o]
11
11
  ), [r, y] = p(() => {
12
12
  try {
13
13
  const e = Number(localStorage.getItem(i));
@@ -17,8 +17,8 @@ function C(i, t, l = 176, o = 480) {
17
17
  return t;
18
18
  }), [c, g] = p(!1), u = h(r);
19
19
  u.current = r;
20
- const b = h(null), E = m((e) => {
21
- e.preventDefault(), b.current = { startX: e.clientX, startW: u.current }, g(!0);
20
+ const d = h(null), E = m((e) => {
21
+ e.preventDefault(), d.current = { startX: e.clientX, startW: u.current }, g(!0);
22
22
  }, []), v = m(() => {
23
23
  y(t);
24
24
  try {
@@ -28,18 +28,18 @@ function C(i, t, l = 176, o = 480) {
28
28
  }, [t, i]);
29
29
  return I(() => {
30
30
  if (!c) return;
31
- const e = (d) => {
32
- const k = b.current;
33
- k && y(s(k.startW + d.clientX - k.startX));
34
- }, a = () => {
35
- b.current = null, g(!1);
31
+ const e = (b) => {
32
+ const k = d.current;
33
+ k && y(s(k.startW + b.clientX - k.startX));
34
+ }, l = () => {
35
+ d.current = null, g(!1);
36
36
  try {
37
37
  localStorage.setItem(i, String(u.current));
38
38
  } catch {
39
39
  }
40
40
  };
41
- return window.addEventListener("pointermove", e), window.addEventListener("pointerup", a), window.addEventListener("pointercancel", a), document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", () => {
42
- window.removeEventListener("pointermove", e), window.removeEventListener("pointerup", a), window.removeEventListener("pointercancel", a), document.body.style.cursor = "", document.body.style.userSelect = "";
41
+ return window.addEventListener("pointermove", e), window.addEventListener("pointerup", l), window.addEventListener("pointercancel", l), document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", () => {
42
+ window.removeEventListener("pointermove", e), window.removeEventListener("pointerup", l), window.removeEventListener("pointercancel", l), document.body.style.cursor = "", document.body.style.userSelect = "";
43
43
  };
44
44
  }, [c, s, i]), { width: r, dragging: c, onHandlePointerDown: E, resetWidth: v };
45
45
  }
@@ -53,7 +53,7 @@ const W = [
53
53
  { key: "statistics-personal", label: "个人指标" },
54
54
  { key: "statistics-global", label: "全局指标" },
55
55
  { key: "statistics-tech", label: "技术指标" },
56
- { key: "statistics-scenario", label: "场景指标" },
56
+ { key: "statistics-scenario", label: "专家团指标" },
57
57
  { key: "statistics-business", label: "业务指标" },
58
58
  {
59
59
  key: "ops-report",
@@ -81,7 +81,9 @@ const W = [
81
81
  label: "工具监控",
82
82
  permission: "AUDIT_LOG_VIEW"
83
83
  },
84
- { key: "msghub", label: "消息监控" },
84
+ // 消息监控(msghub)已于 2026-11-13 挪到智能面 SmartWorkbench「智能体」组 —— 它是
85
+ // agent 消息流(CHAT/REASONING/TOOL_CALL…)的监控面,不是系统面运行指标。
86
+ // SUPPORTED_MENUS 保留 msghub,旧深链 ?menu=msghub 仍可打开(AdminModuleContent case 也在)。
85
87
  { key: "statistics-scenario-cost", label: "成本监控" }
86
88
  ]
87
89
  },
@@ -103,12 +105,12 @@ const W = [
103
105
  },
104
106
  {
105
107
  key: "ft-scenario",
106
- label: "场景管理",
108
+ label: "专家团管理",
107
109
  children: [
108
- { key: "scenario", label: "场景构建" },
109
- { key: "scenario-instance", label: "场景实例" },
110
+ { key: "scenario", label: "专家团构建" },
111
+ { key: "scenario-instance", label: "协作实例" },
110
112
  { key: "scenario-template", label: "渲染模板" },
111
- { key: "tag", label: "场景标签" }
113
+ { key: "tag", label: "专家团标签" }
112
114
  ]
113
115
  },
114
116
  { key: "tool", label: "工具管理" }
@@ -170,11 +172,11 @@ const W = [
170
172
  children: [
171
173
  { key: "knowledge-base", label: "文档知识" },
172
174
  { key: "knowledge-notes", label: "个人笔记" },
173
- // 个体知识/场景知识(原一级分组「进化管理」→ 个体进化/场景进化):进化学习
175
+ // 个体知识/专家团知识(原一级分组「进化管理」→ 个体进化/专家团进化):进化学习
174
176
  // 即知识蒸馏闭环(学习记录→知识吸收)。接口走独立 evolution 服务(无主应用
175
177
  // 权限拦截,EVOLUTION_VIEW 本就纯前端门槛),子项跟随父组 KNOWLEDGE_VIEW。key 保留,深链兼容。
176
178
  { key: "evolution-agent", label: "个体知识" },
177
- { key: "evolution-scenario", label: "场景知识" }
179
+ { key: "evolution-scenario", label: "专家团知识" }
178
180
  ]
179
181
  },
180
182
  {
@@ -290,8 +292,8 @@ const W = [
290
292
  function A(i = W) {
291
293
  return i.flatMap(
292
294
  (t) => {
293
- var l;
294
- return (l = t.children) != null && l.length ? A(t.children) : [t];
295
+ var a;
296
+ return (a = t.children) != null && a.length ? A(t.children) : [t];
295
297
  }
296
298
  );
297
299
  }
package/dist/pages.js CHANGED
@@ -1,4 +1,4 @@
1
- import { S as t, P as o, C as r, Z as a } from "./ComponentDoc-KyD5wtuW.js";
1
+ import { S as t, P as o, C as r, Z as a } from "./ComponentDoc-SiXXhka1.js";
2
2
  import { createElement as e } from "react";
3
3
  import { BellOutlined as m, ProjectOutlined as p, DesktopOutlined as i, ReadOutlined as n } from "@ant-design/icons";
4
4
  import "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { s as l } from "./ComponentDoc-KyD5wtuW.js";
1
+ import { s as l } from "./ComponentDoc-SiXXhka1.js";
2
2
  function m(o) {
3
3
  const n = o.filter((t) => t.member_type === "AGENT");
4
4
  return n.find((t) => t.is_default === !0) ?? n[0] ?? null;
@@ -1,4 +1,4 @@
1
- import { t as l } from "./ComponentDoc-KyD5wtuW.js";
1
+ import { t as l } from "./ComponentDoc-SiXXhka1.js";
2
2
  const d = "USER_INFO";
3
3
  function s() {
4
4
  try {
@@ -1,4 +1,4 @@
1
- import { a as g, f, B as y, b as m } from "./ComponentDoc-KyD5wtuW.js";
1
+ import { a as g, f, B as y, b as m } from "./ComponentDoc-SiXXhka1.js";
2
2
  function t(n, a = "") {
3
3
  const i = new URLSearchParams();
4
4
  Object.entries(n).forEach(([u, o]) => {