@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,13 +1,13 @@
1
1
  import { jsx as n, jsxs as p, Fragment as J } from "react/jsx-runtime";
2
- import { S as An, P as Dn } from "./webide-AknolY0B.js";
2
+ import { S as An, P as Dn } from "./webide-C4ThGZzY.js";
3
3
  import { Dropdown as en } from "antd";
4
4
  import { PlayCircleOutlined as Pn, FileTextOutlined as cn, PlusOutlined as $n, ClockCircleOutlined as jn, AppstoreOutlined as xn, UnorderedListOutlined as En, SettingOutlined as Rn } from "@ant-design/icons";
5
5
  import { useState as d, useRef as Ne, useEffect as I, useCallback as B, useMemo as L } from "react";
6
- import { u as X, o as Mn, q as Kn, t as Fn, n as z, v as Bn, w as ke, x as Hn, y as Wn } from "./ComponentDoc-BIX-e69A.js";
7
- import { s, T as _n, R as De, D as we, f as Zn, a as Gn, F as Pe, P as Vn, L as Un, A as Qn, C as zn, b as Jn, c as Xn, p as Yn, d as qn, e as nn, g as tn, h as et, W as nt, i as tt, S as st, j as at, k as lt, l as sn, m as ot, r as it, n as ct, U as rt, o as dt, q as ut, t as pt } from "./index-Bs_WMKyt.js";
8
- import { u as rn, i as ht, s as an, c as mt } from "./createWorkspaceWsHandler-6xyLJ14H.js";
9
- import { h as ft, f as gt } from "./index-BlfOXOZM.js";
10
- import { S as bt, P as yt, L as kt, a as Nt, E as wt, C as Tt, W as ln, b as on, T as vt, c as Ct } from "./ScheduledTasks-CoaHVU6e.js";
6
+ import { u as X, w as Mn, x as Kn, t as Fn, v as z, y as Bn, z as ke, A as Hn, D as Wn } from "./ComponentDoc-DnZq0_Rk.js";
7
+ import { s, T as _n, R as De, D as we, f as Zn, a as Gn, F as Pe, P as Vn, L as Un, A as Qn, C as zn, b as Jn, c as Xn, p as Yn, d as qn, e as nn, g as tn, h as et, W as nt, i as tt, S as st, j as at, k as lt, l as sn, m as ot, r as it, n as ct, U as rt, o as dt, q as ut, t as pt } from "./index-kjli87DO.js";
8
+ import { u as rn, i as ht, s as an, c as mt } from "./createWorkspaceWsHandler-B6TdD0Oz.js";
9
+ import { h as ft, f as gt } from "./index-DSXVCDf7.js";
10
+ import { S as bt, P as yt, L as kt, a as Nt, E as wt, C as Tt, W as ln, b as on, T as vt, c as Ct } from "./ScheduledTasks-BaZ0_klE.js";
11
11
  import { TodoTab as St } from "@yuku123/z-task-component";
12
12
  const It = [
13
13
  "帮我排查一个线上问题",
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as e, P as s, S as a, Z as r, i } from "./ComponentDoc-BIX-e69A.js";
1
+ import { C as e, P as s, S as a, Z as r, i } from "./ComponentDoc-DnZq0_Rk.js";
2
2
  import { h as m } from "./history-BlrA1eaW.js";
3
3
  export {
4
4
  e as ComponentDocPage,
@@ -0,0 +1,116 @@
1
+ import { a, f as c, B as o, b as r } from "./ComponentDoc-DnZq0_Rk.js";
2
+ async function S(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 a(
6
+ `${o}/scenario-instances/page?${t.toString()}`,
7
+ c
8
+ );
9
+ return r(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
+ members: Array.isArray(e.members) ? e.members.map((n) => String(n)) : void 0,
26
+ parent_id: m(e)
27
+ };
28
+ }
29
+ function m(e) {
30
+ const n = e.ext;
31
+ if (!n) return;
32
+ const t = n.params;
33
+ if (!t) return;
34
+ const s = t.parent_id;
35
+ if (s == null) return;
36
+ const i = s === "" ? "" : String(s);
37
+ return i === "" ? void 0 : i;
38
+ }
39
+ async function f(e) {
40
+ const n = await a(
41
+ `${o}/scenario-instances/${e}/models`
42
+ );
43
+ return await r(n, "获取模型列表失败") ?? [];
44
+ }
45
+ const u = "develop_brain_scenario";
46
+ async function $(e) {
47
+ const n = await a(
48
+ `${o}/dev-brain/agent/ticket?ticketId=${encodeURIComponent(e)}`,
49
+ c
50
+ );
51
+ return r(n, "获取工单信息失败");
52
+ }
53
+ function I(e) {
54
+ return String(e.currentStage ?? e.current_stage ?? "").trim();
55
+ }
56
+ function p(e) {
57
+ const n = e.trim().replace(/[/\\:*?"<>|]/g, "_");
58
+ return n.length > 0 ? n.slice(0, 80) : "workspace";
59
+ }
60
+ function h(e, n) {
61
+ var d;
62
+ const t = e.requirementTitle && e.requirementTitle.trim() || n, s = { ticket_id: n }, i = (d = e.foneUrl) == null ? void 0 : d.trim();
63
+ return i && (s.work_order_url = i), {
64
+ name: t,
65
+ description: `ticket_id_${n}_${t}`,
66
+ workspace_path: p(t),
67
+ scenario_code: u,
68
+ extend_params: s
69
+ };
70
+ }
71
+ async function C(e, n = "") {
72
+ const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await a(
73
+ `${o}/scenario-instances/${e}${t}`,
74
+ c
75
+ ), i = await r(s, "获取项目失败"), d = i.status === "FOUND" ? "FOUND" : "NOT_FOUND", l = i.scenario_instance ?? i.scenarioInstance ?? null;
76
+ return {
77
+ status: d,
78
+ scenarioInstance: l ? _(l) : null
79
+ };
80
+ }
81
+ async function v(e, n = "") {
82
+ const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await a(
83
+ `${o}/scenario-instances/${e}/join-self${t}`,
84
+ {
85
+ ...c,
86
+ method: "POST"
87
+ }
88
+ ), i = await r(s, "加入工程失败");
89
+ return _(i);
90
+ }
91
+ async function k(e = "") {
92
+ const n = e ? `?token=${encodeURIComponent(e)}` : "", t = await a(`${o}/self-support${n}`, c), s = await r(t, "获取自身答疑群组失败"), i = Number(s.scenario_instance_id ?? 0);
93
+ if (!Number.isFinite(i) || i <= 0)
94
+ throw {
95
+ _apiUserError: !0,
96
+ userMessage: "自身答疑群组无效",
97
+ message: "自身答疑群组无效"
98
+ };
99
+ return {
100
+ scenario_instance_id: i,
101
+ name: String(s.name ?? "Z-OPC 自身答疑"),
102
+ scenario_code: String(s.scenario_code ?? "qa_support"),
103
+ workspace_path: String(s.workspace_path ?? ""),
104
+ status: String(s.status ?? "ACTIVE")
105
+ };
106
+ }
107
+ export {
108
+ S as a,
109
+ h as b,
110
+ f as c,
111
+ k as d,
112
+ $ as f,
113
+ v as j,
114
+ C as l,
115
+ I as p
116
+ };
@@ -1,8 +1,8 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import { Alert as h } from "antd";
3
- import { u as d } from "./ComponentDoc-BIX-e69A.js";
4
- import { h as g } from "./index-BlfOXOZM.js";
5
- import { N as A } from "./index-Bs_WMKyt.js";
3
+ import { u as d } from "./ComponentDoc-DnZq0_Rk.js";
4
+ import { h as g } from "./index-DSXVCDf7.js";
5
+ import { N as A } from "./index-kjli87DO.js";
6
6
  function P() {
7
7
  return d((n) => n.permissionState) !== "failed" ? null : /* @__PURE__ */ a(
8
8
  h,
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-BIX-e69A.js";
1
+ import { S as t, P as o, C as r, Z as a } from "./ComponentDoc-DnZq0_Rk.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";
@@ -1,4 +1,4 @@
1
- import { s as l } from "./ComponentDoc-BIX-e69A.js";
1
+ import { s as l } from "./ComponentDoc-DnZq0_Rk.js";
2
2
  function m(o) {
3
3
  const n = o.filter((t) => t.member_type === "AGENT");
4
4
  return n.find((t) => t.is_default === !0) ?? n[0] ?? null;
@@ -1,4 +1,4 @@
1
- import { a as g, f, B as y, b as m } from "./ComponentDoc-BIX-e69A.js";
1
+ import { a as g, f, B as y, b as m } from "./ComponentDoc-DnZq0_Rk.js";
2
2
  function t(n, a = "") {
3
3
  const i = new URLSearchParams();
4
4
  Object.entries(n).forEach(([u, o]) => {