@yuku123/z-team-component 0.2.136 → 0.2.138

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/{AdminModuleContent-T7ZXoVAV.js → AdminModuleContent-9gH_G78B.js} +12866 -13280
  2. package/dist/{ChangeLogView-ChmYvz8Z.js → ChangeLogView-DzFmZVBw.js} +1 -1
  3. package/dist/{ComponentDoc-D5Gbd6B_.js → ComponentDoc-KyD5wtuW.js} +435 -445
  4. package/dist/{InvitationManagementPage-kaqwNuPz.js → InvitationManagementPage-6-0uZNuO.js} +1 -1
  5. package/dist/{OnboardingPage-Cy_sPHS1.js → OnboardingPage-tLarxnp5.js} +2 -2
  6. package/dist/{ScheduledTasks-GAP-U6s9.js → ScheduledTasks-QGmD7Uhz.js} +6 -6
  7. package/dist/SystemShell-CWawiWOn.js +885 -0
  8. package/dist/SystemWorkbench.module-CZv_ruUa.js +36 -0
  9. package/dist/{admin-logs-BdwcT77i.js → admin-logs-DXjxD-y2.js} +1 -1
  10. package/dist/{api-6nYxtAbN.js → api-DOjASQ0k.js} +1 -1
  11. package/dist/{api-B0S5AhOe.js → api-Dzr8HLsU.js} +1 -1
  12. package/dist/{createWorkspaceWsHandler-B9UE_uoO.js → createWorkspaceWsHandler-DCokPv4M.js} +3 -3
  13. package/dist/{index-DJu6AFf9.js → index-0AjMJyFL.js} +3 -3
  14. package/dist/{index-CCsvaPw9.js → index-4NOi2xz4.js} +2 -2
  15. package/dist/{index-g36zRqmZ.js → index-4icVyiM3.js} +5 -5
  16. package/dist/{index-B0f8tIBU.js → index-8VddM67M.js} +2 -2
  17. package/dist/{index-BQYKmytF.js → index-B75TTql4.js} +2 -2
  18. package/dist/{index-Y9EcfhJG.js → index-BHfNKXIA.js} +3 -3
  19. package/dist/{index-tln7BkiQ.js → index-BdEokzAv.js} +6 -6
  20. package/dist/{index-CX19wylA.js → index-BgdqkNkT.js} +3 -3
  21. package/dist/{index-DOYSz9Bg.js → index-C9NwYJh-.js} +1 -1
  22. package/dist/{index-eqbuW74W.js → index-CLP0LnEz.js} +12 -12
  23. package/dist/index-CNmSLd0s.js +1894 -0
  24. package/dist/{index-cY1tZiV2.js → index-CUOByyqy.js} +3 -3
  25. package/dist/{index-CnKYpM41.js → index-CjYmL2yJ.js} +1 -1
  26. package/dist/{index-BWaPbYG2.js → index-Crzx3zh2.js} +2 -2
  27. package/dist/index-Cwptuq_d.js +1323 -0
  28. package/dist/{index-B6n7ueTc.js → index-DC1fQH0J.js} +2 -2
  29. package/dist/{index-DNAeZe0a.js → index-DGdtqBi4.js} +4 -4
  30. package/dist/{index-CazCOFR2.js → index-DXA0r7Co.js} +2 -2
  31. package/dist/{index-DgYhtv8V.js → index-DZcMGMHV.js} +4 -4
  32. package/dist/{index-BC6eLVMc.js → index-DarTFF-M.js} +1 -1
  33. package/dist/{index-C7DP8H_Q.js → index-DxZEpsT6.js} +2964 -2962
  34. package/dist/{index-DWi-8Esh.js → index-PJZV-bFc.js} +1 -1
  35. package/dist/{index-DJ2TNQP6.js → index-VqKcDrn3.js} +2 -2
  36. package/dist/{index-DbThmpZg.js → index-ZqDoLUxb.js} +1 -1
  37. package/dist/index.js +1 -1
  38. package/dist/{instance-ChzeFK3e.js → instance-CDA6R8yG.js} +1 -1
  39. package/dist/{menuPermission-DDzb20pQ.js → menuPermission-LCjN8Osm.js} +3 -3
  40. package/dist/pages.js +1 -1
  41. package/dist/{send-default-agent-team-message-DOgtkW6m.js → send-default-agent-team-message-3Uyy88s_.js} +1 -1
  42. package/dist/{sso-user-DaRbfrdM.js → sso-user-DX2FYQCh.js} +1 -1
  43. package/dist/{training-N-5-qsDf.js → training-BgYM7EV-.js} +1 -1
  44. package/dist/{webide-BEV0VT3u.js → webide-BsF30aLX.js} +1289 -1255
  45. package/dist/z-team-component.css +1 -1
  46. package/package.json +1 -1
  47. package/dist/SystemShell-69TBLWk8.js +0 -978
  48. package/dist/index-CE1Vtf-B.js +0 -1718
  49. package/dist/index-T4Rvjyn0.js +0 -1299
@@ -0,0 +1,885 @@
1
+ import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
+ import { useNavigate as ue, useLocation as W, Navigate as o } from "react-router-dom";
3
+ import { useMemo as w, useState as F, useEffect as we, useCallback as Ne, Suspense as _e, lazy as v } from "react";
4
+ import { UnorderedListOutlined as M, HistoryOutlined as Q, ClusterOutlined as C, DashboardOutlined as A, ExperimentOutlined as Me, SettingOutlined as Z, KeyOutlined as T, AppstoreOutlined as I, SafetyCertificateOutlined as be, TeamOutlined as H, ProfileOutlined as X, ApiOutlined as U, HddOutlined as $, ApartmentOutlined as J, InboxOutlined as ee, FileTextOutlined as B, SendOutlined as Ce, CloudServerOutlined as P, NodeIndexOutlined as De, TableOutlined as te, SearchOutlined as ae, DatabaseOutlined as R, ConsoleSqlOutlined as Ie, BranchesOutlined as Be, DeploymentUnitOutlined as ke, ScheduleOutlined as Ee, CodeOutlined as ne, FundOutlined as ze, CloudUploadOutlined as Ge, TagsOutlined as qe, DownOutlined as ce, RightOutlined as oe, UserOutlined as Te, AuditOutlined as ye, ProjectOutlined as ge, FolderOpenOutlined as Le, DesktopOutlined as fe, CloudOutlined as j, BuildOutlined as Re, CalendarOutlined as L, BarChartOutlined as le, ControlOutlined as xe } from "@ant-design/icons";
5
+ import { f as $e, M as Ue } from "./menuPermission-LCjN8Osm.js";
6
+ import { u as se, X as je } from "./ComponentDoc-KyD5wtuW.js";
7
+ import { M as We, f as ve, u as He } from "./menuTree-Ctcz41N8.js";
8
+ import { s as n } from "./SystemWorkbench.module-CZv_ruUa.js";
9
+ import { ProductApp as Ke } from "@yuku123/z-product-component";
10
+ import { P as Ve, R as Ye } from "./index-B75TTql4.js";
11
+ import { configureGraph as Fe } from "@yuku123/z-graph-component";
12
+ const Qe = [
13
+ {
14
+ title: "配置中心",
15
+ icon: /* @__PURE__ */ e(Z, {}),
16
+ permission: "OPS_CONFIG_VIEW",
17
+ items: [
18
+ { key: "config-list", label: "配置列表", icon: /* @__PURE__ */ e(M, {}), path: "/config/list" },
19
+ { key: "config-history", label: "变更历史", icon: /* @__PURE__ */ e(Q, {}), path: "/config/history" },
20
+ { key: "config-service", label: "服务列表", icon: /* @__PURE__ */ e(C, {}), path: "/config/service" },
21
+ { key: "config-cluster", label: "集群概览", icon: /* @__PURE__ */ e(A, {}), path: "/config/cluster" },
22
+ { key: "config-namespace", label: "命名空间", icon: /* @__PURE__ */ e(Me, {}), path: "/config/namespace" }
23
+ ]
24
+ },
25
+ {
26
+ title: "密钥中心",
27
+ icon: /* @__PURE__ */ e(T, {}),
28
+ items: [
29
+ { key: "mist-secret", label: "密钥管理", icon: /* @__PURE__ */ e(T, {}), path: "/mist/secret" },
30
+ { key: "mist-app", label: "应用接入", icon: /* @__PURE__ */ e(I, {}), path: "/mist/app" },
31
+ { key: "mist-acl", label: "密钥授权", icon: /* @__PURE__ */ e(be, {}), path: "/mist/acl" }
32
+ ]
33
+ },
34
+ {
35
+ title: "元数据中心",
36
+ icon: /* @__PURE__ */ e(J, {}),
37
+ items: [
38
+ { key: "meta-app", label: "应用元数据", icon: /* @__PURE__ */ e(I, {}), path: "/meta/app" },
39
+ { key: "meta-tenant", label: "租户管理", icon: /* @__PURE__ */ e(H, {}), path: "/meta/tenant" },
40
+ { key: "meta-dict", label: "数据字典", icon: /* @__PURE__ */ e(X, {}), path: "/meta/dict" },
41
+ { key: "meta-interface", label: "接口台账", icon: /* @__PURE__ */ e(U, {}), path: "/meta/interface" },
42
+ { key: "meta-private-config", label: "私有配置", icon: /* @__PURE__ */ e(Z, {}), path: "/meta/private-config" },
43
+ { key: "meta-models", label: "业务模型", icon: /* @__PURE__ */ e($, {}), path: "/meta/models" }
44
+ ]
45
+ },
46
+ {
47
+ title: "消息中心",
48
+ icon: /* @__PURE__ */ e(Ce, {}),
49
+ items: [
50
+ { key: "msg-inbox", label: "站内信", icon: /* @__PURE__ */ e(ee, {}), path: "/msg/inbox" },
51
+ { key: "msg-template", label: "消息模板", icon: /* @__PURE__ */ e(X, {}), path: "/msg/template" },
52
+ { key: "msg-delivery", label: "投递日志", icon: /* @__PURE__ */ e(B, {}), path: "/msg/delivery" },
53
+ { key: "msg-batch", label: "批量任务", icon: /* @__PURE__ */ e(M, {}), path: "/msg/batch" }
54
+ ]
55
+ },
56
+ {
57
+ title: "服务注册",
58
+ icon: /* @__PURE__ */ e(De, {}),
59
+ items: [
60
+ { key: "rpc-service", label: "服务列表", icon: /* @__PURE__ */ e(C, {}), path: "/rpc/service" },
61
+ { key: "rpc-instance", label: "服务实例", icon: /* @__PURE__ */ e(P, {}), path: "/rpc/instance" }
62
+ ]
63
+ },
64
+ {
65
+ title: "向量检索",
66
+ icon: /* @__PURE__ */ e(R, {}),
67
+ items: [
68
+ { key: "vector-collection", label: "向量集合", icon: /* @__PURE__ */ e(te, {}), path: "/vector/collections" },
69
+ { key: "vector-search", label: "向量检索", icon: /* @__PURE__ */ e(ae, {}), path: "/vector/search" },
70
+ { key: "vector-instance", label: "实例与端口", icon: /* @__PURE__ */ e(P, {}), path: "/vector/instance" }
71
+ ]
72
+ },
73
+ {
74
+ title: "图数据库",
75
+ icon: /* @__PURE__ */ e(J, {}),
76
+ items: [
77
+ { key: "graph-schema", label: "图 Schema", icon: /* @__PURE__ */ e(te, {}), path: "/graph/schema" },
78
+ { key: "graph-query", label: "图查询", icon: /* @__PURE__ */ e(Ie, {}), path: "/graph/query" },
79
+ { key: "graph-branches", label: "分支与提交", icon: /* @__PURE__ */ e(Be, {}), path: "/graph/branches" },
80
+ { key: "graph-instance", label: "实例与端口", icon: /* @__PURE__ */ e(P, {}), path: "/graph/instance" }
81
+ ]
82
+ },
83
+ {
84
+ title: "网关",
85
+ icon: /* @__PURE__ */ e(U, {}),
86
+ items: [
87
+ { key: "gw-routes", label: "网关路由", icon: /* @__PURE__ */ e(M, {}), path: "/gw/routes" },
88
+ { key: "gw-metrics", label: "网关指标", icon: /* @__PURE__ */ e(A, {}), path: "/gw/metrics" },
89
+ { key: "gw-instance", label: "实例与面", icon: /* @__PURE__ */ e(P, {}), path: "/gw/instance" }
90
+ ]
91
+ },
92
+ {
93
+ title: "缓存",
94
+ icon: /* @__PURE__ */ e(R, {}),
95
+ items: [
96
+ { key: "cache-overview", label: "缓存总览", icon: /* @__PURE__ */ e(I, {}), path: "/cache/overview" },
97
+ { key: "cache-keys", label: "键浏览", icon: /* @__PURE__ */ e(ae, {}), path: "/cache/keys" },
98
+ { key: "cache-stats", label: "命中率与热键", icon: /* @__PURE__ */ e(A, {}), path: "/cache/stats" },
99
+ { key: "cache-instance", label: "实例与端口", icon: /* @__PURE__ */ e(P, {}), path: "/cache/instance" }
100
+ ]
101
+ },
102
+ {
103
+ title: "消息队列",
104
+ icon: /* @__PURE__ */ e(ee, {}),
105
+ items: [
106
+ { key: "mq-instance", label: "实例与端口", icon: /* @__PURE__ */ e(P, {}), path: "/mq/instance" },
107
+ { key: "mq-cluster", label: "集群与 Broker", icon: /* @__PURE__ */ e(C, {}), path: "/mq/cluster" },
108
+ { key: "mq-topics", label: "Topic 列表", icon: /* @__PURE__ */ e(M, {}), path: "/mq/topics" },
109
+ { key: "mq-broker", label: "Broker 元数据", icon: /* @__PURE__ */ e(ke, {}), path: "/mq/broker" }
110
+ ]
111
+ },
112
+ {
113
+ title: "对象存储",
114
+ icon: /* @__PURE__ */ e($, {}),
115
+ items: [
116
+ { key: "oss-buckets", label: "Bucket 列表", icon: /* @__PURE__ */ e($, {}), path: "/oss/buckets" },
117
+ { key: "oss-objects", label: "对象浏览", icon: /* @__PURE__ */ e(B, {}), path: "/oss/objects" },
118
+ { key: "oss-account", label: "访问身份", icon: /* @__PURE__ */ e(T, {}), path: "/oss/account" }
119
+ ]
120
+ },
121
+ {
122
+ title: "调度中心",
123
+ icon: /* @__PURE__ */ e(Ee, {}),
124
+ items: [
125
+ { key: "schedule-jobs", label: "任务列表", icon: /* @__PURE__ */ e(M, {}), path: "/schedule/jobs" },
126
+ { key: "schedule-group", label: "分组管理", icon: /* @__PURE__ */ e(C, {}), path: "/schedule/group" },
127
+ { key: "schedule-log", label: "执行日志", icon: /* @__PURE__ */ e(Q, {}), path: "/schedule/log" }
128
+ ]
129
+ },
130
+ {
131
+ title: "脚本中心",
132
+ icon: /* @__PURE__ */ e(ne, {}),
133
+ items: [
134
+ // 2026-11-11: 原「开发与工具」组的 脚本中心(/script/manage, DSL 脚本注册与执行)
135
+ // 并入本子菜单作第一个叶子 —— 与脚本治理模块撞名,不能在「基础服务」里出两个「脚本中心」。
136
+ { key: "script-manage", label: "脚本管理", icon: /* @__PURE__ */ e(ne, {}), path: "/script/manage" },
137
+ { key: "script-keys", label: "API Key 台账", icon: /* @__PURE__ */ e(T, {}), path: "/script/keys" },
138
+ { key: "script-monitor", label: "调用监控", icon: /* @__PURE__ */ e(A, {}), path: "/script/monitor" },
139
+ { key: "script-quota", label: "配额与用量", icon: /* @__PURE__ */ e(ze, {}), path: "/script/quota" },
140
+ { key: "script-version", label: "脚本版本", icon: /* @__PURE__ */ e(Ge, {}), path: "/script/version" },
141
+ { key: "script-tag", label: "标签治理", icon: /* @__PURE__ */ e(qe, {}), path: "/script/tag" }
142
+ ]
143
+ }
144
+ ];
145
+ function D(a) {
146
+ return a.flatMap((s) => [s, ...D(s.children ?? [])]);
147
+ }
148
+ const Ze = {
149
+ title: "测试中心",
150
+ icon: /* @__PURE__ */ e(A, {}),
151
+ // 测试 Tab 的入口权限点 (顶栏 test mode 同码)。4A 普通用户角色 USER 持有 TEST_ENTRY
152
+ // ⇒ 全员可见; 未绑测试角色的账号看不到这一组。
153
+ permission: "TEST_ENTRY",
154
+ items: [
155
+ {
156
+ key: "test-dashboard",
157
+ label: "测试总览",
158
+ icon: /* @__PURE__ */ e(A, {}),
159
+ path: "/test/qa/dashboard",
160
+ desc: "测试统计、趋势与套件健康度"
161
+ },
162
+ {
163
+ key: "test-design",
164
+ label: "用例与编排",
165
+ icon: /* @__PURE__ */ e(B, {}),
166
+ children: [
167
+ {
168
+ key: "test-case",
169
+ label: "测试用例",
170
+ icon: /* @__PURE__ */ e(B, {}),
171
+ path: "/test/qa/cases",
172
+ desc: "接口用例与断言模板"
173
+ },
174
+ {
175
+ key: "test-suite",
176
+ label: "测试套件",
177
+ icon: /* @__PURE__ */ e(C, {}),
178
+ path: "/test/qa/suites",
179
+ desc: "步骤编排与变量传递"
180
+ },
181
+ {
182
+ key: "test-plan",
183
+ label: "测试计划",
184
+ icon: /* @__PURE__ */ e(ge, {}),
185
+ path: "/test/qa/plans",
186
+ desc: "套件组合与环境绑定"
187
+ }
188
+ ]
189
+ },
190
+ {
191
+ key: "test-exec",
192
+ label: "执行与调度",
193
+ icon: /* @__PURE__ */ e(L, {}),
194
+ children: [
195
+ {
196
+ key: "test-run",
197
+ label: "执行记录",
198
+ icon: /* @__PURE__ */ e(L, {}),
199
+ path: "/test/qa/runs",
200
+ desc: "执行触发、状态与报告"
201
+ },
202
+ {
203
+ key: "test-schedule",
204
+ label: "定时调度",
205
+ icon: /* @__PURE__ */ e(L, {}),
206
+ path: "/test/qa/schedules",
207
+ desc: "cron 定时执行"
208
+ },
209
+ {
210
+ key: "test-e2e",
211
+ label: "E2E 测试",
212
+ icon: /* @__PURE__ */ e(fe, {}),
213
+ path: "/test/qa/e2e",
214
+ desc: "浏览器自动化测试"
215
+ }
216
+ ]
217
+ },
218
+ {
219
+ key: "test-support",
220
+ label: "环境与工具",
221
+ icon: /* @__PURE__ */ e(j, {}),
222
+ children: [
223
+ {
224
+ key: "test-env",
225
+ label: "环境管理",
226
+ icon: /* @__PURE__ */ e(j, {}),
227
+ path: "/test/qa/envs",
228
+ desc: "多环境变量管理"
229
+ },
230
+ {
231
+ key: "test-mock",
232
+ label: "Mock 平台",
233
+ icon: /* @__PURE__ */ e(R, {}),
234
+ path: "/test/mock",
235
+ desc: "API Mock 服务管理"
236
+ }
237
+ ]
238
+ },
239
+ {
240
+ key: "test-eval",
241
+ label: "智能测评",
242
+ icon: /* @__PURE__ */ e(le, {}),
243
+ children: [
244
+ {
245
+ key: "test-eval-start",
246
+ label: "发起测评",
247
+ icon: /* @__PURE__ */ e(A, {}),
248
+ path: "/test/evaluation/start",
249
+ desc: "Agent 质量测评"
250
+ },
251
+ {
252
+ key: "test-eval-schedule",
253
+ label: "自动测评",
254
+ icon: /* @__PURE__ */ e(L, {}),
255
+ path: "/test/evaluation/schedule",
256
+ desc: "定时批量测评"
257
+ },
258
+ {
259
+ key: "test-eval-group",
260
+ label: "群聊评测",
261
+ icon: /* @__PURE__ */ e(H, {}),
262
+ path: "/test/evaluation/group",
263
+ desc: "群聊场景评测"
264
+ },
265
+ {
266
+ key: "test-eval-report",
267
+ label: "分析报告",
268
+ icon: /* @__PURE__ */ e(le, {}),
269
+ path: "/test/evaluation/report",
270
+ desc: "测评结果分析"
271
+ }
272
+ ]
273
+ }
274
+ ]
275
+ };
276
+ function Xe(a) {
277
+ const s = ve(a.children ?? []), p = {
278
+ key: `operation-${a.key}`,
279
+ label: a.label,
280
+ icon: a.icon ?? /* @__PURE__ */ e(xe, {}),
281
+ permission: a.permission
282
+ };
283
+ return s.length === 0 ? { ...p, path: `/operation/${a.key}` } : {
284
+ ...p,
285
+ children: s.map((b) => ({
286
+ key: `operation-${b.key}`,
287
+ label: b.label,
288
+ path: `/operation/${b.key}`,
289
+ permission: b.permission
290
+ }))
291
+ };
292
+ }
293
+ const Je = {
294
+ title: "协作管理",
295
+ icon: /* @__PURE__ */ e(H, {}),
296
+ permission: "ADMIN_ENTRY",
297
+ items: We.map(Xe)
298
+ }, et = {
299
+ title: "基础服务",
300
+ icon: /* @__PURE__ */ e(R, {}),
301
+ items: [
302
+ ...Qe.map((a) => ({
303
+ key: `mw-${a.title}`,
304
+ label: a.title,
305
+ icon: a.icon,
306
+ permission: a.permission,
307
+ children: a.items.map((s) => ({
308
+ key: s.key,
309
+ label: s.label,
310
+ path: s.path
311
+ }))
312
+ })),
313
+ // 2026-11-11: 「业务流程」组整组并入本组 —— 四个中心都是各自 App 的大入口,
314
+ // 按调度中心/脚本中心的二级子菜单样式展开各自的真实子页面(路由真源 =
315
+ // WorkflowApp/TaskApp/SubscribeApp/ProjectApp 的 <Routes>)。
316
+ {
317
+ key: "biz-workflow",
318
+ label: "流程中心",
319
+ icon: /* @__PURE__ */ e(ye, {}),
320
+ // 2026-11-12 按闭环排序:模板 → 发起(我发起的/流程视图) → 推进(待办/已办) → 总览
321
+ children: [
322
+ { key: "wf-processes", label: "流程模板", path: "/workflow/processes" },
323
+ { key: "wf-my", label: "我发起的", path: "/workflow/my-processes" },
324
+ { key: "wf-todo", label: "待办任务", path: "/workflow/todo" },
325
+ { key: "wf-done", label: "已办任务", path: "/workflow/done" },
326
+ { key: "wf-dashboard", label: "仪表盘", path: "/workflow/dashboard" }
327
+ ]
328
+ },
329
+ {
330
+ key: "biz-task",
331
+ label: "任务中心",
332
+ icon: /* @__PURE__ */ e(B, {}),
333
+ children: [
334
+ { key: "task-dashboard", label: "仪表盘", path: "/task/dashboard" },
335
+ { key: "task-list", label: "任务列表", path: "/task/task" },
336
+ { key: "task-project", label: "项目列表", path: "/task/project" },
337
+ { key: "task-user", label: "用户管理", path: "/task/user" }
338
+ ]
339
+ },
340
+ {
341
+ key: "biz-subscribe",
342
+ label: "订阅中心",
343
+ icon: /* @__PURE__ */ e(U, {}),
344
+ children: [
345
+ { key: "sub-list", label: "订阅列表", path: "/subscribe/list" },
346
+ { key: "sub-runs", label: "运行记录", path: "/subscribe/runs" }
347
+ ]
348
+ },
349
+ {
350
+ key: "biz-project",
351
+ label: "项目中心",
352
+ icon: /* @__PURE__ */ e(ge, {}),
353
+ children: [
354
+ { key: "proj-list", label: "项目列表", path: "/project/list" }
355
+ ]
356
+ },
357
+ // 2026-11-11: 短链管理/WebIDE 容器 自「开发与工具」并入本组(开发与工具组已删)。
358
+ {
359
+ key: "tool-curl",
360
+ label: "短链管理",
361
+ icon: /* @__PURE__ */ e(Le, {}),
362
+ path: "/z-tool/curl",
363
+ desc: "短链接创建与管理"
364
+ },
365
+ {
366
+ key: "tool-webide",
367
+ label: "WebIDE 容器",
368
+ icon: /* @__PURE__ */ e(fe, {}),
369
+ path: "/z-tool/webide",
370
+ desc: "在线 IDE 代码编辑器"
371
+ }
372
+ ]
373
+ }, tt = {
374
+ title: "系统初始",
375
+ icon: /* @__PURE__ */ e(Re, {}),
376
+ permission: "PERMISSION_MANAGE",
377
+ items: [
378
+ {
379
+ key: "4a-tenant",
380
+ label: "租户管理",
381
+ icon: /* @__PURE__ */ e(j, {}),
382
+ path: "/ctc/4a/tenant",
383
+ desc: "多租户管理与配置"
384
+ }
385
+ ]
386
+ }, Ae = [
387
+ {
388
+ title: "认证与权限",
389
+ icon: /* @__PURE__ */ e(be, {}),
390
+ // 4A 授权中心自身的资源管理动作 (账号/角色/应用/租户/组织/权限分配)
391
+ // ⇒ 4A 权限管理域 PERMISSION_MANAGE。普通用户角色 USER 不含该码,
392
+ // 之前照样能点进这些页面 (进去就是 403 / 空白) —— 现在入口先收敛。
393
+ permission: "PERMISSION_MANAGE",
394
+ items: [
395
+ {
396
+ key: "4a-account",
397
+ label: "账号管理",
398
+ icon: /* @__PURE__ */ e(Te, {}),
399
+ path: "/ctc/4a/account",
400
+ desc: "用户账号创建、编辑与状态管理"
401
+ },
402
+ {
403
+ key: "4a-app",
404
+ label: "应用管理",
405
+ icon: /* @__PURE__ */ e(I, {}),
406
+ path: "/ctc/4a/application",
407
+ desc: "应用注册、资源与权限配置"
408
+ },
409
+ {
410
+ key: "4a-org",
411
+ label: "组织管理",
412
+ icon: /* @__PURE__ */ e(ke, {}),
413
+ path: "/ctc/4a/org",
414
+ desc: "组织架构与部门管理"
415
+ },
416
+ {
417
+ key: "4a-permission",
418
+ label: "权限管理",
419
+ icon: /* @__PURE__ */ e(ye, {}),
420
+ path: "/ctc/4a/permission",
421
+ desc: "角色、权限点与权限树(角色管理已并入本项)"
422
+ }
423
+ ]
424
+ },
425
+ // 「开发与工具」组已删(2026-11-11):脚本中心/短链管理/WebIDE 容器 并入「基础服务」,
426
+ // 研发中心入口由研发工作台面(/workspace?mode=dev → /lc/*)承担,系统面不再单列。
427
+ // 「产品认知」组已删(2026-11-11):顶栏「产品」大 tab(ProductApp,/z-product/*)完整承载
428
+ // 工坊/小册子/全景/蓝图/统一语言/领域模型/用户链路/设计稿,系统面不再重复出入口;
429
+ // 路由本身不动,旧深链仍可达。
430
+ // 「业务流程」组已删(2026-11-11):流程中心/任务中心/订阅中心/项目中心 四个中心
431
+ // 以二级子菜单并入「基础服务」组(见 MIDDLEWARE_SERVICES_GROUP 内 biz-* 四项)。
432
+ Je,
433
+ et,
434
+ tt
435
+ ], at = [...Ae, Ze];
436
+ function nt({
437
+ activePathOverride: a,
438
+ menuOnly: s = !1,
439
+ visibleGroups: p,
440
+ sidebarWidth: b
441
+ } = {}) {
442
+ const u = ue(), { pathname: E } = W(), y = w(
443
+ () => p ? at.filter((c) => p.includes(c.title)) : Ae,
444
+ [p]
445
+ ), z = se((c) => c.permissionState), G = se((c) => c.currentUser), g = w(
446
+ () => z === "failed" ? y : $e(y, G),
447
+ [y, G, z]
448
+ ), [x, q] = F(/* @__PURE__ */ new Set()), [N, k] = F(/* @__PURE__ */ new Set()), m = w(() => {
449
+ var h;
450
+ const c = a ?? E;
451
+ return ((h = g.flatMap((l) => D(l.items)).find(
452
+ (l) => l.path === c
453
+ )) == null ? void 0 : h.key) ?? null;
454
+ }, [a, E, g]);
455
+ we(() => {
456
+ m && g.forEach((c) => {
457
+ const h = c.items.find(
458
+ (l) => l.key === m || D([l]).some((i) => i.key === m)
459
+ );
460
+ h && (q(
461
+ (l) => l.has(c.title) ? l : new Set(l).add(c.title)
462
+ ), h.children && k(
463
+ (l) => l.has(h.key) ? l : new Set(l).add(h.key)
464
+ ));
465
+ });
466
+ }, [m, g]);
467
+ const Se = (c) => {
468
+ q((h) => {
469
+ const l = new Set(h);
470
+ return l.has(c) ? l.delete(c) : l.add(c), l;
471
+ });
472
+ }, Pe = (c) => {
473
+ k((h) => {
474
+ const l = new Set(h);
475
+ return l.has(c) ? l.delete(c) : l.add(c), l;
476
+ });
477
+ }, K = (c) => {
478
+ c.path && u(c.path);
479
+ }, S = g.flatMap((c) => D(c.items)).find(
480
+ (c) => c.key === m
481
+ );
482
+ return /* @__PURE__ */ r("div", { className: n.container, children: [
483
+ /* @__PURE__ */ r(
484
+ "aside",
485
+ {
486
+ className: n.sidebar,
487
+ style: b ? { width: b, minWidth: b } : void 0,
488
+ children: [
489
+ /* @__PURE__ */ e(Ue, {}),
490
+ /* @__PURE__ */ e("nav", { className: n.menuList, children: g.map((c) => {
491
+ const h = x.has(c.title), l = m ? c.items.findIndex(
492
+ (i) => i.key === m || D([i]).some((_) => _.key === m)
493
+ ) : -1;
494
+ return /* @__PURE__ */ r("div", { className: n.menuGroup, children: [
495
+ /* @__PURE__ */ r(
496
+ "div",
497
+ {
498
+ className: `${n.menuGroupHeader} ${h ? n.menuGroupHeaderOpen : ""} ${l >= 0 ? n.menuGroupHeaderActive : ""}`,
499
+ onClick: () => Se(c.title),
500
+ children: [
501
+ /* @__PURE__ */ e("span", { className: n.menuGroupIcon, children: c.icon }),
502
+ /* @__PURE__ */ e("span", { className: n.menuGroupLabel, children: c.title }),
503
+ /* @__PURE__ */ e("span", { className: n.menuGroupArrow, children: h ? /* @__PURE__ */ e(ce, {}) : /* @__PURE__ */ e(oe, {}) })
504
+ ]
505
+ }
506
+ ),
507
+ h && /* @__PURE__ */ e("ul", { className: n.menuSubList, children: c.items.map((i, _) => {
508
+ const V = l >= 0 && _ <= l;
509
+ if (!i.children)
510
+ return /* @__PURE__ */ e(
511
+ "li",
512
+ {
513
+ className: `${n.menuSubItem} ${V ? n.menuItemOnPath : ""} ${m === i.key ? n.menuSubItemActive : ""}`,
514
+ onClick: () => K(i),
515
+ children: /* @__PURE__ */ r("div", { className: n.menuSubItemPill, children: [
516
+ i.icon ? /* @__PURE__ */ e("span", { className: n.menuSubItemIcon, children: i.icon }) : null,
517
+ /* @__PURE__ */ e("span", { children: i.label })
518
+ ] })
519
+ },
520
+ i.key
521
+ );
522
+ const Y = l === _ ? i.children.findIndex((f) => f.key === m) : -1;
523
+ return /* @__PURE__ */ r(
524
+ "li",
525
+ {
526
+ className: `${n.menuSubGroup} ${V ? n.menuItemOnPath : ""}`,
527
+ children: [
528
+ /* @__PURE__ */ r(
529
+ "div",
530
+ {
531
+ className: `${n.menuSubGroupHeader} ${N.has(i.key) ? n.menuSubGroupHeaderOpen : ""} ${l === _ ? n.menuSubGroupHeaderActive : ""}`,
532
+ onClick: () => Pe(i.key),
533
+ children: [
534
+ /* @__PURE__ */ e("span", { className: n.menuGroupIcon, children: i.icon }),
535
+ /* @__PURE__ */ e("span", { className: n.menuSubGroupLabel, children: i.label }),
536
+ /* @__PURE__ */ e("span", { className: n.menuGroupArrow, children: N.has(i.key) ? /* @__PURE__ */ e(ce, {}) : /* @__PURE__ */ e(oe, {}) })
537
+ ]
538
+ }
539
+ ),
540
+ N.has(i.key) && /* @__PURE__ */ e("ul", { className: n.menuSubList, children: i.children.map((f, Oe) => /* @__PURE__ */ e(
541
+ "li",
542
+ {
543
+ className: `${n.menuSubItem} ${Y >= 0 && Oe <= Y ? n.menuItemOnPath : ""} ${m === f.key ? n.menuSubItemActive : ""}`,
544
+ onClick: () => K(f),
545
+ children: /* @__PURE__ */ r("div", { className: n.menuSubItemPill, children: [
546
+ f.icon ? /* @__PURE__ */ e("span", { className: n.menuSubItemIcon, children: f.icon }) : null,
547
+ /* @__PURE__ */ e("span", { children: f.label })
548
+ ] })
549
+ },
550
+ f.key
551
+ )) })
552
+ ]
553
+ },
554
+ i.key
555
+ );
556
+ }) })
557
+ ] }, c.title);
558
+ }) })
559
+ ]
560
+ }
561
+ ),
562
+ s ? null : /* @__PURE__ */ e("main", { className: n.main, children: S ? /* @__PURE__ */ r("div", { className: n.detailPanel, children: [
563
+ /* @__PURE__ */ r("div", { className: n.detailHeader, children: [
564
+ /* @__PURE__ */ e("div", { className: n.detailIcon, children: S.icon }),
565
+ /* @__PURE__ */ r("div", { children: [
566
+ /* @__PURE__ */ e("h2", { className: n.detailTitle, children: S.label }),
567
+ /* @__PURE__ */ e("p", { className: n.detailDesc, children: S.desc })
568
+ ] })
569
+ ] }),
570
+ /* @__PURE__ */ e("div", { className: n.detailAction, children: /* @__PURE__ */ r(
571
+ "button",
572
+ {
573
+ className: n.goBtn,
574
+ onClick: () => u(S.path),
575
+ children: [
576
+ "进入 ",
577
+ S.label
578
+ ]
579
+ }
580
+ ) })
581
+ ] }) : /* @__PURE__ */ r("div", { className: n.emptyState, children: [
582
+ /* @__PURE__ */ e(I, { style: { fontSize: 48, color: "#ccc" } }),
583
+ /* @__PURE__ */ e("p", { children: "点击左侧菜单进入对应功能模块" })
584
+ ] }) })
585
+ ] });
586
+ }
587
+ const ct = "/api/graph";
588
+ let ie = !1;
589
+ function ot() {
590
+ ie || (ie = !0, Fe(ct));
591
+ }
592
+ const lt = "_shellWrap_11zl4_6", st = "_shell_11zl4_6", it = "_dragBar_11zl4_31", rt = "_dragBarActive_11zl4_52", pt = "_main_11zl4_56", mt = "_productBanner_11zl4_68", ht = "_productBannerLabel_11zl4_80", dt = "_productBannerName_11zl4_86", ut = "_productBannerCode_11zl4_94", bt = "_productBannerBack_11zl4_99", kt = "_empty_11zl4_116", yt = "_emptyIcon_11zl4_126", gt = "_emptyText_11zl4_131", d = {
593
+ shellWrap: lt,
594
+ shell: st,
595
+ dragBar: it,
596
+ dragBarActive: rt,
597
+ main: pt,
598
+ productBanner: mt,
599
+ productBannerLabel: ht,
600
+ productBannerName: dt,
601
+ productBannerCode: ut,
602
+ productBannerBack: bt,
603
+ empty: kt,
604
+ emptyIcon: yt,
605
+ emptyText: gt
606
+ };
607
+ je();
608
+ const t = (a, s) => v(() => a().then((p) => ({ default: p[s] }))), ft = t(() => import("@yuku123/z-ctc-component"), "AccountManagement"), vt = t(() => import("@yuku123/z-ctc-component"), "ApplicationManagement"), At = t(() => import("@yuku123/z-ctc-component"), "AuditPage"), St = t(() => import("@yuku123/z-ctc-component"), "CtcOverview"), Pt = t(() => import("@yuku123/z-ctc-component"), "DictPage"), Ot = t(() => import("@yuku123/z-ctc-component"), "OrgPage"), wt = t(() => import("@yuku123/z-ctc-component"), "PermissionManagement"), re = t(() => import("@yuku123/z-ctc-component"), "SurlManagement"), Nt = t(() => import("@yuku123/z-ctc-component"), "TenantManagement"), _t = t(() => import("@yuku123/z-agent-component"), "AgentAppList"), Mt = t(() => import("@yuku123/z-agent-component"), "AgentDashboard"), Ct = t(() => import("@yuku123/z-agent-component"), "AkManage"), Dt = t(() => import("@yuku123/z-agent-component"), "BucketList"), It = t(() => import("@yuku123/z-agent-component"), "LlmManage"), Bt = t(() => import("@yuku123/z-agent-component"), "McpPage"), Et = t(() => import("@yuku123/z-agent-component"), "ObjectBrowser"), zt = t(() => import("@yuku123/z-agent-component"), "ScriptCenterPage"), O = t(() => import("@yuku123/z-agent-component"), "ScriptProductizationPage"), Gt = t(() => import("@yuku123/z-agent-component"), "SkillMarket"), qt = t(() => import("./index-8VddM67M.js"), "AgentTeamIM"), pe = t(() => import("./index-8VddM67M.js"), "DebugPlayground"), Tt = t(() => import("./index-8VddM67M.js"), "Overview"), me = t(() => import("./index-8VddM67M.js"), "Webide"), Lt = v(() => import("./OnboardingPage-tLarxnp5.js")), Rt = v(() => import("./InvitationManagementPage-6-0uZNuO.js")), xt = t(() => import("@yuku123/z-config-component"), "ConfigApp"), $t = t(() => import("@yuku123/z-task-component"), "TaskApp"), Ut = t(() => import("@yuku123/z-wf-component"), "WorkflowApp"), jt = t(() => import("@yuku123/z-schedule-component"), "ScheduleApp"), Wt = t(() => import("@yuku123/z-mist-component"), "MistApp"), Ht = t(() => import("@yuku123/z-meta-component"), "MetaApp"), Kt = t(() => import("@yuku123/z-msg-component"), "MsgApp"), Vt = t(() => import("@yuku123/z-rpc-component"), "RpcApp"), Yt = t(() => import("@yuku123/z-vector-component"), "VectorApp"), Ft = t(() => import("@yuku123/z-graph-component"), "GraphApp"), Qt = t(() => import("@yuku123/z-gw-component"), "GwApp"), Zt = t(() => import("@yuku123/z-cache-component"), "CacheApp"), Xt = t(() => import("@yuku123/z-mq-component"), "MqApp"), Jt = t(() => import("@yuku123/z-oss-component"), "OssApp"), ea = v(() => import("./ComponentDoc-KyD5wtuW.js").then((a) => a.cn)), ta = v(() => import("./ComponentDoc-KyD5wtuW.js").then((a) => a.co)), aa = t(() => import("@yuku123/z-config-component"), "ComponentDocPage"), na = t(() => import("@yuku123/z-task-component"), "ComponentDocPage"), ca = t(() => import("@yuku123/z-wf-component"), "ComponentDocPage"), oa = t(() => import("@yuku123/z-schedule-component"), "ComponentDocPage"), la = t(() => import("@yuku123/z-mist-component"), "ComponentDocPage"), sa = t(() => import("@yuku123/z-meta-component"), "ComponentDocPage"), ia = t(() => import("@yuku123/z-msg-component"), "ComponentDocPage"), ra = t(() => import("@yuku123/z-rpc-component"), "ComponentDocPage"), pa = t(() => import("@yuku123/z-product-component"), "ComponentDocPage"), ma = t(() => import("@yuku123/z-oss-component"), "ComponentDocPage"), ha = t(() => import("@yuku123/z-vector-component"), "ComponentDocPage"), da = t(() => import("@yuku123/z-graph-component"), "ComponentDocPage"), ua = t(() => import("@yuku123/z-gw-component"), "ComponentDocPage"), ba = t(() => import("@yuku123/z-cache-component"), "ComponentDocPage"), ka = t(() => import("@yuku123/z-mq-component"), "ComponentDocPage"), ya = t(() => import("@yuku123/z-ctc-component"), "ComponentDocPage"), ga = t(() => import("@yuku123/z-agent-component"), "ComponentDocPage"), fa = t(() => import("@yuku123/z-lc-component"), "ComponentDocPage"), va = t(() => import("@yuku123/z-qa-component"), "ComponentDocPage"), Aa = v(() => import("./AdminModuleContent-9gH_G78B.js"));
609
+ function Sa() {
610
+ return ot(), /* @__PURE__ */ e(Ft, {});
611
+ }
612
+ const Pa = v(() => import("./ComponentDoc-KyD5wtuW.js").then((a) => a.cm)), he = v(() => import("@yuku123/z-qa-component"));
613
+ function Oa() {
614
+ return /* @__PURE__ */ r("div", { className: d.empty, children: [
615
+ /* @__PURE__ */ e("div", { className: d.emptyIcon, children: "📋" }),
616
+ /* @__PURE__ */ e("div", { className: d.emptyText, children: "请从左侧菜单选择模块" })
617
+ ] });
618
+ }
619
+ function wa() {
620
+ const { pathname: a } = W();
621
+ return /* @__PURE__ */ e(o, { to: a.replace(/^\/product/, "/z-product"), replace: !0 });
622
+ }
623
+ const Na = [
624
+ // ─── 顶层 / 概览 ───
625
+ { path: "/overview", element: /* @__PURE__ */ e(Tt, {}) },
626
+ // ─── 4A 中心 (/ctc/*) ───
627
+ { path: "/ctc", element: /* @__PURE__ */ e(o, { to: "/ctc/4a/account", replace: !0 }) },
628
+ { path: "/ctc/4a/account", element: /* @__PURE__ */ e(ft, {}) },
629
+ // 角色管理已并入权限管理(CEO 2026-11-11):角色是权限点的命名集合,
630
+ // 拆成两个顶级菜单时用户得在两张表之间来回对照才能回答「这角色能干什么」。
631
+ // 老深链 /ctc/4a/role 仍然可达 —— 落到合并页的「角色」视图。
632
+ { path: "/ctc/4a/role", element: /* @__PURE__ */ e(o, { to: "/ctc/4a/permission?view=roles", replace: !0 }) },
633
+ { path: "/ctc/4a/application", element: /* @__PURE__ */ e(vt, {}) },
634
+ { path: "/ctc/4a/tenant", element: /* @__PURE__ */ e(Nt, {}) },
635
+ { path: "/ctc/4a/org", element: /* @__PURE__ */ e(Ot, {}) },
636
+ { path: "/ctc/4a/permission", element: /* @__PURE__ */ e(wt, {}) },
637
+ { path: "/ctc/4a/surl", element: /* @__PURE__ */ e(re, {}) },
638
+ { path: "/ctc/dict", element: /* @__PURE__ */ e(Pt, {}) },
639
+ { path: "/ctc/overview", element: /* @__PURE__ */ e(St, {}) },
640
+ { path: "/ctc/audit", element: /* @__PURE__ */ e(At, {}) },
641
+ { path: "/ctc/webide", element: /* @__PURE__ */ e(me, {}) },
642
+ { path: "/ctc/agent-team", element: /* @__PURE__ */ e(qt, {}) },
643
+ { path: "/ctc/invitation", element: /* @__PURE__ */ e(Rt, {}) },
644
+ { path: "/onboarding", element: /* @__PURE__ */ e(Lt, {}) },
645
+ // ─── 智能中心 (/ai/*) ───
646
+ { path: "/ai", element: /* @__PURE__ */ e(o, { to: "/ai/agent/app", replace: !0 }) },
647
+ { path: "/ai/agent", element: /* @__PURE__ */ e(o, { to: "/ai/agent/app", replace: !0 }) },
648
+ { path: "/ai/agent/app", element: /* @__PURE__ */ e(_t, {}) },
649
+ { path: "/ai/llm", element: /* @__PURE__ */ e(It, {}) },
650
+ { path: "/ai/llm/provider", element: /* @__PURE__ */ e(o, { to: "/ai/llm", replace: !0 }) },
651
+ { path: "/ai/llm/model", element: /* @__PURE__ */ e(o, { to: "/ai/llm", replace: !0 }) },
652
+ { path: "/ai/usage", element: /* @__PURE__ */ e(o, { to: "/ai/llm", replace: !0 }) },
653
+ { path: "/ai/ak", element: /* @__PURE__ */ e(Ct, {}) },
654
+ { path: "/ai/mcp", element: /* @__PURE__ */ e(Bt, {}) },
655
+ { path: "/ai/skill", element: /* @__PURE__ */ e(Gt, {}) },
656
+ { path: "/ai/oss", element: /* @__PURE__ */ e(o, { to: "/ai/oss/bucket", replace: !0 }) },
657
+ { path: "/ai/oss/bucket", element: /* @__PURE__ */ e(Dt, {}) },
658
+ { path: "/ai/oss/bucket/:bucketName", element: /* @__PURE__ */ e(Et, {}) },
659
+ { path: "/ai/trace", element: /* @__PURE__ */ e(pe, {}) },
660
+ { path: "/ai/trace/debug", element: /* @__PURE__ */ e(pe, {}) },
661
+ { path: "/ai/dashboard", element: /* @__PURE__ */ e(Mt, {}) },
662
+ // 多 Agent 实例 / 模板市场已下线 (2026-10-22): 模板并入 Agent 应用页,
663
+ // 旧深链重定向, 别再回到独立菜单
664
+ { path: "/ai/template", element: /* @__PURE__ */ e(o, { to: "/ai/agent/app", replace: !0 }) },
665
+ { path: "/ai/agent-instance", element: /* @__PURE__ */ e(o, { to: "/ai/agent/app", replace: !0 }) },
666
+ { path: "/ai/agent/instances", element: /* @__PURE__ */ e(o, { to: "/ai/agent/app", replace: !0 }) },
667
+ // ─── 配置中心 ───
668
+ { path: "/config/*", element: /* @__PURE__ */ e(xt, {}) },
669
+ // ─── 任务中心 ───
670
+ // 模块根路径要重定向到默认页:通配 /task/* 匹配不到裸 /task(matchPattern 要求
671
+ // 前缀带斜杠),落到 SystemShellEmpty 就是一句"请从左侧菜单选择模块"的空壳。
672
+ { path: "/task", element: /* @__PURE__ */ e(o, { to: "/task/dashboard", replace: !0 }) },
673
+ { path: "/task/*", element: /* @__PURE__ */ e($t, {}) },
674
+ // ─── 流程中心 ───
675
+ { path: "/workflow", element: /* @__PURE__ */ e(o, { to: "/workflow/dashboard", replace: !0 }) },
676
+ { path: "/workflow/*", element: /* @__PURE__ */ e(Ut, {}) },
677
+ // ─── 调度中心 ───
678
+ // 默认页是 jobs:z-schedule-component 的路由只有 jobs / group / log,没有 dashboard。
679
+ { path: "/schedule", element: /* @__PURE__ */ e(o, { to: "/schedule/jobs", replace: !0 }) },
680
+ { path: "/schedule/*", element: /* @__PURE__ */ e(jt, {}) },
681
+ // ─── 密钥中心 ───
682
+ { path: "/mist/*", element: /* @__PURE__ */ e(Wt, {}) },
683
+ // ─── 中间件(大需求 004)— 2026-11-11 中间件面整并入系统面「基础服务」分组,
684
+ // 系统面成为这批前缀的唯一宿主(原 MiddlewareWorkbench 已删)。菜单在 SystemWorkbench
685
+ // 「基础服务」分组,数据真源 MiddlewareWorkbench/menuData.tsx;前缀口径与
686
+ // businessFace.ts(这些前缀现归系统面)一一对齐。
687
+ { path: "/meta", element: /* @__PURE__ */ e(o, { to: "/meta/app", replace: !0 }) },
688
+ { path: "/meta/*", element: /* @__PURE__ */ e(Ht, {}) },
689
+ { path: "/msg", element: /* @__PURE__ */ e(o, { to: "/msg/inbox", replace: !0 }) },
690
+ { path: "/msg/*", element: /* @__PURE__ */ e(Kt, {}) },
691
+ { path: "/rpc", element: /* @__PURE__ */ e(o, { to: "/rpc/service", replace: !0 }) },
692
+ { path: "/rpc/*", element: /* @__PURE__ */ e(Vt, {}) },
693
+ // 向量检索:REST 面是内嵌 QdrantRestServer(非 Spring MVC),经 z-opc 的 /api/vector/** 代理出去
694
+ { path: "/vector", element: /* @__PURE__ */ e(o, { to: "/vector/collections", replace: !0 }) },
695
+ { path: "/vector/*", element: /* @__PURE__ */ e(Yt, {}) },
696
+ // 图数据库:REST 面是内嵌 GraphControlServer,经 z-opc 的 /api/graph/** 代理出去
697
+ // ⚠ 内嵌端口是 8091 不是 8090:8090 归一个外部进程,且被 BizKnowledgeGraphService 当业务依赖在用
698
+ { path: "/graph", element: /* @__PURE__ */ e(o, { to: "/graph/schema", replace: !0 }) },
699
+ { path: "/graph/*", element: /* @__PURE__ */ e(Sa, {}) },
700
+ // 网关:admin 面是 z-gw-admin 的原生 Spring MVC;页面一律走 z-opc 自己的环回代理 GET /api/gw/**
701
+ { path: "/gw", element: /* @__PURE__ */ e(o, { to: "/gw/routes", replace: !0 }) },
702
+ { path: "/gw/*", element: /* @__PURE__ */ e(Qt, {}) },
703
+ // 缓存:/api/cache/** 是 CacheProxyController 在 JVM 内读 MemoryStore + 只读命令拼出的结构化 JSON
704
+ { path: "/cache", element: /* @__PURE__ */ e(o, { to: "/cache/overview", replace: !0 }) },
705
+ { path: "/cache/*", element: /* @__PURE__ */ e(Zt, {}) },
706
+ // 消息队列::9877/:10912 是 z-mq-remoting 的 Netty 私有二进制协议,/api/mq/** 是协议适配器
707
+ { path: "/mq", element: /* @__PURE__ */ e(o, { to: "/mq/instance", replace: !0 }) },
708
+ { path: "/mq/*", element: /* @__PURE__ */ e(Xt, {}) },
709
+ // 知识库旧中间件面入口(2026-11-11 摘除菜单):认知工作台的「知识管理」段
710
+ // (/z-kb/*,CognitionWorkbench) 已完整承载 z-kb,旧深链一律重定向过去。
711
+ { path: "/kb/*", element: /* @__PURE__ */ e(o, { to: "/z-kb/dashboard", replace: !0 }) },
712
+ // 对象存储(z-oss):走 z-opc 侧 /api/oss-admin/**,不再需要 AK/SK 下发
713
+ { path: "/oss", element: /* @__PURE__ */ e(o, { to: "/oss/buckets", replace: !0 }) },
714
+ { path: "/oss/*", element: /* @__PURE__ */ e(Jt, {}) },
715
+ // ─── 订阅中心 ───
716
+ { path: "/subscribe", element: /* @__PURE__ */ e(o, { to: "/subscribe/list", replace: !0 }) },
717
+ { path: "/subscribe/*", element: /* @__PURE__ */ e(ea, {}) },
718
+ // ─── 产品工作台 z-product (2026-10-21 接入) ───
719
+ // /z-product/* 由 z-product 组件自己的 ProductApp 渲染(内部按 manifest 的绝对路径手工匹配,
720
+ // 不用嵌套 <Routes>:这里没有 Route 父上下文,绝对路径不会被再拼一次父前缀)。
721
+ // §14:z-product 的菜单 key / 路由 path 一律带产品名前缀(/z-product/xxx),
722
+ // 避免 /board、/products 这类短路径跟宿主自己的同名路由撞车。
723
+ // 产品域的默认落地页是工坊:它是「一个面板干完产品业务开发」的入口,
724
+ // 全景/蓝图是看板,不是第一动作。
725
+ { path: "/z-product", element: /* @__PURE__ */ e(o, { to: "/z-product/atelier", replace: !0 }) },
726
+ { path: "/z-product/*", element: /* @__PURE__ */ e(Ke, { basePath: "/z-product" }) },
727
+ // 旧前缀 /product/* → 新前缀 /z-product/*:§14 前缀化之前的老 URL 仍可达(书签 / 旧分享链接)。
728
+ { path: "/product", element: /* @__PURE__ */ e(o, { to: "/z-product/atelier", replace: !0 }) },
729
+ { path: "/product/*", element: /* @__PURE__ */ e(wa, {}) },
730
+ // ─── 项目中心 ───
731
+ { path: "/project", element: /* @__PURE__ */ e(o, { to: "/project/list", replace: !0 }) },
732
+ { path: "/project/*", element: /* @__PURE__ */ e(ta, {}) },
733
+ // ─── 脚本中心 (/script/*) — FEATURE052 ───
734
+ { path: "/script", element: /* @__PURE__ */ e(o, { to: "/script/manage", replace: !0 }) },
735
+ { path: "/script/manage", element: /* @__PURE__ */ e(zt, {}) },
736
+ { path: "/script/productization", element: /* @__PURE__ */ e(O, {}) },
737
+ // 脚本治理五条(2026-11-11 随中间件面并入):组件自带 5 个 Tab,
738
+ // 按「一个能力一条菜单」把 Tab 键透传成 initialTab,精确路径匹配先于 /script 通配。
739
+ { path: "/script/keys", element: /* @__PURE__ */ e(O, { initialTab: "apikey" }) },
740
+ { path: "/script/monitor", element: /* @__PURE__ */ e(O, { initialTab: "monitor" }) },
741
+ { path: "/script/quota", element: /* @__PURE__ */ e(O, { initialTab: "quota" }) },
742
+ { path: "/script/version", element: /* @__PURE__ */ e(O, { initialTab: "version" }) },
743
+ { path: "/script/tag", element: /* @__PURE__ */ e(O, { initialTab: "tag" }) },
744
+ // ─── 工具中心 (/z-tool/*) — FEATURE054 ───
745
+ { path: "/z-tool", element: /* @__PURE__ */ e(o, { to: "/z-tool/curl", replace: !0 }) },
746
+ { path: "/z-tool/curl", element: /* @__PURE__ */ e(re, {}) },
747
+ { path: "/z-tool/webide", element: /* @__PURE__ */ e(me, {}) },
748
+ // ─── 测试中心 (/test/*) — FEATURE061 ───
749
+ { path: "/test", element: /* @__PURE__ */ e(o, { to: "/test/qa/dashboard", replace: !0 }) },
750
+ { path: "/test/mock", element: /* @__PURE__ */ e(Pa, {}) },
751
+ // QAApp 按 pathname 手动分发子页(非嵌套 <Routes>),挂载前缀推断依赖
752
+ // 路径里有 /qa 段。?mode=test 合成挂载时真实 pathname 是 /workspace(无 qa 段)
753
+ // ⇒ 显式传 mountPath, 否则被库 default 分支 <Navigate> 到 /dashboard(2026-11-11 实测)。
754
+ { path: "/test/qa", element: /* @__PURE__ */ e(he, { mountPath: "/test/qa" }) },
755
+ { path: "/test/qa/*", element: /* @__PURE__ */ e(he, { mountPath: "/test/qa" }) },
756
+ // ─── 低代码 ───
757
+ // /lc/* 刻意不在这里注册。它早就迁到 src/lc/(TS 重写), 挂载点是
758
+ // main.jsx 的 <Route path="/lc/*" element={<ZTeamApp forcedMode="dev"/>}/>,
759
+ // 由 DevWorkbench 把 pathname 原样交给 @/lc 自己的嵌套 <Routes>。
760
+ // 本表早先还挂着一行 {path:'/lc/*', element:<LcIndex/>}, 它的 import 写的是
761
+ // '@/pages/lc' —— 该别名解析到 src/zteam/pages/lc(不存在), 真身在 src/lc,
762
+ // 于是这行既解析不了、又因 main.jsx 先消费了 /lc/* 而永远不可达。
763
+ // /form/:entity 与 /form/_model 是 z-lc Phase 1 手写原型的两条 URL
764
+ // (LowCodeModel 实体字段编辑器 / LowCodeRuntime 通用 CRUD), 现已由
765
+ // @yuku123/z-lc-component 承接 —— 它是同一套 /api/lc 后端的完整前端客户,
766
+ // 能力严格更强(designer 模型编辑、workspace 七种视图 CRUD、admin 全套、
767
+ // db-import、AI 建模), 挂在 main.jsx 的 <Route path="/lc/*"> 下经
768
+ // DevWorkbench 的 <LcApp/> 渲染。
769
+ //
770
+ // 不做逐条映射: z-lc 的工作区路由是 /lc/{appCode}/{entityCode}/{viewType},
771
+ // 比 /form/{entityCode} 多一层 appCode, 旧 URL 里没有这个信息, 无法还原。
772
+ // 故统一重定向到应用列表, 由用户自行进入对应应用。
773
+ { path: "/form/:entity", element: /* @__PURE__ */ e(o, { to: "/lc/apps", replace: !0 }) },
774
+ // ─── 各域组件文档(lead 008 §7)───
775
+ // 放在本表末尾即可:matchSystemPath 是「先全表精确匹配、再全表通配匹配」,
776
+ // 所以 /config/docs 这类精确路径**不会**被上面的 /config/* 吃掉。
777
+ //
778
+ // 为什么路径用宿主前缀(/config/docs)而不是各域 manifest 里的 /z-config/docs:
779
+ // manifest 的 routes 是给**独立壳**用的(suit 里 <Route path={r.path}> 直接铺);
780
+ // 工作台把各域挂在宿主前缀下(/config/* ⇒ ConfigApp 内部相对路由),
781
+ // 两套路径对不上 ⇒ manifest 的 routes 在工作台里不生效,文档页会 404。
782
+ // 这里统一按**宿主前缀**挂,各域自己的 manifest 路径仍然保留给独立壳用。
783
+ //
784
+ // §14 铁律(菜单 key 必须带产品名前缀)针对的是**同一宿主内多套件共存**的撞车问题;
785
+ // 这里每个域的宿主前缀本身就已经是产品名(/config / /task / /workflow …),
786
+ // 且各域之间前缀互不相同 ⇒ 不存在撞车,不需要再加 z- 前缀。
787
+ { path: "/config/docs", element: /* @__PURE__ */ e(aa, {}) },
788
+ { path: "/task/docs", element: /* @__PURE__ */ e(na, {}) },
789
+ { path: "/workflow/docs", element: /* @__PURE__ */ e(ca, {}) },
790
+ { path: "/schedule/docs", element: /* @__PURE__ */ e(oa, {}) },
791
+ { path: "/mist/docs", element: /* @__PURE__ */ e(la, {}) },
792
+ { path: "/meta/docs", element: /* @__PURE__ */ e(sa, {}) },
793
+ { path: "/msg/docs", element: /* @__PURE__ */ e(ia, {}) },
794
+ { path: "/rpc/docs", element: /* @__PURE__ */ e(ra, {}) },
795
+ { path: "/z-product/docs", element: /* @__PURE__ */ e(pa, {}) },
796
+ { path: "/oss/docs", element: /* @__PURE__ */ e(ma, {}) },
797
+ { path: "/vector/docs", element: /* @__PURE__ */ e(ha, {}) },
798
+ { path: "/graph/docs", element: /* @__PURE__ */ e(da, {}) },
799
+ { path: "/gw/docs", element: /* @__PURE__ */ e(ua, {}) },
800
+ { path: "/cache/docs", element: /* @__PURE__ */ e(ba, {}) },
801
+ { path: "/mq/docs", element: /* @__PURE__ */ e(ka, {}) },
802
+ { path: "/ctc/docs", element: /* @__PURE__ */ e(ya, {}) },
803
+ { path: "/ai/docs", element: /* @__PURE__ */ e(ga, {}) },
804
+ { path: "/lc/docs", element: /* @__PURE__ */ e(fa, {}) },
805
+ { path: "/test/qa/docs", element: /* @__PURE__ */ e(va, {}) }
806
+ ], _a = [
807
+ // 模块根重定向到默认页(admin 面的无参兜底同样是场景构建)
808
+ { path: "/operation", element: /* @__PURE__ */ e(o, { to: "/operation/scenario", replace: !0 }) },
809
+ ...ve().map((a) => ({
810
+ path: `/operation/${a.key}`,
811
+ element: /* @__PURE__ */ e(Aa, { menuKey: a.key })
812
+ }))
813
+ ], de = [...Na, ..._a];
814
+ function Ma(a) {
815
+ for (const s of de)
816
+ if (s.path === a) return s.element;
817
+ for (const s of de)
818
+ if (Ca(s.path, a)) return s.element;
819
+ return /* @__PURE__ */ e(Oa, {});
820
+ }
821
+ function Ca(a, s) {
822
+ if (!a.includes("*") && !a.includes(":")) return !1;
823
+ const p = "^" + a.replace(/[.+?^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*").replace(/:([a-zA-Z_][a-zA-Z0-9_]*)/g, "[^/]+") + "$";
824
+ return new RegExp(p).test(s);
825
+ }
826
+ function $a() {
827
+ const a = ue(), { pathname: s, search: p } = W(), b = s.startsWith("/test/") || (() => {
828
+ try {
829
+ return new URLSearchParams(p).get("mode") === "test";
830
+ } catch {
831
+ return !1;
832
+ }
833
+ })(), u = w(() => {
834
+ try {
835
+ const k = new URLSearchParams(p), m = k.get("product");
836
+ return m ? { code: m, name: k.get("productName") || m } : null;
837
+ } catch {
838
+ return null;
839
+ }
840
+ }, [p]), E = Ne(() => {
841
+ if (!u) return;
842
+ const k = new URLSearchParams();
843
+ k.set("product", u.code), u.name && k.set("productName", u.name), a(`/workspace?mode=product&${k.toString()}`);
844
+ }, [u, a]), y = b && !s.startsWith("/test") ? "/test/qa/dashboard" : s, z = w(() => y, [y]), G = w(() => Ma(y), [y]), {
845
+ width: g,
846
+ dragging: x,
847
+ onHandlePointerDown: q,
848
+ resetWidth: N
849
+ } = He("zteam.sidebar.system", 220, 200, 480);
850
+ return /* @__PURE__ */ r("div", { className: d.shellWrap, children: [
851
+ u && /* @__PURE__ */ r("div", { className: d.productBanner, children: [
852
+ /* @__PURE__ */ e("span", { className: d.productBannerLabel, children: "📦 当前产品" }),
853
+ /* @__PURE__ */ e("span", { className: d.productBannerName, title: u.name, children: u.name }),
854
+ /* @__PURE__ */ e("span", { className: d.productBannerCode, children: u.code }),
855
+ /* @__PURE__ */ e("button", { type: "button", className: d.productBannerBack, onClick: E, children: "← 返回产品工作台" })
856
+ ] }),
857
+ /* @__PURE__ */ r("div", { className: d.shell, children: [
858
+ /* @__PURE__ */ e(
859
+ nt,
860
+ {
861
+ activePathOverride: z,
862
+ menuOnly: !0,
863
+ visibleGroups: b ? ["测试中心"] : void 0,
864
+ sidebarWidth: g
865
+ }
866
+ ),
867
+ /* @__PURE__ */ e(
868
+ "div",
869
+ {
870
+ className: `${d.dragBar} ${x ? d.dragBarActive : ""}`,
871
+ onPointerDown: q,
872
+ onDoubleClick: N,
873
+ title: "拖动调整菜单宽度,双击恢复默认"
874
+ }
875
+ ),
876
+ /* @__PURE__ */ r("main", { className: d.main, children: [
877
+ /* @__PURE__ */ e(Ve, {}),
878
+ /* @__PURE__ */ e(Ye, { resetKey: s, children: /* @__PURE__ */ e(_e, { fallback: /* @__PURE__ */ e("div", { className: d.empty, children: "加载中…" }), children: G }) })
879
+ ] })
880
+ ] })
881
+ ] });
882
+ }
883
+ export {
884
+ $a as default
885
+ };