@yuku123/z-team-component 0.2.29 → 0.2.30

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 (47) hide show
  1. package/dist/{ChangeLogView-CG-o5YP1.js → ChangeLogView-FLd1wS8H.js} +1 -1
  2. package/dist/DebugPlayground-cxffrMgF.js +15 -0
  3. package/dist/{InvitationManagementPage-ByJuWwA_.js → InvitationManagementPage-CttWZdu8.js} +90 -85
  4. package/dist/{OnboardingPage-D58h1JK_.js → OnboardingPage-CAI-P20Q.js} +2 -2
  5. package/dist/{ProjectApp-oUbzb0Io.js → ProjectApp-ZR_QUlPs.js} +1486 -1465
  6. package/dist/SmartWorkbench.module-DzQskKT0.js +85 -0
  7. package/dist/{SystemShell-D4mGsT0X.js → SystemShell-BKNdXqXt.js} +151 -153
  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-BNwdLozd.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-D5u3BjCZ.js → index-BIJnjJd5.js} +2 -2
  14. package/dist/index-BKwpQ-HW.js +1329 -0
  15. package/dist/{index-bbwTcNjB.js → index-BTLD5gUt.js} +3 -3
  16. package/dist/{index-Dky6GVc1.js → index-BTaLAs80.js} +9 -9
  17. package/dist/{index-CiMxCTOS.js → index-B_EBV24V.js} +1 -1
  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-CcFJEYgr.js → index-C815hPWS.js} +55 -52
  23. package/dist/{index-D2S8FrNc.js → index-C8GK1bOQ.js} +358 -347
  24. package/dist/{index-DvIHX7lZ.js → index-CcpWacSZ.js} +243 -236
  25. package/dist/{index-Da7ls5q6.js → index-DOPkM2W8.js} +6 -6
  26. package/dist/index-DQNZE7Go.js +169 -0
  27. package/dist/{index-DOVOWiGU.js → index-DR_FCf71.js} +1134 -1132
  28. package/dist/{index-CTD7k9dP.js → index-DYgD6BuB.js} +4 -4
  29. package/dist/{index-BwFEDHy3.js → index-DdN9Apqq.js} +5 -5
  30. package/dist/{index-CRac8IT2.js → index-DuGWlMWm.js} +3 -3
  31. package/dist/{index-Da3doGtf.js → index-JMzBzwiO.js} +57 -54
  32. package/dist/{index-Dao4uqQd.js → index-x4-W5ClM.js} +4 -4
  33. package/dist/index.js +1 -1
  34. package/dist/{instance-1QEDBRqA.js → instance-D951fRuD.js} +1 -1
  35. package/dist/pages.js +1 -1
  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/SmartWorkbench.module-xRRmpTTw.js +0 -85
  45. package/dist/api-3-Ykp2ll.js +0 -19
  46. package/dist/index-B8mNsH88.js +0 -1411
  47. package/dist/index-DYDba1NC.js +0 -187
@@ -1,187 +0,0 @@
1
- import { AppLayout as K, ErrorBoundary as _, LoginPage as j, StatusTag as V, defaultStatusMap as F } from "@yuku123/z-frontend-common";
2
- import { a as T } from "./ProjectApp-oUbzb0Io.js";
3
- import { C as Q, E as X, b as Y, M as Z, c as $, O as tt, d as et, R as at, e as rt, f as ot, T as nt, g as it, r as lt, r as st, s as dt } from "./ProjectApp-oUbzb0Io.js";
4
- import { jsxs as a, jsx as t } from "react/jsx-runtime";
5
- import { useState as i, useEffect as b } from "react";
6
- import { Card as g, Alert as h, Table as x, Spin as I, Empty as f, Space as R, Button as l, Tag as c, Result as E } from "antd";
7
- import { ReloadOutlined as y, UserAddOutlined as w, TeamOutlined as A, PlusOutlined as O, CodeOutlined as S } from "@ant-design/icons";
8
- const N = T, M = {
9
- LEADER: "red",
10
- WORKER: "blue",
11
- OBSERVER: "default"
12
- };
13
- function U() {
14
- const [r] = i(!1), [d] = i([]);
15
- return /* @__PURE__ */ a(
16
- g,
17
- {
18
- title: /* @__PURE__ */ a("span", { children: [
19
- /* @__PURE__ */ t(A, { style: { marginRight: 8 } }),
20
- "Agent 群组 IM"
21
- ] }),
22
- extra: /* @__PURE__ */ a(R, { children: [
23
- /* @__PURE__ */ t(l, { icon: /* @__PURE__ */ t(y, {}), loading: r, children: "刷新" }),
24
- /* @__PURE__ */ t(l, { type: "primary", icon: /* @__PURE__ */ t(w, {}), disabled: !0, children: "创建群组" })
25
- ] }),
26
- children: [
27
- /* @__PURE__ */ t(
28
- h,
29
- {
30
- type: "info",
31
- showIcon: !0,
32
- style: { marginBottom: 16 },
33
- title: "IM 群组 (含 STOMP 实时消息) 后端服务尚未启动",
34
- description: "当前展示群组列表占位。等 z-agent-team 后端就绪后切换为完整 IM 客户端。"
35
- }
36
- ),
37
- /* @__PURE__ */ t(
38
- x,
39
- {
40
- rowKey: "teamCode",
41
- size: "small",
42
- loading: r,
43
- dataSource: d,
44
- columns: [
45
- { title: "群组编码", dataIndex: "teamCode", width: 200, ellipsis: !0 },
46
- { title: "群组名称", dataIndex: "teamName", width: 200 },
47
- {
48
- title: "我的角色",
49
- dataIndex: "role",
50
- width: 120,
51
- render: (o) => /* @__PURE__ */ t(c, { color: M[o] || "default", children: o || "-" })
52
- },
53
- { title: "成员数", dataIndex: "memberCount", width: 100 },
54
- { title: "最近消息", dataIndex: "lastMessage", width: 240, ellipsis: !0 },
55
- { title: "更新时间", dataIndex: "updatedAt", width: 180 }
56
- ],
57
- locale: { emptyText: r ? /* @__PURE__ */ t(I, {}) : /* @__PURE__ */ t(f, { description: "暂无群组" }) },
58
- pagination: { pageSize: 20 }
59
- }
60
- )
61
- ]
62
- }
63
- );
64
- }
65
- const C = {
66
- CREATING: { text: "创建中", color: "processing" },
67
- RUNNING: { text: "运行中", color: "success" },
68
- STOPPED: { text: "已停止", color: "default" },
69
- ERROR: { text: "错误", color: "error" }
70
- }, D = {
71
- GIT: { text: "GIT 模式", color: "blue" },
72
- SHARED: { text: "SHARED 模式", color: "purple" }
73
- };
74
- function W() {
75
- const [r, d] = i([]), [s, o] = i(!1), [u, p] = i(null), m = async () => {
76
- o(!0), p(null);
77
- try {
78
- d([]);
79
- } catch (e) {
80
- p((e == null ? void 0 : e.message) || "加载失败");
81
- } finally {
82
- o(!1);
83
- }
84
- };
85
- return b(() => {
86
- m();
87
- }, []), /* @__PURE__ */ a(
88
- g,
89
- {
90
- title: /* @__PURE__ */ a("span", { children: [
91
- /* @__PURE__ */ t(S, { style: { marginRight: 8 } }),
92
- "WebIDE 容器管理"
93
- ] }),
94
- extra: /* @__PURE__ */ a(R, { children: [
95
- /* @__PURE__ */ t(l, { icon: /* @__PURE__ */ t(y, {}), onClick: m, loading: s, children: "刷新" }),
96
- /* @__PURE__ */ t(l, { type: "primary", icon: /* @__PURE__ */ t(O, {}), disabled: !0, children: "新建 WebIDE" })
97
- ] }),
98
- children: [
99
- u && /* @__PURE__ */ t(
100
- h,
101
- {
102
- type: "warning",
103
- showIcon: !0,
104
- style: { marginBottom: 16 },
105
- title: "后端 API 暂未连接",
106
- description: u
107
- }
108
- ),
109
- /* @__PURE__ */ t(
110
- x,
111
- {
112
- rowKey: "containerId",
113
- size: "small",
114
- loading: s,
115
- dataSource: r,
116
- columns: [
117
- { title: "容器ID", dataIndex: "containerId", width: 220, ellipsis: !0 },
118
- {
119
- title: "模式",
120
- dataIndex: "mode",
121
- width: 120,
122
- render: (e) => {
123
- const n = D[e] || { text: e, color: "default" };
124
- return /* @__PURE__ */ t(c, { color: n.color, children: n.text });
125
- }
126
- },
127
- { title: "Git URL", dataIndex: "gitUrl", width: 240, ellipsis: !0 },
128
- { title: "分支", dataIndex: "branch", width: 120 },
129
- {
130
- title: "状态",
131
- dataIndex: "status",
132
- width: 120,
133
- render: (e) => {
134
- const n = C[e] || { text: e, color: "default" };
135
- return /* @__PURE__ */ t(c, { color: n.color, children: n.text });
136
- }
137
- },
138
- { title: "创建时间", dataIndex: "createdAt", width: 180 }
139
- ],
140
- locale: {
141
- emptyText: s ? /* @__PURE__ */ t(I, {}) : /* @__PURE__ */ t(f, { description: "后端 z-webide 服务尚未启动" })
142
- },
143
- pagination: { pageSize: 20 },
144
- scroll: { x: 1e3 }
145
- }
146
- )
147
- ]
148
- }
149
- );
150
- }
151
- function k() {
152
- return /* @__PURE__ */ t(
153
- E,
154
- {
155
- title: "Debug Playground",
156
- subTitle: "AI 调试沙盒功能开发中...",
157
- extra: /* @__PURE__ */ t(l, { type: "primary", children: "敬请期待" })
158
- }
159
- );
160
- }
161
- export {
162
- U as AgentTeamIM,
163
- K as AppLayout,
164
- Q as CurlImportModal,
165
- k as DebugPlayground,
166
- X as EndpointsTab,
167
- Y as EnvironmentsTab,
168
- _ as ErrorBoundary,
169
- j as LoginPage,
170
- Z as MockPlatform,
171
- $ as MockTemplateHelper,
172
- tt as OpenApiImportModal,
173
- et as Overview,
174
- at as RecordingsTab,
175
- rt as RequestLogsTab,
176
- ot as ScenariosTab,
177
- V as StatusTag,
178
- nt as TestCasesTab,
179
- W as Webide,
180
- T as authRequest,
181
- it as createRequest,
182
- N as ctcRequest,
183
- lt as default,
184
- F as defaultStatusMap,
185
- st as request,
186
- dt as setupInterceptors
187
- };