@yuku123/z-team-component 0.2.31 → 0.2.32

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.
@@ -7,7 +7,7 @@ import { message as U, Input as H, Tooltip as se, Button as g, Spin as ce, Empty
7
7
  import ve from "react-markdown";
8
8
  import _e from "rehype-highlight";
9
9
  import ge from "remark-gfm";
10
- import { M as oa } from "./index-VHvEmmhf.js";
10
+ import { M as oa } from "./index-BPVspGPJ.js";
11
11
  function j(a) {
12
12
  return a ? `?token=${encodeURIComponent(a)}` : "";
13
13
  }
@@ -1,19 +1,18 @@
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";
1
+ import { AppLayout as H, ErrorBoundary as _, LoginPage as j, StatusTag as z, defaultStatusMap as F } from "@yuku123/z-frontend-common";
2
+ import { a as y } from "./ComponentDoc-oOU-0zBg.js";
3
+ import { b as J, E as Q, c as X, M as Y, d as Z, O as $, e as ee, R as te, f as re, g as ae, T as oe, h as ne, r as le, r as ie, s as se } from "./ComponentDoc-oOU-0zBg.js";
4
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 = {
5
+ import { useState as n, useEffect as T } from "react";
6
+ import { Alert as I, Space as g, Button as l, Tag as c, Result as R } from "antd";
7
+ import { ReloadOutlined as x, UserAddOutlined as b, TeamOutlined as E, PlusOutlined as w, CodeOutlined as A } from "@ant-design/icons";
8
+ import { ListTable as f } from "@yuku123/z-frontend-common/ui";
9
+ const G = y, O = {
11
10
  LEADER: "red",
12
11
  WORKER: "blue",
13
12
  OBSERVER: "default"
14
13
  };
15
- function G() {
16
- const [l] = n(!1), [i] = n([]);
14
+ function K() {
15
+ const [i] = n(!1), [s] = n([]);
17
16
  return /* @__PURE__ */ r(h, { children: [
18
17
  /* @__PURE__ */ e(
19
18
  I,
@@ -26,17 +25,17 @@ function G() {
26
25
  }
27
26
  ),
28
27
  /* @__PURE__ */ e(
29
- g,
28
+ f,
30
29
  {
31
30
  cardTitle: /* @__PURE__ */ r("span", { children: [
32
31
  /* @__PURE__ */ e(E, { style: { marginRight: 8 } }),
33
32
  "Agent 群组 IM"
34
33
  ] }),
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: "创建群组" })
34
+ cardExtra: /* @__PURE__ */ r(g, { children: [
35
+ /* @__PURE__ */ e(l, { icon: /* @__PURE__ */ e(x, {}), loading: i, children: "刷新" }),
36
+ /* @__PURE__ */ e(l, { type: "primary", icon: /* @__PURE__ */ e(b, {}), disabled: !0, children: "创建群组" })
38
37
  ] }),
39
- rows: i,
38
+ rows: s,
40
39
  columns: [
41
40
  { title: "群组编码", dataIndex: "teamCode", width: 200, ellipsis: !0 },
42
41
  { title: "群组名称", dataIndex: "teamName", width: 200 },
@@ -51,7 +50,7 @@ function G() {
51
50
  { title: "更新时间", dataIndex: "updatedAt", width: 180 }
52
51
  ],
53
52
  rowKey: "teamCode",
54
- loading: l,
53
+ loading: i,
55
54
  searchKeys: ["teamCode", "teamName"],
56
55
  searchPlaceholder: "按群组编码 / 名称过滤",
57
56
  emptyTitle: "暂无群组",
@@ -60,27 +59,27 @@ function G() {
60
59
  )
61
60
  ] });
62
61
  }
63
- const A = {
62
+ const M = {
64
63
  CREATING: { text: "创建中", color: "processing" },
65
64
  RUNNING: { text: "运行中", color: "success" },
66
65
  STOPPED: { text: "已停止", color: "default" },
67
66
  ERROR: { text: "错误", color: "error" }
68
- }, M = {
67
+ }, D = {
69
68
  GIT: { text: "GIT 模式", color: "blue" },
70
69
  SHARED: { text: "SHARED 模式", color: "purple" }
71
70
  };
72
- function K() {
73
- const [l, i] = n([]), [d, a] = n(!1), [u, m] = n(null), p = async () => {
71
+ function U() {
72
+ const [i, s] = n([]), [d, a] = n(!1), [u, m] = n(null), p = async () => {
74
73
  a(!0), m(null);
75
74
  try {
76
- i([]);
75
+ s([]);
77
76
  } catch (t) {
78
77
  m((t == null ? void 0 : t.message) || "加载失败");
79
78
  } finally {
80
79
  a(!1);
81
80
  }
82
81
  };
83
- return y(() => {
82
+ return T(() => {
84
83
  p();
85
84
  }, []), /* @__PURE__ */ r(h, { children: [
86
85
  u && /* @__PURE__ */ e(
@@ -94,17 +93,17 @@ function K() {
94
93
  }
95
94
  ),
96
95
  /* @__PURE__ */ e(
97
- g,
96
+ f,
98
97
  {
99
98
  cardTitle: /* @__PURE__ */ r("span", { children: [
100
- /* @__PURE__ */ e(b, { style: { marginRight: 8 } }),
99
+ /* @__PURE__ */ e(A, { style: { marginRight: 8 } }),
101
100
  "WebIDE 容器管理"
102
101
  ] }),
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" })
102
+ cardExtra: /* @__PURE__ */ r(g, { children: [
103
+ /* @__PURE__ */ e(l, { icon: /* @__PURE__ */ e(x, {}), onClick: p, loading: d, children: "刷新" }),
104
+ /* @__PURE__ */ e(l, { type: "primary", icon: /* @__PURE__ */ e(w, {}), disabled: !0, children: "新建 WebIDE" })
106
105
  ] }),
107
- rows: l,
106
+ rows: i,
108
107
  columns: [
109
108
  { title: "容器ID", dataIndex: "containerId", width: 220, ellipsis: !0 },
110
109
  {
@@ -112,7 +111,7 @@ function K() {
112
111
  dataIndex: "mode",
113
112
  width: 120,
114
113
  render: (t) => {
115
- const o = M[t] || { text: t, color: "default" };
114
+ const o = D[t] || { text: t, color: "default" };
116
115
  return /* @__PURE__ */ e(c, { color: o.color, children: o.text });
117
116
  }
118
117
  },
@@ -123,7 +122,7 @@ function K() {
123
122
  dataIndex: "status",
124
123
  width: 120,
125
124
  render: (t) => {
126
- const o = A[t] || { text: t, color: "default" };
125
+ const o = M[t] || { text: t, color: "default" };
127
126
  return /* @__PURE__ */ e(c, { color: o.color, children: o.text });
128
127
  }
129
128
  },
@@ -140,30 +139,40 @@ function K() {
140
139
  )
141
140
  ] });
142
141
  }
142
+ function W() {
143
+ return /* @__PURE__ */ e(
144
+ R,
145
+ {
146
+ title: "Debug Playground",
147
+ subTitle: "AI 调试沙盒功能开发中...",
148
+ extra: /* @__PURE__ */ e(l, { type: "primary", children: "敬请期待" })
149
+ }
150
+ );
151
+ }
143
152
  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
153
+ K as AgentTeamIM,
154
+ H as AppLayout,
155
+ J as CurlImportModal,
156
+ W as DebugPlayground,
157
+ Q as EndpointsTab,
158
+ X as EnvironmentsTab,
159
+ _ as ErrorBoundary,
160
+ j as LoginPage,
161
+ Y as MockPlatform,
162
+ Z as MockTemplateHelper,
163
+ $ as OpenApiImportModal,
164
+ ee as Overview,
165
+ te as RecordingsTab,
166
+ re as RequestLogsTab,
167
+ ae as ScenariosTab,
168
+ z as StatusTag,
169
+ oe as TestCasesTab,
170
+ U as Webide,
171
+ y as authRequest,
172
+ ne as createRequest,
173
+ G as ctcRequest,
174
+ le as default,
175
+ F as defaultStatusMap,
176
+ ie as request,
177
+ se as setupInterceptors
169
178
  };
@@ -4,7 +4,7 @@ import { RightOutlined as ts, PlusOutlined as cn, LeftOutlined as sl, CheckOutli
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
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";
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-BtuWPnZD.js";
8
8
  import { u as Ye, s as mn } from "./useAppStore-BQN-26ns.js";
9
9
  import { s as po } from "./admin-logs-Dv86pFvY.js";
10
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";