@yuku123/z-team-component 0.2.29 → 0.2.31

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 (49) hide show
  1. package/dist/{ChangeLogView-CG-o5YP1.js → ChangeLogView-FLd1wS8H.js} +1 -1
  2. package/dist/ComponentDoc-CUhlRqDo.js +3843 -0
  3. package/dist/DebugPlayground-cxffrMgF.js +15 -0
  4. package/dist/{InvitationManagementPage-ByJuWwA_.js → InvitationManagementPage-DBAAQ3Qq.js} +90 -85
  5. package/dist/{OnboardingPage-D58h1JK_.js → OnboardingPage-zLHkQLok.js} +2 -2
  6. package/dist/SmartWorkbench.module-DzQskKT0.js +85 -0
  7. package/dist/SystemShell-yMCZOMUN.js +635 -0
  8. package/dist/{admin-logs-C2V1ElH9.js → admin-logs-Dv86pFvY.js} +2 -2
  9. package/dist/{api--Fg0hL9Y.js → api-19TXED_O.js} +52 -39
  10. package/dist/api-63lPU5Cs.js +20 -0
  11. package/dist/{createWorkspaceWsHandler-CqGqcTh_.js → createWorkspaceWsHandler-CBk4DqP4.js} +6 -5
  12. package/dist/{index-CDKg_qI5.js → index-B5_xKK08.js} +1140 -1153
  13. package/dist/{index-D2S8FrNc.js → index-BCBBZW4m.js} +358 -347
  14. package/dist/{index-D5u3BjCZ.js → index-BIJnjJd5.js} +2 -2
  15. package/dist/{index-bbwTcNjB.js → index-BTLD5gUt.js} +3 -3
  16. package/dist/{index-CiMxCTOS.js → index-B_EBV24V.js} +1 -1
  17. package/dist/{index-DOVOWiGU.js → index-BbjzrjsP.js} +1134 -1132
  18. package/dist/{index-BafC42Cl.js → index-Bd57t_yF.js} +1 -1
  19. package/dist/{index-C2aPiQSz.js → index-BjqYiZpC.js} +3 -3
  20. package/dist/{index-BaCiSbPR.js → index-BoGVJ0hC.js} +1 -1
  21. package/dist/{index-C01UUprh.js → index-BpuJ9Njb.js} +7016 -6946
  22. package/dist/index-C6vfXs2f.js +1329 -0
  23. package/dist/{index-CcFJEYgr.js → index-C815hPWS.js} +55 -52
  24. package/dist/{index-DvIHX7lZ.js → index-CcpWacSZ.js} +243 -236
  25. package/dist/index-CrC94bvI.js +169 -0
  26. package/dist/{index-Dky6GVc1.js → index-CwIgdJYL.js} +9 -9
  27. package/dist/{index-Da7ls5q6.js → index-DOPkM2W8.js} +6 -6
  28. package/dist/{index-CTD7k9dP.js → index-DYgD6BuB.js} +4 -4
  29. package/dist/{index-Da3doGtf.js → index-JMzBzwiO.js} +57 -54
  30. package/dist/{index-BwFEDHy3.js → index-VHvEmmhf.js} +5 -5
  31. package/dist/{index-CRac8IT2.js → index-icI-ZchA.js} +3 -3
  32. package/dist/{index-Dao4uqQd.js → index-x4-W5ClM.js} +4 -4
  33. package/dist/index.js +7 -6
  34. package/dist/{instance-1QEDBRqA.js → instance-D951fRuD.js} +1 -1
  35. package/dist/pages.js +13 -9
  36. package/dist/{schedule-C89oiqIR.js → schedule-DD50-7cs.js} +1 -1
  37. package/dist/{send-default-agent-team-message-CxkWi3XC.js → send-default-agent-team-message-Bbs2rMNf.js} +1 -1
  38. package/dist/{sso-user-BE1Ell5F.js → sso-user-BEY5ICaR.js} +1 -1
  39. package/dist/{training-o-vSBkqP.js → training-B-9tNFQw.js} +1 -1
  40. package/dist/{useAppStore-wgWaxcyc.js → useAppStore-BQN-26ns.js} +1 -1
  41. package/dist/{webide-BxD6cYe-.js → webide-P867RFZi.js} +4 -4
  42. package/dist/z-team-component.css +1 -1
  43. package/package.json +2 -2
  44. package/dist/ProjectApp-oUbzb0Io.js +0 -3818
  45. package/dist/SmartWorkbench.module-xRRmpTTw.js +0 -85
  46. package/dist/SystemShell-D4mGsT0X.js +0 -604
  47. package/dist/api-3-Ykp2ll.js +0 -19
  48. package/dist/index-B8mNsH88.js +0 -1411
  49. package/dist/index-DYDba1NC.js +0 -187
@@ -0,0 +1,169 @@
1
+ import { AppLayout as k, ErrorBoundary as v, LoginPage as H, StatusTag as _, defaultStatusMap as j } from "@yuku123/z-frontend-common";
2
+ import { a as T } from "./ComponentDoc-CUhlRqDo.js";
3
+ import { b as F, E as V, c as J, M as Q, d as X, O as Y, e as Z, R as $, f as ee, g as te, T as re, h as ae, r as oe, r as ne, s as le } from "./ComponentDoc-CUhlRqDo.js";
4
+ import { jsxs as r, Fragment as h, jsx as e } from "react/jsx-runtime";
5
+ import { useState as n, useEffect as y } from "react";
6
+ import { Alert as I, Space as x, Button as s, Tag as c } from "antd";
7
+ import { ReloadOutlined as f, UserAddOutlined as R, TeamOutlined as E, PlusOutlined as w, CodeOutlined as b } from "@ant-design/icons";
8
+ import { ListTable as g } from "@yuku123/z-frontend-common/ui";
9
+ import { D as ie } from "./DebugPlayground-cxffrMgF.js";
10
+ const B = T, O = {
11
+ LEADER: "red",
12
+ WORKER: "blue",
13
+ OBSERVER: "default"
14
+ };
15
+ function G() {
16
+ const [l] = n(!1), [i] = n([]);
17
+ return /* @__PURE__ */ r(h, { children: [
18
+ /* @__PURE__ */ e(
19
+ I,
20
+ {
21
+ type: "info",
22
+ showIcon: !0,
23
+ style: { marginBottom: 16 },
24
+ title: "IM 群组 (含 STOMP 实时消息) 后端服务尚未启动",
25
+ description: "当前展示群组列表占位。等 z-agent-team 后端就绪后切换为完整 IM 客户端。"
26
+ }
27
+ ),
28
+ /* @__PURE__ */ e(
29
+ g,
30
+ {
31
+ cardTitle: /* @__PURE__ */ r("span", { children: [
32
+ /* @__PURE__ */ e(E, { style: { marginRight: 8 } }),
33
+ "Agent 群组 IM"
34
+ ] }),
35
+ cardExtra: /* @__PURE__ */ r(x, { children: [
36
+ /* @__PURE__ */ e(s, { icon: /* @__PURE__ */ e(f, {}), loading: l, children: "刷新" }),
37
+ /* @__PURE__ */ e(s, { type: "primary", icon: /* @__PURE__ */ e(R, {}), disabled: !0, children: "创建群组" })
38
+ ] }),
39
+ rows: i,
40
+ columns: [
41
+ { title: "群组编码", dataIndex: "teamCode", width: 200, ellipsis: !0 },
42
+ { title: "群组名称", dataIndex: "teamName", width: 200 },
43
+ {
44
+ title: "我的角色",
45
+ dataIndex: "role",
46
+ width: 120,
47
+ render: (a) => /* @__PURE__ */ e(c, { color: O[a] || "default", children: a || "-" })
48
+ },
49
+ { title: "成员数", dataIndex: "memberCount", width: 100 },
50
+ { title: "最近消息", dataIndex: "lastMessage", width: 240, ellipsis: !0 },
51
+ { title: "更新时间", dataIndex: "updatedAt", width: 180 }
52
+ ],
53
+ rowKey: "teamCode",
54
+ loading: l,
55
+ searchKeys: ["teamCode", "teamName"],
56
+ searchPlaceholder: "按群组编码 / 名称过滤",
57
+ emptyTitle: "暂无群组",
58
+ emptyDescription: "当前还没有 IM 群组。"
59
+ }
60
+ )
61
+ ] });
62
+ }
63
+ const A = {
64
+ CREATING: { text: "创建中", color: "processing" },
65
+ RUNNING: { text: "运行中", color: "success" },
66
+ STOPPED: { text: "已停止", color: "default" },
67
+ ERROR: { text: "错误", color: "error" }
68
+ }, M = {
69
+ GIT: { text: "GIT 模式", color: "blue" },
70
+ SHARED: { text: "SHARED 模式", color: "purple" }
71
+ };
72
+ function K() {
73
+ const [l, i] = n([]), [d, a] = n(!1), [u, m] = n(null), p = async () => {
74
+ a(!0), m(null);
75
+ try {
76
+ i([]);
77
+ } catch (t) {
78
+ m((t == null ? void 0 : t.message) || "加载失败");
79
+ } finally {
80
+ a(!1);
81
+ }
82
+ };
83
+ return y(() => {
84
+ p();
85
+ }, []), /* @__PURE__ */ r(h, { children: [
86
+ u && /* @__PURE__ */ e(
87
+ I,
88
+ {
89
+ type: "warning",
90
+ showIcon: !0,
91
+ style: { marginBottom: 16 },
92
+ title: "后端 API 暂未连接",
93
+ description: u
94
+ }
95
+ ),
96
+ /* @__PURE__ */ e(
97
+ g,
98
+ {
99
+ cardTitle: /* @__PURE__ */ r("span", { children: [
100
+ /* @__PURE__ */ e(b, { style: { marginRight: 8 } }),
101
+ "WebIDE 容器管理"
102
+ ] }),
103
+ cardExtra: /* @__PURE__ */ r(x, { children: [
104
+ /* @__PURE__ */ e(s, { icon: /* @__PURE__ */ e(f, {}), onClick: p, loading: d, children: "刷新" }),
105
+ /* @__PURE__ */ e(s, { type: "primary", icon: /* @__PURE__ */ e(w, {}), disabled: !0, children: "新建 WebIDE" })
106
+ ] }),
107
+ rows: l,
108
+ columns: [
109
+ { title: "容器ID", dataIndex: "containerId", width: 220, ellipsis: !0 },
110
+ {
111
+ title: "模式",
112
+ dataIndex: "mode",
113
+ width: 120,
114
+ render: (t) => {
115
+ const o = M[t] || { text: t, color: "default" };
116
+ return /* @__PURE__ */ e(c, { color: o.color, children: o.text });
117
+ }
118
+ },
119
+ { title: "Git URL", dataIndex: "gitUrl", width: 240, ellipsis: !0 },
120
+ { title: "分支", dataIndex: "branch", width: 120 },
121
+ {
122
+ title: "状态",
123
+ dataIndex: "status",
124
+ width: 120,
125
+ render: (t) => {
126
+ const o = A[t] || { text: t, color: "default" };
127
+ return /* @__PURE__ */ e(c, { color: o.color, children: o.text });
128
+ }
129
+ },
130
+ { title: "创建时间", dataIndex: "createdAt", width: 180 }
131
+ ],
132
+ rowKey: "containerId",
133
+ loading: d,
134
+ scroll: { x: 1e3 },
135
+ searchKeys: ["containerId", "branch"],
136
+ searchPlaceholder: "按容器 ID / 分支过滤",
137
+ emptyTitle: "暂无容器",
138
+ emptyDescription: "后端 z-webide 服务尚未启动"
139
+ }
140
+ )
141
+ ] });
142
+ }
143
+ export {
144
+ G as AgentTeamIM,
145
+ k as AppLayout,
146
+ F as CurlImportModal,
147
+ ie as DebugPlayground,
148
+ V as EndpointsTab,
149
+ J as EnvironmentsTab,
150
+ v as ErrorBoundary,
151
+ H as LoginPage,
152
+ Q as MockPlatform,
153
+ X as MockTemplateHelper,
154
+ Y as OpenApiImportModal,
155
+ Z as Overview,
156
+ $ as RecordingsTab,
157
+ ee as RequestLogsTab,
158
+ te as ScenariosTab,
159
+ _ as StatusTag,
160
+ re as TestCasesTab,
161
+ K as Webide,
162
+ T as authRequest,
163
+ ae as createRequest,
164
+ B as ctcRequest,
165
+ oe as default,
166
+ j as defaultStatusMap,
167
+ ne as request,
168
+ le as setupInterceptors
169
+ };
@@ -1,28 +1,28 @@
1
1
  import { jsx as e, jsxs as n, Fragment as Ie } from "react/jsx-runtime";
2
- import { f as Zs, u as el, a as tl, b as nl, s as al, S as Qa, T as Xa, P as Za, c as es } from "./webide-BxD6cYe-.js";
2
+ import { f as Zs, u as el, a as tl, b as nl, s as al, S as Qa, T as Xa, P as Za, c as es } from "./webide-P867RFZi.js";
3
3
  import { RightOutlined as ts, PlusOutlined as cn, LeftOutlined as sl, CheckOutlined as ea, LoadingOutlined as ra, EditOutlined as Cn, DeleteOutlined as fn, UpOutlined as ca, RedoOutlined as ns, DownOutlined as ll, StopOutlined as as, CopyOutlined as ol, ArrowLeftOutlined as tn, BellOutlined as il, CloseOutlined as da, SaveOutlined as rl, ProfileOutlined as cl, MessageOutlined as ta, SettingOutlined as ss, FolderOpenOutlined as on, ThunderboltOutlined as na, ClockCircleOutlined as Un, FolderOutlined as dl, FileTextOutlined as An, CommentOutlined as ul, SyncOutlined as ml, CheckCircleOutlined as Jt, PercentageOutlined as hl, FilePptOutlined as pl, ScheduleOutlined as _l, FileImageOutlined as gl, MinusOutlined as fl, ArrowUpOutlined as yl, ArrowDownOutlined as vl, CodeOutlined as ls, Html5Outlined as ua, OrderedListOutlined as ma, LockOutlined as wn, LinkOutlined as Sn, SnippetsOutlined as os, SafetyCertificateOutlined as ha, KeyOutlined as bl, DiffOutlined as Nl, FontSizeOutlined as kl, ScissorOutlined as Cl, ReloadOutlined as yn, CalendarOutlined as pa, BgColorsOutlined as wl, QrcodeOutlined as Sl, ApiOutlined as Tl, SendOutlined as Il, MoreOutlined as xl, FileSearchOutlined as is, PlayCircleOutlined as Gt, FileDoneOutlined as Wn, CloseCircleOutlined as Al, GiftOutlined as rs, CheckCircleFilled as Bl, GoldOutlined as cs, EyeOutlined as Ll, CrownOutlined as Ml, DesktopOutlined as $l, DashboardOutlined as aa, MenuUnfoldOutlined as Rl, MenuFoldOutlined as Dl, TeamOutlined as El, BarChartOutlined as ds, PieChartOutlined as us, UnorderedListOutlined as ms, ReadOutlined as hs, ConsoleSqlOutlined as ps } from "@ant-design/icons";
4
4
  import { createElement as Pl, useState as o, useRef as Ae, useMemo as Le, useEffect as oe, useCallback as F, Fragment as Ol } from "react";
5
5
  import { createPortal as Hl } from "react-dom";
6
- import { a as Yt, f as Qt, B as Xt, u as Zt, at as jl, au as qn, k as yt, av as Fl, t as _s, aw as Gl, ax as zl, ay as Ul, J as Wl, az as gs, aA as ql, aB as Kl, q as Vl, aC as Jl, al as Yl, T as Ql, an as fs, aD as Xl, aE as ys, aF as Zl, aG as eo, aH as to, aI as no, aJ as vs, aK as ao } from "./api--Fg0hL9Y.js";
7
- import { n as bs, o as $n, p as so, q as lo, s as oo, v as io, x as ro, y as Ns, z as _a, A as ks, B as co, C as Cs, D as Kn, E as uo, F as mo, G as ho } from "./index-DOVOWiGU.js";
8
- import { u as Ye, s as mn } from "./useAppStore-wgWaxcyc.js";
9
- import { s as po } from "./admin-logs-C2V1ElH9.js";
10
- import { h as Tn, b as _o, f as go, s as fo, c as yo, d as vo, u as bo, e as No, t as ko, r as Co, m as wo, a as So } from "./schedule-C89oiqIR.js";
6
+ import { a as Yt, f as Qt, B as Xt, u as Zt, at as jl, au as qn, k as yt, av as Fl, t as _s, aw as Gl, ax as zl, ay as Ul, J as Wl, az as gs, aA as ql, aB as Kl, q as Vl, aC as Jl, al as Yl, T as Ql, an as fs, aD as Xl, aE as ys, aF as Zl, aG as eo, aH as to, aI as no, aJ as vs, aK as ao } from "./api-19TXED_O.js";
7
+ import { n as bs, o as $n, p as so, q as lo, s as oo, v as io, x as ro, y as Ns, z as _a, A as ks, B as co, C as Cs, D as Kn, E as uo, F as mo, G as ho } from "./index-BbjzrjsP.js";
8
+ import { u as Ye, s as mn } from "./useAppStore-BQN-26ns.js";
9
+ import { s as po } from "./admin-logs-Dv86pFvY.js";
10
+ import { h as Tn, b as _o, f as go, s as fo, c as yo, d as vo, u as bo, e as No, t as ko, r as Co, m as wo, a as So } from "./schedule-DD50-7cs.js";
11
11
  import Bn from "react-markdown";
12
12
  import ws from "rehype-highlight";
13
13
  import Ln from "remark-gfm";
14
- import { T as To, z as Io, A as xo, D as Ao } from "./createWorkspaceWsHandler-CqGqcTh_.js";
14
+ import { T as To, z as Io, A as xo, D as Ao } from "./createWorkspaceWsHandler-CBk4DqP4.js";
15
15
  import { message as we, Spin as Dt, Input as He, Switch as hn, Select as qt, InputNumber as Bo, Tabs as Lo, Card as Mo, Tag as ge, Table as $o, DatePicker as Ro, Segmented as Do, Empty as vt, Modal as jt, Button as se, Space as et, Typography as Eo, Radio as Ft, Row as Mt, Col as nt, List as ga, Statistic as Po, Tooltip as rn, Form as pn, Progress as dn } from "antd";
16
16
  import ln from "dayjs";
17
17
  import * as In from "echarts/core";
18
18
  import { BarChart as Oo, LineChart as Ho, PieChart as jo } from "echarts/charts";
19
19
  import { GridComponent as Fo, LegendComponent as Go, TitleComponent as zo, TooltipComponent as Uo } from "echarts/components";
20
20
  import { CanvasRenderer as Wo } from "echarts/renderers";
21
- import { c as qo } from "./instance-1QEDBRqA.js";
21
+ import { c as qo } from "./instance-D951fRuD.js";
22
22
  import { diffLines as Ko } from "diff";
23
23
  import Vo, { DiffMethod as Jo } from "react-diff-viewer-continued";
24
24
  import { format as Yo } from "sql-formatter";
25
- import { V as Ss, W as Qo, k as Xo, h as Zo, X as Ts, Y as ei, Z as ti, _ as fa, $ as ni, a0 as ai, a1 as Is, a2 as si, a3 as li, a4 as oi, a5 as ii, a6 as ri, a7 as ci } from "./training-o-vSBkqP.js";
25
+ import { V as Ss, W as Qo, k as Xo, h as Zo, X as Ts, Y as ei, Z as ti, _ as fa, $ as ni, a0 as ai, a1 as Is, a2 as si, a3 as li, a4 as oi, a5 as ii, a6 as ri, a7 as ci } from "./training-B-9tNFQw.js";
26
26
  async function di(t = {}, s = "") {
27
27
  const a = new URLSearchParams();
28
28
  t.keyword && a.set("keyword", t.keyword), t.category && a.set("category", t.category), t.status !== void 0 && a.set("status", String(t.status)), s && a.set("token", s);
@@ -1,18 +1,18 @@
1
1
  import { jsx as t, jsxs as l } from "react/jsx-runtime";
2
2
  import { f as ie, r as $ } from "./ctc-sso-DtJHC-2M.js";
3
- import { r as le, h as K, s as J } from "./sso-user-BE1Ell5F.js";
3
+ import { r as le, h as K, s as J } from "./sso-user-BEY5ICaR.js";
4
4
  import { ArrowLeftOutlined as de, PlusOutlined as ue, LogoutOutlined as pe, SearchOutlined as me } from "@ant-design/icons";
5
5
  import { Spin as q, Button as D, Input as he, Empty as X, Tag as fe, message as ge } from "antd";
6
6
  import B from "query-string";
7
7
  import { useEffect as N, useState as y, useMemo as Y, useRef as M, useCallback as G } from "react";
8
8
  import { useLocation as be } from "react-router-dom";
9
9
  import { h as A } from "./history-BlrA1eaW.js";
10
- import { c as ke, C as we } from "./createWorkspaceWsHandler-CqGqcTh_.js";
11
- import { u as r, f as Se, T as ve } from "./useAppStore-wgWaxcyc.js";
12
- import { o as ye, l as Ne, m as je, n as Ce, e as ee } from "./api--Fg0hL9Y.js";
13
- import { l as Pe, j as Te } from "./instance-1QEDBRqA.js";
10
+ import { c as ke, C as we } from "./createWorkspaceWsHandler-CBk4DqP4.js";
11
+ import { u as r, f as Se, T as ve } from "./useAppStore-BQN-26ns.js";
12
+ import { o as ye, l as Ne, m as je, n as Ce, e as ee } from "./api-19TXED_O.js";
13
+ import { l as Pe, j as Te } from "./instance-D951fRuD.js";
14
14
  /* empty css */
15
- import { s as xe } from "./admin-logs-C2V1ElH9.js";
15
+ import { s as xe } from "./admin-logs-Dv86pFvY.js";
16
16
  function Ie(p, d) {
17
17
  N(() => {
18
18
  if (p == null)
@@ -1,16 +1,16 @@
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-BE1Ell5F.js";
3
+ import { r as D, h as U, s as F } from "./sso-user-BEY5ICaR.js";
4
4
  import { CheckCircleFilled as W } from "@ant-design/icons";
5
5
  import { Result as B, Button as H, Spin as G } from "antd";
6
6
  import J from "query-string";
7
7
  import { useState as d, useRef as K, useCallback as O, useMemo as R, useEffect as E } from "react";
8
8
  import { useLocation as Q } from "react-router-dom";
9
9
  import { h as b } from "./history-BlrA1eaW.js";
10
- import { d as V, e as X } from "./api--Fg0hL9Y.js";
11
- import { u as s } from "./useAppStore-wgWaxcyc.js";
10
+ import { d as V, e as X } from "./api-19TXED_O.js";
11
+ import { u as s } from "./useAppStore-BQN-26ns.js";
12
12
  import { b as Y } from "./mobile-client-O3yr9h6t.js";
13
- import { s as Z } from "./send-default-agent-team-message-CxkWi3XC.js";
13
+ import { s as Z } from "./send-default-agent-team-message-Bbs2rMNf.js";
14
14
  function de() {
15
15
  const h = Q(), f = J.parse(h.search), c = String(
16
16
  f.scenarioCode ?? f.scenario_code ?? ""