@yuku123/z-team-component 0.2.140 → 0.2.141
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/{AdminModuleContent-DDB35gOh.js → AdminModuleContent-FFU5MUjw.js} +10526 -10697
- package/dist/{ChangeLogView-AKOZ6Ski.js → ChangeLogView-C5v5uT8L.js} +1 -1
- package/dist/{ComponentDoc-SiXXhka1.js → ComponentDoc-DnZq0_Rk.js} +1318 -1313
- package/dist/{InvitationManagementPage-CRbABOKe.js → InvitationManagementPage-dEBNe9_s.js} +1 -1
- package/dist/{OnboardingPage-BNJopRYO.js → OnboardingPage-BW8WhBg5.js} +2 -2
- package/dist/ScheduledTasks-BaZ0_klE.js +12024 -0
- package/dist/SystemShell-I7vWo1XG.js +858 -0
- package/dist/{admin-logs-B3IxooG2.js → admin-logs-BDPC3Q_Y.js} +5 -5
- package/dist/{api-DmBlT5MH.js → api-BJ5jPWNm.js} +1 -1
- package/dist/{api-DW8nsucC.js → api-U9U4zzq_.js} +1 -1
- package/dist/createWorkspaceWsHandler-B6TdD0Oz.js +11757 -0
- package/dist/{index-DCAO83Wb.js → index-BGZV4U3S.js} +1325 -1187
- package/dist/{index-Hv2KDG7i.js → index-BPEfgkzE.js} +3 -3
- package/dist/{index-VmRWH4U5.js → index-BXaJSMd0.js} +9 -9
- package/dist/{index-C1nr0UeB.js → index-Bfw6OE5L.js} +19 -20
- package/dist/index-BlDMnzJF.js +18 -0
- package/dist/{index-BBLRGBWu.js → index-BmlFIrWx.js} +1 -1
- package/dist/{index-C7DSDopw.js → index-BwhK44Dc.js} +26 -27
- package/dist/{index-l9KH8r7F.js → index-CP5raaOW.js} +780 -792
- package/dist/{index-CvHMXrAD.js → index-CPpqideA.js} +1 -1
- package/dist/{index-C24QsGsG.js → index-CToJEufJ.js} +1 -1
- package/dist/{index-CJ7dJejJ.js → index-CVgvlDAT.js} +17 -17
- package/dist/{index-BSqUODiN.js → index-CmzTSdmD.js} +30 -31
- package/dist/{index-BV64kKse.js → index-CsNtBWH-.js} +2 -2
- package/dist/index-DIv1OJ_2.js +1840 -0
- package/dist/{index-Du95tdVf.js → index-DKUg7Evq.js} +28 -29
- package/dist/{index-DULYXalY.js → index-DSXVCDf7.js} +9 -9
- package/dist/{index-CXjen4Gx.js → index-Dd5RE_0a.js} +342 -389
- package/dist/index-DuZrrpXt.js +1298 -0
- package/dist/{index-D-G4mbxH.js → index-Gn0zdd5m.js} +2 -2
- package/dist/index-WWGxF0UX.js +136 -0
- package/dist/{index-DHrMSEVJ.js → index-XTNGZnrF.js} +1 -1
- package/dist/{index-D7thpI99.js → index-XgaiU13i.js} +1 -1
- package/dist/{index-DjbLq5lI.js → index-d6RIzlsj.js} +2 -2
- package/dist/{index-DDOfdrn4.js → index-kjli87DO.js} +3895 -3964
- package/dist/{index-D440bEgm.js → index-mDjl3m2W.js} +198 -192
- package/dist/{index-CEoS_jEa.js → index-skl-gjj4.js} +6 -6
- package/dist/index.js +1 -1
- package/dist/instance-D_EP8AQm.js +116 -0
- package/dist/{menuPermission-DxknHmt8.js → menuPermission-Bhnols4v.js} +3 -3
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-DYytBtLc.js → send-default-agent-team-message-0RB1pYex.js} +1 -1
- package/dist/{training-CKYPSkUP.js → training-B1eRX8g1.js} +1 -1
- package/dist/{webide-JAalC_Wr.js → webide-C4ThGZzY.js} +1161 -1317
- package/dist/z-team-component.css +1 -1
- package/package.json +4 -4
- package/dist/ScheduledTasks-Cn_CEZ-B.js +0 -12006
- package/dist/SystemShell-B8Tyluzu.js +0 -893
- package/dist/SystemWorkbench.module-DpLM0zgA.js +0 -36
- package/dist/createWorkspaceWsHandler-5MHgQGfJ.js +0 -12902
- package/dist/index-BT4oQJby.js +0 -228
- package/dist/index-DrDFy5jN.js +0 -139
- package/dist/index-DvslXAjT.js +0 -1323
- package/dist/index-NIu3OKHi.js +0 -1868
- package/dist/instance-B4SrJ-BY.js +0 -186
- package/dist/sso-user-DN6kSAc0.js +0 -43
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
import { a as o, f as l, B as r, b as c } from "./ComponentDoc-SiXXhka1.js";
|
|
2
|
-
async function I(e, n = "") {
|
|
3
|
-
const t = new URLSearchParams();
|
|
4
|
-
n && t.set("token", n), e.scenario_code && t.set("scenario_code", e.scenario_code), e.status && t.set("status", e.status), e.name && t.set("name", e.name), e.role && t.set("role", e.role), e.create_time_start && t.set("create_time_start", e.create_time_start), e.create_time_end && t.set("create_time_end", e.create_time_end), t.set("page", String(e.page ?? 1)), t.set("size", String(e.size ?? 20));
|
|
5
|
-
const s = await o(
|
|
6
|
-
`${r}/scenario-instances/page?${t.toString()}`,
|
|
7
|
-
l
|
|
8
|
-
);
|
|
9
|
-
return c(s, "获取工作项列表失败");
|
|
10
|
-
}
|
|
11
|
-
function _(e) {
|
|
12
|
-
return {
|
|
13
|
-
id: String(e.id),
|
|
14
|
-
name: String(e.name ?? ""),
|
|
15
|
-
description: String(e.description ?? ""),
|
|
16
|
-
workspace_path: String(e.workspace_path ?? e.workspacePath ?? ""),
|
|
17
|
-
status: String(e.status ?? "ACTIVE"),
|
|
18
|
-
created_at: String(e.created_at ?? e.createdAt ?? ""),
|
|
19
|
-
mode: e.mode != null ? String(e.mode) : void 0,
|
|
20
|
-
scenario_id: e.scenario_id != null ? String(e.scenario_id) : e.scenarioId != null ? String(e.scenarioId) : void 0,
|
|
21
|
-
scenario_code: e.scenario_code != null ? String(e.scenario_code) : e.scenarioCode != null ? String(e.scenarioCode) : void 0,
|
|
22
|
-
scenario_name: e.scenario_name != null ? String(e.scenario_name) : e.scenarioName != null ? String(e.scenarioName) : void 0,
|
|
23
|
-
role: e.role != null ? String(e.role) : void 0,
|
|
24
|
-
llm_code: e.llm_code != null ? String(e.llm_code) : e.llmCode != null ? String(e.llmCode) : void 0,
|
|
25
|
-
close_feedback: u(e, "close_feedback"),
|
|
26
|
-
close_tags: u(e, "close_tags"),
|
|
27
|
-
close_time: u(e, "close_time"),
|
|
28
|
-
close_user: u(e, "close_user"),
|
|
29
|
-
members: Array.isArray(e.members) ? e.members.map((n) => String(n)) : void 0,
|
|
30
|
-
parent_id: p(e)
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
function u(e, n) {
|
|
34
|
-
const t = n.replace(/_([a-z])/g, (d, m) => m.toUpperCase());
|
|
35
|
-
if (e[n] != null) return e[n];
|
|
36
|
-
if (e[t] != null) return e[t];
|
|
37
|
-
const s = e.close_info ?? e.closeInfo;
|
|
38
|
-
if (s) {
|
|
39
|
-
if (s[n] != null) return s[n];
|
|
40
|
-
if (s[t] != null) return s[t];
|
|
41
|
-
}
|
|
42
|
-
const a = e.ext;
|
|
43
|
-
if (!a) return;
|
|
44
|
-
const i = a.params;
|
|
45
|
-
if (i)
|
|
46
|
-
return i[n] ?? void 0;
|
|
47
|
-
}
|
|
48
|
-
function p(e) {
|
|
49
|
-
const n = e.ext;
|
|
50
|
-
if (!n) return;
|
|
51
|
-
const t = n.params;
|
|
52
|
-
if (!t) return;
|
|
53
|
-
const s = t.parent_id;
|
|
54
|
-
if (s == null) return;
|
|
55
|
-
const a = s === "" ? "" : String(s);
|
|
56
|
-
return a === "" ? void 0 : a;
|
|
57
|
-
}
|
|
58
|
-
async function h(e) {
|
|
59
|
-
const n = await o(
|
|
60
|
-
`${r}/scenario-instances/${e}/models`
|
|
61
|
-
);
|
|
62
|
-
return await c(n, "获取模型列表失败") ?? [];
|
|
63
|
-
}
|
|
64
|
-
const f = "develop_brain_scenario";
|
|
65
|
-
async function C(e) {
|
|
66
|
-
const n = await o(
|
|
67
|
-
`${r}/dev-brain/agent/ticket?ticketId=${encodeURIComponent(e)}`,
|
|
68
|
-
l
|
|
69
|
-
);
|
|
70
|
-
return c(n, "获取工单信息失败");
|
|
71
|
-
}
|
|
72
|
-
function v(e) {
|
|
73
|
-
return String(e.currentStage ?? e.current_stage ?? "").trim();
|
|
74
|
-
}
|
|
75
|
-
function g(e) {
|
|
76
|
-
const n = e.trim().replace(/[/\\:*?"<>|]/g, "_");
|
|
77
|
-
return n.length > 0 ? n.slice(0, 80) : "workspace";
|
|
78
|
-
}
|
|
79
|
-
function U(e, n) {
|
|
80
|
-
var i;
|
|
81
|
-
const t = e.requirementTitle && e.requirementTitle.trim() || n, s = { ticket_id: n }, a = (i = e.foneUrl) == null ? void 0 : i.trim();
|
|
82
|
-
return a && (s.work_order_url = a), {
|
|
83
|
-
name: t,
|
|
84
|
-
description: `ticket_id_${n}_${t}`,
|
|
85
|
-
workspace_path: g(t),
|
|
86
|
-
scenario_code: f,
|
|
87
|
-
extend_params: s
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
async function S(e, n = "") {
|
|
91
|
-
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await o(
|
|
92
|
-
`${r}/scenario-instances/${e}${t}`,
|
|
93
|
-
l
|
|
94
|
-
), a = await c(s, "获取项目失败"), i = a.status === "FOUND" ? "FOUND" : "NOT_FOUND", d = a.scenario_instance ?? a.scenarioInstance ?? null;
|
|
95
|
-
return {
|
|
96
|
-
status: i,
|
|
97
|
-
scenarioInstance: d ? _(d) : null
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
async function A(e, n = "") {
|
|
101
|
-
const t = await S(e, n);
|
|
102
|
-
if (t.status === "NOT_FOUND" || !t.scenarioInstance)
|
|
103
|
-
throw {
|
|
104
|
-
_apiUserError: !0,
|
|
105
|
-
userMessage: "项目不存在",
|
|
106
|
-
message: "项目不存在"
|
|
107
|
-
};
|
|
108
|
-
return t.scenarioInstance;
|
|
109
|
-
}
|
|
110
|
-
async function b(e, n = "") {
|
|
111
|
-
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await o(
|
|
112
|
-
`${r}/scenario-instances/${e}/join-self${t}`,
|
|
113
|
-
{
|
|
114
|
-
...l,
|
|
115
|
-
method: "POST"
|
|
116
|
-
}
|
|
117
|
-
), a = await c(s, "加入工程失败");
|
|
118
|
-
return _(a);
|
|
119
|
-
}
|
|
120
|
-
async function k(e = "") {
|
|
121
|
-
const n = e ? `?token=${encodeURIComponent(e)}` : "", t = await o(`${r}/self-support${n}`, l), s = await c(t, "获取自身答疑群组失败"), a = Number(s.scenario_instance_id ?? 0);
|
|
122
|
-
if (!Number.isFinite(a) || a <= 0)
|
|
123
|
-
throw {
|
|
124
|
-
_apiUserError: !0,
|
|
125
|
-
userMessage: "自身答疑群组无效",
|
|
126
|
-
message: "自身答疑群组无效"
|
|
127
|
-
};
|
|
128
|
-
return {
|
|
129
|
-
scenario_instance_id: a,
|
|
130
|
-
name: String(s.name ?? "Z-OPC 自身答疑"),
|
|
131
|
-
scenario_code: String(s.scenario_code ?? "qa_support"),
|
|
132
|
-
workspace_path: String(s.workspace_path ?? ""),
|
|
133
|
-
status: String(s.status ?? "ACTIVE")
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
async function N(e, n = "") {
|
|
137
|
-
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await o(
|
|
138
|
-
`${r}/scenario-instances/${e}/forks${t}`,
|
|
139
|
-
l
|
|
140
|
-
), a = await c(s, "获取 Fork 列表失败");
|
|
141
|
-
return (Array.isArray(a) ? a : []).map(
|
|
142
|
-
(d) => _(d)
|
|
143
|
-
);
|
|
144
|
-
}
|
|
145
|
-
async function P(e) {
|
|
146
|
-
const n = await o(
|
|
147
|
-
`${r}/scenario-instances/${e}/retry-init`,
|
|
148
|
-
{
|
|
149
|
-
...l,
|
|
150
|
-
method: "POST",
|
|
151
|
-
headers: { "Content-Type": "application/json" }
|
|
152
|
-
}
|
|
153
|
-
);
|
|
154
|
-
return c(n, "初始化补偿失败");
|
|
155
|
-
}
|
|
156
|
-
async function O(e = "", n = 8) {
|
|
157
|
-
const t = new URLSearchParams();
|
|
158
|
-
e && t.set("token", e), t.set("limit", String(n));
|
|
159
|
-
const s = await o(
|
|
160
|
-
`${r}/scenario-instances/my-unclosed?${t.toString()}`,
|
|
161
|
-
l
|
|
162
|
-
), a = await c(
|
|
163
|
-
s,
|
|
164
|
-
"查询未关单失败"
|
|
165
|
-
);
|
|
166
|
-
return (Array.isArray(a) ? a : []).map((i) => ({
|
|
167
|
-
id: Number(i.id ?? 0),
|
|
168
|
-
name: String(i.name ?? ""),
|
|
169
|
-
scenario_code: String(i.scenario_code ?? ""),
|
|
170
|
-
created_at: String(i.created_at ?? i.createdAt ?? "")
|
|
171
|
-
}));
|
|
172
|
-
}
|
|
173
|
-
export {
|
|
174
|
-
I as a,
|
|
175
|
-
U as b,
|
|
176
|
-
O as c,
|
|
177
|
-
h as d,
|
|
178
|
-
k as e,
|
|
179
|
-
C as f,
|
|
180
|
-
N as g,
|
|
181
|
-
A as h,
|
|
182
|
-
b as j,
|
|
183
|
-
S as l,
|
|
184
|
-
v as p,
|
|
185
|
-
P as r
|
|
186
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { t as l } from "./ComponentDoc-SiXXhka1.js";
|
|
2
|
-
const d = "USER_INFO";
|
|
3
|
-
function s() {
|
|
4
|
-
try {
|
|
5
|
-
const t = localStorage.getItem(d);
|
|
6
|
-
return t ? JSON.parse(t) : null;
|
|
7
|
-
} catch {
|
|
8
|
-
return null;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
function m(t) {
|
|
12
|
-
if (!t) return "";
|
|
13
|
-
const r = typeof t.jobNumber == "string" ? t.jobNumber.trim() : "";
|
|
14
|
-
if (r) return r;
|
|
15
|
-
const e = typeof t.name == "string" ? t.name.trim() : "";
|
|
16
|
-
return e || (typeof t.username == "string" ? t.username.trim() : "") || "";
|
|
17
|
-
}
|
|
18
|
-
function _(t) {
|
|
19
|
-
return !!m(t);
|
|
20
|
-
}
|
|
21
|
-
function g(t) {
|
|
22
|
-
var f;
|
|
23
|
-
const r = m(t) || "user", e = typeof t.name == "string" && t.name.trim() || r;
|
|
24
|
-
let i = "👤";
|
|
25
|
-
const o = (f = t.extendMap) == null ? void 0 : f.photo;
|
|
26
|
-
typeof o == "string" && o.trim() && (i = o);
|
|
27
|
-
const n = t.extendMap, a = t.staffId ?? t.staff_id ?? (n == null ? void 0 : n.staffId) ?? (n == null ? void 0 : n.staff_id), u = l(
|
|
28
|
-
typeof a == "number" && a > 0 ? a : a || ""
|
|
29
|
-
), c = t.is_global_admin ?? t.isAdmin ?? t.is_admin ?? t.globalAdmin ?? t.global_admin ?? !1;
|
|
30
|
-
return {
|
|
31
|
-
id: u,
|
|
32
|
-
username: r,
|
|
33
|
-
display_name: e,
|
|
34
|
-
avatar: i,
|
|
35
|
-
created_at: "",
|
|
36
|
-
is_global_admin: !!c
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
export {
|
|
40
|
-
_ as h,
|
|
41
|
-
s as r,
|
|
42
|
-
g as s
|
|
43
|
-
};
|