@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.
Files changed (56) hide show
  1. package/dist/{AdminModuleContent-DDB35gOh.js → AdminModuleContent-FFU5MUjw.js} +10526 -10697
  2. package/dist/{ChangeLogView-AKOZ6Ski.js → ChangeLogView-C5v5uT8L.js} +1 -1
  3. package/dist/{ComponentDoc-SiXXhka1.js → ComponentDoc-DnZq0_Rk.js} +1318 -1313
  4. package/dist/{InvitationManagementPage-CRbABOKe.js → InvitationManagementPage-dEBNe9_s.js} +1 -1
  5. package/dist/{OnboardingPage-BNJopRYO.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-B3IxooG2.js → admin-logs-BDPC3Q_Y.js} +5 -5
  9. package/dist/{api-DmBlT5MH.js → api-BJ5jPWNm.js} +1 -1
  10. package/dist/{api-DW8nsucC.js → api-U9U4zzq_.js} +1 -1
  11. package/dist/createWorkspaceWsHandler-B6TdD0Oz.js +11757 -0
  12. package/dist/{index-DCAO83Wb.js → index-BGZV4U3S.js} +1325 -1187
  13. package/dist/{index-Hv2KDG7i.js → index-BPEfgkzE.js} +3 -3
  14. package/dist/{index-VmRWH4U5.js → index-BXaJSMd0.js} +9 -9
  15. package/dist/{index-C1nr0UeB.js → index-Bfw6OE5L.js} +19 -20
  16. package/dist/index-BlDMnzJF.js +18 -0
  17. package/dist/{index-BBLRGBWu.js → index-BmlFIrWx.js} +1 -1
  18. package/dist/{index-C7DSDopw.js → index-BwhK44Dc.js} +26 -27
  19. package/dist/{index-l9KH8r7F.js → index-CP5raaOW.js} +780 -792
  20. package/dist/{index-CvHMXrAD.js → index-CPpqideA.js} +1 -1
  21. package/dist/{index-C24QsGsG.js → index-CToJEufJ.js} +1 -1
  22. package/dist/{index-CJ7dJejJ.js → index-CVgvlDAT.js} +17 -17
  23. package/dist/{index-BSqUODiN.js → index-CmzTSdmD.js} +30 -31
  24. package/dist/{index-BV64kKse.js → index-CsNtBWH-.js} +2 -2
  25. package/dist/index-DIv1OJ_2.js +1840 -0
  26. package/dist/{index-Du95tdVf.js → index-DKUg7Evq.js} +28 -29
  27. package/dist/{index-DULYXalY.js → index-DSXVCDf7.js} +9 -9
  28. package/dist/{index-CXjen4Gx.js → index-Dd5RE_0a.js} +342 -389
  29. package/dist/index-DuZrrpXt.js +1298 -0
  30. package/dist/{index-D-G4mbxH.js → index-Gn0zdd5m.js} +2 -2
  31. package/dist/index-WWGxF0UX.js +136 -0
  32. package/dist/{index-DHrMSEVJ.js → index-XTNGZnrF.js} +1 -1
  33. package/dist/{index-D7thpI99.js → index-XgaiU13i.js} +1 -1
  34. package/dist/{index-DjbLq5lI.js → index-d6RIzlsj.js} +2 -2
  35. package/dist/{index-DDOfdrn4.js → index-kjli87DO.js} +3895 -3964
  36. package/dist/{index-D440bEgm.js → index-mDjl3m2W.js} +198 -192
  37. package/dist/{index-CEoS_jEa.js → index-skl-gjj4.js} +6 -6
  38. package/dist/index.js +1 -1
  39. package/dist/instance-D_EP8AQm.js +116 -0
  40. package/dist/{menuPermission-DxknHmt8.js → menuPermission-Bhnols4v.js} +3 -3
  41. package/dist/pages.js +1 -1
  42. package/dist/{send-default-agent-team-message-DYytBtLc.js → send-default-agent-team-message-0RB1pYex.js} +1 -1
  43. package/dist/{training-CKYPSkUP.js → training-B1eRX8g1.js} +1 -1
  44. package/dist/{webide-JAalC_Wr.js → webide-C4ThGZzY.js} +1161 -1317
  45. package/dist/z-team-component.css +1 -1
  46. package/package.json +4 -4
  47. package/dist/ScheduledTasks-Cn_CEZ-B.js +0 -12006
  48. package/dist/SystemShell-B8Tyluzu.js +0 -893
  49. package/dist/SystemWorkbench.module-DpLM0zgA.js +0 -36
  50. package/dist/createWorkspaceWsHandler-5MHgQGfJ.js +0 -12902
  51. package/dist/index-BT4oQJby.js +0 -228
  52. package/dist/index-DrDFy5jN.js +0 -139
  53. package/dist/index-DvslXAjT.js +0 -1323
  54. package/dist/index-NIu3OKHi.js +0 -1868
  55. package/dist/instance-B4SrJ-BY.js +0 -186
  56. package/dist/sso-user-DN6kSAc0.js +0 -43
@@ -1,8 +1,8 @@
1
1
  import { jsxs as f, jsx as t } from "react/jsx-runtime";
2
2
  import { useState as h, useCallback as u } from "react";
3
- import { S as I, P } from "./webide-JAalC_Wr.js";
4
- import { L as D, P as N, S as H, C as W, E as $, a as j, W as b, b as g, T as B, c as O } from "./ScheduledTasks-Cn_CEZ-B.js";
5
- import { w as q, p as z } from "./index-DDOfdrn4.js";
3
+ import { S as I, P } from "./webide-C4ThGZzY.js";
4
+ import { L as D, P as N, S as H, C as W, E as $, a as j, W as b, b as g, T as B, c as O } from "./ScheduledTasks-BaZ0_klE.js";
5
+ import { w as q, p as z } from "./index-kjli87DO.js";
6
6
  import { TodoTab as E } from "@yuku123/z-task-component";
7
7
  function J({
8
8
  view: s,
@@ -1,14 +1,14 @@
1
1
  import { jsxs as c, jsx as a } from "react/jsx-runtime";
2
2
  import v, { useState as d, useEffect as _, useMemo as h } from "react";
3
3
  import { useLocation as N } from "react-router-dom";
4
- import { E as b, F as g } from "./ComponentDoc-SiXXhka1.js";
5
- import { i as K, P as x } from "./index-DULYXalY.js";
6
- const E = "_banner_2v7mc_1", F = "_dot_2v7mc_18", S = "_text_2v7mc_26", f = "_retry_2v7mc_31", A = "_dismiss_2v7mc_44", P = "_details_2v7mc_57", k = "_method_2v7mc_85", C = "_status_2v7mc_86", D = "_statusNet_2v7mc_87", $ = "_url_2v7mc_88", e = {
4
+ import { H as b, I as g } from "./ComponentDoc-DnZq0_Rk.js";
5
+ import { i as K, P as x } from "./index-DSXVCDf7.js";
6
+ const E = "_banner_2v7mc_1", S = "_dot_2v7mc_18", f = "_text_2v7mc_26", A = "_retry_2v7mc_31", F = "_dismiss_2v7mc_44", P = "_details_2v7mc_57", k = "_method_2v7mc_85", C = "_status_2v7mc_86", D = "_statusNet_2v7mc_87", $ = "_url_2v7mc_88", e = {
7
7
  banner: E,
8
- dot: F,
9
- text: S,
10
- retry: f,
11
- dismiss: A,
8
+ dot: S,
9
+ text: f,
10
+ retry: A,
11
+ dismiss: F,
12
12
  details: P,
13
13
  method: k,
14
14
  status: C,
@@ -61,7 +61,7 @@ const E = "_banner_2v7mc_1", F = "_dot_2v7mc_18", S = "_text_2v7mc_26", f = "_re
61
61
  )
62
62
  ] });
63
63
  };
64
- class T extends v.Component {
64
+ class H extends v.Component {
65
65
  constructor() {
66
66
  super(...arguments), this.state = { error: null, resetKey: this.props.resetKey };
67
67
  }
@@ -89,5 +89,5 @@ class T extends v.Component {
89
89
  }
90
90
  export {
91
91
  B as P,
92
- T as R
92
+ H as R
93
93
  };
@@ -1,21 +1,20 @@
1
1
  import { jsx as r, jsxs as x } from "react/jsx-runtime";
2
2
  import { f as z, r as T } from "./ctc-sso-DtJHC-2M.js";
3
- import { r as D, h as U, s as F } from "./sso-user-DN6kSAc0.js";
4
- import { CheckCircleFilled as W } from "@ant-design/icons";
5
- import { Result as B, Button as H, Spin as G } from "antd";
6
- import J from "query-string";
7
- import { useState as d, useRef as K, useCallback as O, useMemo as R, useEffect as E } from "react";
8
- import { useLocation as Q } from "react-router-dom";
3
+ import { u as s, j as D, r as F, k as U, l as W, m as B } from "./ComponentDoc-DnZq0_Rk.js";
4
+ import { CheckCircleFilled as H } from "@ant-design/icons";
5
+ import { Result as G, Button as J, Spin as K } from "antd";
6
+ import O from "query-string";
7
+ import { useState as d, useRef as Q, useCallback as V, useMemo as R, useEffect as E } from "react";
8
+ import { useLocation as X } from "react-router-dom";
9
9
  import { h as b } from "./history-BlrA1eaW.js";
10
- import { u as s, j as V, k as X } from "./ComponentDoc-SiXXhka1.js";
11
10
  import { b as Y } from "./mobile-client-O3yr9h6t.js";
12
- import { s as Z } from "./send-default-agent-team-message-DYytBtLc.js";
13
- function ue() {
14
- const h = Q(), f = J.parse(h.search), c = String(
11
+ import { s as Z } from "./send-default-agent-team-message-0RB1pYex.js";
12
+ function pe() {
13
+ const h = X(), f = O.parse(h.search), c = String(
15
14
  f.scenarioCode ?? f.scenario_code ?? ""
16
15
  ).trim(), a = String(
17
16
  f.projectName ?? f.project_name ?? ""
18
- ).trim(), i = String(f.input ?? "").trim(), _ = s((e) => e.expandProject), g = s((e) => e.updateCurrentUser), [j, I] = d(!1), [w, y] = d(""), [M, p] = d("正在登录…"), [k, $] = d([]), C = K(!1), u = O((e, t) => {
17
+ ).trim(), i = String(f.input ?? "").trim(), _ = s((e) => e.expandProject), g = s((e) => e.updateCurrentUser), [j, I] = d(!1), [w, y] = d(""), [M, p] = d("正在登录…"), [k, $] = d([]), C = Q(!1), u = V((e, t) => {
19
18
  $((o) => [...o, e]), p(t);
20
19
  }, []), n = R(() => c ? a ? "" : "缺少参数 projectName" : "缺少参数 scenarioCode", [a, c]);
21
20
  E(() => {
@@ -31,7 +30,7 @@ function ue() {
31
30
  const v = async () => {
32
31
  if (e)
33
32
  return;
34
- let l = D();
33
+ let l = F();
35
34
  if ((!l || !U(l)) && !S) {
36
35
  S = !0;
37
36
  try {
@@ -43,10 +42,10 @@ function ue() {
43
42
  }
44
43
  }
45
44
  if (l && U(l)) {
46
- g(F(l));
45
+ g(W(l));
47
46
  const m = s.getState().token;
48
47
  try {
49
- const L = await X(m);
48
+ const L = await B(m);
50
49
  e || g(L);
51
50
  } catch {
52
51
  !e && m && (localStorage.removeItem("z_team_token"), s.setState({ token: "" }));
@@ -82,7 +81,7 @@ function ue() {
82
81
  try {
83
82
  const e = s.getState().token;
84
83
  p("正在按专家团创建工程…");
85
- const t = await V(
84
+ const t = await D(
86
85
  {
87
86
  name: a,
88
87
  description: "",
@@ -133,13 +132,13 @@ function ue() {
133
132
  return i && e.push("含首条协作消息"), e.join(" · ");
134
133
  }, [i, n, a, c]);
135
134
  return w ? /* @__PURE__ */ r("div", { className: "from-scenario-page", children: /* @__PURE__ */ r(
136
- B,
135
+ G,
137
136
  {
138
137
  status: "error",
139
138
  title: "无法创建工程",
140
139
  subTitle: w,
141
140
  extra: /* @__PURE__ */ r(
142
- H,
141
+ J,
143
142
  {
144
143
  type: "primary",
145
144
  onClick: () => b.replace("/workspace"),
@@ -148,7 +147,7 @@ function ue() {
148
147
  )
149
148
  }
150
149
  ) }) : /* @__PURE__ */ r("div", { className: "from-scenario-page", children: /* @__PURE__ */ x("div", { className: "from-scenario-page__panel", children: [
151
- /* @__PURE__ */ r(G, { size: "large" }),
150
+ /* @__PURE__ */ r(K, { size: "large" }),
152
151
  /* @__PURE__ */ r("p", { className: "from-scenario-page__step", children: M }),
153
152
  N ? /* @__PURE__ */ r("p", { className: "from-scenario-page__hint", children: N }) : null,
154
153
  k.length > 0 ? /* @__PURE__ */ r("ul", { className: "from-scenario-page__done-list", children: k.filter((e) => e.trim().length > 0).map((e, t) => /* @__PURE__ */ x(
@@ -156,7 +155,7 @@ function ue() {
156
155
  {
157
156
  className: "from-scenario-page__done-item",
158
157
  children: [
159
- /* @__PURE__ */ r(W, { className: "from-scenario-page__done-icon" }),
158
+ /* @__PURE__ */ r(H, { className: "from-scenario-page__done-icon" }),
160
159
  /* @__PURE__ */ r("span", { children: e })
161
160
  ]
162
161
  },
@@ -165,5 +164,5 @@ function ue() {
165
164
  ] }) });
166
165
  }
167
166
  export {
168
- ue as default
167
+ pe as default
169
168
  };
@@ -0,0 +1,18 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ const l = "_shell_jc602_6", r = "_frame_jc602_15", s = {
3
+ shell: l,
4
+ frame: r
5
+ };
6
+ function c() {
7
+ return /* @__PURE__ */ e("div", { className: s.shell, children: /* @__PURE__ */ e(
8
+ "iframe",
9
+ {
10
+ src: "/cognition/",
11
+ title: "知识中台",
12
+ className: s.frame
13
+ }
14
+ ) });
15
+ }
16
+ export {
17
+ c as default
18
+ };
@@ -365,7 +365,7 @@ const J = "_welcome_1pluv_11", K = "_bgWash_1pluv_57", U = "_bgGrid_1pluv_68", j
365
365
  {
366
366
  icon: "network",
367
367
  title: "星型多 Agent 协作",
368
- desc: "TeamAgent 主控拆解需求,群内 @子 Agent 即可联合多方 Agent,无需显式调用与编排。",
368
+ desc: "群聊即专家团:每位成员都是真实干活的员工,一件事一人闭环;聊着聊着缺人时系统直接拉入真正的专家。",
369
369
  tag: "TeamAgent"
370
370
  },
371
371
  {
@@ -1,16 +1,15 @@
1
1
  import { jsx as t, jsxs as l } from "react/jsx-runtime";
2
- import { f as ie, r as q } from "./ctc-sso-DtJHC-2M.js";
3
- import { r as ne, h as X, s as oe } from "./sso-user-DN6kSAc0.js";
4
- import { CheckCircleFilled as le, QuestionCircleOutlined as ce, CloseOutlined as me } from "@ant-design/icons";
5
- import { message as P, Result as de, Button as D, Spin as G, Input as ue, Image as fe } from "antd";
6
- import pe from "query-string";
2
+ import { f as ie, r as z } from "./ctc-sso-DtJHC-2M.js";
3
+ import { u as c, E as ne, j as oe, r as le, k as X, l as ce, m as me } from "./ComponentDoc-DnZq0_Rk.js";
4
+ import { CheckCircleFilled as de, QuestionCircleOutlined as ue, CloseOutlined as fe } from "@ant-design/icons";
5
+ import { message as P, Result as pe, Button as D, Spin as G, Input as ge, Image as he } from "antd";
6
+ import be from "query-string";
7
7
  import { useState as f, useRef as Y, useMemo as K, useCallback as w, useEffect as V } from "react";
8
- import { useLocation as ge } from "react-router-dom";
8
+ import { useLocation as _e } from "react-router-dom";
9
9
  import { h as W } from "./history-BlrA1eaW.js";
10
- import { u as c, z as he, j as be, k as _e } from "./ComponentDoc-SiXXhka1.js";
11
10
  /* empty css */
12
11
  import { b as ye } from "./mobile-client-O3yr9h6t.js";
13
- import { a as ve, s as we } from "./send-default-agent-team-message-DYytBtLc.js";
12
+ import { a as ve, s as we } from "./send-default-agent-team-message-0RB1pYex.js";
14
13
  const Ne = 5e3, E = 9, Ce = 10 * 1024 * 1024, Se = /^image\//i, Ie = /\.(png|jpe?g|gif|bmp|webp)$/i;
15
14
  function ke(a) {
16
15
  return a.type && Se.test(a.type) ? !0 : Ie.test(a.name || "");
@@ -43,8 +42,8 @@ function Ue(a) {
43
42
  return a.map((m) => m.file);
44
43
  }
45
44
  const J = 30;
46
- function Xe() {
47
- const a = ge(), m = pe.parse(a.search), o = String(
45
+ function ze() {
46
+ const a = _e(), m = be.parse(a.search), o = String(
48
47
  m.scenarioCode ?? m.scenario_code ?? ""
49
48
  ).trim(), p = c((e) => e.expandProject), d = c((e) => e.updateCurrentUser), [N, H] = f(!1), [_, Z] = f(""), [y, U] = f([]), [M, R] = f("form"), [j, T] = f(""), [A, g] = f("正在登录…"), [B, F] = f([]), k = Y(!1), x = Y(y);
50
49
  x.current = y;
@@ -66,7 +65,7 @@ function Xe() {
66
65
  const u = async () => {
67
66
  if (e)
68
67
  return;
69
- let h = ne();
68
+ let h = le();
70
69
  if ((!h || !X(h)) && !i) {
71
70
  i = !0;
72
71
  try {
@@ -78,10 +77,10 @@ function Xe() {
78
77
  }
79
78
  }
80
79
  if (h && X(h)) {
81
- d(oe(h));
80
+ d(ce(h));
82
81
  const b = c.getState().token;
83
82
  try {
84
- const se = await _e(b);
83
+ const se = await me(b);
85
84
  e || d(se);
86
85
  } catch {
87
86
  !e && b && (localStorage.removeItem("z_team_token"), c.setState({ token: "" }));
@@ -91,11 +90,11 @@ function Xe() {
91
90
  return;
92
91
  }
93
92
  if (s >= v) {
94
- q();
93
+ z();
95
94
  return;
96
95
  }
97
96
  if (r += 1, r >= n) {
98
- q();
97
+ z();
99
98
  return;
100
99
  }
101
100
  window.setTimeout(() => void u(), 150);
@@ -113,8 +112,8 @@ function Xe() {
113
112
  const n = e.slice(0, J), i = c.getState().token;
114
113
  try {
115
114
  let s = [];
116
- r.length > 0 && (g("正在上传图片…"), s = await he(r));
117
- const v = ve(e, s), I = await be(
115
+ r.length > 0 && (g("正在上传图片…"), s = await ne(r));
116
+ const v = ve(e, s), I = await oe(
118
117
  {
119
118
  name: n,
120
119
  description: v,
@@ -191,7 +190,7 @@ function Xe() {
191
190
  }, [_, o]);
192
191
  if (C || j && M === "form")
193
192
  return /* @__PURE__ */ t("div", { className: "build-by-form-page", children: /* @__PURE__ */ t(
194
- de,
193
+ pe,
195
194
  {
196
195
  status: "error",
197
196
  title: "无法继续",
@@ -221,17 +220,17 @@ function Xe() {
221
220
  {
222
221
  className: "build-by-form-page__done-item",
223
222
  children: [
224
- /* @__PURE__ */ t(le, { className: "build-by-form-page__done-icon" }),
223
+ /* @__PURE__ */ t(de, { className: "build-by-form-page__done-icon" }),
225
224
  /* @__PURE__ */ t("span", { children: e })
226
225
  ]
227
226
  },
228
227
  `${r}-${e}`
229
228
  )) }) : null
230
229
  ] }) }) }) });
231
- const z = !!_.trim();
230
+ const q = !!_.trim();
232
231
  return /* @__PURE__ */ t("div", { className: "build-by-form-page", children: /* @__PURE__ */ t("div", { className: "build-by-form-page__shell", children: /* @__PURE__ */ l("div", { className: "build-by-form-page__panel", children: [
233
232
  /* @__PURE__ */ l("div", { className: "build-by-form-page__header", children: [
234
- /* @__PURE__ */ t("div", { className: "build-by-form-page__icon", "aria-hidden": !0, children: /* @__PURE__ */ t(ce, {}) }),
233
+ /* @__PURE__ */ t("div", { className: "build-by-form-page__icon", "aria-hidden": !0, children: /* @__PURE__ */ t(ue, {}) }),
235
234
  /* @__PURE__ */ l("div", { children: [
236
235
  /* @__PURE__ */ t("h1", { className: "build-by-form-page__title", children: "描述你的问题" }),
237
236
  /* @__PURE__ */ t("p", { className: "build-by-form-page__subtitle", children: "提交后将创建协作空间,并把问题发送给智能体" })
@@ -247,14 +246,14 @@ function Xe() {
247
246
  }
248
247
  ),
249
248
  /* @__PURE__ */ t(
250
- ue.TextArea,
249
+ ge.TextArea,
251
250
  {
252
251
  id: "build-by-form-question",
253
252
  className: "build-by-form-page__textarea",
254
253
  value: _,
255
254
  onChange: (e) => Z(e.target.value),
256
255
  onKeyDown: (e) => {
257
- (e.metaKey || e.ctrlKey) && e.key === "Enter" && z && (e.preventDefault(), $());
256
+ (e.metaKey || e.ctrlKey) && e.key === "Enter" && q && (e.preventDefault(), $());
258
257
  },
259
258
  placeholder: "请尽量描述清楚现象、期望结果或相关背景…(可在输入框内 Ctrl+V 粘贴图片)",
260
259
  autoSize: { minRows: 6, maxRows: 14 },
@@ -269,7 +268,7 @@ function Xe() {
269
268
  className: "build-by-form-page__preview-item",
270
269
  children: [
271
270
  /* @__PURE__ */ t(
272
- fe,
271
+ he,
273
272
  {
274
273
  src: e.previewUrl,
275
274
  alt: "粘贴的图片",
@@ -284,7 +283,7 @@ function Xe() {
284
283
  className: "build-by-form-page__preview-remove",
285
284
  "aria-label": "移除图片",
286
285
  onClick: () => re(e.id),
287
- children: /* @__PURE__ */ t(me, {})
286
+ children: /* @__PURE__ */ t(fe, {})
288
287
  }
289
288
  )
290
289
  ]
@@ -303,7 +302,7 @@ function Xe() {
303
302
  block: !0,
304
303
  size: "large",
305
304
  className: "build-by-form-page__submit",
306
- disabled: !z,
305
+ disabled: !q,
307
306
  onClick: $,
308
307
  children: "确认并开始"
309
308
  }
@@ -311,5 +310,5 @@ function Xe() {
311
310
  ] }) }) });
312
311
  }
313
312
  export {
314
- Xe as default
313
+ ze as default
315
314
  };