@yuku123/z-team-component 0.2.114 → 0.2.115

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 (44) hide show
  1. package/dist/{ChangeLogView-1-S4MEB1.js → ChangeLogView-ets-YU_p.js} +1 -1
  2. package/dist/{ComponentDoc-Sa3tPY-g.js → ComponentDoc-Bul3tVS0.js} +3 -3
  3. package/dist/{InvitationManagementPage-HZs4bdak.js → InvitationManagementPage-BHNsgONK.js} +1 -1
  4. package/dist/{OnboardingPage-B5OgZASN.js → OnboardingPage-De1kfdAD.js} +2 -2
  5. package/dist/{ScheduledTasks-CToyeRUq.js → ScheduledTasks-DmhnhrY6.js} +6 -6
  6. package/dist/{SystemShell-BhHPNWpZ.js → SystemShell-CJWriW1j.js} +188 -182
  7. package/dist/{admin-logs-D11ATzyh.js → admin-logs-xM8D9mkq.js} +1 -1
  8. package/dist/{api-Bh2pIpgt.js → api-C3rTmzXM.js} +1 -1
  9. package/dist/{api-CeeVdjN0.js → api-TeByLzeZ.js} +1 -1
  10. package/dist/{createWorkspaceWsHandler-u1JoCPmD.js → createWorkspaceWsHandler-C-PLYwzv.js} +3 -3
  11. package/dist/{index-BFhr0Fay.js → index-B7Bget_b.js} +2 -2
  12. package/dist/{index-CoyGbqjP.js → index-BBcagQWW.js} +2 -2
  13. package/dist/{index-dmJO62ji.js → index-BQ56YcGk.js} +6 -6
  14. package/dist/{index-B37k7sBw.js → index-BYKkp889.js} +3 -3
  15. package/dist/{index-BCvF-oLV.js → index-B_WoFo2Z.js} +2 -2
  16. package/dist/{index-Bjc1DKF1.js → index-Ba4E-5J-.js} +3 -3
  17. package/dist/{index-BhmgPrmH.js → index-Bmvmm__k.js} +1 -1
  18. package/dist/{index-Dbgu1GMZ.js → index-Bxe-H2mz.js} +4 -4
  19. package/dist/{index-CflRaLqk.js → index-CeqAe1OU.js} +3 -3
  20. package/dist/{index-BfHaPjcW.js → index-CzGY0mgh.js} +2 -2
  21. package/dist/{index--Drbx2jZ.js → index-D-9amgkq.js} +2 -2
  22. package/dist/{index-Iy3bCyGV.js → index-D-hBjYcu.js} +2 -2
  23. package/dist/{index-C2dLZ4oU.js → index-D1ihnJf6.js} +3 -3
  24. package/dist/{index-eOBmPcNH.js → index-DGCp5aRw.js} +6 -6
  25. package/dist/{index-C3WQJJ0C.js → index-DLb30x1u.js} +1 -1
  26. package/dist/{index-BvZEUp32.js → index-DOXq-Koz.js} +2 -2
  27. package/dist/{index-DTWfL9EF.js → index-DaM-iwXC.js} +3 -3
  28. package/dist/{index-CpQ71Ipv.js → index-QR5b57oy.js} +1 -1
  29. package/dist/{index-S4KVdYhB.js → index-WbRlN6kd.js} +3 -3
  30. package/dist/{index-DuUUslV_.js → index-_hO4cSgH.js} +2 -2
  31. package/dist/{index-CMgNvlmo.js → index-am7SQrxT.js} +5 -5
  32. package/dist/{index-C9CF7Nsd.js → index-iri2aiuv.js} +1 -1
  33. package/dist/{index-kG57tOUk.js → index-lGyYnsgh.js} +1 -1
  34. package/dist/{index-58Ncrbai.js → index-m_OPyFaC.js} +247 -251
  35. package/dist/{index-CsjvSiEq.js → index-zs_rPvSU.js} +3 -3
  36. package/dist/index.js +1 -1
  37. package/dist/{instance-HaVeSP6w.js → instance-L5Nzl1Ap.js} +1 -1
  38. package/dist/{menuPermission-DbAZEF9A.js → menuPermission-DXdko4yC.js} +3 -3
  39. package/dist/pages.js +1 -1
  40. package/dist/{send-default-agent-team-message-D6QVPUN-.js → send-default-agent-team-message-6tpaMV7F.js} +1 -1
  41. package/dist/{sso-user-hSducls9.js → sso-user-D2hilDyx.js} +1 -1
  42. package/dist/{training-CDkhiMNH.js → training-lAuyHLZB.js} +1 -1
  43. package/dist/{webide-TsIJlh_u.js → webide-DfQVzEwH.js} +3 -3
  44. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
1
  import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
- import { useNavigate as Y, useLocation as I, Navigate as c } from "react-router-dom";
3
- import { useMemo as _, useState as L, Suspense as oe, lazy as b } from "react";
4
- import { DownOutlined as z, RightOutlined as T, AppstoreOutlined as Z, UserOutlined as ce, SafetyCertificateOutlined as x, CloudOutlined as M, DeploymentUnitOutlined as E, AuditOutlined as R, CodeOutlined as N, FolderOpenOutlined as le, DesktopOutlined as V, ThunderboltOutlined as se, BookOutlined as q, DashboardOutlined as v, ProfileOutlined as H, ApartmentOutlined as re, FileImageOutlined as pe, FileTextOutlined as D, CalendarOutlined as S, ApiOutlined as ie, ProjectOutlined as J, ClusterOutlined as me, DatabaseOutlined as ue, TeamOutlined as de, BarChartOutlined as j } from "@ant-design/icons";
5
- import { f as he, M as be } from "./menuPermission-DbAZEF9A.js";
6
- import { u as W, y as ge } from "./ComponentDoc-Sa3tPY-g.js";
2
+ import { useNavigate as Z, useLocation as O, Navigate as c } from "react-router-dom";
3
+ import { useMemo as y, useState as z, Suspense as oe, lazy as g } from "react";
4
+ import { DownOutlined as T, RightOutlined as x, AppstoreOutlined as V, UserOutlined as ce, SafetyCertificateOutlined as E, CloudOutlined as G, DeploymentUnitOutlined as R, AuditOutlined as q, CodeOutlined as C, FolderOpenOutlined as se, DesktopOutlined as J, ThunderboltOutlined as le, BookOutlined as H, DashboardOutlined as D, ProfileOutlined as j, ApartmentOutlined as re, FileImageOutlined as pe, FileTextOutlined as N, CalendarOutlined as A, ApiOutlined as ie, ProjectOutlined as X, ClusterOutlined as me, DatabaseOutlined as ue, TeamOutlined as de, BarChartOutlined as W } from "@ant-design/icons";
5
+ import { f as he, M as be } from "./menuPermission-DXdko4yC.js";
6
+ import { u as U, y as ge } from "./ComponentDoc-Bul3tVS0.js";
7
7
  import { ProductApp as _e } from "@yuku123/z-product-component";
8
- import { P as ke, R as ye } from "./index-BvZEUp32.js";
9
- const Se = "_container_wbul9_7", we = "_sidebar_wbul9_17", fe = "_menuList_wbul9_37", Ae = "_menuGroup_wbul9_44", Pe = "_menuGroupHeader_wbul9_48", ve = "_menuGroupIcon_wbul9_66", De = "_menuGroupLabel_wbul9_75", Ne = "_menuGroupArrow_wbul9_80", Ce = "_menuSubList_wbul9_87", Me = "_menuSubItem_wbul9_93", Ge = "_menuSubItemActive_wbul9_110", Ie = "_menuSubItemIcon_wbul9_117", Oe = "_menuSubGroup_wbul9_132", Be = "_menuSubGroupHeader_wbul9_136", Le = "_menuSubGroupHeaderActive_wbul9_154", ze = "_menuSubGroupLabel_wbul9_158", Te = "_main_wbul9_169", xe = "_detailPanel_wbul9_179", Ee = "_detailHeader_wbul9_189", Re = "_detailIcon_wbul9_196", qe = "_detailTitle_wbul9_209", He = "_detailDesc_wbul9_216", je = "_detailAction_wbul9_223", We = "_goBtn_wbul9_228", $e = "_emptyState_wbul9_248", a = {
8
+ import { P as ke, R as ye } from "./index-DOXq-Koz.js";
9
+ const Se = "_container_wbul9_7", we = "_sidebar_wbul9_17", fe = "_menuList_wbul9_37", Ae = "_menuGroup_wbul9_44", Pe = "_menuGroupHeader_wbul9_48", ve = "_menuGroupIcon_wbul9_66", De = "_menuGroupLabel_wbul9_75", Ne = "_menuGroupArrow_wbul9_80", Ce = "_menuSubList_wbul9_87", Me = "_menuSubItem_wbul9_93", Ge = "_menuSubItemActive_wbul9_110", Ie = "_menuSubItemIcon_wbul9_117", Oe = "_menuSubGroup_wbul9_132", Le = "_menuSubGroupHeader_wbul9_136", Be = "_menuSubGroupHeaderActive_wbul9_154", ze = "_menuSubGroupLabel_wbul9_158", Te = "_main_wbul9_169", xe = "_detailPanel_wbul9_179", Ee = "_detailHeader_wbul9_189", Re = "_detailIcon_wbul9_196", qe = "_detailTitle_wbul9_209", He = "_detailDesc_wbul9_216", je = "_detailAction_wbul9_223", We = "_goBtn_wbul9_228", Ue = "_emptyState_wbul9_248", n = {
10
10
  container: Se,
11
11
  sidebar: we,
12
12
  menuList: fe,
@@ -20,8 +20,8 @@ const Se = "_container_wbul9_7", we = "_sidebar_wbul9_17", fe = "_menuList_wbul9
20
20
  menuSubItemActive: Ge,
21
21
  menuSubItemIcon: Ie,
22
22
  menuSubGroup: Oe,
23
- menuSubGroupHeader: Be,
24
- menuSubGroupHeaderActive: Le,
23
+ menuSubGroupHeader: Le,
24
+ menuSubGroupHeaderActive: Be,
25
25
  menuSubGroupLabel: ze,
26
26
  main: Te,
27
27
  detailPanel: xe,
@@ -31,14 +31,14 @@ const Se = "_container_wbul9_7", we = "_sidebar_wbul9_17", fe = "_menuList_wbul9
31
31
  detailDesc: He,
32
32
  detailAction: je,
33
33
  goBtn: We,
34
- emptyState: $e
34
+ emptyState: Ue
35
35
  };
36
- function G(l) {
37
- return l.flatMap((s) => [s, ...G(s.children ?? [])]);
36
+ function I(s) {
37
+ return s.flatMap((l) => [l, ...I(l.children ?? [])]);
38
38
  }
39
- const Ue = {
39
+ const $e = {
40
40
  title: "测试中心",
41
- icon: /* @__PURE__ */ e(v, {}),
41
+ icon: /* @__PURE__ */ e(D, {}),
42
42
  // 测试 Tab 的入口权限点 (顶栏 test mode 同码)。4A 普通用户角色 USER 持有 TEST_ENTRY
43
43
  // ⇒ 全员可见; 未绑测试角色的账号看不到这一组。
44
44
  permission: "TEST_ENTRY",
@@ -46,19 +46,19 @@ const Ue = {
46
46
  {
47
47
  key: "test-dashboard",
48
48
  label: "测试总览",
49
- icon: /* @__PURE__ */ e(v, {}),
49
+ icon: /* @__PURE__ */ e(D, {}),
50
50
  path: "/test/qa/dashboard",
51
51
  desc: "测试统计、趋势与套件健康度"
52
52
  },
53
53
  {
54
54
  key: "test-design",
55
55
  label: "用例与编排",
56
- icon: /* @__PURE__ */ e(D, {}),
56
+ icon: /* @__PURE__ */ e(N, {}),
57
57
  children: [
58
58
  {
59
59
  key: "test-case",
60
60
  label: "测试用例",
61
- icon: /* @__PURE__ */ e(D, {}),
61
+ icon: /* @__PURE__ */ e(N, {}),
62
62
  path: "/test/qa/cases",
63
63
  desc: "接口用例与断言模板"
64
64
  },
@@ -72,7 +72,7 @@ const Ue = {
72
72
  {
73
73
  key: "test-plan",
74
74
  label: "测试计划",
75
- icon: /* @__PURE__ */ e(J, {}),
75
+ icon: /* @__PURE__ */ e(X, {}),
76
76
  path: "/test/qa/plans",
77
77
  desc: "套件组合与环境绑定"
78
78
  }
@@ -81,26 +81,26 @@ const Ue = {
81
81
  {
82
82
  key: "test-exec",
83
83
  label: "执行与调度",
84
- icon: /* @__PURE__ */ e(S, {}),
84
+ icon: /* @__PURE__ */ e(A, {}),
85
85
  children: [
86
86
  {
87
87
  key: "test-run",
88
88
  label: "执行记录",
89
- icon: /* @__PURE__ */ e(S, {}),
89
+ icon: /* @__PURE__ */ e(A, {}),
90
90
  path: "/test/qa/runs",
91
91
  desc: "执行触发、状态与报告"
92
92
  },
93
93
  {
94
94
  key: "test-schedule",
95
95
  label: "定时调度",
96
- icon: /* @__PURE__ */ e(S, {}),
96
+ icon: /* @__PURE__ */ e(A, {}),
97
97
  path: "/test/qa/schedules",
98
98
  desc: "cron 定时执行"
99
99
  },
100
100
  {
101
101
  key: "test-e2e",
102
102
  label: "E2E 测试",
103
- icon: /* @__PURE__ */ e(V, {}),
103
+ icon: /* @__PURE__ */ e(J, {}),
104
104
  path: "/test/qa/e2e",
105
105
  desc: "浏览器自动化测试"
106
106
  }
@@ -109,12 +109,12 @@ const Ue = {
109
109
  {
110
110
  key: "test-support",
111
111
  label: "环境与工具",
112
- icon: /* @__PURE__ */ e(M, {}),
112
+ icon: /* @__PURE__ */ e(G, {}),
113
113
  children: [
114
114
  {
115
115
  key: "test-env",
116
116
  label: "环境管理",
117
- icon: /* @__PURE__ */ e(M, {}),
117
+ icon: /* @__PURE__ */ e(G, {}),
118
118
  path: "/test/qa/envs",
119
119
  desc: "多环境变量管理"
120
120
  },
@@ -130,19 +130,19 @@ const Ue = {
130
130
  {
131
131
  key: "test-eval",
132
132
  label: "智能测评",
133
- icon: /* @__PURE__ */ e(j, {}),
133
+ icon: /* @__PURE__ */ e(W, {}),
134
134
  children: [
135
135
  {
136
136
  key: "test-eval-start",
137
137
  label: "发起测评",
138
- icon: /* @__PURE__ */ e(v, {}),
138
+ icon: /* @__PURE__ */ e(D, {}),
139
139
  path: "/test/evaluation/start",
140
140
  desc: "Agent 质量测评"
141
141
  },
142
142
  {
143
143
  key: "test-eval-schedule",
144
144
  label: "自动测评",
145
- icon: /* @__PURE__ */ e(S, {}),
145
+ icon: /* @__PURE__ */ e(A, {}),
146
146
  path: "/test/evaluation/schedule",
147
147
  desc: "定时批量测评"
148
148
  },
@@ -156,17 +156,17 @@ const Ue = {
156
156
  {
157
157
  key: "test-eval-report",
158
158
  label: "分析报告",
159
- icon: /* @__PURE__ */ e(j, {}),
159
+ icon: /* @__PURE__ */ e(W, {}),
160
160
  path: "/test/evaluation/report",
161
161
  desc: "测评结果分析"
162
162
  }
163
163
  ]
164
164
  }
165
165
  ]
166
- }, X = [
166
+ }, ee = [
167
167
  {
168
168
  title: "认证与权限",
169
- icon: /* @__PURE__ */ e(x, {}),
169
+ icon: /* @__PURE__ */ e(E, {}),
170
170
  // 4A 授权中心自身的资源管理动作 (账号/角色/应用/租户/组织/权限分配)
171
171
  // ⇒ 4A 权限管理域 PERMISSION_MANAGE。普通用户角色 USER 不含该码,
172
172
  // 之前照样能点进这些页面 (进去就是 403 / 空白) —— 现在入口先收敛。
@@ -182,35 +182,35 @@ const Ue = {
182
182
  {
183
183
  key: "4a-role",
184
184
  label: "角色管理",
185
- icon: /* @__PURE__ */ e(x, {}),
185
+ icon: /* @__PURE__ */ e(E, {}),
186
186
  path: "/ctc/4a/role",
187
187
  desc: "角色定义与权限分配"
188
188
  },
189
189
  {
190
190
  key: "4a-app",
191
191
  label: "应用管理",
192
- icon: /* @__PURE__ */ e(Z, {}),
192
+ icon: /* @__PURE__ */ e(V, {}),
193
193
  path: "/ctc/4a/application",
194
194
  desc: "应用注册、资源与权限配置"
195
195
  },
196
196
  {
197
197
  key: "4a-tenant",
198
198
  label: "租户管理",
199
- icon: /* @__PURE__ */ e(M, {}),
199
+ icon: /* @__PURE__ */ e(G, {}),
200
200
  path: "/ctc/4a/tenant",
201
201
  desc: "多租户管理与配置"
202
202
  },
203
203
  {
204
204
  key: "4a-org",
205
205
  label: "组织管理",
206
- icon: /* @__PURE__ */ e(E, {}),
206
+ icon: /* @__PURE__ */ e(R, {}),
207
207
  path: "/ctc/4a/org",
208
208
  desc: "组织架构与部门管理"
209
209
  },
210
210
  {
211
211
  key: "4a-permission",
212
212
  label: "权限管理",
213
- icon: /* @__PURE__ */ e(R, {}),
213
+ icon: /* @__PURE__ */ e(q, {}),
214
214
  path: "/ctc/4a/permission",
215
215
  desc: "细粒度权限控制与审批"
216
216
  }
@@ -218,27 +218,27 @@ const Ue = {
218
218
  },
219
219
  {
220
220
  title: "开发与工具",
221
- icon: /* @__PURE__ */ e(N, {}),
221
+ icon: /* @__PURE__ */ e(C, {}),
222
222
  items: [
223
223
  {
224
224
  key: "script",
225
225
  label: "脚本中心",
226
- icon: /* @__PURE__ */ e(N, {}),
226
+ icon: /* @__PURE__ */ e(C, {}),
227
227
  path: "/script/manage",
228
228
  desc: "DSL 脚本注册与执行"
229
229
  },
230
- { key: "lc", label: "研发中心", icon: /* @__PURE__ */ e(N, {}), path: "/lc/apps", desc: "低代码应用开发与管理" },
230
+ { key: "lc", label: "研发中心", icon: /* @__PURE__ */ e(C, {}), path: "/lc/apps", desc: "低代码应用开发与管理" },
231
231
  {
232
232
  key: "tool-curl",
233
233
  label: "短链管理",
234
- icon: /* @__PURE__ */ e(le, {}),
234
+ icon: /* @__PURE__ */ e(se, {}),
235
235
  path: "/z-tool/curl",
236
236
  desc: "短链接创建与管理"
237
237
  },
238
238
  {
239
239
  key: "tool-webide",
240
240
  label: "WebIDE 容器",
241
- icon: /* @__PURE__ */ e(V, {}),
241
+ icon: /* @__PURE__ */ e(J, {}),
242
242
  path: "/z-tool/webide",
243
243
  desc: "在线 IDE 代码编辑器"
244
244
  }
@@ -246,7 +246,7 @@ const Ue = {
246
246
  },
247
247
  {
248
248
  title: "产品认知",
249
- icon: /* @__PURE__ */ e(H, {}),
249
+ icon: /* @__PURE__ */ e(j, {}),
250
250
  items: [
251
251
  {
252
252
  // 工坊是「一个面板干完产品业务开发」的主入口:对话 + 小册子 + 产物 + 台账。
@@ -254,35 +254,35 @@ const Ue = {
254
254
  // 而主壳导航用的是这份写死的清单 ⇒ 面板做好了却在界面上进不去。
255
255
  key: "product-atelier",
256
256
  label: "产品工坊",
257
- icon: /* @__PURE__ */ e(se, {}),
257
+ icon: /* @__PURE__ */ e(le, {}),
258
258
  path: "/z-product/atelier",
259
259
  desc: "在一个面板里对话、沉淀产品稿与设计稿、渲染演示稿、建工程落地"
260
260
  },
261
261
  {
262
262
  key: "product-booklets",
263
263
  label: "小册子库",
264
- icon: /* @__PURE__ */ e(q, {}),
264
+ icon: /* @__PURE__ */ e(H, {}),
265
265
  path: "/z-product/booklets",
266
266
  desc: "可被对话引用的方法、清单与规范"
267
267
  },
268
268
  {
269
269
  key: "product-board",
270
270
  label: "产品全景",
271
- icon: /* @__PURE__ */ e(v, {}),
271
+ icon: /* @__PURE__ */ e(D, {}),
272
272
  path: "/z-product/board",
273
273
  desc: "业务/产品/研发三线可见的全量认知(术语·模型·链路·设计稿·缺口)"
274
274
  },
275
275
  {
276
276
  key: "product-blueprint",
277
277
  label: "产品蓝图",
278
- icon: /* @__PURE__ */ e(H, {}),
278
+ icon: /* @__PURE__ */ e(j, {}),
279
279
  path: "/z-product/blueprint",
280
280
  desc: "AI 的唯一入口:后端实时投影的全量认知快照"
281
281
  },
282
282
  {
283
283
  key: "product-glossary",
284
284
  label: "统一语言",
285
- icon: /* @__PURE__ */ e(q, {}),
285
+ icon: /* @__PURE__ */ e(H, {}),
286
286
  path: "/z-product/glossary",
287
287
  desc: "术语仲裁表:标准词/别名/适用范围/反例"
288
288
  },
@@ -296,7 +296,7 @@ const Ue = {
296
296
  {
297
297
  key: "product-scenarios",
298
298
  label: "用户链路",
299
- icon: /* @__PURE__ */ e(E, {}),
299
+ icon: /* @__PURE__ */ e(R, {}),
300
300
  path: "/z-product/scenarios",
301
301
  desc: "端到端场景:步骤引用领域概念"
302
302
  },
@@ -311,26 +311,26 @@ const Ue = {
311
311
  },
312
312
  {
313
313
  title: "业务流程",
314
- icon: /* @__PURE__ */ e(D, {}),
314
+ icon: /* @__PURE__ */ e(N, {}),
315
315
  items: [
316
316
  {
317
317
  key: "workflow",
318
318
  label: "流程中心",
319
- icon: /* @__PURE__ */ e(R, {}),
319
+ icon: /* @__PURE__ */ e(q, {}),
320
320
  path: "/workflow/dashboard",
321
321
  desc: "工作流定义与审批管理"
322
322
  },
323
323
  {
324
324
  key: "task",
325
325
  label: "任务中心",
326
- icon: /* @__PURE__ */ e(D, {}),
326
+ icon: /* @__PURE__ */ e(N, {}),
327
327
  path: "/task/dashboard",
328
328
  desc: "任务创建、分配与跟踪"
329
329
  },
330
330
  {
331
331
  key: "schedule",
332
332
  label: "调度中心",
333
- icon: /* @__PURE__ */ e(S, {}),
333
+ icon: /* @__PURE__ */ e(A, {}),
334
334
  // z-schedule-component 的路由只有 jobs / group / log,**没有 dashboard**:
335
335
  // 原来写 /schedule/dashboard,点进去命中 /schedule/* 通配后组件内部匹配不到
336
336
  // 任何路由 ⇒ 右侧一片空白。默认页取 jobs。
@@ -347,146 +347,146 @@ const Ue = {
347
347
  {
348
348
  key: "project",
349
349
  label: "项目中心",
350
- icon: /* @__PURE__ */ e(J, {}),
350
+ icon: /* @__PURE__ */ e(X, {}),
351
351
  path: "/project/list",
352
352
  desc: "项目创建与进度管理"
353
353
  }
354
354
  ]
355
355
  }
356
- ], C = [...X, Ue];
356
+ ], M = [...ee, $e];
357
357
  function Ke({
358
- activePathOverride: l,
359
- menuOnly: s = !1,
360
- visibleGroups: m
358
+ activePathOverride: s,
359
+ menuOnly: l = !1,
360
+ visibleGroups: p
361
361
  } = {}) {
362
- const w = Y(), { pathname: p } = I(), k = _(
363
- () => m ? C.filter((n) => m.includes(n.title)) : X,
364
- [m]
365
- ), f = W((n) => n.permissionState), A = W((n) => n.currentUser), u = _(
366
- () => f === "failed" ? k : he(k, A),
367
- [k, A, f]
368
- ), [y, ee] = L(
369
- new Set(C.map((n) => n.title))
370
- ), [O, te] = L(
362
+ const S = Z(), { pathname: i } = O(), w = y(
363
+ () => p ? M.filter((a) => p.includes(a.title)) : ee,
364
+ [p]
365
+ ), h = U((a) => a.permissionState), P = U((a) => a.currentUser), _ = y(
366
+ () => h === "failed" ? w : he(w, P),
367
+ [w, P, h]
368
+ ), [d, f] = z(
369
+ new Set(M.map((a) => a.title))
370
+ ), [L, te] = z(
371
371
  () => new Set(
372
- C.flatMap((n) => n.items).filter((n) => n.children).map((n) => n.key)
372
+ M.flatMap((a) => a.items).filter((a) => a.children).map((a) => a.key)
373
373
  )
374
- ), P = _(() => {
375
- var d;
376
- const n = l ?? p;
377
- return ((d = u.flatMap((o) => G(o.items)).find(
378
- (o) => o.path === n
379
- )) == null ? void 0 : d.key) ?? null;
380
- }, [l, p, u]), ne = (n) => {
381
- ee((d) => {
382
- const o = new Set(d);
383
- return o.has(n) ? o.delete(n) : o.add(n), o;
374
+ ), v = y(() => {
375
+ var u;
376
+ const a = s ?? i;
377
+ return ((u = _.flatMap((o) => I(o.items)).find(
378
+ (o) => o.path === a
379
+ )) == null ? void 0 : u.key) ?? null;
380
+ }, [s, i, _]), ae = (a) => {
381
+ f((u) => {
382
+ const o = new Set(u);
383
+ return o.has(a) ? o.delete(a) : o.add(a), o;
384
384
  });
385
- }, ae = (n) => {
386
- te((d) => {
387
- const o = new Set(d);
388
- return o.has(n) ? o.delete(n) : o.add(n), o;
385
+ }, ne = (a) => {
386
+ te((u) => {
387
+ const o = new Set(u);
388
+ return o.has(a) ? o.delete(a) : o.add(a), o;
389
389
  });
390
- }, B = (n) => {
391
- n.path && w(n.path);
392
- }, g = u.flatMap((n) => G(n.items)).find(
393
- (n) => n.key === P
390
+ }, B = (a) => {
391
+ a.path && S(a.path);
392
+ }, k = _.flatMap((a) => I(a.items)).find(
393
+ (a) => a.key === v
394
394
  );
395
- return /* @__PURE__ */ r("div", { className: a.container, children: [
396
- /* @__PURE__ */ r("aside", { className: a.sidebar, children: [
395
+ return /* @__PURE__ */ r("div", { className: n.container, children: [
396
+ /* @__PURE__ */ r("aside", { className: n.sidebar, children: [
397
397
  /* @__PURE__ */ e(be, {}),
398
- /* @__PURE__ */ e("nav", { className: a.menuList, children: u.map((n) => {
399
- const d = y.has(n.title);
400
- return /* @__PURE__ */ r("div", { className: a.menuGroup, children: [
398
+ /* @__PURE__ */ e("nav", { className: n.menuList, children: _.map((a) => {
399
+ const u = d.has(a.title);
400
+ return /* @__PURE__ */ r("div", { className: n.menuGroup, children: [
401
401
  /* @__PURE__ */ r(
402
402
  "div",
403
403
  {
404
- className: a.menuGroupHeader,
405
- onClick: () => ne(n.title),
404
+ className: n.menuGroupHeader,
405
+ onClick: () => ae(a.title),
406
406
  children: [
407
- /* @__PURE__ */ e("span", { className: a.menuGroupIcon, children: n.icon }),
408
- /* @__PURE__ */ e("span", { className: a.menuGroupLabel, children: n.title }),
409
- /* @__PURE__ */ e("span", { className: a.menuGroupArrow, children: d ? /* @__PURE__ */ e(z, {}) : /* @__PURE__ */ e(T, {}) })
407
+ /* @__PURE__ */ e("span", { className: n.menuGroupIcon, children: a.icon }),
408
+ /* @__PURE__ */ e("span", { className: n.menuGroupLabel, children: a.title }),
409
+ /* @__PURE__ */ e("span", { className: n.menuGroupArrow, children: u ? /* @__PURE__ */ e(T, {}) : /* @__PURE__ */ e(x, {}) })
410
410
  ]
411
411
  }
412
412
  ),
413
- d && /* @__PURE__ */ e("ul", { className: a.menuSubList, children: n.items.map(
413
+ u && /* @__PURE__ */ e("ul", { className: n.menuSubList, children: a.items.map(
414
414
  (o) => o.children ? (
415
415
  /* 子菜单分组头 — 可折叠; active 项落在其中时高亮 */
416
- /* @__PURE__ */ r("li", { className: a.menuSubGroup, children: [
416
+ /* @__PURE__ */ r("li", { className: n.menuSubGroup, children: [
417
417
  /* @__PURE__ */ r(
418
418
  "div",
419
419
  {
420
- className: `${a.menuSubGroupHeader} ${o.children.some((h) => h.key === P) ? a.menuSubGroupHeaderActive : ""}`,
421
- onClick: () => ae(o.key),
420
+ className: `${n.menuSubGroupHeader} ${o.children.some((b) => b.key === v) ? n.menuSubGroupHeaderActive : ""}`,
421
+ onClick: () => ne(o.key),
422
422
  children: [
423
- /* @__PURE__ */ e("span", { className: a.menuGroupIcon, children: o.icon }),
424
- /* @__PURE__ */ e("span", { className: a.menuSubGroupLabel, children: o.label }),
425
- /* @__PURE__ */ e("span", { className: a.menuGroupArrow, children: O.has(o.key) ? /* @__PURE__ */ e(z, {}) : /* @__PURE__ */ e(T, {}) })
423
+ /* @__PURE__ */ e("span", { className: n.menuGroupIcon, children: o.icon }),
424
+ /* @__PURE__ */ e("span", { className: n.menuSubGroupLabel, children: o.label }),
425
+ /* @__PURE__ */ e("span", { className: n.menuGroupArrow, children: L.has(o.key) ? /* @__PURE__ */ e(T, {}) : /* @__PURE__ */ e(x, {}) })
426
426
  ]
427
427
  }
428
428
  ),
429
- O.has(o.key) && /* @__PURE__ */ e("ul", { className: a.menuSubList, children: o.children.map((h) => /* @__PURE__ */ r(
429
+ L.has(o.key) && /* @__PURE__ */ e("ul", { className: n.menuSubList, children: o.children.map((b) => /* @__PURE__ */ r(
430
430
  "li",
431
431
  {
432
- className: `${a.menuSubItem} ${P === h.key ? a.menuSubItemActive : ""}`,
433
- onClick: () => B(h),
432
+ className: `${n.menuSubItem} ${v === b.key ? n.menuSubItemActive : ""}`,
433
+ onClick: () => B(b),
434
434
  children: [
435
435
  /* @__PURE__ */ e(
436
436
  "span",
437
437
  {
438
- className: a.menuSubItemIcon,
439
- children: h.icon
438
+ className: n.menuSubItemIcon,
439
+ children: b.icon
440
440
  }
441
441
  ),
442
- /* @__PURE__ */ e("span", { children: h.label })
442
+ /* @__PURE__ */ e("span", { children: b.label })
443
443
  ]
444
444
  },
445
- h.key
445
+ b.key
446
446
  )) })
447
447
  ] }, o.key)
448
448
  ) : /* @__PURE__ */ r(
449
449
  "li",
450
450
  {
451
- className: `${a.menuSubItem} ${P === o.key ? a.menuSubItemActive : ""}`,
451
+ className: `${n.menuSubItem} ${v === o.key ? n.menuSubItemActive : ""}`,
452
452
  onClick: () => B(o),
453
453
  children: [
454
- /* @__PURE__ */ e("span", { className: a.menuSubItemIcon, children: o.icon }),
454
+ /* @__PURE__ */ e("span", { className: n.menuSubItemIcon, children: o.icon }),
455
455
  /* @__PURE__ */ e("span", { children: o.label })
456
456
  ]
457
457
  },
458
458
  o.key
459
459
  )
460
460
  ) })
461
- ] }, n.title);
461
+ ] }, a.title);
462
462
  }) })
463
463
  ] }),
464
- s ? null : /* @__PURE__ */ e("main", { className: a.main, children: g ? /* @__PURE__ */ r("div", { className: a.detailPanel, children: [
465
- /* @__PURE__ */ r("div", { className: a.detailHeader, children: [
466
- /* @__PURE__ */ e("div", { className: a.detailIcon, children: g.icon }),
464
+ l ? null : /* @__PURE__ */ e("main", { className: n.main, children: k ? /* @__PURE__ */ r("div", { className: n.detailPanel, children: [
465
+ /* @__PURE__ */ r("div", { className: n.detailHeader, children: [
466
+ /* @__PURE__ */ e("div", { className: n.detailIcon, children: k.icon }),
467
467
  /* @__PURE__ */ r("div", { children: [
468
- /* @__PURE__ */ e("h2", { className: a.detailTitle, children: g.label }),
469
- /* @__PURE__ */ e("p", { className: a.detailDesc, children: g.desc })
468
+ /* @__PURE__ */ e("h2", { className: n.detailTitle, children: k.label }),
469
+ /* @__PURE__ */ e("p", { className: n.detailDesc, children: k.desc })
470
470
  ] })
471
471
  ] }),
472
- /* @__PURE__ */ e("div", { className: a.detailAction, children: /* @__PURE__ */ r(
472
+ /* @__PURE__ */ e("div", { className: n.detailAction, children: /* @__PURE__ */ r(
473
473
  "button",
474
474
  {
475
- className: a.goBtn,
476
- onClick: () => w(g.path),
475
+ className: n.goBtn,
476
+ onClick: () => S(k.path),
477
477
  children: [
478
478
  "进入 ",
479
- g.label
479
+ k.label
480
480
  ]
481
481
  }
482
482
  ) })
483
- ] }) : /* @__PURE__ */ r("div", { className: a.emptyState, children: [
484
- /* @__PURE__ */ e(Z, { style: { fontSize: 48, color: "#ccc" } }),
483
+ ] }) : /* @__PURE__ */ r("div", { className: n.emptyState, children: [
484
+ /* @__PURE__ */ e(V, { style: { fontSize: 48, color: "#ccc" } }),
485
485
  /* @__PURE__ */ e("p", { children: "点击左侧菜单进入对应功能模块" })
486
486
  ] }) })
487
487
  ] });
488
488
  }
489
- const Fe = "_shellWrap_16wfm_6", Qe = "_shell_16wfm_6", Ye = "_main_16wfm_30", Ze = "_productBanner_16wfm_41", Ve = "_productBannerLabel_16wfm_53", Je = "_productBannerName_16wfm_59", Xe = "_productBannerCode_16wfm_67", et = "_productBannerBack_16wfm_72", tt = "_empty_16wfm_89", nt = "_emptyIcon_16wfm_99", at = "_emptyText_16wfm_104", i = {
489
+ const Fe = "_shellWrap_16wfm_6", Qe = "_shell_16wfm_6", Ye = "_main_16wfm_30", Ze = "_productBanner_16wfm_41", Ve = "_productBannerLabel_16wfm_53", Je = "_productBannerName_16wfm_59", Xe = "_productBannerCode_16wfm_67", et = "_productBannerBack_16wfm_72", tt = "_empty_16wfm_89", at = "_emptyIcon_16wfm_99", nt = "_emptyText_16wfm_104", m = {
490
490
  shellWrap: Fe,
491
491
  shell: Qe,
492
492
  main: Ye,
@@ -496,22 +496,22 @@ const Fe = "_shellWrap_16wfm_6", Qe = "_shell_16wfm_6", Ye = "_main_16wfm_30", Z
496
496
  productBannerCode: Xe,
497
497
  productBannerBack: et,
498
498
  empty: tt,
499
- emptyIcon: nt,
500
- emptyText: at
499
+ emptyIcon: at,
500
+ emptyText: nt
501
501
  };
502
502
  ge();
503
- const t = (l, s) => b(() => l().then((m) => ({ default: m[s] }))), ot = t(() => import("@yuku123/z-ctc-component"), "AccountManagement"), ct = t(() => import("@yuku123/z-ctc-component"), "ApplicationManagement"), lt = t(() => import("@yuku123/z-ctc-component"), "AuditPage"), st = t(() => import("@yuku123/z-ctc-component"), "CtcOverview"), rt = t(() => import("@yuku123/z-ctc-component"), "DictPage"), pt = t(() => import("@yuku123/z-ctc-component"), "OrgPage"), it = t(() => import("@yuku123/z-ctc-component"), "PermissionManagement"), mt = t(() => import("@yuku123/z-ctc-component"), "RoleManagement"), $ = t(() => import("@yuku123/z-ctc-component"), "SurlManagement"), ut = t(() => import("@yuku123/z-ctc-component"), "TenantManagement"), dt = t(() => import("@yuku123/z-agent-component"), "AgentAppList"), ht = t(() => import("@yuku123/z-agent-component"), "AgentDashboard"), bt = t(() => import("@yuku123/z-agent-component"), "AkManage"), gt = t(() => import("@yuku123/z-agent-component"), "BucketList"), _t = t(() => import("@yuku123/z-agent-component"), "LlmManage"), kt = t(() => import("@yuku123/z-agent-component"), "McpPage"), yt = t(() => import("@yuku123/z-agent-component"), "ObjectBrowser"), St = t(() => import("@yuku123/z-agent-component"), "ScriptCenterPage"), wt = t(() => import("@yuku123/z-agent-component"), "ScriptProductizationPage"), ft = t(() => import("@yuku123/z-agent-component"), "SkillMarket"), At = t(() => import("./index-Iy3bCyGV.js"), "AgentTeamIM"), U = t(() => import("./index-Iy3bCyGV.js"), "DebugPlayground"), Pt = t(() => import("./index-Iy3bCyGV.js"), "Overview"), K = t(() => import("./index-Iy3bCyGV.js"), "Webide"), vt = b(() => import("./OnboardingPage-B5OgZASN.js")), Dt = b(() => import("./InvitationManagementPage-HZs4bdak.js")), Nt = t(() => import("@yuku123/z-config-component"), "ConfigApp"), Ct = t(() => import("@yuku123/z-task-component"), "TaskApp"), Mt = t(() => import("@yuku123/z-wf-component"), "WorkflowApp"), Gt = t(() => import("@yuku123/z-schedule-component"), "ScheduleApp"), It = t(() => import("@yuku123/z-mist-component"), "MistApp"), Ot = t(() => import("@yuku123/z-meta-component"), "MetaApp"), Bt = t(() => import("@yuku123/z-msg-component"), "MsgApp"), Lt = t(() => import("@yuku123/z-rpc-component"), "RpcApp"), zt = b(() => import("./ComponentDoc-Sa3tPY-g.js").then((l) => l.cp)), Tt = b(() => import("./ComponentDoc-Sa3tPY-g.js").then((l) => l.cq)), xt = t(() => import("@yuku123/z-config-component"), "ComponentDocPage"), Et = t(() => import("@yuku123/z-task-component"), "ComponentDocPage"), Rt = t(() => import("@yuku123/z-wf-component"), "ComponentDocPage"), qt = t(() => import("@yuku123/z-schedule-component"), "ComponentDocPage"), Ht = t(() => import("@yuku123/z-mist-component"), "ComponentDocPage"), jt = t(() => import("@yuku123/z-meta-component"), "ComponentDocPage"), Wt = t(() => import("@yuku123/z-msg-component"), "ComponentDocPage"), $t = t(() => import("@yuku123/z-rpc-component"), "ComponentDocPage"), Ut = t(() => import("@yuku123/z-cognition-kb-component"), "ComponentDocPage"), Kt = t(() => import("@yuku123/z-product-component"), "ComponentDocPage"), Ft = t(() => import("@yuku123/z-oss-component"), "ComponentDocPage"), Qt = t(() => import("@yuku123/z-vector-component"), "ComponentDocPage"), Yt = t(() => import("@yuku123/z-graph-component"), "ComponentDocPage"), Zt = t(() => import("@yuku123/z-gw-component"), "ComponentDocPage"), Vt = t(() => import("@yuku123/z-cache-component"), "ComponentDocPage"), Jt = t(() => import("@yuku123/z-mq-component"), "ComponentDocPage"), Xt = t(() => import("@yuku123/z-ctc-component"), "ComponentDocPage"), en = t(() => import("@yuku123/z-agent-component"), "ComponentDocPage"), tn = t(() => import("@yuku123/z-lc-component"), "ComponentDocPage"), nn = t(() => import("@yuku123/z-qa-component"), "ComponentDocPage"), an = b(() => import("./ComponentDoc-Sa3tPY-g.js").then((l) => l.co)), F = b(() => import("@yuku123/z-qa-component"));
504
- function on() {
505
- return /* @__PURE__ */ r("div", { className: i.empty, children: [
506
- /* @__PURE__ */ e("div", { className: i.emptyIcon, children: "📋" }),
507
- /* @__PURE__ */ e("div", { className: i.emptyText, children: "请从左侧菜单选择模块" })
503
+ const t = (s, l) => g(() => s().then((p) => ({ default: p[l] }))), ot = t(() => import("@yuku123/z-ctc-component"), "AccountManagement"), ct = t(() => import("@yuku123/z-ctc-component"), "ApplicationManagement"), st = t(() => import("@yuku123/z-ctc-component"), "AuditPage"), lt = t(() => import("@yuku123/z-ctc-component"), "CtcOverview"), rt = t(() => import("@yuku123/z-ctc-component"), "DictPage"), pt = t(() => import("@yuku123/z-ctc-component"), "OrgPage"), it = t(() => import("@yuku123/z-ctc-component"), "PermissionManagement"), mt = t(() => import("@yuku123/z-ctc-component"), "RoleManagement"), $ = t(() => import("@yuku123/z-ctc-component"), "SurlManagement"), ut = t(() => import("@yuku123/z-ctc-component"), "TenantManagement"), dt = t(() => import("@yuku123/z-agent-component"), "AgentAppList"), ht = t(() => import("@yuku123/z-agent-component"), "AgentDashboard"), bt = t(() => import("@yuku123/z-agent-component"), "AkManage"), gt = t(() => import("@yuku123/z-agent-component"), "BucketList"), _t = t(() => import("@yuku123/z-agent-component"), "LlmManage"), kt = t(() => import("@yuku123/z-agent-component"), "McpPage"), yt = t(() => import("@yuku123/z-agent-component"), "ObjectBrowser"), St = t(() => import("@yuku123/z-agent-component"), "ScriptCenterPage"), wt = t(() => import("@yuku123/z-agent-component"), "ScriptProductizationPage"), ft = t(() => import("@yuku123/z-agent-component"), "SkillMarket"), At = t(() => import("./index-D-hBjYcu.js"), "AgentTeamIM"), K = t(() => import("./index-D-hBjYcu.js"), "DebugPlayground"), Pt = t(() => import("./index-D-hBjYcu.js"), "Overview"), F = t(() => import("./index-D-hBjYcu.js"), "Webide"), vt = g(() => import("./OnboardingPage-De1kfdAD.js")), Dt = g(() => import("./InvitationManagementPage-BHNsgONK.js")), Nt = t(() => import("@yuku123/z-config-component"), "ConfigApp"), Ct = t(() => import("@yuku123/z-task-component"), "TaskApp"), Mt = t(() => import("@yuku123/z-wf-component"), "WorkflowApp"), Gt = t(() => import("@yuku123/z-schedule-component"), "ScheduleApp"), It = t(() => import("@yuku123/z-mist-component"), "MistApp"), Ot = t(() => import("@yuku123/z-meta-component"), "MetaApp"), Lt = t(() => import("@yuku123/z-msg-component"), "MsgApp"), Bt = t(() => import("@yuku123/z-rpc-component"), "RpcApp"), zt = g(() => import("./ComponentDoc-Bul3tVS0.js").then((s) => s.cp)), Tt = g(() => import("./ComponentDoc-Bul3tVS0.js").then((s) => s.cq)), xt = t(() => import("@yuku123/z-config-component"), "ComponentDocPage"), Et = t(() => import("@yuku123/z-task-component"), "ComponentDocPage"), Rt = t(() => import("@yuku123/z-wf-component"), "ComponentDocPage"), qt = t(() => import("@yuku123/z-schedule-component"), "ComponentDocPage"), Ht = t(() => import("@yuku123/z-mist-component"), "ComponentDocPage"), jt = t(() => import("@yuku123/z-meta-component"), "ComponentDocPage"), Wt = t(() => import("@yuku123/z-msg-component"), "ComponentDocPage"), Ut = t(() => import("@yuku123/z-rpc-component"), "ComponentDocPage"), $t = t(() => import("@yuku123/z-cognition-kb-component"), "ComponentDocPage"), Kt = t(() => import("@yuku123/z-product-component"), "ComponentDocPage"), Ft = t(() => import("@yuku123/z-oss-component"), "ComponentDocPage"), Qt = t(() => import("@yuku123/z-vector-component"), "ComponentDocPage"), Yt = t(() => import("@yuku123/z-graph-component"), "ComponentDocPage"), Zt = t(() => import("@yuku123/z-gw-component"), "ComponentDocPage"), Vt = t(() => import("@yuku123/z-cache-component"), "ComponentDocPage"), Jt = t(() => import("@yuku123/z-mq-component"), "ComponentDocPage"), Xt = t(() => import("@yuku123/z-ctc-component"), "ComponentDocPage"), ea = t(() => import("@yuku123/z-agent-component"), "ComponentDocPage"), ta = t(() => import("@yuku123/z-lc-component"), "ComponentDocPage"), aa = t(() => import("@yuku123/z-qa-component"), "ComponentDocPage"), na = g(() => import("./ComponentDoc-Bul3tVS0.js").then((s) => s.co)), Q = g(() => import("@yuku123/z-qa-component"));
504
+ function oa() {
505
+ return /* @__PURE__ */ r("div", { className: m.empty, children: [
506
+ /* @__PURE__ */ e("div", { className: m.emptyIcon, children: "📋" }),
507
+ /* @__PURE__ */ e("div", { className: m.emptyText, children: "请从左侧菜单选择模块" })
508
508
  ] });
509
509
  }
510
- function cn() {
511
- const { pathname: l } = I();
512
- return /* @__PURE__ */ e(c, { to: l.replace(/^\/product/, "/z-product"), replace: !0 });
510
+ function ca() {
511
+ const { pathname: s } = O();
512
+ return /* @__PURE__ */ e(c, { to: s.replace(/^\/product/, "/z-product"), replace: !0 });
513
513
  }
514
- const Q = [
514
+ const Y = [
515
515
  // ─── 顶层 / 概览 ───
516
516
  { path: "/overview", element: /* @__PURE__ */ e(Pt, {}) },
517
517
  // ─── 4A 中心 (/ctc/*) ───
@@ -524,9 +524,9 @@ const Q = [
524
524
  { path: "/ctc/4a/permission", element: /* @__PURE__ */ e(it, {}) },
525
525
  { path: "/ctc/4a/surl", element: /* @__PURE__ */ e($, {}) },
526
526
  { path: "/ctc/dict", element: /* @__PURE__ */ e(rt, {}) },
527
- { path: "/ctc/overview", element: /* @__PURE__ */ e(st, {}) },
528
- { path: "/ctc/audit", element: /* @__PURE__ */ e(lt, {}) },
529
- { path: "/ctc/webide", element: /* @__PURE__ */ e(K, {}) },
527
+ { path: "/ctc/overview", element: /* @__PURE__ */ e(lt, {}) },
528
+ { path: "/ctc/audit", element: /* @__PURE__ */ e(st, {}) },
529
+ { path: "/ctc/webide", element: /* @__PURE__ */ e(F, {}) },
530
530
  { path: "/ctc/agent-team", element: /* @__PURE__ */ e(At, {}) },
531
531
  { path: "/ctc/invitation", element: /* @__PURE__ */ e(Dt, {}) },
532
532
  { path: "/onboarding", element: /* @__PURE__ */ e(vt, {}) },
@@ -544,8 +544,8 @@ const Q = [
544
544
  { path: "/ai/oss", element: /* @__PURE__ */ e(c, { to: "/ai/oss/bucket", replace: !0 }) },
545
545
  { path: "/ai/oss/bucket", element: /* @__PURE__ */ e(gt, {}) },
546
546
  { path: "/ai/oss/bucket/:bucketName", element: /* @__PURE__ */ e(yt, {}) },
547
- { path: "/ai/trace", element: /* @__PURE__ */ e(U, {}) },
548
- { path: "/ai/trace/debug", element: /* @__PURE__ */ e(U, {}) },
547
+ { path: "/ai/trace", element: /* @__PURE__ */ e(K, {}) },
548
+ { path: "/ai/trace/debug", element: /* @__PURE__ */ e(K, {}) },
549
549
  { path: "/ai/dashboard", element: /* @__PURE__ */ e(ht, {}) },
550
550
  // 多 Agent 实例 / 模板市场已下线 (2026-10-22): 模板并入 Agent 应用页,
551
551
  // 旧深链重定向, 别再回到独立菜单
@@ -572,9 +572,9 @@ const Q = [
572
572
  { path: "/meta", element: /* @__PURE__ */ e(c, { to: "/meta/app", replace: !0 }) },
573
573
  { path: "/meta/*", element: /* @__PURE__ */ e(Ot, {}) },
574
574
  { path: "/msg", element: /* @__PURE__ */ e(c, { to: "/msg/inbox", replace: !0 }) },
575
- { path: "/msg/*", element: /* @__PURE__ */ e(Bt, {}) },
575
+ { path: "/msg/*", element: /* @__PURE__ */ e(Lt, {}) },
576
576
  { path: "/rpc", element: /* @__PURE__ */ e(c, { to: "/rpc/service", replace: !0 }) },
577
- { path: "/rpc/*", element: /* @__PURE__ */ e(Lt, {}) },
577
+ { path: "/rpc/*", element: /* @__PURE__ */ e(Bt, {}) },
578
578
  // ─── 订阅中心 ───
579
579
  { path: "/subscribe", element: /* @__PURE__ */ e(c, { to: "/subscribe/list", replace: !0 }) },
580
580
  { path: "/subscribe/*", element: /* @__PURE__ */ e(zt, {}) },
@@ -589,7 +589,7 @@ const Q = [
589
589
  { path: "/z-product/*", element: /* @__PURE__ */ e(_e, { basePath: "/z-product" }) },
590
590
  // 旧前缀 /product/* → 新前缀 /z-product/*:§14 前缀化之前的老 URL 仍可达(书签 / 旧分享链接)。
591
591
  { path: "/product", element: /* @__PURE__ */ e(c, { to: "/z-product/atelier", replace: !0 }) },
592
- { path: "/product/*", element: /* @__PURE__ */ e(cn, {}) },
592
+ { path: "/product/*", element: /* @__PURE__ */ e(ca, {}) },
593
593
  // ─── 项目中心 ───
594
594
  { path: "/project", element: /* @__PURE__ */ e(c, { to: "/project/list", replace: !0 }) },
595
595
  { path: "/project/*", element: /* @__PURE__ */ e(Tt, {}) },
@@ -600,13 +600,13 @@ const Q = [
600
600
  // ─── 工具中心 (/z-tool/*) — FEATURE054 ───
601
601
  { path: "/z-tool", element: /* @__PURE__ */ e(c, { to: "/z-tool/curl", replace: !0 }) },
602
602
  { path: "/z-tool/curl", element: /* @__PURE__ */ e($, {}) },
603
- { path: "/z-tool/webide", element: /* @__PURE__ */ e(K, {}) },
603
+ { path: "/z-tool/webide", element: /* @__PURE__ */ e(F, {}) },
604
604
  // ─── 测试中心 (/test/*) — FEATURE061 ───
605
605
  { path: "/test", element: /* @__PURE__ */ e(c, { to: "/test/qa/dashboard", replace: !0 }) },
606
- { path: "/test/mock", element: /* @__PURE__ */ e(an, {}) },
606
+ { path: "/test/mock", element: /* @__PURE__ */ e(na, {}) },
607
607
  // QAApp 内部用 <Routes> 相对路由, 通配匹配后由 QAApp 自己接管子路径
608
- { path: "/test/qa", element: /* @__PURE__ */ e(F, {}) },
609
- { path: "/test/qa/*", element: /* @__PURE__ */ e(F, {}) },
608
+ { path: "/test/qa", element: /* @__PURE__ */ e(Q, {}) },
609
+ { path: "/test/qa/*", element: /* @__PURE__ */ e(Q, {}) },
610
610
  // ─── 低代码 ───
611
611
  // /lc/* 刻意不在这里注册。它早就迁到 src/lc/(TS 重写), 挂载点是
612
612
  // main.jsx 的 <Route path="/lc/*" element={<ZTeamApp forcedMode="dev"/>}/>,
@@ -645,8 +645,8 @@ const Q = [
645
645
  { path: "/mist/docs", element: /* @__PURE__ */ e(Ht, {}) },
646
646
  { path: "/meta/docs", element: /* @__PURE__ */ e(jt, {}) },
647
647
  { path: "/msg/docs", element: /* @__PURE__ */ e(Wt, {}) },
648
- { path: "/rpc/docs", element: /* @__PURE__ */ e($t, {}) },
649
- { path: "/kb/docs", element: /* @__PURE__ */ e(Ut, {}) },
648
+ { path: "/rpc/docs", element: /* @__PURE__ */ e(Ut, {}) },
649
+ { path: "/kb/docs", element: /* @__PURE__ */ e($t, {}) },
650
650
  { path: "/z-product/docs", element: /* @__PURE__ */ e(Kt, {}) },
651
651
  { path: "/oss/docs", element: /* @__PURE__ */ e(Ft, {}) },
652
652
  { path: "/vector/docs", element: /* @__PURE__ */ e(Qt, {}) },
@@ -655,58 +655,64 @@ const Q = [
655
655
  { path: "/cache/docs", element: /* @__PURE__ */ e(Vt, {}) },
656
656
  { path: "/mq/docs", element: /* @__PURE__ */ e(Jt, {}) },
657
657
  { path: "/ctc/docs", element: /* @__PURE__ */ e(Xt, {}) },
658
- { path: "/ai/docs", element: /* @__PURE__ */ e(en, {}) },
659
- { path: "/lc/docs", element: /* @__PURE__ */ e(tn, {}) },
660
- { path: "/test/qa/docs", element: /* @__PURE__ */ e(nn, {}) }
658
+ { path: "/ai/docs", element: /* @__PURE__ */ e(ea, {}) },
659
+ { path: "/lc/docs", element: /* @__PURE__ */ e(ta, {}) },
660
+ { path: "/test/qa/docs", element: /* @__PURE__ */ e(aa, {}) }
661
661
  ];
662
- function ln(l) {
663
- for (const s of Q)
664
- if (s.path === l) return s.element;
665
- for (const s of Q)
666
- if (sn(s.path, l)) return s.element;
667
- return /* @__PURE__ */ e(on, {});
662
+ function sa(s) {
663
+ for (const l of Y)
664
+ if (l.path === s) return l.element;
665
+ for (const l of Y)
666
+ if (la(l.path, s)) return l.element;
667
+ return /* @__PURE__ */ e(oa, {});
668
668
  }
669
- function sn(l, s) {
670
- if (!l.includes("*") && !l.includes(":")) return !1;
671
- const m = "^" + l.replace(/[.+?^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*").replace(/:([a-zA-Z_][a-zA-Z0-9_]*)/g, "[^/]+") + "$";
672
- return new RegExp(m).test(s);
669
+ function la(s, l) {
670
+ if (!s.includes("*") && !s.includes(":")) return !1;
671
+ const p = "^" + s.replace(/[.+?^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*").replace(/:([a-zA-Z_][a-zA-Z0-9_]*)/g, "[^/]+") + "$";
672
+ return new RegExp(p).test(l);
673
673
  }
674
- function _n() {
675
- const l = Y(), { pathname: s, search: m } = I(), w = s.startsWith("/test/"), p = _(() => {
674
+ function ga() {
675
+ const s = Z(), { pathname: l, search: p } = O(), S = l.startsWith("/test/") || (() => {
676
+ try {
677
+ return new URLSearchParams(p).get("mode") === "test";
678
+ } catch {
679
+ return !1;
680
+ }
681
+ })(), i = y(() => {
676
682
  try {
677
- const u = new URLSearchParams(m), y = u.get("product");
678
- return y ? { code: y, name: u.get("productName") || y } : null;
683
+ const d = new URLSearchParams(p), f = d.get("product");
684
+ return f ? { code: f, name: d.get("productName") || f } : null;
679
685
  } catch {
680
686
  return null;
681
687
  }
682
- }, [m]), k = useCallback(() => {
683
- if (!p) return;
684
- const u = new URLSearchParams();
685
- u.set("product", p.code), p.name && u.set("productName", p.name), l(`/workspace?mode=product&${u.toString()}`);
686
- }, [p, l]), f = _(() => s, [s]), A = _(() => ln(s), [s]);
687
- return /* @__PURE__ */ r("div", { className: i.shellWrap, children: [
688
- p && /* @__PURE__ */ r("div", { className: i.productBanner, children: [
689
- /* @__PURE__ */ e("span", { className: i.productBannerLabel, children: "📦 当前产品" }),
690
- /* @__PURE__ */ e("span", { className: i.productBannerName, title: p.name, children: p.name }),
691
- /* @__PURE__ */ e("span", { className: i.productBannerCode, children: p.code }),
692
- /* @__PURE__ */ e("button", { type: "button", className: i.productBannerBack, onClick: k, children: "← 返回产品工作台" })
688
+ }, [p]), w = useCallback(() => {
689
+ if (!i) return;
690
+ const d = new URLSearchParams();
691
+ d.set("product", i.code), i.name && d.set("productName", i.name), s(`/workspace?mode=product&${d.toString()}`);
692
+ }, [i, s]), h = S && !l.startsWith("/test") ? "/test/qa/dashboard" : l, P = y(() => h, [h]), _ = y(() => sa(h), [h]);
693
+ return /* @__PURE__ */ r("div", { className: m.shellWrap, children: [
694
+ i && /* @__PURE__ */ r("div", { className: m.productBanner, children: [
695
+ /* @__PURE__ */ e("span", { className: m.productBannerLabel, children: "📦 当前产品" }),
696
+ /* @__PURE__ */ e("span", { className: m.productBannerName, title: i.name, children: i.name }),
697
+ /* @__PURE__ */ e("span", { className: m.productBannerCode, children: i.code }),
698
+ /* @__PURE__ */ e("button", { type: "button", className: m.productBannerBack, onClick: w, children: "← 返回产品工作台" })
693
699
  ] }),
694
- /* @__PURE__ */ r("div", { className: i.shell, children: [
700
+ /* @__PURE__ */ r("div", { className: m.shell, children: [
695
701
  /* @__PURE__ */ e(
696
702
  Ke,
697
703
  {
698
- activePathOverride: f,
704
+ activePathOverride: P,
699
705
  menuOnly: !0,
700
- visibleGroups: w ? ["测试中心"] : void 0
706
+ visibleGroups: S ? ["测试中心"] : void 0
701
707
  }
702
708
  ),
703
- /* @__PURE__ */ r("main", { className: i.main, children: [
709
+ /* @__PURE__ */ r("main", { className: m.main, children: [
704
710
  /* @__PURE__ */ e(ke, {}),
705
- /* @__PURE__ */ e(ye, { resetKey: s, children: /* @__PURE__ */ e(oe, { fallback: /* @__PURE__ */ e("div", { className: i.empty, children: "加载中…" }), children: A }) })
711
+ /* @__PURE__ */ e(ye, { resetKey: l, children: /* @__PURE__ */ e(oe, { fallback: /* @__PURE__ */ e("div", { className: m.empty, children: "加载中…" }), children: _ }) })
706
712
  ] })
707
713
  ] })
708
714
  ] });
709
715
  }
710
716
  export {
711
- _n as default
717
+ ga as default
712
718
  };