@yuku123/z-team-component 0.2.29 → 0.2.31

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