@yuku123/z-team-component 0.2.133 → 0.2.135
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.
- package/dist/{index-BkzBYfhO.js → AdminModuleContent-DHCn4OpR.js} +13552 -14053
- package/dist/{ChangeLogView-SwacGpsw.js → ChangeLogView-Cc5cYmcz.js} +1 -1
- package/dist/{ComponentDoc-Dh5YhLCI.js → ComponentDoc-BAUII4UZ.js} +707 -713
- package/dist/{InvitationManagementPage-CjEcLOGB.js → InvitationManagementPage-BgY1jxQB.js} +1 -1
- package/dist/{OnboardingPage-DvNt71kX.js → OnboardingPage-CckzpaI0.js} +2 -2
- package/dist/{ScheduledTasks-COgb4MZJ.js → ScheduledTasks-DZSEnuIF.js} +6 -6
- package/dist/SystemShell-DCRIL4Rh.js +978 -0
- package/dist/{admin-logs-CExsxQ5h.js → admin-logs-DEawvNOd.js} +1 -1
- package/dist/{api-DXw93E7c.js → api--xHkMnrY.js} +1 -1
- package/dist/{api-C9kTgVc2.js → api-B-nnjGsa.js} +1 -1
- package/dist/{createWorkspaceWsHandler-BwDUTYXH.js → createWorkspaceWsHandler-y6pRWLoa.js} +3 -3
- package/dist/{index-CntZHojY.js → index-4R_QcR8P.js} +2 -2
- package/dist/{index-CXEYA7rt.js → index-B2ztJXV3.js} +2 -2
- package/dist/{index-CF3xDZ7q.js → index-BDUHHaoY.js} +4 -4
- package/dist/{index-BTJ83JLl.js → index-BIffImVM.js} +473 -358
- package/dist/{index-DZ0fYNO9.js → index-C09THX8u.js} +11 -11
- package/dist/{index-B2Dfbi8J.js → index-C4cx5Qxu.js} +2 -2
- package/dist/{index-COobH4Vi.js → index-C7ng_cdZ.js} +1 -1
- package/dist/{index-D2DFKRUf.js → index-C9LqX4Lg.js} +1 -1
- package/dist/{index-DM6XeWFk.js → index-CMLlvrEW.js} +2384 -2417
- package/dist/{index-DLK7DuCr.js → index-COn912sj.js} +3 -3
- package/dist/{index-9rfSVSTh.js → index-CcHrWE4P.js} +2 -2
- package/dist/index-Cxoup7V8.js +139 -0
- package/dist/{index-B3uLo8-F.js → index-CzS_q6Tn.js} +3 -3
- package/dist/{index-Ci6_CBwE.js → index-DWrEAa8-.js} +3 -3
- package/dist/{index-DmV6xR7C.js → index-DePIQVt9.js} +3 -3
- package/dist/index-DlBN-ou4.js +311 -0
- package/dist/{index-ftuPuj0s.js → index-Do3pyigD.js} +1 -1
- package/dist/{index-D_J1ZCy8.js → index-DtgTLML8.js} +3 -3
- package/dist/{index-t2nMJUPu.js → index-DxXcTAH4.js} +1 -1
- package/dist/index-H7hP7Fmj.js +228 -0
- package/dist/{index-Bs9odXxd.js → index-LnUf9Vil.js} +6 -6
- package/dist/{index-DMfYPIkB.js → index-XWWknPNw.js} +2 -2
- package/dist/{index-Ceu-yckM.js → index-frmk-zNf.js} +12 -12
- package/dist/{index-mEgmHNRO.js → index-ztXjGIJk.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{instance-DD3kbAUh.js → instance-DL4u5k9c.js} +1 -1
- package/dist/{menuPermission-v0881tid.js → menuPermission-CA_atlfk.js} +3 -3
- package/dist/menuTree-Ctcz41N8.js +303 -0
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-Cug0T_7J.js → send-default-agent-team-message-BfBVm9AO.js} +1 -1
- package/dist/{sso-user-CnVXqYR7.js → sso-user-Dr8_-Sxd.js} +1 -1
- package/dist/{training-BS23m-yy.js → training-CcGUA5KC.js} +1 -1
- package/dist/{webide-BPJ1IpZq.js → webide-C2JfQ-Je.js} +3 -3
- package/dist/z-team-component.css +1 -1
- package/package.json +2 -1
- package/dist/SystemShell-CSXcsiNp.js +0 -752
- package/dist/index-BNPq7yBg.js +0 -147
- package/dist/index-BoY7L8C4.js +0 -111
- package/dist/index-CU6jFFl5.js +0 -112
- package/dist/index-CZCKpsry.js +0 -607
- package/dist/useSidebarResize--Avuabb1.js +0 -46
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import { useCallback as m, useState as p, useRef as h, useEffect as I } from "react";
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
import { BarChartOutlined as O, MonitorOutlined as f, SettingOutlined as w, ControlOutlined as _, ToolOutlined as N, BookOutlined as M, ThunderboltOutlined as S, CodeSandboxOutlined as T } from "@ant-design/icons";
|
|
4
|
+
function C(i, t, l = 176, o = 480) {
|
|
5
|
+
const s = m(
|
|
6
|
+
(e) => {
|
|
7
|
+
const a = window.innerWidth > 0 ? Math.floor(window.innerWidth / 2) : o, d = Math.max(l, Math.min(o, a));
|
|
8
|
+
return Math.min(Math.max(l, Math.round(e)), d);
|
|
9
|
+
},
|
|
10
|
+
[l, o]
|
|
11
|
+
), [r, y] = p(() => {
|
|
12
|
+
try {
|
|
13
|
+
const e = Number(localStorage.getItem(i));
|
|
14
|
+
if (Number.isFinite(e) && e > 0) return s(e);
|
|
15
|
+
} catch {
|
|
16
|
+
}
|
|
17
|
+
return t;
|
|
18
|
+
}), [c, g] = p(!1), u = h(r);
|
|
19
|
+
u.current = r;
|
|
20
|
+
const b = h(null), E = m((e) => {
|
|
21
|
+
e.preventDefault(), b.current = { startX: e.clientX, startW: u.current }, g(!0);
|
|
22
|
+
}, []), v = m(() => {
|
|
23
|
+
y(t);
|
|
24
|
+
try {
|
|
25
|
+
localStorage.setItem(i, String(t));
|
|
26
|
+
} catch {
|
|
27
|
+
}
|
|
28
|
+
}, [t, i]);
|
|
29
|
+
return I(() => {
|
|
30
|
+
if (!c) return;
|
|
31
|
+
const e = (d) => {
|
|
32
|
+
const k = b.current;
|
|
33
|
+
k && y(s(k.startW + d.clientX - k.startX));
|
|
34
|
+
}, a = () => {
|
|
35
|
+
b.current = null, g(!1);
|
|
36
|
+
try {
|
|
37
|
+
localStorage.setItem(i, String(u.current));
|
|
38
|
+
} catch {
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
return window.addEventListener("pointermove", e), window.addEventListener("pointerup", a), window.addEventListener("pointercancel", a), document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", () => {
|
|
42
|
+
window.removeEventListener("pointermove", e), window.removeEventListener("pointerup", a), window.removeEventListener("pointercancel", a), document.body.style.cursor = "", document.body.style.userSelect = "";
|
|
43
|
+
};
|
|
44
|
+
}, [c, s, i]), { width: r, dragging: c, onHandlePointerDown: E, resetWidth: v };
|
|
45
|
+
}
|
|
46
|
+
const W = [
|
|
47
|
+
{
|
|
48
|
+
key: "statistics",
|
|
49
|
+
label: "业务指标",
|
|
50
|
+
icon: /* @__PURE__ */ n(O, {}),
|
|
51
|
+
permission: "STATISTICS_VIEW",
|
|
52
|
+
children: [
|
|
53
|
+
{ key: "statistics-personal", label: "个人指标" },
|
|
54
|
+
{ key: "statistics-global", label: "全局指标" },
|
|
55
|
+
{ key: "statistics-tech", label: "技术指标" },
|
|
56
|
+
{ key: "statistics-scenario", label: "场景指标" },
|
|
57
|
+
{ key: "statistics-business", label: "业务指标" },
|
|
58
|
+
{
|
|
59
|
+
key: "ops-report",
|
|
60
|
+
label: "运营日报",
|
|
61
|
+
permission: "OPS_REPORT_MANAGE"
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
key: "statistics-runtime-monitor",
|
|
67
|
+
label: "运行指标",
|
|
68
|
+
icon: /* @__PURE__ */ n(f, {}),
|
|
69
|
+
permission: "RUNTIME_MONITOR_VIEW",
|
|
70
|
+
children: [
|
|
71
|
+
{
|
|
72
|
+
key: "statistics-runtime-monitor-config",
|
|
73
|
+
label: "运行配置",
|
|
74
|
+
permission: "RUNTIME_MONITOR_MANAGE"
|
|
75
|
+
},
|
|
76
|
+
{ key: "statistics-runtime-monitor-task", label: "任务监控" },
|
|
77
|
+
{ key: "statistics-runtime-monitor-llm", label: "调用监控" },
|
|
78
|
+
{ key: "statistics-runtime-monitor-schedule", label: "调度监控" },
|
|
79
|
+
{
|
|
80
|
+
key: "audit-log-tool-call",
|
|
81
|
+
label: "工具监控",
|
|
82
|
+
permission: "AUDIT_LOG_VIEW"
|
|
83
|
+
},
|
|
84
|
+
{ key: "msghub", label: "消息监控" },
|
|
85
|
+
{ key: "statistics-scenario-cost", label: "成本监控" }
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
key: "collaboration-config",
|
|
90
|
+
label: "协同配置",
|
|
91
|
+
icon: /* @__PURE__ */ n(w, {}),
|
|
92
|
+
permission: "COLLABORATION_VIEW",
|
|
93
|
+
children: [
|
|
94
|
+
{
|
|
95
|
+
key: "agent",
|
|
96
|
+
label: "智能管理",
|
|
97
|
+
children: [
|
|
98
|
+
{ key: "agent-config", label: "智能配置" },
|
|
99
|
+
{ key: "skill", label: "技能管理" },
|
|
100
|
+
{ key: "agent-identity", label: "身份绑定" },
|
|
101
|
+
{ key: "agent-tool-binding", label: "工具绑定" }
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
key: "ft-scenario",
|
|
106
|
+
label: "场景管理",
|
|
107
|
+
children: [
|
|
108
|
+
{ key: "scenario", label: "场景构建" },
|
|
109
|
+
{ key: "scenario-instance", label: "场景实例" },
|
|
110
|
+
{ key: "scenario-template", label: "渲染模板" },
|
|
111
|
+
{ key: "tag", label: "场景标签" }
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
{ key: "tool", label: "工具管理" }
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
key: "ops-config",
|
|
119
|
+
label: "运营配置",
|
|
120
|
+
icon: /* @__PURE__ */ n(_, {}),
|
|
121
|
+
permission: "OPS_CONFIG_VIEW",
|
|
122
|
+
children: [
|
|
123
|
+
{ key: "human", label: "成员画像" },
|
|
124
|
+
{ key: "oncall", label: "值班管理" },
|
|
125
|
+
{ key: "permission", label: "权限管理", permission: "PERMISSION_MANAGE" },
|
|
126
|
+
{
|
|
127
|
+
key: "announcement",
|
|
128
|
+
label: "公告管理",
|
|
129
|
+
permission: "ANNOUNCEMENT_MANAGE"
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
key: "ops-maintain",
|
|
135
|
+
label: "运维配置",
|
|
136
|
+
icon: /* @__PURE__ */ n(N, {}),
|
|
137
|
+
// 父组不设权限门槛:子项各自持权(定时任务=运行指标域,消息渠道=运营配置域),
|
|
138
|
+
// 任一子项存活即渲染分组
|
|
139
|
+
children: [
|
|
140
|
+
{
|
|
141
|
+
key: "schedule-task",
|
|
142
|
+
label: "定时任务",
|
|
143
|
+
permission: "RUNTIME_MONITOR_VIEW"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
key: "notify-channel",
|
|
147
|
+
label: "消息渠道",
|
|
148
|
+
permission: "OPS_CONFIG_VIEW"
|
|
149
|
+
},
|
|
150
|
+
// 系统参数(原「运营配置」下「通用配置」):接口侧有 OPS_CONFIG_VIEW/MANAGE 鉴权,
|
|
151
|
+
// 移出原分组后子项自持 OPS_CONFIG_VIEW(双门槛模式)。key 保留,深链兼容。
|
|
152
|
+
{
|
|
153
|
+
key: "generic-config",
|
|
154
|
+
label: "系统参数",
|
|
155
|
+
permission: "OPS_CONFIG_VIEW"
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
key: "knowledge",
|
|
161
|
+
label: "知识沉淀",
|
|
162
|
+
icon: /* @__PURE__ */ n(M, {}),
|
|
163
|
+
permission: "KNOWLEDGE_VIEW",
|
|
164
|
+
// 二级分二域:知识源头(知识与经验的产生/沉淀入口)与知识认知(认知双线:
|
|
165
|
+
// knowledge-graph 业务认知 / indexer 代码认知)。分组不设权限,由父组与叶子项控制。
|
|
166
|
+
children: [
|
|
167
|
+
{
|
|
168
|
+
key: "knowledge-source",
|
|
169
|
+
label: "知识源头",
|
|
170
|
+
children: [
|
|
171
|
+
{ key: "knowledge-base", label: "文档知识" },
|
|
172
|
+
{ key: "knowledge-notes", label: "个人笔记" },
|
|
173
|
+
// 个体知识/场景知识(原一级分组「进化管理」→ 个体进化/场景进化):进化学习
|
|
174
|
+
// 即知识蒸馏闭环(学习记录→知识吸收)。接口走独立 evolution 服务(无主应用
|
|
175
|
+
// 权限拦截,EVOLUTION_VIEW 本就纯前端门槛),子项跟随父组 KNOWLEDGE_VIEW。key 保留,深链兼容。
|
|
176
|
+
{ key: "evolution-agent", label: "个体知识" },
|
|
177
|
+
{ key: "evolution-scenario", label: "场景知识" }
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
key: "knowledge-cognition",
|
|
182
|
+
label: "知识认知",
|
|
183
|
+
children: [
|
|
184
|
+
// 业务认知:前台协作工作台「知识」tab(KnowledgeGraphTab)同挂一份;
|
|
185
|
+
// 权限点 BIZ_KNOWLEDGE 与前台顶栏 tab 同源,后端 AdminBizKnowledgeController 接口侧同样校验。
|
|
186
|
+
{
|
|
187
|
+
key: "knowledge-biz",
|
|
188
|
+
label: "业务认知",
|
|
189
|
+
permission: "BIZ_KNOWLEDGE"
|
|
190
|
+
},
|
|
191
|
+
// 代码认知(原一级菜单「索引管理」):独立仓 z-indexer 代码索引服务管理页;
|
|
192
|
+
// 子项持接口侧权限 OPS_CONFIG_VIEW,双权限齐全才可见(与「业务指标 → 运营日报」同模式)。key 保留,深链兼容。
|
|
193
|
+
{
|
|
194
|
+
key: "indexer",
|
|
195
|
+
label: "代码认知",
|
|
196
|
+
permission: "OPS_CONFIG_VIEW"
|
|
197
|
+
}
|
|
198
|
+
]
|
|
199
|
+
}
|
|
200
|
+
]
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
// 系统评测(原「评测管理」,0916 移位至知识沉淀之后):QA 评测 + 群聊评测
|
|
204
|
+
key: "evaluation",
|
|
205
|
+
label: "系统评测",
|
|
206
|
+
icon: /* @__PURE__ */ n(S, {}),
|
|
207
|
+
permission: "EVALUATION_VIEW",
|
|
208
|
+
children: [
|
|
209
|
+
{
|
|
210
|
+
key: "qa-evaluation",
|
|
211
|
+
label: "QA评测",
|
|
212
|
+
children: [
|
|
213
|
+
{ key: "qa-evaluation-start", label: "发起测评" },
|
|
214
|
+
{ key: "qa-evaluation-schedule", label: "自动测评" },
|
|
215
|
+
{ key: "qa-evaluation-report", label: "分析报告" },
|
|
216
|
+
{ key: "statistics-ops", label: "中心运维" }
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
key: "evaluation-group-chat",
|
|
221
|
+
label: "群聊评测",
|
|
222
|
+
children: [
|
|
223
|
+
{ key: "evaluation-group-chat-snapshot", label: "关单快照" },
|
|
224
|
+
{ key: "evaluation-group-chat-collections", label: "证据采集" },
|
|
225
|
+
{ key: "evaluation-group-chat-audits", label: "审计打分" },
|
|
226
|
+
{ key: "evaluation-group-chat-config", label: "评测配置" },
|
|
227
|
+
{ key: "evaluation-group-chat-gray", label: "灰度闭环" }
|
|
228
|
+
]
|
|
229
|
+
}
|
|
230
|
+
]
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
key: "webide",
|
|
234
|
+
label: "代码空间",
|
|
235
|
+
icon: /* @__PURE__ */ n(T, {}),
|
|
236
|
+
permission: "WEBIDE_VIEW"
|
|
237
|
+
}
|
|
238
|
+
], G = [
|
|
239
|
+
"statistics-global",
|
|
240
|
+
"statistics-scenario",
|
|
241
|
+
"statistics-scenario-multi",
|
|
242
|
+
"statistics-scenario-daily",
|
|
243
|
+
"statistics-scenario-comprehensive",
|
|
244
|
+
"statistics-scenario-cost",
|
|
245
|
+
"statistics-runtime-monitor",
|
|
246
|
+
"statistics-runtime-monitor-config",
|
|
247
|
+
"statistics-runtime-monitor-task",
|
|
248
|
+
"statistics-runtime-monitor-llm",
|
|
249
|
+
"statistics-runtime-monitor-schedule",
|
|
250
|
+
"statistics-personal",
|
|
251
|
+
"statistics-tech",
|
|
252
|
+
"statistics-business",
|
|
253
|
+
"statistics-ops",
|
|
254
|
+
"qa-evaluation-start",
|
|
255
|
+
"qa-evaluation-schedule",
|
|
256
|
+
"qa-evaluation-report",
|
|
257
|
+
"evaluation-group-chat",
|
|
258
|
+
"evaluation-group-chat-snapshot",
|
|
259
|
+
"evaluation-group-chat-collections",
|
|
260
|
+
"evaluation-group-chat-audits",
|
|
261
|
+
"evaluation-group-chat-config",
|
|
262
|
+
"evaluation-group-chat-gray",
|
|
263
|
+
"scenario",
|
|
264
|
+
"generic-config",
|
|
265
|
+
"agent-config",
|
|
266
|
+
"agent-identity",
|
|
267
|
+
"agent-tool-binding",
|
|
268
|
+
"skill",
|
|
269
|
+
"tag",
|
|
270
|
+
"human",
|
|
271
|
+
"oncall",
|
|
272
|
+
"tool",
|
|
273
|
+
"evolution-agent",
|
|
274
|
+
"evolution-scenario",
|
|
275
|
+
"knowledge-base",
|
|
276
|
+
"knowledge-biz",
|
|
277
|
+
"knowledge-notes",
|
|
278
|
+
"msghub",
|
|
279
|
+
"scenario-instance",
|
|
280
|
+
"scenario-template",
|
|
281
|
+
"audit-log-tool-call",
|
|
282
|
+
"permission",
|
|
283
|
+
"announcement",
|
|
284
|
+
"webide",
|
|
285
|
+
"indexer",
|
|
286
|
+
"notify-channel",
|
|
287
|
+
"schedule-task",
|
|
288
|
+
"ops-report"
|
|
289
|
+
];
|
|
290
|
+
function A(i = W) {
|
|
291
|
+
return i.flatMap(
|
|
292
|
+
(t) => {
|
|
293
|
+
var l;
|
|
294
|
+
return (l = t.children) != null && l.length ? A(t.children) : [t];
|
|
295
|
+
}
|
|
296
|
+
);
|
|
297
|
+
}
|
|
298
|
+
export {
|
|
299
|
+
W as M,
|
|
300
|
+
G as S,
|
|
301
|
+
A as f,
|
|
302
|
+
C as u
|
|
303
|
+
};
|
package/dist/pages.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as t, P as o, C as r, Z as a } from "./ComponentDoc-
|
|
1
|
+
import { S as t, P as o, C as r, Z as a } from "./ComponentDoc-BAUII4UZ.js";
|
|
2
2
|
import { createElement as e } from "react";
|
|
3
3
|
import { BellOutlined as m, ProjectOutlined as p, DesktopOutlined as i, ReadOutlined as n } from "@ant-design/icons";
|
|
4
4
|
import "react/jsx-runtime";
|
|
@@ -6,9 +6,9 @@ import ur from "react-markdown";
|
|
|
6
6
|
import mr from "rehype-highlight";
|
|
7
7
|
import fr from "remark-gfm";
|
|
8
8
|
import { h as pr } from "./history-BlrA1eaW.js";
|
|
9
|
-
import { a as w, f as _, B as v, b as C, u as ea, n as yt, a5 as hr, t as et, e as yr, a7 as gr, a8 as On, a9 as _r, aa as ta } from "./ComponentDoc-
|
|
10
|
-
import { f as br, a as vr, u as En, b as Sr, c as wr, r as Cr, d as Nr, e as Tr, g as kr, h as Ir, m as $r } from "./admin-logs-
|
|
11
|
-
import { a as xr, f as Lr, c as Ar } from "./index-
|
|
9
|
+
import { a as w, f as _, B as v, b as C, u as ea, n as yt, a5 as hr, t as et, e as yr, a7 as gr, a8 as On, a9 as _r, aa as ta } from "./ComponentDoc-BAUII4UZ.js";
|
|
10
|
+
import { f as br, a as vr, u as En, b as Sr, c as wr, r as Cr, d as Nr, e as Tr, g as kr, h as Ir, m as $r } from "./admin-logs-DEawvNOd.js";
|
|
11
|
+
import { a as xr, f as Lr, c as Ar } from "./index-Do3pyigD.js";
|
|
12
12
|
import { findTodosLinkedToNote as Dr, buildTodoProjectContext as Rr, linkedTodoChipLabel as Or } from "@yuku123/z-task-component";
|
|
13
13
|
import Ne from "dayjs";
|
|
14
14
|
import "./echarts-B1OU1xr4.js";
|