@yuku123/z-team-component 0.2.130 → 0.2.132

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 (49) hide show
  1. package/dist/{ChangeLogView-AY7dKChQ.js → ChangeLogView-SwacGpsw.js} +1 -1
  2. package/dist/{ComponentDoc-DTpTBK1V.js → ComponentDoc-Dh5YhLCI.js} +1018 -1048
  3. package/dist/{InvitationManagementPage-YzQVnNWz.js → InvitationManagementPage-CjEcLOGB.js} +1 -1
  4. package/dist/{OnboardingPage-ClH-s7zs.js → OnboardingPage-DvNt71kX.js} +2 -2
  5. package/dist/{ScheduledTasks-DhcmGmhu.js → ScheduledTasks-COgb4MZJ.js} +6 -6
  6. package/dist/SystemShell-CSXcsiNp.js +752 -0
  7. package/dist/{admin-logs-2gdJxEwA.js → admin-logs-CExsxQ5h.js} +5 -5
  8. package/dist/{api-BHYf7Uyx.js → api-C9kTgVc2.js} +1 -1
  9. package/dist/{api---aB1ADx.js → api-DXw93E7c.js} +1 -1
  10. package/dist/{createWorkspaceWsHandler-BC4HmdFu.js → createWorkspaceWsHandler-BwDUTYXH.js} +319 -319
  11. package/dist/{index-CqOsWy6H.js → index-9rfSVSTh.js} +9 -9
  12. package/dist/{index-lucAUJAv.js → index-B2Dfbi8J.js} +2 -2
  13. package/dist/{index-Chzml7fB.js → index-B3uLo8-F.js} +3 -3
  14. package/dist/{index-CnIbuXF9.js → index-BNPq7yBg.js} +2 -2
  15. package/dist/{index--HSE1tzT.js → index-BTJ83JLl.js} +11 -11
  16. package/dist/{index-9coNts0T.js → index-BkzBYfhO.js} +8489 -8453
  17. package/dist/{index-BkbSCWQ7.js → index-BoY7L8C4.js} +42 -37
  18. package/dist/index-Bs9odXxd.js +1214 -0
  19. package/dist/{index-mwKbvNPB.js → index-CF3xDZ7q.js} +4 -4
  20. package/dist/{index-CnRAUDUi.js → index-COobH4Vi.js} +1 -1
  21. package/dist/{index-Opx4qrhX.js → index-CU6jFFl5.js} +3 -3
  22. package/dist/{index-DA0MCrVH.js → index-CXEYA7rt.js} +2 -2
  23. package/dist/{index-Zr09eAzk.js → index-CZCKpsry.js} +2 -2
  24. package/dist/{index-CnyMTIyv.js → index-Ceu-yckM.js} +70 -70
  25. package/dist/{index-baUMWaRm.js → index-Ci6_CBwE.js} +3 -3
  26. package/dist/{index-CTqU8nrB.js → index-CntZHojY.js} +2 -2
  27. package/dist/{index-DqiBrPAv.js → index-D2DFKRUf.js} +1 -1
  28. package/dist/{index-DfpB0BR9.js → index-DLK7DuCr.js} +3 -3
  29. package/dist/{index-Ci31buz9.js → index-DM6XeWFk.js} +4059 -4043
  30. package/dist/{index-fJnhCAB9.js → index-DMfYPIkB.js} +2 -2
  31. package/dist/{index-Ca08VoFz.js → index-DZ0fYNO9.js} +20 -20
  32. package/dist/{index-Cui8SX9p.js → index-D_J1ZCy8.js} +3 -3
  33. package/dist/{index-Ccvhn50s.js → index-DmV6xR7C.js} +9 -9
  34. package/dist/{index-CROBbbCB.js → index-ftuPuj0s.js} +9 -9
  35. package/dist/{index-DHubhPeT.js → index-mEgmHNRO.js} +1 -1
  36. package/dist/{index--L2wU6OV.js → index-t2nMJUPu.js} +1 -1
  37. package/dist/index.js +1 -1
  38. package/dist/{instance-ITIB5e5v.js → instance-DD3kbAUh.js} +1 -1
  39. package/dist/{menuPermission-Dw1EJWIf.js → menuPermission-v0881tid.js} +3 -3
  40. package/dist/pages.js +1 -1
  41. package/dist/{send-default-agent-team-message-DzRmAa6S.js → send-default-agent-team-message-Cug0T_7J.js} +1 -1
  42. package/dist/{sso-user-497FBkoQ.js → sso-user-CnVXqYR7.js} +1 -1
  43. package/dist/{training-B4IByvWW.js → training-BS23m-yy.js} +1 -1
  44. package/dist/useSidebarResize--Avuabb1.js +46 -0
  45. package/dist/{webide-DwQqqS-I.js → webide-BPJ1IpZq.js} +3 -3
  46. package/dist/z-team-component.css +1 -1
  47. package/package.json +6 -6
  48. package/dist/SystemShell-Cz7S4YnT.js +0 -718
  49. package/dist/index-4apTfQuo.js +0 -2213
@@ -1,718 +0,0 @@
1
- import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
- import { useNavigate as Z, useLocation as O, Navigate as c } from "react-router-dom";
3
- import { useMemo as y, useState as z, useCallback as oe, Suspense as ce, lazy as g } from "react";
4
- import { DownOutlined as T, RightOutlined as x, AppstoreOutlined as V, UserOutlined as se, SafetyCertificateOutlined as E, CloudOutlined as G, DeploymentUnitOutlined as R, AuditOutlined as q, CodeOutlined as C, FolderOpenOutlined as le, DesktopOutlined as J, ThunderboltOutlined as re, BookOutlined as H, DashboardOutlined as D, ProfileOutlined as j, ApartmentOutlined as pe, FileImageOutlined as ie, FileTextOutlined as N, CalendarOutlined as A, ApiOutlined as me, ProjectOutlined as X, ClusterOutlined as ue, DatabaseOutlined as de, TeamOutlined as he, BarChartOutlined as W } from "@ant-design/icons";
5
- import { f as be, M as ge } from "./menuPermission-Dw1EJWIf.js";
6
- import { u as U, y as _e } from "./ComponentDoc-DTpTBK1V.js";
7
- import { ProductApp as ke } from "@yuku123/z-product-component";
8
- import { P as ye, R as Se } from "./index-CqOsWy6H.js";
9
- const we = "_container_wbul9_7", fe = "_sidebar_wbul9_17", Ae = "_menuList_wbul9_37", Pe = "_menuGroup_wbul9_44", ve = "_menuGroupHeader_wbul9_48", De = "_menuGroupIcon_wbul9_66", Ne = "_menuGroupLabel_wbul9_75", Ce = "_menuGroupArrow_wbul9_80", Me = "_menuSubList_wbul9_87", Ge = "_menuSubItem_wbul9_93", Ie = "_menuSubItemActive_wbul9_110", Oe = "_menuSubItemIcon_wbul9_117", Le = "_menuSubGroup_wbul9_132", Be = "_menuSubGroupHeader_wbul9_136", ze = "_menuSubGroupHeaderActive_wbul9_154", Te = "_menuSubGroupLabel_wbul9_158", xe = "_main_wbul9_169", Ee = "_detailPanel_wbul9_179", Re = "_detailHeader_wbul9_189", qe = "_detailIcon_wbul9_196", He = "_detailTitle_wbul9_209", je = "_detailDesc_wbul9_216", We = "_detailAction_wbul9_223", Ue = "_goBtn_wbul9_228", $e = "_emptyState_wbul9_248", n = {
10
- container: we,
11
- sidebar: fe,
12
- menuList: Ae,
13
- menuGroup: Pe,
14
- menuGroupHeader: ve,
15
- menuGroupIcon: De,
16
- menuGroupLabel: Ne,
17
- menuGroupArrow: Ce,
18
- menuSubList: Me,
19
- menuSubItem: Ge,
20
- menuSubItemActive: Ie,
21
- menuSubItemIcon: Oe,
22
- menuSubGroup: Le,
23
- menuSubGroupHeader: Be,
24
- menuSubGroupHeaderActive: ze,
25
- menuSubGroupLabel: Te,
26
- main: xe,
27
- detailPanel: Ee,
28
- detailHeader: Re,
29
- detailIcon: qe,
30
- detailTitle: He,
31
- detailDesc: je,
32
- detailAction: We,
33
- goBtn: Ue,
34
- emptyState: $e
35
- };
36
- function I(s) {
37
- return s.flatMap((l) => [l, ...I(l.children ?? [])]);
38
- }
39
- const Ke = {
40
- title: "测试中心",
41
- icon: /* @__PURE__ */ e(D, {}),
42
- // 测试 Tab 的入口权限点 (顶栏 test mode 同码)。4A 普通用户角色 USER 持有 TEST_ENTRY
43
- // ⇒ 全员可见; 未绑测试角色的账号看不到这一组。
44
- permission: "TEST_ENTRY",
45
- items: [
46
- {
47
- key: "test-dashboard",
48
- label: "测试总览",
49
- icon: /* @__PURE__ */ e(D, {}),
50
- path: "/test/qa/dashboard",
51
- desc: "测试统计、趋势与套件健康度"
52
- },
53
- {
54
- key: "test-design",
55
- label: "用例与编排",
56
- icon: /* @__PURE__ */ e(N, {}),
57
- children: [
58
- {
59
- key: "test-case",
60
- label: "测试用例",
61
- icon: /* @__PURE__ */ e(N, {}),
62
- path: "/test/qa/cases",
63
- desc: "接口用例与断言模板"
64
- },
65
- {
66
- key: "test-suite",
67
- label: "测试套件",
68
- icon: /* @__PURE__ */ e(ue, {}),
69
- path: "/test/qa/suites",
70
- desc: "步骤编排与变量传递"
71
- },
72
- {
73
- key: "test-plan",
74
- label: "测试计划",
75
- icon: /* @__PURE__ */ e(X, {}),
76
- path: "/test/qa/plans",
77
- desc: "套件组合与环境绑定"
78
- }
79
- ]
80
- },
81
- {
82
- key: "test-exec",
83
- label: "执行与调度",
84
- icon: /* @__PURE__ */ e(A, {}),
85
- children: [
86
- {
87
- key: "test-run",
88
- label: "执行记录",
89
- icon: /* @__PURE__ */ e(A, {}),
90
- path: "/test/qa/runs",
91
- desc: "执行触发、状态与报告"
92
- },
93
- {
94
- key: "test-schedule",
95
- label: "定时调度",
96
- icon: /* @__PURE__ */ e(A, {}),
97
- path: "/test/qa/schedules",
98
- desc: "cron 定时执行"
99
- },
100
- {
101
- key: "test-e2e",
102
- label: "E2E 测试",
103
- icon: /* @__PURE__ */ e(J, {}),
104
- path: "/test/qa/e2e",
105
- desc: "浏览器自动化测试"
106
- }
107
- ]
108
- },
109
- {
110
- key: "test-support",
111
- label: "环境与工具",
112
- icon: /* @__PURE__ */ e(G, {}),
113
- children: [
114
- {
115
- key: "test-env",
116
- label: "环境管理",
117
- icon: /* @__PURE__ */ e(G, {}),
118
- path: "/test/qa/envs",
119
- desc: "多环境变量管理"
120
- },
121
- {
122
- key: "test-mock",
123
- label: "Mock 平台",
124
- icon: /* @__PURE__ */ e(de, {}),
125
- path: "/test/mock",
126
- desc: "API Mock 服务管理"
127
- }
128
- ]
129
- },
130
- {
131
- key: "test-eval",
132
- label: "智能测评",
133
- icon: /* @__PURE__ */ e(W, {}),
134
- children: [
135
- {
136
- key: "test-eval-start",
137
- label: "发起测评",
138
- icon: /* @__PURE__ */ e(D, {}),
139
- path: "/test/evaluation/start",
140
- desc: "Agent 质量测评"
141
- },
142
- {
143
- key: "test-eval-schedule",
144
- label: "自动测评",
145
- icon: /* @__PURE__ */ e(A, {}),
146
- path: "/test/evaluation/schedule",
147
- desc: "定时批量测评"
148
- },
149
- {
150
- key: "test-eval-group",
151
- label: "群聊评测",
152
- icon: /* @__PURE__ */ e(he, {}),
153
- path: "/test/evaluation/group",
154
- desc: "群聊场景评测"
155
- },
156
- {
157
- key: "test-eval-report",
158
- label: "分析报告",
159
- icon: /* @__PURE__ */ e(W, {}),
160
- path: "/test/evaluation/report",
161
- desc: "测评结果分析"
162
- }
163
- ]
164
- }
165
- ]
166
- }, ee = [
167
- {
168
- title: "认证与权限",
169
- icon: /* @__PURE__ */ e(E, {}),
170
- // 4A 授权中心自身的资源管理动作 (账号/角色/应用/租户/组织/权限分配)
171
- // ⇒ 4A 权限管理域 PERMISSION_MANAGE。普通用户角色 USER 不含该码,
172
- // 之前照样能点进这些页面 (进去就是 403 / 空白) —— 现在入口先收敛。
173
- permission: "PERMISSION_MANAGE",
174
- items: [
175
- {
176
- key: "4a-account",
177
- label: "账号管理",
178
- icon: /* @__PURE__ */ e(se, {}),
179
- path: "/ctc/4a/account",
180
- desc: "用户账号创建、编辑与状态管理"
181
- },
182
- {
183
- key: "4a-role",
184
- label: "角色管理",
185
- icon: /* @__PURE__ */ e(E, {}),
186
- path: "/ctc/4a/role",
187
- desc: "角色定义与权限分配"
188
- },
189
- {
190
- key: "4a-app",
191
- label: "应用管理",
192
- icon: /* @__PURE__ */ e(V, {}),
193
- path: "/ctc/4a/application",
194
- desc: "应用注册、资源与权限配置"
195
- },
196
- {
197
- key: "4a-tenant",
198
- label: "租户管理",
199
- icon: /* @__PURE__ */ e(G, {}),
200
- path: "/ctc/4a/tenant",
201
- desc: "多租户管理与配置"
202
- },
203
- {
204
- key: "4a-org",
205
- label: "组织管理",
206
- icon: /* @__PURE__ */ e(R, {}),
207
- path: "/ctc/4a/org",
208
- desc: "组织架构与部门管理"
209
- },
210
- {
211
- key: "4a-permission",
212
- label: "权限管理",
213
- icon: /* @__PURE__ */ e(q, {}),
214
- path: "/ctc/4a/permission",
215
- desc: "细粒度权限控制与审批"
216
- }
217
- ]
218
- },
219
- {
220
- title: "开发与工具",
221
- icon: /* @__PURE__ */ e(C, {}),
222
- items: [
223
- {
224
- key: "script",
225
- label: "脚本中心",
226
- icon: /* @__PURE__ */ e(C, {}),
227
- path: "/script/manage",
228
- desc: "DSL 脚本注册与执行"
229
- },
230
- { key: "lc", label: "研发中心", icon: /* @__PURE__ */ e(C, {}), path: "/lc/apps", desc: "低代码应用开发与管理" },
231
- {
232
- key: "tool-curl",
233
- label: "短链管理",
234
- icon: /* @__PURE__ */ e(le, {}),
235
- path: "/z-tool/curl",
236
- desc: "短链接创建与管理"
237
- },
238
- {
239
- key: "tool-webide",
240
- label: "WebIDE 容器",
241
- icon: /* @__PURE__ */ e(J, {}),
242
- path: "/z-tool/webide",
243
- desc: "在线 IDE 代码编辑器"
244
- }
245
- ]
246
- },
247
- {
248
- title: "产品认知",
249
- icon: /* @__PURE__ */ e(j, {}),
250
- items: [
251
- {
252
- // 工坊是「一个面板干完产品业务开发」的主入口:对话 + 小册子 + 产物 + 台账。
253
- // 它和小册子库原先只注册在 z-product-component 的 menuItems 里,
254
- // 而主壳导航用的是这份写死的清单 ⇒ 面板做好了却在界面上进不去。
255
- key: "product-atelier",
256
- label: "产品工坊",
257
- icon: /* @__PURE__ */ e(re, {}),
258
- path: "/z-product/atelier",
259
- desc: "在一个面板里对话、沉淀产品稿与设计稿、渲染演示稿、建工程落地"
260
- },
261
- {
262
- key: "product-booklets",
263
- label: "小册子库",
264
- icon: /* @__PURE__ */ e(H, {}),
265
- path: "/z-product/booklets",
266
- desc: "可被对话引用的方法、清单与规范"
267
- },
268
- {
269
- key: "product-board",
270
- label: "产品全景",
271
- icon: /* @__PURE__ */ e(D, {}),
272
- path: "/z-product/board",
273
- desc: "业务/产品/研发三线可见的全量认知(术语·模型·链路·设计稿·缺口)"
274
- },
275
- {
276
- key: "product-blueprint",
277
- label: "产品蓝图",
278
- icon: /* @__PURE__ */ e(j, {}),
279
- path: "/z-product/blueprint",
280
- desc: "AI 的唯一入口:后端实时投影的全量认知快照"
281
- },
282
- {
283
- key: "product-glossary",
284
- label: "统一语言",
285
- icon: /* @__PURE__ */ e(H, {}),
286
- path: "/z-product/glossary",
287
- desc: "术语仲裁表:标准词/别名/适用范围/反例"
288
- },
289
- {
290
- key: "product-concept",
291
- label: "领域模型",
292
- icon: /* @__PURE__ */ e(pe, {}),
293
- path: "/z-product/concept-model",
294
- desc: "概念与关系画布(四种投影)"
295
- },
296
- {
297
- key: "product-scenarios",
298
- label: "用户链路",
299
- icon: /* @__PURE__ */ e(R, {}),
300
- path: "/z-product/scenarios",
301
- desc: "端到端场景:步骤引用领域概念"
302
- },
303
- {
304
- key: "product-designs",
305
- label: "设计稿 ⇄ 模型",
306
- icon: /* @__PURE__ */ e(ie, {}),
307
- path: "/z-product/designs",
308
- desc: "设计与认知的双向收敛回路"
309
- }
310
- ]
311
- },
312
- {
313
- title: "业务流程",
314
- icon: /* @__PURE__ */ e(N, {}),
315
- items: [
316
- {
317
- key: "workflow",
318
- label: "流程中心",
319
- icon: /* @__PURE__ */ e(q, {}),
320
- path: "/workflow/dashboard",
321
- desc: "工作流定义与审批管理"
322
- },
323
- {
324
- key: "task",
325
- label: "任务中心",
326
- icon: /* @__PURE__ */ e(N, {}),
327
- path: "/task/dashboard",
328
- desc: "任务创建、分配与跟踪"
329
- },
330
- {
331
- key: "schedule",
332
- label: "调度中心",
333
- icon: /* @__PURE__ */ e(A, {}),
334
- // z-schedule-component 的路由只有 jobs / group / log,**没有 dashboard**:
335
- // 原来写 /schedule/dashboard,点进去命中 /schedule/* 通配后组件内部匹配不到
336
- // 任何路由 ⇒ 右侧一片空白。默认页取 jobs。
337
- path: "/schedule/jobs",
338
- desc: "定时任务调度与管理"
339
- },
340
- {
341
- key: "subscribe",
342
- label: "订阅中心",
343
- icon: /* @__PURE__ */ e(me, {}),
344
- path: "/subscribe/list",
345
- desc: "第三方数据订阅与拉取"
346
- },
347
- {
348
- key: "project",
349
- label: "项目中心",
350
- icon: /* @__PURE__ */ e(X, {}),
351
- path: "/project/list",
352
- desc: "项目创建与进度管理"
353
- }
354
- ]
355
- }
356
- ], M = [...ee, Ke];
357
- function Fe({
358
- activePathOverride: s,
359
- menuOnly: l = !1,
360
- visibleGroups: p
361
- } = {}) {
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 : be(w, P),
367
- [w, P, h]
368
- ), [d, f] = z(
369
- new Set(M.map((a) => a.title))
370
- ), [L, te] = z(
371
- () => new Set(
372
- M.flatMap((a) => a.items).filter((a) => a.children).map((a) => a.key)
373
- )
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
- });
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
- });
390
- }, B = (a) => {
391
- a.path && S(a.path);
392
- }, k = _.flatMap((a) => I(a.items)).find(
393
- (a) => a.key === v
394
- );
395
- return /* @__PURE__ */ r("div", { className: n.container, children: [
396
- /* @__PURE__ */ r("aside", { className: n.sidebar, children: [
397
- /* @__PURE__ */ e(ge, {}),
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
- /* @__PURE__ */ r(
402
- "div",
403
- {
404
- className: n.menuGroupHeader,
405
- onClick: () => ae(a.title),
406
- children: [
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
- ]
411
- }
412
- ),
413
- u && /* @__PURE__ */ e("ul", { className: n.menuSubList, children: a.items.map(
414
- (o) => o.children ? (
415
- /* 子菜单分组头 — 可折叠; active 项落在其中时高亮 */
416
- /* @__PURE__ */ r("li", { className: n.menuSubGroup, children: [
417
- /* @__PURE__ */ r(
418
- "div",
419
- {
420
- className: `${n.menuSubGroupHeader} ${o.children.some((b) => b.key === v) ? n.menuSubGroupHeaderActive : ""}`,
421
- onClick: () => ne(o.key),
422
- children: [
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
- ]
427
- }
428
- ),
429
- L.has(o.key) && /* @__PURE__ */ e("ul", { className: n.menuSubList, children: o.children.map((b) => /* @__PURE__ */ r(
430
- "li",
431
- {
432
- className: `${n.menuSubItem} ${v === b.key ? n.menuSubItemActive : ""}`,
433
- onClick: () => B(b),
434
- children: [
435
- /* @__PURE__ */ e(
436
- "span",
437
- {
438
- className: n.menuSubItemIcon,
439
- children: b.icon
440
- }
441
- ),
442
- /* @__PURE__ */ e("span", { children: b.label })
443
- ]
444
- },
445
- b.key
446
- )) })
447
- ] }, o.key)
448
- ) : /* @__PURE__ */ r(
449
- "li",
450
- {
451
- className: `${n.menuSubItem} ${v === o.key ? n.menuSubItemActive : ""}`,
452
- onClick: () => B(o),
453
- children: [
454
- /* @__PURE__ */ e("span", { className: n.menuSubItemIcon, children: o.icon }),
455
- /* @__PURE__ */ e("span", { children: o.label })
456
- ]
457
- },
458
- o.key
459
- )
460
- ) })
461
- ] }, a.title);
462
- }) })
463
- ] }),
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
- /* @__PURE__ */ r("div", { children: [
468
- /* @__PURE__ */ e("h2", { className: n.detailTitle, children: k.label }),
469
- /* @__PURE__ */ e("p", { className: n.detailDesc, children: k.desc })
470
- ] })
471
- ] }),
472
- /* @__PURE__ */ e("div", { className: n.detailAction, children: /* @__PURE__ */ r(
473
- "button",
474
- {
475
- className: n.goBtn,
476
- onClick: () => S(k.path),
477
- children: [
478
- "进入 ",
479
- k.label
480
- ]
481
- }
482
- ) })
483
- ] }) : /* @__PURE__ */ r("div", { className: n.emptyState, children: [
484
- /* @__PURE__ */ e(V, { style: { fontSize: 48, color: "#ccc" } }),
485
- /* @__PURE__ */ e("p", { children: "点击左侧菜单进入对应功能模块" })
486
- ] }) })
487
- ] });
488
- }
489
- const Qe = "_shellWrap_16wfm_6", Ye = "_shell_16wfm_6", Ze = "_main_16wfm_30", Ve = "_productBanner_16wfm_41", Je = "_productBannerLabel_16wfm_53", Xe = "_productBannerName_16wfm_59", et = "_productBannerCode_16wfm_67", tt = "_productBannerBack_16wfm_72", at = "_empty_16wfm_89", nt = "_emptyIcon_16wfm_99", ot = "_emptyText_16wfm_104", m = {
490
- shellWrap: Qe,
491
- shell: Ye,
492
- main: Ze,
493
- productBanner: Ve,
494
- productBannerLabel: Je,
495
- productBannerName: Xe,
496
- productBannerCode: et,
497
- productBannerBack: tt,
498
- empty: at,
499
- emptyIcon: nt,
500
- emptyText: ot
501
- };
502
- _e();
503
- const t = (s, l) => g(() => s().then((p) => ({ default: p[l] }))), ct = t(() => import("@yuku123/z-ctc-component"), "AccountManagement"), st = t(() => import("@yuku123/z-ctc-component"), "ApplicationManagement"), lt = t(() => import("@yuku123/z-ctc-component"), "AuditPage"), rt = t(() => import("@yuku123/z-ctc-component"), "CtcOverview"), pt = t(() => import("@yuku123/z-ctc-component"), "DictPage"), it = t(() => import("@yuku123/z-ctc-component"), "OrgPage"), mt = t(() => import("@yuku123/z-ctc-component"), "PermissionManagement"), ut = t(() => import("@yuku123/z-ctc-component"), "RoleManagement"), $ = t(() => import("@yuku123/z-ctc-component"), "SurlManagement"), dt = t(() => import("@yuku123/z-ctc-component"), "TenantManagement"), ht = t(() => import("@yuku123/z-agent-component"), "AgentAppList"), bt = t(() => import("@yuku123/z-agent-component"), "AgentDashboard"), gt = t(() => import("@yuku123/z-agent-component"), "AkManage"), _t = t(() => import("@yuku123/z-agent-component"), "BucketList"), kt = t(() => import("@yuku123/z-agent-component"), "LlmManage"), yt = t(() => import("@yuku123/z-agent-component"), "McpPage"), St = t(() => import("@yuku123/z-agent-component"), "ObjectBrowser"), wt = t(() => import("@yuku123/z-agent-component"), "ScriptCenterPage"), ft = t(() => import("@yuku123/z-agent-component"), "ScriptProductizationPage"), At = t(() => import("@yuku123/z-agent-component"), "SkillMarket"), Pt = t(() => import("./index-Ca08VoFz.js"), "AgentTeamIM"), K = t(() => import("./index-Ca08VoFz.js"), "DebugPlayground"), vt = t(() => import("./index-Ca08VoFz.js"), "Overview"), F = t(() => import("./index-Ca08VoFz.js"), "Webide"), Dt = g(() => import("./OnboardingPage-ClH-s7zs.js")), Nt = g(() => import("./InvitationManagementPage-YzQVnNWz.js")), Ct = t(() => import("@yuku123/z-config-component"), "ConfigApp"), Mt = t(() => import("@yuku123/z-task-component"), "TaskApp"), Gt = t(() => import("@yuku123/z-wf-component"), "WorkflowApp"), It = t(() => import("@yuku123/z-schedule-component"), "ScheduleApp"), Ot = t(() => import("@yuku123/z-mist-component"), "MistApp"), Lt = t(() => import("@yuku123/z-meta-component"), "MetaApp"), Bt = t(() => import("@yuku123/z-msg-component"), "MsgApp"), zt = t(() => import("@yuku123/z-rpc-component"), "RpcApp"), Tt = g(() => import("./ComponentDoc-DTpTBK1V.js").then((s) => s.cr)), xt = g(() => import("./ComponentDoc-DTpTBK1V.js").then((s) => s.cs)), Et = t(() => import("@yuku123/z-config-component"), "ComponentDocPage"), Rt = t(() => import("@yuku123/z-task-component"), "ComponentDocPage"), qt = t(() => import("@yuku123/z-wf-component"), "ComponentDocPage"), Ht = t(() => import("@yuku123/z-schedule-component"), "ComponentDocPage"), jt = t(() => import("@yuku123/z-mist-component"), "ComponentDocPage"), Wt = t(() => import("@yuku123/z-meta-component"), "ComponentDocPage"), Ut = t(() => import("@yuku123/z-msg-component"), "ComponentDocPage"), $t = t(() => import("@yuku123/z-rpc-component"), "ComponentDocPage"), Kt = t(() => import("@yuku123/z-cognition-kb-component"), "ComponentDocPage"), Ft = t(() => import("@yuku123/z-product-component"), "ComponentDocPage"), Qt = t(() => import("@yuku123/z-oss-component"), "ComponentDocPage"), Yt = t(() => import("@yuku123/z-vector-component"), "ComponentDocPage"), Zt = t(() => import("@yuku123/z-graph-component"), "ComponentDocPage"), Vt = t(() => import("@yuku123/z-gw-component"), "ComponentDocPage"), Jt = t(() => import("@yuku123/z-cache-component"), "ComponentDocPage"), Xt = t(() => import("@yuku123/z-mq-component"), "ComponentDocPage"), ea = t(() => import("@yuku123/z-ctc-component"), "ComponentDocPage"), ta = t(() => import("@yuku123/z-agent-component"), "ComponentDocPage"), aa = t(() => import("@yuku123/z-lc-component"), "ComponentDocPage"), na = t(() => import("@yuku123/z-qa-component"), "ComponentDocPage"), oa = g(() => import("./ComponentDoc-DTpTBK1V.js").then((s) => s.cq)), Q = g(() => import("@yuku123/z-qa-component"));
504
- function ca() {
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
- ] });
509
- }
510
- function sa() {
511
- const { pathname: s } = O();
512
- return /* @__PURE__ */ e(c, { to: s.replace(/^\/product/, "/z-product"), replace: !0 });
513
- }
514
- const Y = [
515
- // ─── 顶层 / 概览 ───
516
- { path: "/overview", element: /* @__PURE__ */ e(vt, {}) },
517
- // ─── 4A 中心 (/ctc/*) ───
518
- { path: "/ctc", element: /* @__PURE__ */ e(c, { to: "/ctc/4a/account", replace: !0 }) },
519
- { path: "/ctc/4a/account", element: /* @__PURE__ */ e(ct, {}) },
520
- { path: "/ctc/4a/role", element: /* @__PURE__ */ e(ut, {}) },
521
- { path: "/ctc/4a/application", element: /* @__PURE__ */ e(st, {}) },
522
- { path: "/ctc/4a/tenant", element: /* @__PURE__ */ e(dt, {}) },
523
- { path: "/ctc/4a/org", element: /* @__PURE__ */ e(it, {}) },
524
- { path: "/ctc/4a/permission", element: /* @__PURE__ */ e(mt, {}) },
525
- { path: "/ctc/4a/surl", element: /* @__PURE__ */ e($, {}) },
526
- { path: "/ctc/dict", element: /* @__PURE__ */ e(pt, {}) },
527
- { path: "/ctc/overview", element: /* @__PURE__ */ e(rt, {}) },
528
- { path: "/ctc/audit", element: /* @__PURE__ */ e(lt, {}) },
529
- { path: "/ctc/webide", element: /* @__PURE__ */ e(F, {}) },
530
- { path: "/ctc/agent-team", element: /* @__PURE__ */ e(Pt, {}) },
531
- { path: "/ctc/invitation", element: /* @__PURE__ */ e(Nt, {}) },
532
- { path: "/onboarding", element: /* @__PURE__ */ e(Dt, {}) },
533
- // ─── 智能中心 (/ai/*) ───
534
- { path: "/ai", element: /* @__PURE__ */ e(c, { to: "/ai/agent/app", replace: !0 }) },
535
- { path: "/ai/agent", element: /* @__PURE__ */ e(c, { to: "/ai/agent/app", replace: !0 }) },
536
- { path: "/ai/agent/app", element: /* @__PURE__ */ e(ht, {}) },
537
- { path: "/ai/llm", element: /* @__PURE__ */ e(kt, {}) },
538
- { path: "/ai/llm/provider", element: /* @__PURE__ */ e(c, { to: "/ai/llm", replace: !0 }) },
539
- { path: "/ai/llm/model", element: /* @__PURE__ */ e(c, { to: "/ai/llm", replace: !0 }) },
540
- { path: "/ai/usage", element: /* @__PURE__ */ e(c, { to: "/ai/llm", replace: !0 }) },
541
- { path: "/ai/ak", element: /* @__PURE__ */ e(gt, {}) },
542
- { path: "/ai/mcp", element: /* @__PURE__ */ e(yt, {}) },
543
- { path: "/ai/skill", element: /* @__PURE__ */ e(At, {}) },
544
- { path: "/ai/oss", element: /* @__PURE__ */ e(c, { to: "/ai/oss/bucket", replace: !0 }) },
545
- { path: "/ai/oss/bucket", element: /* @__PURE__ */ e(_t, {}) },
546
- { path: "/ai/oss/bucket/:bucketName", element: /* @__PURE__ */ e(St, {}) },
547
- { path: "/ai/trace", element: /* @__PURE__ */ e(K, {}) },
548
- { path: "/ai/trace/debug", element: /* @__PURE__ */ e(K, {}) },
549
- { path: "/ai/dashboard", element: /* @__PURE__ */ e(bt, {}) },
550
- // 多 Agent 实例 / 模板市场已下线 (2026-10-22): 模板并入 Agent 应用页,
551
- // 旧深链重定向, 别再回到独立菜单
552
- { path: "/ai/template", element: /* @__PURE__ */ e(c, { to: "/ai/agent/app", replace: !0 }) },
553
- { path: "/ai/agent-instance", element: /* @__PURE__ */ e(c, { to: "/ai/agent/app", replace: !0 }) },
554
- { path: "/ai/agent/instances", element: /* @__PURE__ */ e(c, { to: "/ai/agent/app", replace: !0 }) },
555
- // ─── 配置中心 ───
556
- { path: "/config/*", element: /* @__PURE__ */ e(Ct, {}) },
557
- // ─── 任务中心 ───
558
- // 模块根路径要重定向到默认页:通配 /task/* 匹配不到裸 /task(matchPattern 要求
559
- // 前缀带斜杠),落到 SystemShellEmpty 就是一句"请从左侧菜单选择模块"的空壳。
560
- { path: "/task", element: /* @__PURE__ */ e(c, { to: "/task/dashboard", replace: !0 }) },
561
- { path: "/task/*", element: /* @__PURE__ */ e(Mt, {}) },
562
- // ─── 流程中心 ───
563
- { path: "/workflow", element: /* @__PURE__ */ e(c, { to: "/workflow/dashboard", replace: !0 }) },
564
- { path: "/workflow/*", element: /* @__PURE__ */ e(Gt, {}) },
565
- // ─── 调度中心 ───
566
- // 默认页是 jobs:z-schedule-component 的路由只有 jobs / group / log,没有 dashboard。
567
- { path: "/schedule", element: /* @__PURE__ */ e(c, { to: "/schedule/jobs", replace: !0 }) },
568
- { path: "/schedule/*", element: /* @__PURE__ */ e(It, {}) },
569
- // ─── 密钥中心 ───
570
- { path: "/mist/*", element: /* @__PURE__ */ e(Ot, {}) },
571
- // ─── 中间件孵化页 (大需求 004) — 主入口在运维工作台 (?mode=ops),此处兜住直链/刷新 ───
572
- { path: "/meta", element: /* @__PURE__ */ e(c, { to: "/meta/app", replace: !0 }) },
573
- { path: "/meta/*", element: /* @__PURE__ */ e(Lt, {}) },
574
- { path: "/msg", element: /* @__PURE__ */ e(c, { to: "/msg/inbox", replace: !0 }) },
575
- { path: "/msg/*", element: /* @__PURE__ */ e(Bt, {}) },
576
- { path: "/rpc", element: /* @__PURE__ */ e(c, { to: "/rpc/service", replace: !0 }) },
577
- { path: "/rpc/*", element: /* @__PURE__ */ e(zt, {}) },
578
- // ─── 订阅中心 ───
579
- { path: "/subscribe", element: /* @__PURE__ */ e(c, { to: "/subscribe/list", replace: !0 }) },
580
- { path: "/subscribe/*", element: /* @__PURE__ */ e(Tt, {}) },
581
- // ─── 产品工作台 z-product (2026-10-21 接入) ───
582
- // /z-product/* 由 z-product 组件自己的 ProductApp 渲染(内部按 manifest 的绝对路径手工匹配,
583
- // 不用嵌套 <Routes>:这里没有 Route 父上下文,绝对路径不会被再拼一次父前缀)。
584
- // §14:z-product 的菜单 key / 路由 path 一律带产品名前缀(/z-product/xxx),
585
- // 避免 /board、/products 这类短路径跟宿主自己的同名路由撞车。
586
- // 产品域的默认落地页是工坊:它是「一个面板干完产品业务开发」的入口,
587
- // 全景/蓝图是看板,不是第一动作。
588
- { path: "/z-product", element: /* @__PURE__ */ e(c, { to: "/z-product/atelier", replace: !0 }) },
589
- { path: "/z-product/*", element: /* @__PURE__ */ e(ke, { basePath: "/z-product" }) },
590
- // 旧前缀 /product/* → 新前缀 /z-product/*:§14 前缀化之前的老 URL 仍可达(书签 / 旧分享链接)。
591
- { path: "/product", element: /* @__PURE__ */ e(c, { to: "/z-product/atelier", replace: !0 }) },
592
- { path: "/product/*", element: /* @__PURE__ */ e(sa, {}) },
593
- // ─── 项目中心 ───
594
- { path: "/project", element: /* @__PURE__ */ e(c, { to: "/project/list", replace: !0 }) },
595
- { path: "/project/*", element: /* @__PURE__ */ e(xt, {}) },
596
- // ─── 脚本中心 (/script/*) — FEATURE052 ───
597
- { path: "/script", element: /* @__PURE__ */ e(c, { to: "/script/manage", replace: !0 }) },
598
- { path: "/script/manage", element: /* @__PURE__ */ e(wt, {}) },
599
- { path: "/script/productization", element: /* @__PURE__ */ e(ft, {}) },
600
- // ─── 工具中心 (/z-tool/*) — FEATURE054 ───
601
- { path: "/z-tool", element: /* @__PURE__ */ e(c, { to: "/z-tool/curl", replace: !0 }) },
602
- { path: "/z-tool/curl", element: /* @__PURE__ */ e($, {}) },
603
- { path: "/z-tool/webide", element: /* @__PURE__ */ e(F, {}) },
604
- // ─── 测试中心 (/test/*) — FEATURE061 ───
605
- { path: "/test", element: /* @__PURE__ */ e(c, { to: "/test/qa/dashboard", replace: !0 }) },
606
- { path: "/test/mock", element: /* @__PURE__ */ e(oa, {}) },
607
- // QAApp 内部用 <Routes> 相对路由, 通配匹配后由 QAApp 自己接管子路径
608
- { path: "/test/qa", element: /* @__PURE__ */ e(Q, {}) },
609
- { path: "/test/qa/*", element: /* @__PURE__ */ e(Q, {}) },
610
- // ─── 低代码 ───
611
- // /lc/* 刻意不在这里注册。它早就迁到 src/lc/(TS 重写), 挂载点是
612
- // main.jsx 的 <Route path="/lc/*" element={<ZTeamApp forcedMode="dev"/>}/>,
613
- // 由 DevWorkbench 把 pathname 原样交给 @/lc 自己的嵌套 <Routes>。
614
- // 本表早先还挂着一行 {path:'/lc/*', element:<LcIndex/>}, 它的 import 写的是
615
- // '@/pages/lc' —— 该别名解析到 src/zteam/pages/lc(不存在), 真身在 src/lc,
616
- // 于是这行既解析不了、又因 main.jsx 先消费了 /lc/* 而永远不可达。
617
- // /form/:entity 与 /form/_model 是 z-lc Phase 1 手写原型的两条 URL
618
- // (LowCodeModel 实体字段编辑器 / LowCodeRuntime 通用 CRUD), 现已由
619
- // @yuku123/z-lc-component 承接 —— 它是同一套 /api/lc 后端的完整前端客户,
620
- // 能力严格更强(designer 模型编辑、workspace 七种视图 CRUD、admin 全套、
621
- // db-import、AI 建模), 挂在 main.jsx 的 <Route path="/lc/*"> 下经
622
- // DevWorkbench 的 <LcApp/> 渲染。
623
- //
624
- // 不做逐条映射: z-lc 的工作区路由是 /lc/{appCode}/{entityCode}/{viewType},
625
- // 比 /form/{entityCode} 多一层 appCode, 旧 URL 里没有这个信息, 无法还原。
626
- // 故统一重定向到应用列表, 由用户自行进入对应应用。
627
- { path: "/form/:entity", element: /* @__PURE__ */ e(c, { to: "/lc/apps", replace: !0 }) },
628
- // ─── 各域组件文档(lead 008 §7)───
629
- // 放在本表末尾即可:matchSystemPath 是「先全表精确匹配、再全表通配匹配」,
630
- // 所以 /config/docs 这类精确路径**不会**被上面的 /config/* 吃掉。
631
- //
632
- // 为什么路径用宿主前缀(/config/docs)而不是各域 manifest 里的 /z-config/docs:
633
- // manifest 的 routes 是给**独立壳**用的(suit 里 <Route path={r.path}> 直接铺);
634
- // 工作台把各域挂在宿主前缀下(/config/* ⇒ ConfigApp 内部相对路由),
635
- // 两套路径对不上 ⇒ manifest 的 routes 在工作台里不生效,文档页会 404。
636
- // 这里统一按**宿主前缀**挂,各域自己的 manifest 路径仍然保留给独立壳用。
637
- //
638
- // §14 铁律(菜单 key 必须带产品名前缀)针对的是**同一宿主内多套件共存**的撞车问题;
639
- // 这里每个域的宿主前缀本身就已经是产品名(/config / /task / /workflow …),
640
- // 且各域之间前缀互不相同 ⇒ 不存在撞车,不需要再加 z- 前缀。
641
- { path: "/config/docs", element: /* @__PURE__ */ e(Et, {}) },
642
- { path: "/task/docs", element: /* @__PURE__ */ e(Rt, {}) },
643
- { path: "/workflow/docs", element: /* @__PURE__ */ e(qt, {}) },
644
- { path: "/schedule/docs", element: /* @__PURE__ */ e(Ht, {}) },
645
- { path: "/mist/docs", element: /* @__PURE__ */ e(jt, {}) },
646
- { path: "/meta/docs", element: /* @__PURE__ */ e(Wt, {}) },
647
- { path: "/msg/docs", element: /* @__PURE__ */ e(Ut, {}) },
648
- { path: "/rpc/docs", element: /* @__PURE__ */ e($t, {}) },
649
- { path: "/kb/docs", element: /* @__PURE__ */ e(Kt, {}) },
650
- { path: "/z-product/docs", element: /* @__PURE__ */ e(Ft, {}) },
651
- { path: "/oss/docs", element: /* @__PURE__ */ e(Qt, {}) },
652
- { path: "/vector/docs", element: /* @__PURE__ */ e(Yt, {}) },
653
- { path: "/graph/docs", element: /* @__PURE__ */ e(Zt, {}) },
654
- { path: "/gw/docs", element: /* @__PURE__ */ e(Vt, {}) },
655
- { path: "/cache/docs", element: /* @__PURE__ */ e(Jt, {}) },
656
- { path: "/mq/docs", element: /* @__PURE__ */ e(Xt, {}) },
657
- { path: "/ctc/docs", element: /* @__PURE__ */ e(ea, {}) },
658
- { path: "/ai/docs", element: /* @__PURE__ */ e(ta, {}) },
659
- { path: "/lc/docs", element: /* @__PURE__ */ e(aa, {}) },
660
- { path: "/test/qa/docs", element: /* @__PURE__ */ e(na, {}) }
661
- ];
662
- function la(s) {
663
- for (const l of Y)
664
- if (l.path === s) return l.element;
665
- for (const l of Y)
666
- if (ra(l.path, s)) return l.element;
667
- return /* @__PURE__ */ e(ca, {});
668
- }
669
- function ra(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
- }
674
- function _a() {
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(() => {
682
- try {
683
- const d = new URLSearchParams(p), f = d.get("product");
684
- return f ? { code: f, name: d.get("productName") || f } : null;
685
- } catch {
686
- return null;
687
- }
688
- }, [p]), w = oe(() => {
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(() => la(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: "← 返回产品工作台" })
699
- ] }),
700
- /* @__PURE__ */ r("div", { className: m.shell, children: [
701
- /* @__PURE__ */ e(
702
- Fe,
703
- {
704
- activePathOverride: P,
705
- menuOnly: !0,
706
- visibleGroups: S ? ["测试中心"] : void 0
707
- }
708
- ),
709
- /* @__PURE__ */ r("main", { className: m.main, children: [
710
- /* @__PURE__ */ e(ye, {}),
711
- /* @__PURE__ */ e(Se, { resetKey: l, children: /* @__PURE__ */ e(ce, { fallback: /* @__PURE__ */ e("div", { className: m.empty, children: "加载中…" }), children: _ }) })
712
- ] })
713
- ] })
714
- ] });
715
- }
716
- export {
717
- _a as default
718
- };