@yuku123/z-team-component 0.2.22 → 0.2.23

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 (46) hide show
  1. package/dist/DebugPlayground-cxffrMgF.js +15 -0
  2. package/dist/{InvitationManagementPage-C0FUV1TU.js → InvitationManagementPage-BJ0izYip.js} +2 -2
  3. package/dist/{OnboardingPage-B030Arpo.js → OnboardingPage-Cde_2B_A.js} +2 -2
  4. package/dist/{ProjectApp-nq_XicIi.js → ProjectApp-CJfqACjb.js} +3 -3
  5. package/dist/SmartWorkbench.module-DzQskKT0.js +85 -0
  6. package/dist/SystemShell-Cm9eErqQ.js +593 -0
  7. package/dist/{admin-logs-96BMdLm3.js → admin-logs-C2V1ElH9.js} +34 -34
  8. package/dist/{api-DayyjL1e.js → api--Fg0hL9Y.js} +258 -258
  9. package/dist/{api-Cilf5gIj.js → api-DlnrjUut.js} +1 -1
  10. package/dist/{createWorkspaceWsHandler-Dgpag_y3.js → createWorkspaceWsHandler-CqGqcTh_.js} +27 -27
  11. package/dist/echarts-B1OU1xr4.js +16 -0
  12. package/dist/{index-CW8ICCZX.js → index-1xwvv2Q7.js} +3 -3
  13. package/dist/{index-BuGgpiDq.js → index-8V37FP9c.js} +4 -4
  14. package/dist/{index-gqKmHnTZ.js → index-B3ikipDf.js} +4 -4
  15. package/dist/{index-Cnw06MGB.js → index-BMRIUhOL.js} +3 -3
  16. package/dist/index-BaCiSbPR.js +956 -0
  17. package/dist/index-Bla8z6ok.js +6879 -0
  18. package/dist/index-Bsh58cwF.js +975 -0
  19. package/dist/index-C01UUprh.js +41705 -0
  20. package/dist/index-C0EIMJI2.js +112 -0
  21. package/dist/{index-BX-3TBsz.js → index-CGDpGIZC.js} +6 -6
  22. package/dist/index-CUVdeb8y.js +638 -0
  23. package/dist/{index-DN6iuI7S.js → index-CW2B5_8f.js} +1616 -22092
  24. package/dist/{index-sGtg7MFg.js → index-D5u3BjCZ.js} +2 -2
  25. package/dist/{index-pJERGpTh.js → index-DK_aR-Vu.js} +5 -4
  26. package/dist/index-DKpz0o-l.js +1327 -0
  27. package/dist/index-DUbYCF9y.js +1171 -0
  28. package/dist/index-DvIHX7lZ.js +1657 -0
  29. package/dist/{index-Drj0OTv1.js → index-b1BIpgn7.js} +165 -163
  30. package/dist/{index-DHGvzWWQ.js → index-bbwTcNjB.js} +7 -7
  31. package/dist/index-hPzswwk2.js +5900 -0
  32. package/dist/index-pfzY68PH.js +1408 -0
  33. package/dist/index.js +1 -1
  34. package/dist/index.module-CAa-2T7m.js +72 -0
  35. package/dist/index.module-UI0iz8K0.js +42 -0
  36. package/dist/{instance-CNHJqTd1.js → instance-1QEDBRqA.js} +12 -12
  37. package/dist/pages.js +1 -1
  38. package/dist/schedule-C89oiqIR.js +239 -0
  39. package/dist/{send-default-agent-team-message-CRRwpv0q.js → send-default-agent-team-message-CxkWi3XC.js} +1 -1
  40. package/dist/{sso-user-D0JzsJeR.js → sso-user-BE1Ell5F.js} +1 -1
  41. package/dist/training-o-vSBkqP.js +450 -0
  42. package/dist/{useAppStore-BYXwTjW-.js → useAppStore-wgWaxcyc.js} +24 -24
  43. package/dist/webide-BxD6cYe-.js +8084 -0
  44. package/dist/z-team-component.css +2 -2
  45. package/package.json +1 -1
  46. package/dist/index-DvXzJh2b.js +0 -51507
@@ -0,0 +1,593 @@
1
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
+ import { useNavigate as R, useLocation as U, Navigate as s } from "react-router-dom";
3
+ import { useMemo as S, useState as O, Suspense as ee, lazy as u } from "react";
4
+ import { DownOutlined as P, RightOutlined as L, AppstoreOutlined as W, UserOutlined as te, SafetyCertificateOutlined as T, CloudOutlined as f, DeploymentUnitOutlined as C, AuditOutlined as x, CodeOutlined as v, FolderOpenOutlined as ae, DesktopOutlined as F, DashboardOutlined as y, ProfileOutlined as D, BookOutlined as ne, ApartmentOutlined as ce, FileImageOutlined as le, FileTextOutlined as A, CalendarOutlined as b, ApiOutlined as oe, ProjectOutlined as K, ClusterOutlined as se, DatabaseOutlined as ie, TeamOutlined as re, BarChartOutlined as H } from "@ant-design/icons";
5
+ import { ProductApp as pe } from "@yuku123/z-product-component";
6
+ const me = "_container_wbul9_7", ue = "_sidebar_wbul9_17", de = "_menuList_wbul9_37", he = "_menuGroup_wbul9_44", be = "_menuGroupHeader_wbul9_48", _e = "_menuGroupIcon_wbul9_66", ge = "_menuGroupLabel_wbul9_75", ke = "_menuGroupArrow_wbul9_80", ye = "_menuSubList_wbul9_87", Se = "_menuSubItem_wbul9_93", Ae = "_menuSubItemActive_wbul9_110", ve = "_menuSubItemIcon_wbul9_117", we = "_menuSubGroup_wbul9_132", fe = "_menuSubGroupHeader_wbul9_136", Ie = "_menuSubGroupHeaderActive_wbul9_154", Ge = "_menuSubGroupLabel_wbul9_158", Me = "_main_wbul9_169", Ne = "_detailPanel_wbul9_179", Oe = "_detailHeader_wbul9_189", Pe = "_detailIcon_wbul9_196", Le = "_detailTitle_wbul9_209", Te = "_detailDesc_wbul9_216", Ce = "_detailAction_wbul9_223", xe = "_goBtn_wbul9_228", De = "_emptyState_wbul9_248", n = {
7
+ container: me,
8
+ sidebar: ue,
9
+ menuList: de,
10
+ menuGroup: he,
11
+ menuGroupHeader: be,
12
+ menuGroupIcon: _e,
13
+ menuGroupLabel: ge,
14
+ menuGroupArrow: ke,
15
+ menuSubList: ye,
16
+ menuSubItem: Se,
17
+ menuSubItemActive: Ae,
18
+ menuSubItemIcon: ve,
19
+ menuSubGroup: we,
20
+ menuSubGroupHeader: fe,
21
+ menuSubGroupHeaderActive: Ie,
22
+ menuSubGroupLabel: Ge,
23
+ main: Me,
24
+ detailPanel: Ne,
25
+ detailHeader: Oe,
26
+ detailIcon: Pe,
27
+ detailTitle: Le,
28
+ detailDesc: Te,
29
+ detailAction: Ce,
30
+ goBtn: xe,
31
+ emptyState: De
32
+ };
33
+ function I(l) {
34
+ return l.flatMap((o) => [o, ...I(o.children ?? [])]);
35
+ }
36
+ const He = {
37
+ title: "测试中心",
38
+ icon: /* @__PURE__ */ e(y, {}),
39
+ items: [
40
+ {
41
+ key: "test-dashboard",
42
+ label: "测试总览",
43
+ icon: /* @__PURE__ */ e(y, {}),
44
+ path: "/test/qa/dashboard",
45
+ desc: "测试统计、趋势与套件健康度"
46
+ },
47
+ {
48
+ key: "test-design",
49
+ label: "用例与编排",
50
+ icon: /* @__PURE__ */ e(A, {}),
51
+ children: [
52
+ {
53
+ key: "test-case",
54
+ label: "测试用例",
55
+ icon: /* @__PURE__ */ e(A, {}),
56
+ path: "/test/qa/cases",
57
+ desc: "接口用例与断言模板"
58
+ },
59
+ {
60
+ key: "test-suite",
61
+ label: "测试套件",
62
+ icon: /* @__PURE__ */ e(se, {}),
63
+ path: "/test/qa/suites",
64
+ desc: "步骤编排与变量传递"
65
+ },
66
+ {
67
+ key: "test-plan",
68
+ label: "测试计划",
69
+ icon: /* @__PURE__ */ e(K, {}),
70
+ path: "/test/qa/plans",
71
+ desc: "套件组合与环境绑定"
72
+ }
73
+ ]
74
+ },
75
+ {
76
+ key: "test-exec",
77
+ label: "执行与调度",
78
+ icon: /* @__PURE__ */ e(b, {}),
79
+ children: [
80
+ {
81
+ key: "test-run",
82
+ label: "执行记录",
83
+ icon: /* @__PURE__ */ e(b, {}),
84
+ path: "/test/qa/runs",
85
+ desc: "执行触发、状态与报告"
86
+ },
87
+ {
88
+ key: "test-schedule",
89
+ label: "定时调度",
90
+ icon: /* @__PURE__ */ e(b, {}),
91
+ path: "/test/qa/schedules",
92
+ desc: "cron 定时执行"
93
+ },
94
+ {
95
+ key: "test-e2e",
96
+ label: "E2E 测试",
97
+ icon: /* @__PURE__ */ e(F, {}),
98
+ path: "/test/qa/e2e",
99
+ desc: "浏览器自动化测试"
100
+ }
101
+ ]
102
+ },
103
+ {
104
+ key: "test-support",
105
+ label: "环境与工具",
106
+ icon: /* @__PURE__ */ e(f, {}),
107
+ children: [
108
+ {
109
+ key: "test-env",
110
+ label: "环境管理",
111
+ icon: /* @__PURE__ */ e(f, {}),
112
+ path: "/test/qa/envs",
113
+ desc: "多环境变量管理"
114
+ },
115
+ {
116
+ key: "test-mock",
117
+ label: "Mock 平台",
118
+ icon: /* @__PURE__ */ e(ie, {}),
119
+ path: "/test/mock",
120
+ desc: "API Mock 服务管理"
121
+ }
122
+ ]
123
+ },
124
+ {
125
+ key: "test-eval",
126
+ label: "智能测评",
127
+ icon: /* @__PURE__ */ e(H, {}),
128
+ children: [
129
+ {
130
+ key: "test-eval-start",
131
+ label: "发起测评",
132
+ icon: /* @__PURE__ */ e(y, {}),
133
+ path: "/test/evaluation/start",
134
+ desc: "Agent 质量测评"
135
+ },
136
+ {
137
+ key: "test-eval-schedule",
138
+ label: "自动测评",
139
+ icon: /* @__PURE__ */ e(b, {}),
140
+ path: "/test/evaluation/schedule",
141
+ desc: "定时批量测评"
142
+ },
143
+ {
144
+ key: "test-eval-group",
145
+ label: "群聊评测",
146
+ icon: /* @__PURE__ */ e(re, {}),
147
+ path: "/test/evaluation/group",
148
+ desc: "群聊场景评测"
149
+ },
150
+ {
151
+ key: "test-eval-report",
152
+ label: "分析报告",
153
+ icon: /* @__PURE__ */ e(H, {}),
154
+ path: "/test/evaluation/report",
155
+ desc: "测评结果分析"
156
+ }
157
+ ]
158
+ }
159
+ ]
160
+ }, Z = [
161
+ {
162
+ title: "认证与权限",
163
+ icon: /* @__PURE__ */ e(T, {}),
164
+ items: [
165
+ {
166
+ key: "4a-account",
167
+ label: "账号管理",
168
+ icon: /* @__PURE__ */ e(te, {}),
169
+ path: "/ctc/4a/account",
170
+ desc: "用户账号创建、编辑与状态管理"
171
+ },
172
+ {
173
+ key: "4a-role",
174
+ label: "角色管理",
175
+ icon: /* @__PURE__ */ e(T, {}),
176
+ path: "/ctc/4a/role",
177
+ desc: "角色定义与权限分配"
178
+ },
179
+ {
180
+ key: "4a-app",
181
+ label: "应用管理",
182
+ icon: /* @__PURE__ */ e(W, {}),
183
+ path: "/ctc/4a/application",
184
+ desc: "应用注册、资源与权限配置"
185
+ },
186
+ {
187
+ key: "4a-tenant",
188
+ label: "租户管理",
189
+ icon: /* @__PURE__ */ e(f, {}),
190
+ path: "/ctc/4a/tenant",
191
+ desc: "多租户管理与配置"
192
+ },
193
+ {
194
+ key: "4a-org",
195
+ label: "组织管理",
196
+ icon: /* @__PURE__ */ e(C, {}),
197
+ path: "/ctc/4a/org",
198
+ desc: "组织架构与部门管理"
199
+ },
200
+ {
201
+ key: "4a-permission",
202
+ label: "权限管理",
203
+ icon: /* @__PURE__ */ e(x, {}),
204
+ path: "/ctc/4a/permission",
205
+ desc: "细粒度权限控制与审批"
206
+ }
207
+ ]
208
+ },
209
+ {
210
+ title: "开发与工具",
211
+ icon: /* @__PURE__ */ e(v, {}),
212
+ items: [
213
+ {
214
+ key: "script",
215
+ label: "脚本中心",
216
+ icon: /* @__PURE__ */ e(v, {}),
217
+ path: "/script/manage",
218
+ desc: "DSL 脚本注册与执行"
219
+ },
220
+ { key: "lc", label: "研发中心", icon: /* @__PURE__ */ e(v, {}), path: "/lc/apps", desc: "低代码应用开发与管理" },
221
+ {
222
+ key: "tool-curl",
223
+ label: "短链管理",
224
+ icon: /* @__PURE__ */ e(ae, {}),
225
+ path: "/z-tool/curl",
226
+ desc: "短链接创建与管理"
227
+ },
228
+ {
229
+ key: "tool-webide",
230
+ label: "WebIDE 容器",
231
+ icon: /* @__PURE__ */ e(F, {}),
232
+ path: "/z-tool/webide",
233
+ desc: "在线 IDE 代码编辑器"
234
+ }
235
+ ]
236
+ },
237
+ {
238
+ title: "产品认知",
239
+ icon: /* @__PURE__ */ e(D, {}),
240
+ items: [
241
+ {
242
+ key: "product-board",
243
+ label: "产品全景",
244
+ icon: /* @__PURE__ */ e(y, {}),
245
+ path: "/product/board",
246
+ desc: "业务/产品/研发三线可见的全量认知(术语·模型·链路·设计稿·缺口)"
247
+ },
248
+ {
249
+ key: "product-blueprint",
250
+ label: "产品蓝图",
251
+ icon: /* @__PURE__ */ e(D, {}),
252
+ path: "/product/blueprint",
253
+ desc: "AI 的唯一入口:后端实时投影的全量认知快照"
254
+ },
255
+ {
256
+ key: "product-glossary",
257
+ label: "统一语言",
258
+ icon: /* @__PURE__ */ e(ne, {}),
259
+ path: "/product/glossary",
260
+ desc: "术语仲裁表:标准词/别名/适用范围/反例"
261
+ },
262
+ {
263
+ key: "product-concept",
264
+ label: "领域模型",
265
+ icon: /* @__PURE__ */ e(ce, {}),
266
+ path: "/product/concept-model",
267
+ desc: "概念与关系画布(四种投影)"
268
+ },
269
+ {
270
+ key: "product-scenarios",
271
+ label: "用户链路",
272
+ icon: /* @__PURE__ */ e(C, {}),
273
+ path: "/product/scenarios",
274
+ desc: "端到端场景:步骤引用领域概念"
275
+ },
276
+ {
277
+ key: "product-designs",
278
+ label: "设计稿 ⇄ 模型",
279
+ icon: /* @__PURE__ */ e(le, {}),
280
+ path: "/product/designs",
281
+ desc: "设计与认知的双向收敛回路"
282
+ }
283
+ ]
284
+ },
285
+ {
286
+ title: "业务流程",
287
+ icon: /* @__PURE__ */ e(A, {}),
288
+ items: [
289
+ {
290
+ key: "workflow",
291
+ label: "流程中心",
292
+ icon: /* @__PURE__ */ e(x, {}),
293
+ path: "/workflow/dashboard",
294
+ desc: "工作流定义与审批管理"
295
+ },
296
+ {
297
+ key: "task",
298
+ label: "任务中心",
299
+ icon: /* @__PURE__ */ e(A, {}),
300
+ path: "/task/dashboard",
301
+ desc: "任务创建、分配与跟踪"
302
+ },
303
+ {
304
+ key: "schedule",
305
+ label: "调度中心",
306
+ icon: /* @__PURE__ */ e(b, {}),
307
+ path: "/schedule/dashboard",
308
+ desc: "定时任务调度与管理"
309
+ },
310
+ {
311
+ key: "subscribe",
312
+ label: "订阅中心",
313
+ icon: /* @__PURE__ */ e(oe, {}),
314
+ path: "/subscribe/list",
315
+ desc: "第三方数据订阅与拉取"
316
+ },
317
+ {
318
+ key: "project",
319
+ label: "项目中心",
320
+ icon: /* @__PURE__ */ e(K, {}),
321
+ path: "/project/list",
322
+ desc: "项目创建与进度管理"
323
+ }
324
+ ]
325
+ }
326
+ ], w = [...Z, He];
327
+ function je({
328
+ activePathOverride: l,
329
+ menuOnly: o = !1,
330
+ visibleGroups: r
331
+ } = {}) {
332
+ const _ = R(), { pathname: G } = U(), g = S(
333
+ () => r ? w.filter((a) => r.includes(a.title)) : Z,
334
+ [r]
335
+ ), [Q, Y] = O(
336
+ new Set(w.map((a) => a.title))
337
+ ), [M, J] = O(
338
+ () => new Set(
339
+ w.flatMap((a) => a.items).filter((a) => a.children).map((a) => a.key)
340
+ )
341
+ ), k = S(() => {
342
+ var p;
343
+ const a = l ?? G;
344
+ return ((p = g.flatMap((c) => I(c.items)).find(
345
+ (c) => c.path === a
346
+ )) == null ? void 0 : p.key) ?? null;
347
+ }, [l, G, g]), V = (a) => {
348
+ Y((p) => {
349
+ const c = new Set(p);
350
+ return c.has(a) ? c.delete(a) : c.add(a), c;
351
+ });
352
+ }, X = (a) => {
353
+ J((p) => {
354
+ const c = new Set(p);
355
+ return c.has(a) ? c.delete(a) : c.add(a), c;
356
+ });
357
+ }, N = (a) => {
358
+ a.path && _(a.path);
359
+ }, d = g.flatMap((a) => I(a.items)).find(
360
+ (a) => a.key === k
361
+ );
362
+ return /* @__PURE__ */ i("div", { className: n.container, children: [
363
+ /* @__PURE__ */ e("aside", { className: n.sidebar, children: /* @__PURE__ */ e("nav", { className: n.menuList, children: g.map((a) => {
364
+ const p = Q.has(a.title);
365
+ return /* @__PURE__ */ i("div", { className: n.menuGroup, children: [
366
+ /* @__PURE__ */ i(
367
+ "div",
368
+ {
369
+ className: n.menuGroupHeader,
370
+ onClick: () => V(a.title),
371
+ children: [
372
+ /* @__PURE__ */ e("span", { className: n.menuGroupIcon, children: a.icon }),
373
+ /* @__PURE__ */ e("span", { className: n.menuGroupLabel, children: a.title }),
374
+ /* @__PURE__ */ e("span", { className: n.menuGroupArrow, children: p ? /* @__PURE__ */ e(P, {}) : /* @__PURE__ */ e(L, {}) })
375
+ ]
376
+ }
377
+ ),
378
+ p && /* @__PURE__ */ e("ul", { className: n.menuSubList, children: a.items.map(
379
+ (c) => c.children ? (
380
+ /* 子菜单分组头 — 可折叠; active 项落在其中时高亮 */
381
+ /* @__PURE__ */ i("li", { className: n.menuSubGroup, children: [
382
+ /* @__PURE__ */ i(
383
+ "div",
384
+ {
385
+ className: `${n.menuSubGroupHeader} ${c.children.some((m) => m.key === k) ? n.menuSubGroupHeaderActive : ""}`,
386
+ onClick: () => X(c.key),
387
+ children: [
388
+ /* @__PURE__ */ e("span", { className: n.menuGroupIcon, children: c.icon }),
389
+ /* @__PURE__ */ e("span", { className: n.menuSubGroupLabel, children: c.label }),
390
+ /* @__PURE__ */ e("span", { className: n.menuGroupArrow, children: M.has(c.key) ? /* @__PURE__ */ e(P, {}) : /* @__PURE__ */ e(L, {}) })
391
+ ]
392
+ }
393
+ ),
394
+ M.has(c.key) && /* @__PURE__ */ e("ul", { className: n.menuSubList, children: c.children.map((m) => /* @__PURE__ */ i(
395
+ "li",
396
+ {
397
+ className: `${n.menuSubItem} ${k === m.key ? n.menuSubItemActive : ""}`,
398
+ onClick: () => N(m),
399
+ children: [
400
+ /* @__PURE__ */ e(
401
+ "span",
402
+ {
403
+ className: n.menuSubItemIcon,
404
+ children: m.icon
405
+ }
406
+ ),
407
+ /* @__PURE__ */ e("span", { children: m.label })
408
+ ]
409
+ },
410
+ m.key
411
+ )) })
412
+ ] }, c.key)
413
+ ) : /* @__PURE__ */ i(
414
+ "li",
415
+ {
416
+ className: `${n.menuSubItem} ${k === c.key ? n.menuSubItemActive : ""}`,
417
+ onClick: () => N(c),
418
+ children: [
419
+ /* @__PURE__ */ e("span", { className: n.menuSubItemIcon, children: c.icon }),
420
+ /* @__PURE__ */ e("span", { children: c.label })
421
+ ]
422
+ },
423
+ c.key
424
+ )
425
+ ) })
426
+ ] }, a.title);
427
+ }) }) }),
428
+ o ? null : /* @__PURE__ */ e("main", { className: n.main, children: d ? /* @__PURE__ */ i("div", { className: n.detailPanel, children: [
429
+ /* @__PURE__ */ i("div", { className: n.detailHeader, children: [
430
+ /* @__PURE__ */ e("div", { className: n.detailIcon, children: d.icon }),
431
+ /* @__PURE__ */ i("div", { children: [
432
+ /* @__PURE__ */ e("h2", { className: n.detailTitle, children: d.label }),
433
+ /* @__PURE__ */ e("p", { className: n.detailDesc, children: d.desc })
434
+ ] })
435
+ ] }),
436
+ /* @__PURE__ */ e("div", { className: n.detailAction, children: /* @__PURE__ */ i(
437
+ "button",
438
+ {
439
+ className: n.goBtn,
440
+ onClick: () => _(d.path),
441
+ children: [
442
+ "进入 ",
443
+ d.label
444
+ ]
445
+ }
446
+ ) })
447
+ ] }) : /* @__PURE__ */ i("div", { className: n.emptyState, children: [
448
+ /* @__PURE__ */ e(W, { style: { fontSize: 48, color: "#ccc" } }),
449
+ /* @__PURE__ */ e("p", { children: "点击左侧菜单进入对应功能模块" })
450
+ ] }) })
451
+ ] });
452
+ }
453
+ const ze = "_shell_10jrt_6", Ee = "_main_10jrt_21", qe = "_empty_10jrt_31", $e = "_emptyIcon_10jrt_41", Be = "_emptyText_10jrt_46", h = {
454
+ shell: ze,
455
+ main: Ee,
456
+ empty: qe,
457
+ emptyIcon: $e,
458
+ emptyText: Be
459
+ }, t = (l, o) => u(() => l().then((r) => ({ default: r[o] }))), Re = t(() => import("@yuku123/z-ctc-component"), "AccountManagement"), Ue = t(() => import("@yuku123/z-ctc-component"), "ApplicationManagement"), We = t(() => import("@yuku123/z-ctc-component"), "AuditPage"), Fe = t(() => import("@yuku123/z-ctc-component"), "CtcOverview"), Ke = t(() => import("@yuku123/z-ctc-component"), "DictPage"), Ze = t(() => import("@yuku123/z-ctc-component"), "OrgPage"), Qe = t(() => import("@yuku123/z-ctc-component"), "PermissionManagement"), Ye = t(() => import("@yuku123/z-ctc-component"), "RoleManagement"), j = t(() => import("@yuku123/z-ctc-component"), "SurlManagement"), Je = t(() => import("@yuku123/z-ctc-component"), "TenantManagement"), Ve = t(() => import("@yuku123/z-agent-component"), "AgentAppList"), Xe = t(() => import("@yuku123/z-agent-component"), "AgentDashboard"), z = t(() => import("@yuku123/z-agent-component"), "AgentInstanceManager"), et = t(() => import("@yuku123/z-agent-component"), "AkManage"), tt = t(() => import("@yuku123/z-agent-component"), "BucketList"), at = t(() => import("@yuku123/z-agent-component"), "LlmManage"), nt = t(() => import("@yuku123/z-agent-component"), "McpPage"), ct = t(() => import("@yuku123/z-agent-component"), "ObjectBrowser"), lt = t(() => import("@yuku123/z-agent-component"), "ScriptCenterPage"), ot = t(() => import("@yuku123/z-agent-component"), "ScriptProductizationPage"), st = t(() => import("@yuku123/z-agent-component"), "SkillMarket"), it = t(() => import("@yuku123/z-agent-component"), "TemplateMarket"), rt = t(() => import("./index-1xwvv2Q7.js"), "AgentTeamIM"), E = t(() => import("./index-1xwvv2Q7.js"), "DebugPlayground"), pt = t(() => import("./index-1xwvv2Q7.js"), "Overview"), q = t(() => import("./index-1xwvv2Q7.js"), "Webide"), mt = u(() => import("./OnboardingPage-Cde_2B_A.js")), ut = u(() => import("./InvitationManagementPage-BJ0izYip.js")), dt = t(() => import("@yuku123/z-config-component"), "ConfigApp"), ht = t(() => import("@yuku123/z-task-component"), "TaskApp"), bt = t(() => import("@yuku123/z-wf-component"), "WorkflowApp"), _t = t(() => import("@yuku123/z-schedule-component"), "ScheduleApp"), gt = t(() => import("@yuku123/z-mist-component"), "MistApp"), kt = t(() => import("@yuku123/z-meta-component"), "MetaApp"), yt = t(() => import("@yuku123/z-msg-component"), "MsgApp"), St = t(() => import("@yuku123/z-rpc-component"), "RpcApp"), At = u(() => import("./ProjectApp-CJfqACjb.js").then((l) => l.l)), vt = u(() => import("./ProjectApp-CJfqACjb.js").then((l) => l.m)), wt = u(() => import("./ProjectApp-CJfqACjb.js").then((l) => l.k)), $ = u(() => import("@yuku123/z-qa-component"));
460
+ function ft() {
461
+ return /* @__PURE__ */ i("div", { className: h.empty, children: [
462
+ /* @__PURE__ */ e("div", { className: h.emptyIcon, children: "📋" }),
463
+ /* @__PURE__ */ e("div", { className: h.emptyText, children: "请从左侧菜单选择模块" })
464
+ ] });
465
+ }
466
+ const B = [
467
+ // ─── 顶层 / 概览 ───
468
+ { path: "/overview", element: /* @__PURE__ */ e(pt, {}) },
469
+ // ─── 4A 中心 (/ctc/*) ───
470
+ { path: "/ctc", element: /* @__PURE__ */ e(s, { to: "/ctc/4a/account", replace: !0 }) },
471
+ { path: "/ctc/4a/account", element: /* @__PURE__ */ e(Re, {}) },
472
+ { path: "/ctc/4a/role", element: /* @__PURE__ */ e(Ye, {}) },
473
+ { path: "/ctc/4a/application", element: /* @__PURE__ */ e(Ue, {}) },
474
+ { path: "/ctc/4a/tenant", element: /* @__PURE__ */ e(Je, {}) },
475
+ { path: "/ctc/4a/org", element: /* @__PURE__ */ e(Ze, {}) },
476
+ { path: "/ctc/4a/permission", element: /* @__PURE__ */ e(Qe, {}) },
477
+ { path: "/ctc/4a/surl", element: /* @__PURE__ */ e(j, {}) },
478
+ { path: "/ctc/dict", element: /* @__PURE__ */ e(Ke, {}) },
479
+ { path: "/ctc/overview", element: /* @__PURE__ */ e(Fe, {}) },
480
+ { path: "/ctc/audit", element: /* @__PURE__ */ e(We, {}) },
481
+ { path: "/ctc/webide", element: /* @__PURE__ */ e(q, {}) },
482
+ { path: "/ctc/agent-team", element: /* @__PURE__ */ e(rt, {}) },
483
+ { path: "/ctc/invitation", element: /* @__PURE__ */ e(ut, {}) },
484
+ { path: "/onboarding", element: /* @__PURE__ */ e(mt, {}) },
485
+ // ─── 智能中心 (/ai/*) ───
486
+ { path: "/ai", element: /* @__PURE__ */ e(s, { to: "/ai/agent/app", replace: !0 }) },
487
+ { path: "/ai/agent", element: /* @__PURE__ */ e(s, { to: "/ai/agent/app", replace: !0 }) },
488
+ { path: "/ai/agent/app", element: /* @__PURE__ */ e(Ve, {}) },
489
+ { path: "/ai/llm", element: /* @__PURE__ */ e(at, {}) },
490
+ { path: "/ai/llm/provider", element: /* @__PURE__ */ e(s, { to: "/ai/llm", replace: !0 }) },
491
+ { path: "/ai/llm/model", element: /* @__PURE__ */ e(s, { to: "/ai/llm", replace: !0 }) },
492
+ { path: "/ai/usage", element: /* @__PURE__ */ e(s, { to: "/ai/llm", replace: !0 }) },
493
+ { path: "/ai/ak", element: /* @__PURE__ */ e(et, {}) },
494
+ { path: "/ai/mcp", element: /* @__PURE__ */ e(nt, {}) },
495
+ { path: "/ai/skill", element: /* @__PURE__ */ e(st, {}) },
496
+ { path: "/ai/oss", element: /* @__PURE__ */ e(s, { to: "/ai/oss/bucket", replace: !0 }) },
497
+ { path: "/ai/oss/bucket", element: /* @__PURE__ */ e(tt, {}) },
498
+ { path: "/ai/oss/bucket/:bucketName", element: /* @__PURE__ */ e(ct, {}) },
499
+ { path: "/ai/trace", element: /* @__PURE__ */ e(E, {}) },
500
+ { path: "/ai/trace/debug", element: /* @__PURE__ */ e(E, {}) },
501
+ { path: "/ai/dashboard", element: /* @__PURE__ */ e(Xe, {}) },
502
+ { path: "/ai/template", element: /* @__PURE__ */ e(it, {}) },
503
+ { path: "/ai/agent-instance", element: /* @__PURE__ */ e(z, {}) },
504
+ { path: "/ai/agent/instances", element: /* @__PURE__ */ e(z, {}) },
505
+ // ─── 配置中心 ───
506
+ { path: "/config/*", element: /* @__PURE__ */ e(dt, {}) },
507
+ // ─── 任务中心 ───
508
+ { path: "/task/*", element: /* @__PURE__ */ e(ht, {}) },
509
+ // ─── 流程中心 ───
510
+ { path: "/workflow/*", element: /* @__PURE__ */ e(bt, {}) },
511
+ // ─── 调度中心 ───
512
+ { path: "/schedule/*", element: /* @__PURE__ */ e(_t, {}) },
513
+ // ─── 密钥中心 ───
514
+ { path: "/mist/*", element: /* @__PURE__ */ e(gt, {}) },
515
+ // ─── 中间件孵化页 (大需求 004) — 主入口在运维工作台 (?mode=ops),此处兜住直链/刷新 ───
516
+ { path: "/meta", element: /* @__PURE__ */ e(s, { to: "/meta/app", replace: !0 }) },
517
+ { path: "/meta/*", element: /* @__PURE__ */ e(kt, {}) },
518
+ { path: "/msg", element: /* @__PURE__ */ e(s, { to: "/msg/inbox", replace: !0 }) },
519
+ { path: "/msg/*", element: /* @__PURE__ */ e(yt, {}) },
520
+ { path: "/rpc", element: /* @__PURE__ */ e(s, { to: "/rpc/service", replace: !0 }) },
521
+ { path: "/rpc/*", element: /* @__PURE__ */ e(St, {}) },
522
+ // ─── 订阅中心 ───
523
+ { path: "/subscribe/*", element: /* @__PURE__ */ e(At, {}) },
524
+ // ─── 产品工作台 z-product (2026-10-21 接入) ───
525
+ // /product/* 由 z-product 组件自己的 ProductApp 渲染(内部按 /product 前缀手工匹配,
526
+ // 不用嵌套 <Routes>:这里没有 Route 父上下文,绝对路径不会被再拼一次父前缀)。
527
+ { path: "/product", element: /* @__PURE__ */ e(s, { to: "/product/board", replace: !0 }) },
528
+ { path: "/product/*", element: /* @__PURE__ */ e(pe, { basePath: "/product" }) },
529
+ // ─── 项目中心 ───
530
+ { path: "/project/*", element: /* @__PURE__ */ e(vt, {}) },
531
+ // ─── 脚本中心 (/script/*) — FEATURE052 ───
532
+ { path: "/script", element: /* @__PURE__ */ e(s, { to: "/script/manage", replace: !0 }) },
533
+ { path: "/script/manage", element: /* @__PURE__ */ e(lt, {}) },
534
+ { path: "/script/productization", element: /* @__PURE__ */ e(ot, {}) },
535
+ // ─── 工具中心 (/z-tool/*) — FEATURE054 ───
536
+ { path: "/z-tool", element: /* @__PURE__ */ e(s, { to: "/z-tool/curl", replace: !0 }) },
537
+ { path: "/z-tool/curl", element: /* @__PURE__ */ e(j, {}) },
538
+ { path: "/z-tool/webide", element: /* @__PURE__ */ e(q, {}) },
539
+ // ─── 测试中心 (/test/*) — FEATURE061 ───
540
+ { path: "/test", element: /* @__PURE__ */ e(s, { to: "/test/qa/dashboard", replace: !0 }) },
541
+ { path: "/test/mock", element: /* @__PURE__ */ e(wt, {}) },
542
+ // QAApp 内部用 <Routes> 相对路由, 通配匹配后由 QAApp 自己接管子路径
543
+ { path: "/test/qa", element: /* @__PURE__ */ e($, {}) },
544
+ { path: "/test/qa/*", element: /* @__PURE__ */ e($, {}) },
545
+ // ─── 低代码 ───
546
+ // /lc/* 刻意不在这里注册。它早就迁到 src/lc/(TS 重写), 挂载点是
547
+ // main.jsx 的 <Route path="/lc/*" element={<ZTeamApp forcedMode="dev"/>}/>,
548
+ // 由 DevWorkbench 把 pathname 原样交给 @/lc 自己的嵌套 <Routes>。
549
+ // 本表早先还挂着一行 {path:'/lc/*', element:<LcIndex/>}, 它的 import 写的是
550
+ // '@/pages/lc' —— 该别名解析到 src/zteam/pages/lc(不存在), 真身在 src/lc,
551
+ // 于是这行既解析不了、又因 main.jsx 先消费了 /lc/* 而永远不可达。
552
+ // /form/:entity 与 /form/_model 是 z-lc Phase 1 手写原型的两条 URL
553
+ // (LowCodeModel 实体字段编辑器 / LowCodeRuntime 通用 CRUD), 现已由
554
+ // @yuku123/z-lc-component 承接 —— 它是同一套 /api/lc 后端的完整前端客户,
555
+ // 能力严格更强(designer 模型编辑、workspace 七种视图 CRUD、admin 全套、
556
+ // db-import、AI 建模), 挂在 main.jsx 的 <Route path="/lc/*"> 下经
557
+ // DevWorkbench 的 <LcApp/> 渲染。
558
+ //
559
+ // 不做逐条映射: z-lc 的工作区路由是 /lc/{appCode}/{entityCode}/{viewType},
560
+ // 比 /form/{entityCode} 多一层 appCode, 旧 URL 里没有这个信息, 无法还原。
561
+ // 故统一重定向到应用列表, 由用户自行进入对应应用。
562
+ { path: "/form/:entity", element: /* @__PURE__ */ e(s, { to: "/lc/apps", replace: !0 }) }
563
+ ];
564
+ function It(l) {
565
+ for (const o of B)
566
+ if (o.path === l) return o.element;
567
+ for (const o of B)
568
+ if (Gt(o.path, l)) return o.element;
569
+ return /* @__PURE__ */ e(ft, {});
570
+ }
571
+ function Gt(l, o) {
572
+ if (!l.includes("*") && !l.includes(":")) return !1;
573
+ const r = "^" + l.replace(/[.+?^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*").replace(/:([a-zA-Z_][a-zA-Z0-9_]*)/g, "[^/]+") + "$";
574
+ return new RegExp(r).test(o);
575
+ }
576
+ function Tt() {
577
+ R();
578
+ const { pathname: l } = U(), o = l.startsWith("/test/"), r = S(() => l, [l]), _ = S(() => It(l), [l]);
579
+ return /* @__PURE__ */ i("div", { className: h.shell, children: [
580
+ /* @__PURE__ */ e(
581
+ je,
582
+ {
583
+ activePathOverride: r,
584
+ menuOnly: !0,
585
+ visibleGroups: o ? ["测试中心"] : void 0
586
+ }
587
+ ),
588
+ /* @__PURE__ */ e("main", { className: h.main, children: /* @__PURE__ */ e(ee, { fallback: /* @__PURE__ */ e("div", { className: h.empty, children: "加载中…" }), children: _ }) })
589
+ ] });
590
+ }
591
+ export {
592
+ Tt as default
593
+ };