@yuku123/z-team-component 0.2.91 → 0.2.93

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 (54) hide show
  1. package/dist/{ChangeLogView-DagOxr6O.js → ChangeLogView-BjV4gBq4.js} +12 -12
  2. package/dist/ComponentDoc-C9lt-45y.js +8035 -0
  3. package/dist/{InvitationManagementPage-DYoqQA0v.js → InvitationManagementPage-CWtBWLd9.js} +1 -1
  4. package/dist/{OnboardingPage-D2Gm8MRd.js → OnboardingPage-B2fwh4gu.js} +2 -2
  5. package/dist/{ScheduledTasks-DB3VxAnb.js → ScheduledTasks-CuQyjAK-.js} +4341 -4337
  6. package/dist/{SystemShell-D3jHItxY.js → SystemShell-CTkRb3jk.js} +11 -12
  7. package/dist/admin-logs-Dh41ezP6.js +198 -0
  8. package/dist/{api-DYsAzJJo.js → api-ChrRZOc4.js} +1 -1
  9. package/dist/createWorkspaceWsHandler-DMw_Vk6i.js +13135 -0
  10. package/dist/{index-152G-_4j.js → index-3JPBTMXq.js} +5 -6
  11. package/dist/{index-CLD5lLa6.js → index-7glbcqX1.js} +19 -19
  12. package/dist/{index-CSpckSHg.js → index-BYpA6zMn.js} +23 -23
  13. package/dist/{index-BydWNuk5.js → index-BZCQSW-G.js} +44 -51
  14. package/dist/{index-CLfhHxPf.js → index-B_2fxZ6u.js} +1 -1
  15. package/dist/{index-B5dDwxhs.js → index-BnRRZ6Iv.js} +1 -1
  16. package/dist/{index-W_4faD_M.js → index-C-XgeN0c.js} +2 -2
  17. package/dist/index-CA0ql0r3.js +3495 -0
  18. package/dist/{index-CgWa7RFv.js → index-CIGBLmd6.js} +23 -24
  19. package/dist/{index-Cggl78j7.js → index-CLSOhZRs.js} +5 -6
  20. package/dist/index-CLnmI_a7.js +316 -0
  21. package/dist/{index-BfzgRKii.js → index-CSXrOBjf.js} +90 -91
  22. package/dist/{index-ues0LW7p.js → index-CdqU0NUf.js} +1257 -1258
  23. package/dist/{index-BMQ6XkO3.js → index-CnWYolUK.js} +1 -1
  24. package/dist/{index-CYyFYmlZ.js → index-CrQpBHe1.js} +8 -9
  25. package/dist/{index-BZ12pY96.js → index-D1_tbmUH.js} +2 -2
  26. package/dist/{index-CZyFAmEq.js → index-DNo7i9f6.js} +10 -11
  27. package/dist/{index-DE82vM_4.js → index-DPyEBso8.js} +19 -18
  28. package/dist/{index-DyQ9YnMd.js → index-DdvzONMo.js} +3663 -3537
  29. package/dist/{index-Dwqa30HZ.js → index-Dq4oBpcb.js} +4 -4
  30. package/dist/{index-C8cR7lJw.js → index-DtIPLfks.js} +10 -11
  31. package/dist/{index-Cw6MIoNv.js → index-Dy6vNz1c.js} +6 -7
  32. package/dist/{index-VGtET31b.js → index-bkqC-Ys8.js} +1 -1
  33. package/dist/{index-E4Q6JmzX.js → index-fab1eszg.js} +3 -3
  34. package/dist/{index-BYe87pnq.js → index-vIdK5WMU.js} +11 -12
  35. package/dist/index.js +1 -1
  36. package/dist/{instance-CI6-4BZ6.js → instance-BY043pYn.js} +1 -1
  37. package/dist/{menuPermission-C33I6ujb.js → menuPermission-BeYwZcoW.js} +11 -11
  38. package/dist/pages.js +8 -8
  39. package/dist/{send-default-agent-team-message-c5oKdQQA.js → send-default-agent-team-message-BN61cG7q.js} +1 -1
  40. package/dist/{sso-user-DToM5dPy.js → sso-user-DmsDr1MJ.js} +1 -1
  41. package/dist/{training-B38tnwLL.js → training-CU6j5m-5.js} +1 -1
  42. package/dist/webide-BYaEjOx6.js +5233 -0
  43. package/dist/z-team-component.css +1 -26
  44. package/package.json +3 -2
  45. package/dist/ComponentDoc-Bqfu128t.js +0 -3998
  46. package/dist/admin-logs-ogvMwS4O.js +0 -302
  47. package/dist/api-BftpestH.js +0 -2156
  48. package/dist/createWorkspaceWsHandler-D8h5BEzH.js +0 -13030
  49. package/dist/index-BaCqZeiw.js +0 -1143
  50. package/dist/index-CUVdeb8y.js +0 -638
  51. package/dist/index-DVaTGA2z.js +0 -3488
  52. package/dist/schedule-ChO2xIGd.js +0 -625
  53. package/dist/useAppStore-uc8v8XZC.js +0 -1920
  54. package/dist/webide-BuUYLPSp.js +0 -8399
@@ -2,7 +2,7 @@ import { jsxs as r, jsx as n, Fragment as H } from "react/jsx-runtime";
2
2
  import { BookOutlined as V, ReloadOutlined as Ne, SearchOutlined as fe, CloseOutlined as ge, CaretDownOutlined as ve, CaretRightOutlined as Te } from "@ant-design/icons";
3
3
  import { message as Se, Spin as F } from "antd";
4
4
  import { useState as k, useRef as M, useEffect as G, useCallback as C } from "react";
5
- import { a as A, B as R, u as E } from "./api-BftpestH.js";
5
+ import { a as A, B as R, u as E } from "./ComponentDoc-C9lt-45y.js";
6
6
  function B(a) {
7
7
  const l = new URLSearchParams();
8
8
  Object.entries(a).forEach(([N, s]) => {
@@ -1,24 +1,23 @@
1
1
  import { jsx as s, jsxs as C } from "react/jsx-runtime";
2
2
  import { f as z, r as v } from "./ctc-sso-DtJHC-2M.js";
3
- import { r as L, h as N, s as T } from "./sso-user-DToM5dPy.js";
3
+ import { r as L, h as N, s as T } from "./sso-user-DmsDr1MJ.js";
4
4
  import { CheckCircleFilled as q } from "@ant-design/icons";
5
5
  import { Spin as R } from "antd";
6
6
  import W from "query-string";
7
7
  import { useMemo as P, useState as p, useCallback as A, useEffect as U } from "react";
8
8
  import { useLocation as F } from "react-router-dom";
9
9
  import { h as H } from "./history-BlrA1eaW.js";
10
- import { c as Y, e as B } from "./api-BftpestH.js";
11
- import { u as m } from "./useAppStore-uc8v8XZC.js";
10
+ import { d as m, e as Y, j as B } from "./ComponentDoc-C9lt-45y.js";
12
11
  /* empty css */
13
12
  import { b as G } from "./mobile-client-O3yr9h6t.js";
14
- function ne() {
13
+ function oe() {
15
14
  const i = F(), g = W.parse(i.search), S = P(
16
15
  () => String(g.name ?? "WebIDE 在线咨询").trim(),
17
16
  [i.search]
18
17
  ), _ = P(
19
18
  () => String(g.source ?? "z-team-webide").trim(),
20
19
  [i.search]
21
- ), [b, E] = p(!1), [I, y] = p("正在登录…"), [w, M] = p([]), [$, x] = p(""), { currentUser: d, updateCurrentUser: u, expandProject: j } = m(), f = A((e, o) => {
20
+ ), [b, E] = p(!1), [I, y] = p("正在登录…"), [w, M] = p([]), [j, x] = p(""), { currentUser: d, updateCurrentUser: u, expandProject: $ } = m(), f = A((e, o) => {
22
21
  M((a) => [...a, e]), y(o);
23
22
  }, []);
24
23
  return U(() => {
@@ -85,7 +84,7 @@ function ne() {
85
84
  },
86
85
  a.token
87
86
  );
88
- if (e || (f("群组已创建", "正在初始化工作区…"), await j(l), e)) return;
87
+ if (e || (f("群组已创建", "正在初始化工作区…"), await $(l), e)) return;
89
88
  const t = m.getState();
90
89
  if (t.currentProject && await t.refreshProjectPanels(
91
90
  t.currentProject.id,
@@ -109,10 +108,10 @@ function ne() {
109
108
  d,
110
109
  S,
111
110
  _,
112
- j,
111
+ $,
113
112
  f,
114
113
  i.search
115
- ]), $ ? /* @__PURE__ */ s("div", { className: "embed-chat-page embed-chat-page--error", children: /* @__PURE__ */ s("p", { children: $ }) }) : /* @__PURE__ */ s("div", { className: "embed-chat-page embed-chat-page--loading", children: /* @__PURE__ */ C("div", { className: "embed-chat-page__panel", children: [
114
+ ]), j ? /* @__PURE__ */ s("div", { className: "embed-chat-page embed-chat-page--error", children: /* @__PURE__ */ s("p", { children: j }) }) : /* @__PURE__ */ s("div", { className: "embed-chat-page embed-chat-page--loading", children: /* @__PURE__ */ C("div", { className: "embed-chat-page__panel", children: [
116
115
  /* @__PURE__ */ s(R, { size: "large" }),
117
116
  /* @__PURE__ */ s("p", { className: "embed-chat-page__step", children: I }),
118
117
  w.length > 0 ? /* @__PURE__ */ s("ul", { className: "embed-chat-page__done-list", children: w.filter((e) => e.trim().length > 0).map((e, o) => /* @__PURE__ */ C(
@@ -129,5 +128,5 @@ function ne() {
129
128
  ] }) });
130
129
  }
131
130
  export {
132
- ne as default
131
+ oe as default
133
132
  };
@@ -2,7 +2,7 @@ import { jsx as e } from "react/jsx-runtime";
2
2
  import { Navigate as t } from "react-router-dom";
3
3
  import { lazy as A } from "react";
4
4
  import { UnorderedListOutlined as i, HistoryOutlined as T, ClusterOutlined as p, DashboardOutlined as s, ExperimentOutlined as q, SettingOutlined as d, KeyOutlined as n, AppstoreOutlined as r, SafetyCertificateOutlined as P, TeamOutlined as w, ProfileOutlined as b, ApiOutlined as u, HddOutlined as l, ApartmentOutlined as g, InboxOutlined as k, FileTextOutlined as y, SendOutlined as G, CloudServerOutlined as a, NodeIndexOutlined as z, TableOutlined as f, SearchOutlined as m, DatabaseOutlined as v, ConsoleSqlOutlined as E, BranchesOutlined as I, DeploymentUnitOutlined as M, BookOutlined as h, FundOutlined as N, CloudUploadOutlined as _, TagsOutlined as x, CodeOutlined as B } from "@ant-design/icons";
5
- import { W as R } from "./index-CLD5lLa6.js";
5
+ import { W as R } from "./index-7glbcqX1.js";
6
6
  import { ConfigApp as U } from "@yuku123/z-config-component";
7
7
  import { MistApp as H } from "@yuku123/z-mist-component";
8
8
  import { MetaApp as L } from "@yuku123/z-meta-component";
@@ -16,7 +16,7 @@ import { MqApp as Z } from "@yuku123/z-mq-component";
16
16
  import { OssApp as J } from "@yuku123/z-oss-component";
17
17
  import { ZkbApp as X } from "@yuku123/z-kb-component";
18
18
  import { ScriptProductizationPage as o } from "@yuku123/z-agent-component";
19
- import "./index-DyQ9YnMd.js";
19
+ import "./index-DdvzONMo.js";
20
20
  const $ = "/api/graph";
21
21
  let O = !1;
22
22
  function ee() {
@@ -1,17 +1,16 @@
1
1
  import { jsx as t, jsxs as l } from "react/jsx-runtime";
2
2
  import { f as ie, r as z } from "./ctc-sso-DtJHC-2M.js";
3
- import { r as ne, h as X, s as oe } from "./sso-user-DToM5dPy.js";
3
+ import { r as ne, h as X, s as oe } from "./sso-user-DmsDr1MJ.js";
4
4
  import { CheckCircleFilled as le, QuestionCircleOutlined as ce, CloseOutlined as me } from "@ant-design/icons";
5
5
  import { message as k, Result as de, Button as D, Spin as G, Input as ue, Image as fe } from "antd";
6
6
  import pe from "query-string";
7
7
  import { useState as f, useRef as Y, useMemo as K, useCallback as w, useEffect as V } from "react";
8
8
  import { useLocation as ge } from "react-router-dom";
9
9
  import { h as W } from "./history-BlrA1eaW.js";
10
- import { l as he, d as be, e as _e } from "./api-BftpestH.js";
11
- import { u as c } from "./useAppStore-uc8v8XZC.js";
10
+ import { d as c, o as he, h as be, j as _e } from "./ComponentDoc-C9lt-45y.js";
12
11
  /* empty css */
13
12
  import { b as ye } from "./mobile-client-O3yr9h6t.js";
14
- import { a as ve, s as we } from "./send-default-agent-team-message-c5oKdQQA.js";
13
+ import { a as ve, s as we } from "./send-default-agent-team-message-BN61cG7q.js";
15
14
  const Ne = 5e3, E = 9, Ce = 10 * 1024 * 1024, Se = /^image\//i, Ie = /\.(png|jpe?g|gif|bmp|webp)$/i;
16
15
  function Pe(a) {
17
16
  return a.type && Se.test(a.type) ? !0 : Ie.test(a.name || "");
@@ -44,10 +43,10 @@ function Ue(a) {
44
43
  return a.map((m) => m.file);
45
44
  }
46
45
  const J = 30;
47
- function De() {
46
+ function Xe() {
48
47
  const a = ge(), m = pe.parse(a.search), o = String(
49
48
  m.scenarioCode ?? m.scenario_code ?? ""
50
- ).trim(), p = c((e) => e.expandProject), d = c((e) => e.updateCurrentUser), [N, H] = f(!1), [_, Z] = f(""), [y, U] = f([]), [M, R] = f("form"), [T, j] = f(""), [A, g] = f("正在登录…"), [B, F] = f([]), P = Y(!1), x = Y(y);
49
+ ).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([]), P = Y(!1), x = Y(y);
51
50
  x.current = y;
52
51
  const C = K(() => o ? "" : "缺少参数 scenarioCode", [o]), S = w((e, r) => {
53
52
  F((n) => [...n, e]), g(r);
@@ -145,7 +144,7 @@ function De() {
145
144
  } catch (s) {
146
145
  P.current = !1, R("form");
147
146
  const v = s instanceof Error ? s.message : String(s);
148
- j(v || "创建工程失败");
147
+ T(v || "创建工程失败");
149
148
  }
150
149
  },
151
150
  [S, p, a.search, o]
@@ -185,18 +184,18 @@ function De() {
185
184
  [L]
186
185
  ), $ = () => {
187
186
  const e = _.trim();
188
- e && (j(""), te(e, Ue(y)));
187
+ e && (T(""), te(e, Ue(y)));
189
188
  }, O = K(() => {
190
189
  const e = _.trim().slice(0, J);
191
190
  return `场景 ${o}${e ? ` · ${e}` : ""}`;
192
191
  }, [_, o]);
193
- if (C || T && M === "form")
192
+ if (C || j && M === "form")
194
193
  return /* @__PURE__ */ t("div", { className: "build-by-form-page", children: /* @__PURE__ */ t(
195
194
  de,
196
195
  {
197
196
  status: "error",
198
197
  title: "无法继续",
199
- subTitle: C || T,
198
+ subTitle: C || j,
200
199
  extra: /* @__PURE__ */ t(
201
200
  D,
202
201
  {
@@ -312,5 +311,5 @@ function De() {
312
311
  ] }) }) });
313
312
  }
314
313
  export {
315
- De as default
314
+ Xe as default
316
315
  };
@@ -1,9 +1,10 @@
1
1
  import { jsxs as r, jsx as s } from "react/jsx-runtime";
2
2
  import { useState as c, useCallback as b } from "react";
3
- import { S as N, T as I, P as W } from "./webide-BuUYLPSp.js";
4
- import { P as H, S as $, C as B, E as j, a as q, W as h, b as u, T as E, c as K } from "./ScheduledTasks-DB3VxAnb.js";
5
- import { p as L } from "./index-DyQ9YnMd.js";
6
- function M({
3
+ import { S as N, P as I } from "./webide-BYaEjOx6.js";
4
+ import { P as W, S as H, C as $, E as B, a as j, W as h, b as u, T as q, c as E } from "./ScheduledTasks-CuQyjAK-.js";
5
+ import { TodoTab as K } from "@yuku123/z-task-component";
6
+ import { p as L } from "./index-DdvzONMo.js";
7
+ function Q({
7
8
  view: t,
8
9
  agents: e,
9
10
  token: l,
@@ -12,9 +13,9 @@ function M({
12
13
  onOpenAgentDetail: g,
13
14
  onBackToExtensions: i,
14
15
  onOpenTab: o,
15
- onAgentCreated: T,
16
+ onAgentCreated: p,
16
17
  onOpenProject: n,
17
- onOpenWorkbenchShell: p,
18
+ onOpenWorkbenchShell: T,
18
19
  onOpenHistory: m
19
20
  }) {
20
21
  const [k, x] = c(
@@ -43,7 +44,7 @@ function M({
43
44
  flexDirection: "column"
44
45
  },
45
46
  children: /* @__PURE__ */ s(
46
- H,
47
+ W,
47
48
  {
48
49
  agent: t.agent,
49
50
  initialSessionId: t.sessionId,
@@ -58,7 +59,7 @@ function M({
58
59
  }
59
60
  ),
60
61
  t.kind === "schedule" && /* @__PURE__ */ s(
61
- $,
62
+ H,
62
63
  {
63
64
  localOnline: !1,
64
65
  agents: e,
@@ -67,7 +68,7 @@ function M({
67
68
  }
68
69
  ),
69
70
  t.kind === "history" && /* @__PURE__ */ s(
70
- B,
71
+ $,
71
72
  {
72
73
  agents: e,
73
74
  token: l,
@@ -76,7 +77,7 @@ function M({
76
77
  }
77
78
  ),
78
79
  t.kind === "extensions" && /* @__PURE__ */ s(
79
- j,
80
+ B,
80
81
  {
81
82
  agents: e,
82
83
  loading: !1,
@@ -85,15 +86,15 @@ function M({
85
86
  currentUser: f,
86
87
  onChat: (a) => d(a),
87
88
  onConfig: g,
88
- onCreated: T,
89
+ onCreated: p,
89
90
  onOpenPersonalTab: o,
90
- onOpenWorkbenchShell: p,
91
+ onOpenWorkbenchShell: T,
91
92
  onOpenHistory: m,
92
93
  capTabRequest: t.cap ? { tab: t.cap, ts: t.ts } : null
93
94
  }
94
95
  ),
95
96
  t.kind === "agentDetail" && /* @__PURE__ */ s("div", { style: { flex: 1, minHeight: 0 }, children: /* @__PURE__ */ s(
96
- q,
97
+ j,
97
98
  {
98
99
  agent: t.agent,
99
100
  onBack: i
@@ -124,7 +125,7 @@ function M({
124
125
  t.tab === "tools" && /* @__PURE__ */ s(u, { showTools: !0, showWebsites: !1 }),
125
126
  t.tab === "websites" && /* @__PURE__ */ s(u, { showTools: !1, showWebsites: !0 }),
126
127
  t.tab === "todo" && /* @__PURE__ */ s(
127
- I,
128
+ K,
128
129
  {
129
130
  onOpenProject: n,
130
131
  onOpenNote: y,
@@ -132,18 +133,18 @@ function M({
132
133
  }
133
134
  ),
134
135
  t.tab === "notes" && /* @__PURE__ */ s(
135
- W,
136
+ I,
136
137
  {
137
138
  onOpenProject: n,
138
139
  onOpenTodo: D,
139
140
  openNoteId: k
140
141
  }
141
142
  ),
142
- t.tab === "training" && /* @__PURE__ */ s(E, {}),
143
- t.tab === "webide" && /* @__PURE__ */ s(K, {})
143
+ t.tab === "training" && /* @__PURE__ */ s(q, {}),
144
+ t.tab === "webide" && /* @__PURE__ */ s(E, {})
144
145
  ] })
145
146
  ] });
146
147
  }
147
148
  export {
148
- M as default
149
+ Q as default
149
150
  };