@yuku123/z-team-component 0.2.133 → 0.2.135

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 (52) hide show
  1. package/dist/{index-BkzBYfhO.js → AdminModuleContent-DHCn4OpR.js} +13552 -14053
  2. package/dist/{ChangeLogView-SwacGpsw.js → ChangeLogView-Cc5cYmcz.js} +1 -1
  3. package/dist/{ComponentDoc-Dh5YhLCI.js → ComponentDoc-BAUII4UZ.js} +707 -713
  4. package/dist/{InvitationManagementPage-CjEcLOGB.js → InvitationManagementPage-BgY1jxQB.js} +1 -1
  5. package/dist/{OnboardingPage-DvNt71kX.js → OnboardingPage-CckzpaI0.js} +2 -2
  6. package/dist/{ScheduledTasks-COgb4MZJ.js → ScheduledTasks-DZSEnuIF.js} +6 -6
  7. package/dist/SystemShell-DCRIL4Rh.js +978 -0
  8. package/dist/{admin-logs-CExsxQ5h.js → admin-logs-DEawvNOd.js} +1 -1
  9. package/dist/{api-DXw93E7c.js → api--xHkMnrY.js} +1 -1
  10. package/dist/{api-C9kTgVc2.js → api-B-nnjGsa.js} +1 -1
  11. package/dist/{createWorkspaceWsHandler-BwDUTYXH.js → createWorkspaceWsHandler-y6pRWLoa.js} +3 -3
  12. package/dist/{index-CntZHojY.js → index-4R_QcR8P.js} +2 -2
  13. package/dist/{index-CXEYA7rt.js → index-B2ztJXV3.js} +2 -2
  14. package/dist/{index-CF3xDZ7q.js → index-BDUHHaoY.js} +4 -4
  15. package/dist/{index-BTJ83JLl.js → index-BIffImVM.js} +473 -358
  16. package/dist/{index-DZ0fYNO9.js → index-C09THX8u.js} +11 -11
  17. package/dist/{index-B2Dfbi8J.js → index-C4cx5Qxu.js} +2 -2
  18. package/dist/{index-COobH4Vi.js → index-C7ng_cdZ.js} +1 -1
  19. package/dist/{index-D2DFKRUf.js → index-C9LqX4Lg.js} +1 -1
  20. package/dist/{index-DM6XeWFk.js → index-CMLlvrEW.js} +2384 -2417
  21. package/dist/{index-DLK7DuCr.js → index-COn912sj.js} +3 -3
  22. package/dist/{index-9rfSVSTh.js → index-CcHrWE4P.js} +2 -2
  23. package/dist/index-Cxoup7V8.js +139 -0
  24. package/dist/{index-B3uLo8-F.js → index-CzS_q6Tn.js} +3 -3
  25. package/dist/{index-Ci6_CBwE.js → index-DWrEAa8-.js} +3 -3
  26. package/dist/{index-DmV6xR7C.js → index-DePIQVt9.js} +3 -3
  27. package/dist/index-DlBN-ou4.js +311 -0
  28. package/dist/{index-ftuPuj0s.js → index-Do3pyigD.js} +1 -1
  29. package/dist/{index-D_J1ZCy8.js → index-DtgTLML8.js} +3 -3
  30. package/dist/{index-t2nMJUPu.js → index-DxXcTAH4.js} +1 -1
  31. package/dist/index-H7hP7Fmj.js +228 -0
  32. package/dist/{index-Bs9odXxd.js → index-LnUf9Vil.js} +6 -6
  33. package/dist/{index-DMfYPIkB.js → index-XWWknPNw.js} +2 -2
  34. package/dist/{index-Ceu-yckM.js → index-frmk-zNf.js} +12 -12
  35. package/dist/{index-mEgmHNRO.js → index-ztXjGIJk.js} +1 -1
  36. package/dist/index.js +1 -1
  37. package/dist/{instance-DD3kbAUh.js → instance-DL4u5k9c.js} +1 -1
  38. package/dist/{menuPermission-v0881tid.js → menuPermission-CA_atlfk.js} +3 -3
  39. package/dist/menuTree-Ctcz41N8.js +303 -0
  40. package/dist/pages.js +1 -1
  41. package/dist/{send-default-agent-team-message-Cug0T_7J.js → send-default-agent-team-message-BfBVm9AO.js} +1 -1
  42. package/dist/{sso-user-CnVXqYR7.js → sso-user-Dr8_-Sxd.js} +1 -1
  43. package/dist/{training-BS23m-yy.js → training-CcGUA5KC.js} +1 -1
  44. package/dist/{webide-BPJ1IpZq.js → webide-C2JfQ-Je.js} +3 -3
  45. package/dist/z-team-component.css +1 -1
  46. package/package.json +2 -1
  47. package/dist/SystemShell-CSXcsiNp.js +0 -752
  48. package/dist/index-BNPq7yBg.js +0 -147
  49. package/dist/index-BoY7L8C4.js +0 -111
  50. package/dist/index-CU6jFFl5.js +0 -112
  51. package/dist/index-CZCKpsry.js +0 -607
  52. package/dist/useSidebarResize--Avuabb1.js +0 -46
@@ -0,0 +1,228 @@
1
+ import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
+ import { useState as L, useMemo as I, useCallback as W, useEffect as O } from "react";
3
+ import { useNavigate as U, useLocation as q } from "react-router-dom";
4
+ import { CodeOutlined as T, DownOutlined as w, RightOutlined as B, AppstoreOutlined as y, HomeOutlined as C, DashboardOutlined as D, TableOutlined as j, DatabaseOutlined as K, RobotOutlined as F, FunctionOutlined as z, ApartmentOutlined as J, EyeOutlined as Q, BranchesOutlined as V, DeploymentUnitOutlined as X, SafetyCertificateOutlined as Y, RocketOutlined as Z } from "@ant-design/icons";
5
+ import ee from "@yuku123/z-lc-component";
6
+ import { f as ne, M as te } from "./menuPermission-CA_atlfk.js";
7
+ import { u as P } from "./ComponentDoc-BAUII4UZ.js";
8
+ const re = "_shellWrap_kxkvd_7", ae = "_shell_kxkvd_7", ue = "_productBanner_kxkvd_25", se = "_productBannerLabel_kxkvd_37", ce = "_productBannerName_kxkvd_43", oe = "_productBannerCode_kxkvd_51", ie = "_productBannerBack_kxkvd_56", le = "_sidebar_kxkvd_78", de = "_sidebarHeader_kxkvd_89", me = "_menuList_kxkvd_101", pe = "_menuGroup_kxkvd_108", he = "_menuGroupHeader_kxkvd_113", be = "_menuGroupHeaderOpen_kxkvd_132", ke = "_menuGroupHeaderActive_kxkvd_143", _e = "_menuGroupIcon_kxkvd_147", Se = "_menuGroupLabel_kxkvd_156", Ge = "_menuGroupArrow_kxkvd_161", fe = "_menuSubList_kxkvd_168", ve = "_menuSubItem_kxkvd_175", Ie = "_menuItemOnPath_kxkvd_209", xe = "_menuSubItemPill_kxkvd_230", $e = "_menuSubItemActive_kxkvd_246", Ne = "_menuSubItemIcon_kxkvd_256", Oe = "_menuSubGroup_kxkvd_272", ye = "_menuSubGroupHeader_kxkvd_277", Ae = "_menuSubGroupHeaderOpen_kxkvd_304", He = "_menuSubGroupHeaderActive_kxkvd_314", Le = "_menuSubGroupLabel_kxkvd_331", we = "_main_kxkvd_351", r = {
9
+ shellWrap: re,
10
+ shell: ae,
11
+ productBanner: ue,
12
+ productBannerLabel: se,
13
+ productBannerName: ce,
14
+ productBannerCode: oe,
15
+ productBannerBack: ie,
16
+ sidebar: le,
17
+ sidebarHeader: de,
18
+ menuList: me,
19
+ menuGroup: pe,
20
+ menuGroupHeader: he,
21
+ menuGroupHeaderOpen: be,
22
+ menuGroupHeaderActive: ke,
23
+ menuGroupIcon: _e,
24
+ menuGroupLabel: Se,
25
+ menuGroupArrow: Ge,
26
+ menuSubList: fe,
27
+ menuSubItem: ve,
28
+ menuItemOnPath: Ie,
29
+ menuSubItemPill: xe,
30
+ menuSubItemActive: $e,
31
+ menuSubItemIcon: Ne,
32
+ menuSubGroup: Oe,
33
+ menuSubGroupHeader: ye,
34
+ menuSubGroupHeaderOpen: Ae,
35
+ menuSubGroupHeaderActive: He,
36
+ menuSubGroupLabel: Le,
37
+ main: we
38
+ }, f = "/lc", Be = /* @__PURE__ */ new Set(["apps", "designer", "db-import", "admin", "docs"]);
39
+ function Pe(n, a) {
40
+ if (!n.startsWith(f)) return null;
41
+ const c = n.slice(f.length).replace(/^\//, "").split("/").filter(Boolean);
42
+ return c[0] === "designer" && c[1] ? c[1] : c[0] && !Be.has(c[0]) ? c[0] : new URLSearchParams(a.startsWith("?") ? a.slice(1) : a).get("appCode") || null;
43
+ }
44
+ function ge(n) {
45
+ const a = `?appCode=${encodeURIComponent(n)}`;
46
+ return [
47
+ { key: `${n}:overview`, label: "应用概览", icon: /* @__PURE__ */ e(C, {}), path: n },
48
+ { key: `${n}:dashboard`, label: "仪表盘", icon: /* @__PURE__ */ e(D, {}), path: `${n}/dashboard` },
49
+ { key: `${n}:designer`, label: "Schema 设计器", icon: /* @__PURE__ */ e(j, {}), path: `designer/${n}` },
50
+ { key: `${n}:db-import`, label: "从数据库导入", icon: /* @__PURE__ */ e(K, {}), path: `db-import${a}` },
51
+ { key: `${n}:ai`, label: "AI 建模", icon: /* @__PURE__ */ e(F, {}), path: `admin/ai${a}` },
52
+ { key: `${n}:dicts`, label: "数据字典", icon: /* @__PURE__ */ e(z, {}), path: `admin/dicts${a}` },
53
+ { key: `${n}:relations`, label: "实体关系", icon: /* @__PURE__ */ e(J, {}), path: `admin/relations${a}` },
54
+ { key: `${n}:views`, label: "视图配置", icon: /* @__PURE__ */ e(Q, {}), path: `admin/views${a}` },
55
+ { key: `${n}:pipelines`, label: "Pipeline", icon: /* @__PURE__ */ e(V, {}), path: `admin/pipelines${a}` },
56
+ { key: `${n}:workflows`, label: "流程绑定", icon: /* @__PURE__ */ e(X, {}), path: `admin/workflows${a}` },
57
+ { key: `${n}:permissions`, label: "权限矩阵", icon: /* @__PURE__ */ e(Y, {}), path: `admin/permissions${a}`, permission: "PERMISSION_MANAGE" },
58
+ { key: `${n}:deployments`, label: "部署记录", icon: /* @__PURE__ */ e(Z, {}), path: `admin/deployments${a}` }
59
+ ];
60
+ }
61
+ function Ee(n) {
62
+ const a = [
63
+ { key: "apps", label: "应用列表", icon: /* @__PURE__ */ e(y, {}), path: "apps" }
64
+ ];
65
+ return n && a.push({
66
+ key: n,
67
+ label: n,
68
+ icon: /* @__PURE__ */ e(y, {}),
69
+ children: ge(n)
70
+ }), [{ title: "应用", icon: /* @__PURE__ */ e(y, {}), items: a }];
71
+ }
72
+ function Me(n, a, o, c) {
73
+ if (!n.path) return !1;
74
+ const d = n.path.indexOf("?"), G = d >= 0 ? n.path.slice(0, d) : n.path;
75
+ return (c ? a === G : a === G || a.startsWith(`${G}/`)) ? d >= 0 ? new URLSearchParams(n.path.slice(d + 1)).get("appCode") === o : !0 : !1;
76
+ }
77
+ function Re(n, a, o, c) {
78
+ if (!a.startsWith(f)) return null;
79
+ const d = a.slice(f.length).replace(/^\//, ""), G = n.flatMap(
80
+ (b) => b.items.flatMap((m) => m.children ? [m, ...m.children] : [m])
81
+ );
82
+ for (const b of [!0, !1])
83
+ for (const m of G)
84
+ if (Me(m, d, c, b)) return m.key;
85
+ return null;
86
+ }
87
+ function Ke() {
88
+ const n = U(), { pathname: a, search: o } = q(), c = P((t) => t.currentUser), d = P((t) => t.permissionState), [G, b] = L(/* @__PURE__ */ new Set()), [m, A] = L(/* @__PURE__ */ new Set()), h = I(() => {
89
+ try {
90
+ const t = new URLSearchParams(o), i = t.get("product");
91
+ return i ? { code: i, name: t.get("productName") || i } : null;
92
+ } catch {
93
+ return null;
94
+ }
95
+ }, [o]), g = W(() => {
96
+ if (!h) return;
97
+ const t = new URLSearchParams();
98
+ t.set("product", h.code), h.name && t.set("productName", h.name), n(`/workspace?mode=product&${t.toString()}`);
99
+ }, [h, n]);
100
+ O(() => {
101
+ a.startsWith("/lc") || n(`/lc/apps${o || ""}`, { replace: !0 });
102
+ }, [a, o, n]);
103
+ const k = I(() => Pe(a, o), [a, o]), $ = I(() => Ee(k), [k]), v = I(
104
+ () => d === "failed" ? $ : ne($, c),
105
+ [$, c, d]
106
+ ), p = I(
107
+ () => Re(v, a, o, k),
108
+ [v, a, o, k]
109
+ );
110
+ O(() => {
111
+ k && (b((t) => t.has("应用") ? t : new Set(t).add("应用")), A((t) => t.has(k) ? t : new Set(t).add(k)));
112
+ }, [k]), O(() => {
113
+ p && v.forEach((t) => {
114
+ t.items.some(
115
+ (u) => {
116
+ var s;
117
+ return u.key === p || ((s = u.children) == null ? void 0 : s.some((_) => _.key === p));
118
+ }
119
+ ) && b(
120
+ (u) => u.has(t.title) ? u : new Set(u).add(t.title)
121
+ );
122
+ });
123
+ }, [p, v]);
124
+ const E = (t) => {
125
+ b((i) => {
126
+ const u = new Set(i);
127
+ return u.has(t) ? u.delete(t) : u.add(t), u;
128
+ });
129
+ }, M = (t) => {
130
+ A((i) => {
131
+ const u = new Set(i);
132
+ return u.has(t) ? u.delete(t) : u.add(t), u;
133
+ });
134
+ };
135
+ return /* @__PURE__ */ l("div", { className: r.shellWrap, children: [
136
+ h && /* @__PURE__ */ l("div", { className: r.productBanner, children: [
137
+ /* @__PURE__ */ e("span", { className: r.productBannerLabel, children: "📦 当前产品" }),
138
+ /* @__PURE__ */ e("span", { className: r.productBannerName, title: h.name, children: h.name }),
139
+ /* @__PURE__ */ e("span", { className: r.productBannerCode, children: h.code }),
140
+ /* @__PURE__ */ e("button", { type: "button", className: r.productBannerBack, onClick: g, children: "← 返回产品工作台" })
141
+ ] }),
142
+ /* @__PURE__ */ l("div", { className: r.shell, children: [
143
+ /* @__PURE__ */ l("aside", { className: r.sidebar, children: [
144
+ /* @__PURE__ */ l("div", { className: r.sidebarHeader, children: [
145
+ /* @__PURE__ */ e(T, {}),
146
+ /* @__PURE__ */ e("span", { children: "研发工作台" })
147
+ ] }),
148
+ /* @__PURE__ */ e(te, {}),
149
+ /* @__PURE__ */ e("nav", { className: r.menuList, children: v.map((t) => {
150
+ const i = G.has(t.title), u = p ? t.items.findIndex(
151
+ (s) => {
152
+ var _;
153
+ return s.key === p || ((_ = s.children) == null ? void 0 : _.some((x) => x.key === p));
154
+ }
155
+ ) : -1;
156
+ return /* @__PURE__ */ l("div", { className: r.menuGroup, children: [
157
+ /* @__PURE__ */ l(
158
+ "div",
159
+ {
160
+ className: `${r.menuGroupHeader} ${i ? r.menuGroupHeaderOpen : ""} ${u >= 0 ? r.menuGroupHeaderActive : ""}`,
161
+ onClick: () => E(t.title),
162
+ children: [
163
+ /* @__PURE__ */ e("span", { className: r.menuGroupIcon, children: t.icon }),
164
+ /* @__PURE__ */ e("span", { className: r.menuGroupLabel, children: t.title }),
165
+ /* @__PURE__ */ e("span", { className: r.menuGroupArrow, children: i ? /* @__PURE__ */ e(w, {}) : /* @__PURE__ */ e(B, {}) })
166
+ ]
167
+ }
168
+ ),
169
+ i && /* @__PURE__ */ e("ul", { className: r.menuSubList, children: t.items.map((s, _) => {
170
+ const x = u >= 0 && _ <= u;
171
+ if (!s.children)
172
+ return /* @__PURE__ */ e(
173
+ "li",
174
+ {
175
+ className: `${r.menuSubItem} ${x ? r.menuItemOnPath : ""} ${p === s.key ? r.menuSubItemActive : ""}`,
176
+ onClick: () => s.path && n(`${f}/${s.path}`),
177
+ children: /* @__PURE__ */ l("div", { className: r.menuSubItemPill, children: [
178
+ /* @__PURE__ */ e("span", { className: r.menuSubItemIcon, children: s.icon }),
179
+ /* @__PURE__ */ e("span", { children: s.label })
180
+ ] })
181
+ },
182
+ s.key
183
+ );
184
+ const N = m.has(s.key), H = u === _ ? s.children.findIndex((S) => S.key === p) : -1;
185
+ return /* @__PURE__ */ l(
186
+ "li",
187
+ {
188
+ className: `${r.menuSubGroup} ${x ? r.menuItemOnPath : ""}`,
189
+ children: [
190
+ /* @__PURE__ */ l(
191
+ "div",
192
+ {
193
+ className: `${r.menuSubGroupHeader} ${N ? r.menuSubGroupHeaderOpen : ""} ${u === _ ? r.menuSubGroupHeaderActive : ""}`,
194
+ onClick: () => M(s.key),
195
+ children: [
196
+ /* @__PURE__ */ e("span", { className: r.menuGroupIcon, children: s.icon }),
197
+ /* @__PURE__ */ e("span", { className: r.menuSubGroupLabel, children: s.label }),
198
+ /* @__PURE__ */ e("span", { className: r.menuGroupArrow, children: N ? /* @__PURE__ */ e(w, {}) : /* @__PURE__ */ e(B, {}) })
199
+ ]
200
+ }
201
+ ),
202
+ N && /* @__PURE__ */ e("ul", { className: r.menuSubList, children: s.children.map((S, R) => /* @__PURE__ */ e(
203
+ "li",
204
+ {
205
+ className: `${r.menuSubItem} ${H >= 0 && R <= H ? r.menuItemOnPath : ""} ${p === S.key ? r.menuSubItemActive : ""}`,
206
+ onClick: () => S.path && n(`${f}/${S.path}`),
207
+ children: /* @__PURE__ */ l("div", { className: r.menuSubItemPill, children: [
208
+ /* @__PURE__ */ e("span", { className: r.menuSubItemIcon, children: S.icon }),
209
+ /* @__PURE__ */ e("span", { children: S.label })
210
+ ] })
211
+ },
212
+ S.key
213
+ )) })
214
+ ]
215
+ },
216
+ s.key
217
+ );
218
+ }) })
219
+ ] }, t.title);
220
+ }) })
221
+ ] }),
222
+ /* @__PURE__ */ e("main", { className: r.main, children: /* @__PURE__ */ e(ee, {}) })
223
+ ] })
224
+ ] });
225
+ }
226
+ export {
227
+ Ke as default
228
+ };
@@ -1,13 +1,13 @@
1
1
  import { jsx as n, jsxs as p, Fragment as J } from "react/jsx-runtime";
2
- import { S as An, P as Dn } from "./webide-BPJ1IpZq.js";
2
+ import { S as An, P as Dn } from "./webide-C2JfQ-Je.js";
3
3
  import { Dropdown as en } from "antd";
4
4
  import { PlayCircleOutlined as Pn, FileTextOutlined as cn, PlusOutlined as $n, ClockCircleOutlined as jn, AppstoreOutlined as xn, UnorderedListOutlined as En, SettingOutlined as Rn } from "@ant-design/icons";
5
5
  import { useState as d, useRef as Ne, useEffect as I, useCallback as B, useMemo as L } from "react";
6
- import { u as X, o as Mn, q as Kn, t as Fn, n as z, v as Bn, w as ke, x as Hn, y as Wn } from "./ComponentDoc-Dh5YhLCI.js";
7
- import { s, T as _n, R as De, D as we, f as Zn, a as Gn, F as Pe, P as Vn, L as Un, A as Qn, C as zn, b as Jn, c as Xn, p as Yn, d as qn, e as nn, g as tn, h as et, W as nt, i as tt, S as st, j as at, k as lt, l as sn, m as ot, r as it, n as ct, U as rt, o as dt, q as ut, t as pt } from "./index-DM6XeWFk.js";
8
- import { u as rn, i as ht, s as an, c as mt } from "./createWorkspaceWsHandler-BwDUTYXH.js";
9
- import { h as ft, f as gt } from "./index-ftuPuj0s.js";
10
- import { S as bt, P as yt, L as kt, a as Nt, E as wt, C as Tt, W as ln, b as on, T as vt, c as Ct } from "./ScheduledTasks-COgb4MZJ.js";
6
+ import { u as X, o as Mn, q as Kn, t as Fn, n as z, v as Bn, w as ke, x as Hn, y as Wn } from "./ComponentDoc-BAUII4UZ.js";
7
+ import { s, T as _n, R as De, D as we, f as Zn, a as Gn, F as Pe, P as Vn, L as Un, A as Qn, C as zn, b as Jn, c as Xn, p as Yn, d as qn, e as nn, g as tn, h as et, W as nt, i as tt, S as st, j as at, k as lt, l as sn, m as ot, r as it, n as ct, U as rt, o as dt, q as ut, t as pt } from "./index-CMLlvrEW.js";
8
+ import { u as rn, i as ht, s as an, c as mt } from "./createWorkspaceWsHandler-y6pRWLoa.js";
9
+ import { h as ft, f as gt } from "./index-Do3pyigD.js";
10
+ import { S as bt, P as yt, L as kt, a as Nt, E as wt, C as Tt, W as ln, b as on, T as vt, c as Ct } from "./ScheduledTasks-DZSEnuIF.js";
11
11
  import { TodoTab as St } from "@yuku123/z-task-component";
12
12
  const It = [
13
13
  "帮我排查一个线上问题",
@@ -1,8 +1,8 @@
1
1
  import { jsxs as t, jsx as n, Fragment as _ } from "react/jsx-runtime";
2
2
  import { useState as i, useRef as D, useCallback as B, useEffect as N } from "react";
3
- import { u as j } from "./ComponentDoc-Dh5YhLCI.js";
3
+ import { u as j } from "./ComponentDoc-BAUII4UZ.js";
4
4
  /* empty css */
5
- import { l as F, c as G, a as z, b as K, p as W } from "./api-C9kTgVc2.js";
5
+ import { l as F, c as G, a as z, b as K, p as W } from "./api-B-nnjGsa.js";
6
6
  const L = "dev_brain_scenario";
7
7
  function q() {
8
8
  var M;
@@ -1,18 +1,18 @@
1
1
  import { jsxs as p, jsx as t } from "react/jsx-runtime";
2
2
  import { r as D, f as le } from "./ctc-sso-DtJHC-2M.js";
3
- import { r as de, h as Z, s as K } from "./sso-user-CnVXqYR7.js";
3
+ import { r as de, h as X, s as Z } from "./sso-user-Dr8_-Sxd.js";
4
4
  import { ArrowLeftOutlined as ue, LogoutOutlined as pe, SearchOutlined as me } from "@ant-design/icons";
5
- import { Spin as O, Button as X, Input as he, Empty as Y, Tag as fe, message as ge } from "antd";
5
+ import { Spin as O, Button as K, Input as he, Empty as Y, Tag as fe, message as ge } from "antd";
6
6
  import B from "query-string";
7
7
  import { useState as y, useRef as E, useEffect as w, useMemo as J, useCallback as q } from "react";
8
8
  import { useLocation as be } from "react-router-dom";
9
9
  import { h as A } from "./history-BlrA1eaW.js";
10
- import { a as ke, C as we } from "./createWorkspaceWsHandler-BwDUTYXH.js";
11
- import { u as c, Y as Se, _ as ye, $ as ve, a0 as Ne, a1 as Te, a2 as je, k as ee } from "./ComponentDoc-Dh5YhLCI.js";
12
- import { l as Ce, j as Pe } from "./instance-DD3kbAUh.js";
10
+ import { a as ke, C as we } from "./createWorkspaceWsHandler-y6pRWLoa.js";
11
+ import { u as c, X as Se, Y as ye, _ as ve, $ as Ne, a0 as Te, a1 as je, k as ee } from "./ComponentDoc-BAUII4UZ.js";
12
+ import { l as Ce, j as Pe } from "./instance-DL4u5k9c.js";
13
13
  import { i as xe, s as _e } from "./mobile-client-O3yr9h6t.js";
14
14
  /* empty css */
15
- import { s as Ee } from "./admin-logs-CExsxQ5h.js";
15
+ import { s as Ee } from "./admin-logs-DEawvNOd.js";
16
16
  const ae = 2e4;
17
17
  function Ae(o, i = ae, n = globalThis) {
18
18
  let s = null;
@@ -163,7 +163,7 @@ function Ye() {
163
163
  const M = 3, N = (b) => {
164
164
  const d = c.getState().token;
165
165
  if (z.current != null) {
166
- e || (j(K(b)), Q(!0)), ee().then((G) => {
166
+ e || (j(Z(b)), Q(!0)), ee().then((G) => {
167
167
  e || j(G);
168
168
  }).catch(() => {
169
169
  !e && d && (localStorage.removeItem("z_team_token"), c.setState({ token: "" }));
@@ -173,7 +173,7 @@ function Ye() {
173
173
  ee().then((G) => {
174
174
  e || j(G);
175
175
  }).catch(() => {
176
- e || (d && (localStorage.removeItem("z_team_token"), c.setState({ token: "" })), j(K(b)));
176
+ e || (d && (localStorage.removeItem("z_team_token"), c.setState({ token: "" })), j(Z(b)));
177
177
  }).finally(() => {
178
178
  e || Q(!0);
179
179
  });
@@ -185,7 +185,7 @@ function Ye() {
185
185
  if (e)
186
186
  return;
187
187
  let d = de();
188
- if ((!d || !Z(d)) && !x) {
188
+ if ((!d || !X(d)) && !x) {
189
189
  x = !0;
190
190
  try {
191
191
  const u = await le();
@@ -195,7 +195,7 @@ function Ye() {
195
195
  x = !1;
196
196
  }
197
197
  }
198
- if (d && Z(d)) {
198
+ if (d && X(d)) {
199
199
  N(d);
200
200
  return;
201
201
  }
@@ -322,7 +322,7 @@ function Ye() {
322
322
  ) : /* @__PURE__ */ p("div", { className: "phone-workspace", children: [
323
323
  /* @__PURE__ */ p("header", { className: "phone-workspace-header", children: [
324
324
  i === "project" ? /* @__PURE__ */ t(
325
- X,
325
+ K,
326
326
  {
327
327
  type: "text",
328
328
  icon: /* @__PURE__ */ t(ue, {}),
@@ -350,7 +350,7 @@ function Ye() {
350
350
  }
351
351
  ) : /* @__PURE__ */ t("span", { className: "phone-workspace-project-name", children: (v == null ? void 0 : v.name) ?? "工程" }) }),
352
352
  /* @__PURE__ */ t("div", { className: "phone-workspace-header-actions", children: /* @__PURE__ */ t(
353
- X,
353
+ K,
354
354
  {
355
355
  type: "text",
356
356
  icon: /* @__PURE__ */ t(pe, {}),
@@ -2,7 +2,7 @@ import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
2
  import { CopyOutlined as re, ReloadOutlined as Ae, PlusOutlined as Be, DeleteOutlined as qe, ClearOutlined as Ge, CloseOutlined as Je, SendOutlined as We, RobotOutlined as xe, CloudServerOutlined as Qe, MessageOutlined as Ve, KeyOutlined as Ye, ApiOutlined as Xe, ToolOutlined as Ze, BarChartOutlined as et } from "@ant-design/icons";
3
3
  import { useState as f, useEffect as Z, useCallback as F, useRef as pe, useMemo as Ie, Suspense as tt, lazy as at } from "react";
4
4
  import { Table as _e, Tooltip as ae, Tabs as Me, Input as fe, Button as z, Modal as ke, Drawer as be, Spin as ne, Statistic as K, message as J, Tag as Y, Select as nt, Checkbox as ot } from "antd";
5
- import { u as Pe } from "./ComponentDoc-Dh5YhLCI.js";
5
+ import { u as Pe } from "./ComponentDoc-BAUII4UZ.js";
6
6
  import { AgentAppList as st, McpPage as lt, SkillMarket as rt } from "@yuku123/z-agent-component";
7
7
  const de = "ft_gateway_default_ak", Ee = "system-default", ee = "", ye = "";
8
8
  function te(a = {}) {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as e, P as s, S as a, Z as r, i } from "./ComponentDoc-Dh5YhLCI.js";
1
+ import { C as e, P as s, S as a, Z as r, i } from "./ComponentDoc-BAUII4UZ.js";
2
2
  import { h as m } from "./history-BlrA1eaW.js";
3
3
  export {
4
4
  e as ComponentDocPage,
@@ -1,4 +1,4 @@
1
- import { a as o, f as l, B as r, b as c } from "./ComponentDoc-Dh5YhLCI.js";
1
+ import { a as o, f as l, B as r, b as c } from "./ComponentDoc-BAUII4UZ.js";
2
2
  async function I(e, n = "") {
3
3
  const t = new URLSearchParams();
4
4
  n && t.set("token", n), e.scenario_code && t.set("scenario_code", e.scenario_code), e.status && t.set("status", e.status), e.name && t.set("name", e.name), e.role && t.set("role", e.role), e.create_time_start && t.set("create_time_start", e.create_time_start), e.create_time_end && t.set("create_time_end", e.create_time_end), t.set("page", String(e.page ?? 1)), t.set("size", String(e.size ?? 20));
@@ -1,8 +1,8 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import { Alert as h } from "antd";
3
- import { u as d } from "./ComponentDoc-Dh5YhLCI.js";
4
- import { h as g } from "./index-ftuPuj0s.js";
5
- import { N as A } from "./index-DM6XeWFk.js";
3
+ import { u as d } from "./ComponentDoc-BAUII4UZ.js";
4
+ import { h as g } from "./index-Do3pyigD.js";
5
+ import { N as A } from "./index-CMLlvrEW.js";
6
6
  function P() {
7
7
  return d((n) => n.permissionState) !== "failed" ? null : /* @__PURE__ */ a(
8
8
  h,