@yuku123/z-team-component 0.2.139 → 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.
Files changed (60) hide show
  1. package/dist/{AdminModuleContent-B1IJbLVN.js → AdminModuleContent-FFU5MUjw.js} +10526 -10697
  2. package/dist/{ChangeLogView-BVKf3AZn.js → ChangeLogView-C5v5uT8L.js} +1 -1
  3. package/dist/{ComponentDoc-BIX-e69A.js → ComponentDoc-DnZq0_Rk.js} +1318 -1313
  4. package/dist/{InvitationManagementPage-DRC_8AiO.js → InvitationManagementPage-dEBNe9_s.js} +1 -1
  5. package/dist/{OnboardingPage-B4GQTFCS.js → OnboardingPage-BW8WhBg5.js} +2 -2
  6. package/dist/ScheduledTasks-BaZ0_klE.js +12024 -0
  7. package/dist/SystemShell-I7vWo1XG.js +858 -0
  8. package/dist/{admin-logs-DK00NEUv.js → admin-logs-BDPC3Q_Y.js} +5 -5
  9. package/dist/{api-C_9xZbZr.js → api-BJ5jPWNm.js} +1 -1
  10. package/dist/{api-DBemNteG.js → api-U9U4zzq_.js} +1 -1
  11. package/dist/createWorkspaceWsHandler-B6TdD0Oz.js +11757 -0
  12. package/dist/{index-BGAG77Nt.js → index-BGZV4U3S.js} +1325 -1187
  13. package/dist/{CollabPersonalHost-BY6RqeQJ.js → index-BPEfgkzE.js} +3 -3
  14. package/dist/{index-BgCxUeRF.js → index-BXaJSMd0.js} +9 -9
  15. package/dist/{from-scenario-D8CIJLDn.js → index-Bfw6OE5L.js} +19 -20
  16. package/dist/index-BlDMnzJF.js +18 -0
  17. package/dist/{welcome-BBLRGBWu.js → index-BmlFIrWx.js} +1 -1
  18. package/dist/{build-by-form-CXxXrXvw.js → index-BwhK44Dc.js} +26 -27
  19. package/dist/{TrainingAdminShell-CgnQM4Nb.js → index-CP5raaOW.js} +780 -792
  20. package/dist/{docs-A-g6sqaE.js → index-CPpqideA.js} +1 -1
  21. package/dist/{index-BM6KEb8k.js → index-CToJEufJ.js} +1 -1
  22. package/dist/{common-Bcnlb4nY.js → index-CVgvlDAT.js} +17 -17
  23. package/dist/{admin-ryysUJ9z.js → index-CmzTSdmD.js} +30 -31
  24. package/dist/{Market-C2vkBzDr.js → index-CsNtBWH-.js} +2 -2
  25. package/dist/index-DIv1OJ_2.js +1840 -0
  26. package/dist/{chat-DKwMolQV.js → index-DKUg7Evq.js} +28 -29
  27. package/dist/{index-BlfOXOZM.js → index-DSXVCDf7.js} +9 -9
  28. package/dist/{OpsWorkbench-D8RF2p4X.js → index-Dd5RE_0a.js} +342 -389
  29. package/dist/index-DuZrrpXt.js +1298 -0
  30. package/dist/{from-ticket-D0oQPEf1.js → index-Gn0zdd5m.js} +2 -2
  31. package/dist/index-WWGxF0UX.js +136 -0
  32. package/dist/{change-log-CcmXtywx.js → index-XTNGZnrF.js} +1 -1
  33. package/dist/{KnowledgeGraphTab-BfhDEyvW.js → index-XgaiU13i.js} +1 -1
  34. package/dist/{scenario-DOpFkfNV.js → index-d6RIzlsj.js} +2 -2
  35. package/dist/{index-Bs_WMKyt.js → index-kjli87DO.js} +3895 -3964
  36. package/dist/{phone-BU4g7eHI.js → index-mDjl3m2W.js} +198 -192
  37. package/dist/{index-Dlf6mERD.js → index-nj-cjKsf.js} +1910 -1950
  38. package/dist/{WorkBuddyShell-DCrPpMd5.js → index-skl-gjj4.js} +6 -6
  39. package/dist/index.js +1 -1
  40. package/dist/instance-D_EP8AQm.js +116 -0
  41. package/dist/{menuPermission-C4EVCwjs.js → menuPermission-Bhnols4v.js} +3 -3
  42. package/dist/pages.js +1 -1
  43. package/dist/{send-default-agent-team-message-1L9Jv1eJ.js → send-default-agent-team-message-0RB1pYex.js} +1 -1
  44. package/dist/{training-BqYfINRR.js → training-B1eRX8g1.js} +1 -1
  45. package/dist/{webide-AknolY0B.js → webide-C4ThGZzY.js} +1161 -1317
  46. package/dist/z-team-component.css +1 -1
  47. package/package.json +5 -4
  48. package/dist/CognitionWorkbench-DrDFy5jN.js +0 -139
  49. package/dist/DevWorkbench-BtiPE_V4.js +0 -228
  50. package/dist/ProductWorkspace-PSO7Q9m-.js +0 -1323
  51. package/dist/ScheduledTasks-CoaHVU6e.js +0 -12006
  52. package/dist/SmartWorkbench-BkdfSgqx.js +0 -1867
  53. package/dist/SystemShell-CANwRSyW.js +0 -886
  54. package/dist/SystemWorkbench.module-DpLM0zgA.js +0 -36
  55. package/dist/createWorkspaceWsHandler-6xyLJ14H.js +0 -12902
  56. package/dist/instance-B9ZKD5cL.js +0 -186
  57. package/dist/sso-user-Co71Xi9I.js +0 -43
  58. /package/dist/{download-B_LJRFsK.js → index-B_LJRFsK.js} +0 -0
  59. /package/dist/{chatdemo-C815hPWS.js → index-C815hPWS.js} +0 -0
  60. /package/dist/{portal-QNpTaU--.js → index-QNpTaU--.js} +0 -0
@@ -1,186 +0,0 @@
1
- import { a as o, f as l, B as r, b as c } from "./ComponentDoc-BIX-e69A.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-BIX-e69A.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
- };
File without changes