@yuku123/z-team-component 0.2.52 → 0.2.54
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/{ChangeLogView-nPAmM1X0.js → ChangeLogView-Cstbioyw.js} +137 -137
- package/dist/{ComponentDoc-Cky9jCGu.js → ComponentDoc-yvIrAz9-.js} +506 -461
- package/dist/{InvitationManagementPage-BsbaIGvB.js → InvitationManagementPage-CIouC3Fn.js} +1 -1
- package/dist/{OnboardingPage-CHVgeBiO.js → OnboardingPage-DScwVCi-.js} +2 -2
- package/dist/ScheduledTasks-Dd2lJrBF.js +9449 -0
- package/dist/{SystemShell-4OiqvM11.js → SystemShell-DtvyWy0u.js} +1 -1
- package/dist/{admin-logs-D6HtRcK6.js → admin-logs-B9KS6VJz.js} +2 -2
- package/dist/{api-C78tCfne.js → api-CALqShkO.js} +288 -270
- package/dist/{api-BT968Uwc.js → api-CdVRdA0g.js} +1 -1
- package/dist/createWorkspaceWsHandler-CL5-4wFp.js +13037 -0
- package/dist/{index-BX1Wd9x9.js → index-4YxdJwFm.js} +3 -3
- package/dist/index-7Pe_xBrh.js +582 -0
- package/dist/{index-DFY3lzq0.js → index-C2Wkg1b5.js} +3 -3
- package/dist/{index-CdlfWFvS.js → index-C3B7CbHo.js} +610 -529
- package/dist/{index-BkX0I2aB.js → index-C6S3MIu4.js} +56 -56
- package/dist/{index-BAY37t4f.js → index-CGWttFLb.js} +41 -35
- package/dist/{index-LwKUkzKI.js → index-CKS65_Dw.js} +3 -3
- package/dist/{index-Bdu31aRV.js → index-CLWgeKwr.js} +2 -2
- package/dist/{index-DxFZKDq-.js → index-C_2o9qgM.js} +6 -6
- package/dist/index-CgQH7-9F.js +130 -0
- package/dist/{index-B_C7H9WL.js → index-D6V-4vNa.js} +5 -5
- package/dist/index-DC5lxCN8.js +474 -0
- package/dist/{index-D9AqC2O-.js → index-DET70T3j.js} +1 -1
- package/dist/index-DEx5rtXv.js +242 -0
- package/dist/{index-DpcrvKsK.js → index-DJOyOVn_.js} +87 -74
- package/dist/{index-qK6pyAGy.js → index-DKeYG0Fu.js} +4 -4
- package/dist/index-DLQoecEe.js +1143 -0
- package/dist/{index-CR3sbzOU.js → index-DLyAy3cr.js} +7 -7
- package/dist/index-DOygBsXO.js +2826 -0
- package/dist/index-DRrBkbr_.js +100 -0
- package/dist/index-DWsfQMp8.js +208 -0
- package/dist/index-Pk7OkJrk.js +1133 -0
- package/dist/index-TDZM-Zv3.js +9287 -0
- package/dist/index-WIsi8fln.js +339 -0
- package/dist/{index-BAK7UDvY.js → index-aw72ID7y.js} +1 -1
- package/dist/{index-ClA0896K.js → index-lftFkqfI.js} +4 -4
- package/dist/{index-JMzBzwiO.js → index-usrA11ZG.js} +618 -617
- package/dist/index.js +1 -1
- package/dist/{instance-D5dhjbgg.js → instance-f3C-1qYl.js} +3 -3
- package/dist/pages.js +1 -1
- package/dist/schedule-DfkgwPdE.js +497 -0
- package/dist/{send-default-agent-team-message-C882sJLV.js → send-default-agent-team-message-d_ECdczr.js} +1 -1
- package/dist/{sso-user-Bi9_l9yi.js → sso-user-HcsSzg8P.js} +1 -1
- package/dist/{training-Ba09KItE.js → training-DnNQN0An.js} +1 -1
- package/dist/{useAppStore-ibJyVIAX.js → useAppStore-kRZEA5WZ.js} +19 -19
- package/dist/webide-DPjFYxLl.js +7845 -0
- package/dist/z-team-component.css +2 -2
- package/package.json +1 -1
- package/dist/SmartWorkbench.module-xRRmpTTw.js +0 -85
- package/dist/createWorkspaceWsHandler-mq-UTF2O.js +0 -13028
- package/dist/index-7nSly-MA.js +0 -405
- package/dist/index-B11_fFjX.js +0 -1182
- package/dist/index-B3-0eXYQ.js +0 -844
- package/dist/index-Cp3DAwNx.js +0 -13862
- package/dist/index-NaBR2aQE.js +0 -6685
- package/dist/index-UsGqMo11.js +0 -848
- package/dist/schedule-C-4ksDPw.js +0 -239
- package/dist/webide-RsFP9pHM.js +0 -8087
|
@@ -1,239 +0,0 @@
|
|
|
1
|
-
import { jsxs as E, jsx as h } from "react/jsx-runtime";
|
|
2
|
-
import { Component as N } from "react";
|
|
3
|
-
import { a as c, B as i, u as l, f as u, g as A, v as f } from "./api-C78tCfne.js";
|
|
4
|
-
const S = {
|
|
5
|
-
RUNTIME_MONITOR_VIEW: ["RUNTIME_MONITOR_MANAGE"],
|
|
6
|
-
EVALUATION_VIEW: ["EVALUATION_MANAGE"],
|
|
7
|
-
COLLABORATION_VIEW: [
|
|
8
|
-
"AGENT_MANAGE",
|
|
9
|
-
"SKILL_MANAGE",
|
|
10
|
-
"SCENARIO_MANAGE",
|
|
11
|
-
"PROFILE_MANAGE",
|
|
12
|
-
"TAG_MANAGE",
|
|
13
|
-
"TOOL_MANAGE"
|
|
14
|
-
],
|
|
15
|
-
EVOLUTION_VIEW: ["EVOLUTION_MANAGE"],
|
|
16
|
-
OPS_CONFIG_VIEW: [
|
|
17
|
-
"OPS_CONFIG_MANAGE",
|
|
18
|
-
"ONCALL_MANAGE",
|
|
19
|
-
"ANNOUNCEMENT_MANAGE",
|
|
20
|
-
"OPS_REPORT_MANAGE"
|
|
21
|
-
],
|
|
22
|
-
KNOWLEDGE_VIEW: ["KNOWLEDGE_MANAGE"],
|
|
23
|
-
WEBIDE_VIEW: ["WEBIDE_MANAGE"]
|
|
24
|
-
};
|
|
25
|
-
function I(n, e) {
|
|
26
|
-
var r;
|
|
27
|
-
if (!n) return !1;
|
|
28
|
-
if (n.is_global_admin || (r = n.permissions) != null && r.includes(e)) return !0;
|
|
29
|
-
const t = S[e];
|
|
30
|
-
return !!(t != null && t.some((a) => {
|
|
31
|
-
var s;
|
|
32
|
-
return (s = n.permissions) == null ? void 0 : s.includes(a);
|
|
33
|
-
}));
|
|
34
|
-
}
|
|
35
|
-
class O extends N {
|
|
36
|
-
constructor(e) {
|
|
37
|
-
super(e), this.state = { hasError: !1, error: null };
|
|
38
|
-
}
|
|
39
|
-
static getDerivedStateFromError(e) {
|
|
40
|
-
return { hasError: !0, error: e };
|
|
41
|
-
}
|
|
42
|
-
componentDidCatch(e, t) {
|
|
43
|
-
console.error("[ErrorBoundary]", e, t.componentStack);
|
|
44
|
-
}
|
|
45
|
-
render() {
|
|
46
|
-
var e;
|
|
47
|
-
return this.state.hasError ? this.props.fallback ? this.props.fallback : /* @__PURE__ */ E(
|
|
48
|
-
"div",
|
|
49
|
-
{
|
|
50
|
-
style: {
|
|
51
|
-
display: "flex",
|
|
52
|
-
flexDirection: "column",
|
|
53
|
-
alignItems: "center",
|
|
54
|
-
justifyContent: "center",
|
|
55
|
-
height: "100%",
|
|
56
|
-
padding: 24,
|
|
57
|
-
color: "#999",
|
|
58
|
-
fontSize: 14,
|
|
59
|
-
gap: 8
|
|
60
|
-
},
|
|
61
|
-
children: [
|
|
62
|
-
/* @__PURE__ */ h("div", { style: { fontSize: 16, fontWeight: 600, color: "#ff4d4f" }, children: "渲染异常" }),
|
|
63
|
-
/* @__PURE__ */ h(
|
|
64
|
-
"div",
|
|
65
|
-
{
|
|
66
|
-
style: {
|
|
67
|
-
maxWidth: 400,
|
|
68
|
-
textAlign: "center",
|
|
69
|
-
wordBreak: "break-word"
|
|
70
|
-
},
|
|
71
|
-
children: ((e = this.state.error) == null ? void 0 : e.message) || "未知错误"
|
|
72
|
-
}
|
|
73
|
-
),
|
|
74
|
-
/* @__PURE__ */ h(
|
|
75
|
-
"button",
|
|
76
|
-
{
|
|
77
|
-
type: "button",
|
|
78
|
-
onClick: () => this.setState({ hasError: !1, error: null }),
|
|
79
|
-
style: {
|
|
80
|
-
marginTop: 8,
|
|
81
|
-
padding: "4px 16px",
|
|
82
|
-
borderRadius: 4,
|
|
83
|
-
border: "1px solid #d9d9d9",
|
|
84
|
-
background: "#fff",
|
|
85
|
-
cursor: "pointer",
|
|
86
|
-
fontSize: 13
|
|
87
|
-
},
|
|
88
|
-
children: "重试"
|
|
89
|
-
}
|
|
90
|
-
)
|
|
91
|
-
]
|
|
92
|
-
}
|
|
93
|
-
) : this.props.children;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
function p(n) {
|
|
97
|
-
const e = n && typeof n == "object" ? n : {}, t = Array.isArray(e.items) ? A(e.items) : [];
|
|
98
|
-
return { ...e, items: t };
|
|
99
|
-
}
|
|
100
|
-
async function _(n, e = "") {
|
|
101
|
-
const t = e ? `?token=${encodeURIComponent(e)}` : "", r = await c(
|
|
102
|
-
`${i}/personal-agents/${n}/schedules${t}`,
|
|
103
|
-
u
|
|
104
|
-
);
|
|
105
|
-
return f(r, "获取定时任务列表失败");
|
|
106
|
-
}
|
|
107
|
-
async function T(n, e, t, r, a = "", s = "", o = "") {
|
|
108
|
-
const d = o ? `?token=${encodeURIComponent(o)}` : "", m = await c(
|
|
109
|
-
`${i}/personal-agents/${n}/schedules${d}`,
|
|
110
|
-
{
|
|
111
|
-
...u,
|
|
112
|
-
method: "POST",
|
|
113
|
-
headers: { "Content-Type": "application/json" },
|
|
114
|
-
body: JSON.stringify({
|
|
115
|
-
name: e,
|
|
116
|
-
prompt: t,
|
|
117
|
-
cron_expression: r,
|
|
118
|
-
notify_user_id: a,
|
|
119
|
-
notify_user_name: s
|
|
120
|
-
})
|
|
121
|
-
}
|
|
122
|
-
);
|
|
123
|
-
return f(m, "创建定时任务失败");
|
|
124
|
-
}
|
|
125
|
-
async function w(n, e, t, r = "") {
|
|
126
|
-
const a = r ? `?token=${encodeURIComponent(r)}` : "", s = await c(
|
|
127
|
-
`${i}/personal-agents/${n}/schedules/${e}${a}`,
|
|
128
|
-
{
|
|
129
|
-
...u,
|
|
130
|
-
method: "PUT",
|
|
131
|
-
headers: { "Content-Type": "application/json" },
|
|
132
|
-
body: JSON.stringify(t)
|
|
133
|
-
}
|
|
134
|
-
);
|
|
135
|
-
return f(s, "更新定时任务失败");
|
|
136
|
-
}
|
|
137
|
-
async function R(n, e, t = "") {
|
|
138
|
-
const r = t ? `?token=${encodeURIComponent(t)}` : "", a = await c(
|
|
139
|
-
`${i}/personal-agents/${n}/schedules/${e}${r}`,
|
|
140
|
-
{
|
|
141
|
-
...u,
|
|
142
|
-
method: "DELETE"
|
|
143
|
-
}
|
|
144
|
-
);
|
|
145
|
-
return l(a, "删除定时任务失败");
|
|
146
|
-
}
|
|
147
|
-
async function C(n, e, t, r = "") {
|
|
148
|
-
const a = r ? `?token=${encodeURIComponent(r)}` : "", s = await c(
|
|
149
|
-
`${i}/personal-agents/${n}/schedules/${e}/toggle${a}`,
|
|
150
|
-
{
|
|
151
|
-
...u,
|
|
152
|
-
method: "POST",
|
|
153
|
-
headers: { "Content-Type": "application/json" },
|
|
154
|
-
body: JSON.stringify({ enable: t })
|
|
155
|
-
}
|
|
156
|
-
);
|
|
157
|
-
return f(s, "切换定时任务状态失败");
|
|
158
|
-
}
|
|
159
|
-
async function G(n, e, t = 1, r = 20, a = "") {
|
|
160
|
-
const s = new URLSearchParams();
|
|
161
|
-
s.set("page", String(t)), s.set("size", String(r)), a && s.set("token", a);
|
|
162
|
-
const o = await c(
|
|
163
|
-
`${i}/personal-agents/${n}/schedules/${e}/logs?${s.toString()}`,
|
|
164
|
-
u
|
|
165
|
-
), d = await l(o, "获取执行历史失败");
|
|
166
|
-
return p(d);
|
|
167
|
-
}
|
|
168
|
-
async function M(n, e, t = "") {
|
|
169
|
-
const r = t ? `?token=${encodeURIComponent(t)}` : "", a = await c(
|
|
170
|
-
`${i}/personal-agents/${n}/schedules/${e}/run${r}`,
|
|
171
|
-
{
|
|
172
|
-
...u,
|
|
173
|
-
method: "POST"
|
|
174
|
-
}
|
|
175
|
-
);
|
|
176
|
-
return f(a, "手动触发任务失败");
|
|
177
|
-
}
|
|
178
|
-
async function L(n, e = "", t = "") {
|
|
179
|
-
const r = new URLSearchParams();
|
|
180
|
-
e && r.set("keyword", e), t && r.set("token", t);
|
|
181
|
-
const a = await c(
|
|
182
|
-
`${i}/personal-agents/${n}/schedules/staff-search?${r.toString()}`,
|
|
183
|
-
u
|
|
184
|
-
);
|
|
185
|
-
return (await l(a, "搜索员工失败") ?? []).map((o) => {
|
|
186
|
-
const d = (o == null ? void 0 : o.extend) ?? {};
|
|
187
|
-
return {
|
|
188
|
-
userId: String((o == null ? void 0 : o.userId) ?? (o == null ? void 0 : o.id) ?? ""),
|
|
189
|
-
name: String((o == null ? void 0 : o.name) ?? ""),
|
|
190
|
-
accountNo: String((o == null ? void 0 : o.accountNo) ?? ""),
|
|
191
|
-
jobNumber: String((o == null ? void 0 : o.jobNumber) ?? ""),
|
|
192
|
-
flowerName: String((o == null ? void 0 : o.flowerName) ?? d.flowerName ?? "")
|
|
193
|
-
};
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
async function b(n = "", e = 50) {
|
|
197
|
-
const t = new URLSearchParams();
|
|
198
|
-
t.set("limit", String(e)), n && t.set("token", n);
|
|
199
|
-
const r = await c(
|
|
200
|
-
`${i}/personal-agents/schedules/notifications?${t.toString()}`,
|
|
201
|
-
u
|
|
202
|
-
), a = await l(r, "获取通知失败");
|
|
203
|
-
return p(a);
|
|
204
|
-
}
|
|
205
|
-
async function U(n, e = "") {
|
|
206
|
-
const t = e ? `?token=${encodeURIComponent(e)}` : "", r = await c(
|
|
207
|
-
`${i}/personal-agents/schedules/notifications/${n}/read${t}`,
|
|
208
|
-
{
|
|
209
|
-
...u,
|
|
210
|
-
method: "POST"
|
|
211
|
-
}
|
|
212
|
-
);
|
|
213
|
-
return l(r, "标记已读失败");
|
|
214
|
-
}
|
|
215
|
-
async function P(n = "") {
|
|
216
|
-
const e = n ? `?token=${encodeURIComponent(n)}` : "", t = await c(
|
|
217
|
-
`${i}/personal-agents/schedules/notifications/read-all${e}`,
|
|
218
|
-
{
|
|
219
|
-
...u,
|
|
220
|
-
method: "POST"
|
|
221
|
-
}
|
|
222
|
-
);
|
|
223
|
-
return l(t, "标记已读失败");
|
|
224
|
-
}
|
|
225
|
-
export {
|
|
226
|
-
O as E,
|
|
227
|
-
P as a,
|
|
228
|
-
_ as b,
|
|
229
|
-
G as c,
|
|
230
|
-
T as d,
|
|
231
|
-
R as e,
|
|
232
|
-
b as f,
|
|
233
|
-
I as h,
|
|
234
|
-
U as m,
|
|
235
|
-
M as r,
|
|
236
|
-
L as s,
|
|
237
|
-
C as t,
|
|
238
|
-
w as u
|
|
239
|
-
};
|