@yuku123/z-team-component 0.2.140 → 0.2.142

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