@yuku123/z-team-component 0.2.52 → 0.2.53

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-nPAmM1X0.js → ChangeLogView-Dm7C3S14.js} +1 -1
  2. package/dist/{ComponentDoc-Cky9jCGu.js → ComponentDoc-y1NfPcHG.js} +506 -461
  3. package/dist/{InvitationManagementPage-BsbaIGvB.js → InvitationManagementPage-Btw9iVOl.js} +1 -1
  4. package/dist/{OnboardingPage-CHVgeBiO.js → OnboardingPage-wF0OrgfD.js} +2 -2
  5. package/dist/ScheduledTasks-CzzgG3n8.js +9417 -0
  6. package/dist/{SystemShell-4OiqvM11.js → SystemShell-BSCmnOxf.js} +1 -1
  7. package/dist/{admin-logs-D6HtRcK6.js → admin-logs-vR556ORQ.js} +2 -2
  8. package/dist/{api-BT968Uwc.js → api-Bs0qYxjL.js} +1 -1
  9. package/dist/{api-C78tCfne.js → api-Jfnj1ybB.js} +287 -270
  10. package/dist/createWorkspaceWsHandler-obuYWncQ.js +12820 -0
  11. package/dist/{index-BAY37t4f.js → index-B3LhKHBx.js} +4 -4
  12. package/dist/{index-CR3sbzOU.js → index-BNShjps9.js} +7 -7
  13. package/dist/{index-DxFZKDq-.js → index-BXiuxhgz.js} +6 -6
  14. package/dist/{index-CdlfWFvS.js → index-BbkE7r8M.js} +1 -1
  15. package/dist/index-BtWtVMgY.js +474 -0
  16. package/dist/{index-DpcrvKsK.js → index-C5WSr14Z.js} +1 -1
  17. package/dist/{index-D9AqC2O-.js → index-CYViRXQo.js} +1 -1
  18. package/dist/{index-Bdu31aRV.js → index-Ck_D109M.js} +2 -2
  19. package/dist/index-CnEWSsKt.js +582 -0
  20. package/dist/{index-B11_fFjX.js → index-CxrBnzg2.js} +1 -1
  21. package/dist/index-DRrBkbr_.js +100 -0
  22. package/dist/index-DUmgSTQu.js +9179 -0
  23. package/dist/index-DWsfQMp8.js +208 -0
  24. package/dist/{index-LwKUkzKI.js → index-Di_vaPxC.js} +3 -3
  25. package/dist/{index-B_C7H9WL.js → index-Dj5_8ulz.js} +5 -5
  26. package/dist/{index-qK6pyAGy.js → index-DmZdGNnh.js} +4 -4
  27. package/dist/index-DqUOCs_a.js +242 -0
  28. package/dist/{index-DFY3lzq0.js → index-DroZE6Bv.js} +3 -3
  29. package/dist/{index-BAK7UDvY.js → index-JLtVgwZv.js} +1 -1
  30. package/dist/index-Onqu_VQO.js +2828 -0
  31. package/dist/index-Pk7OkJrk.js +1133 -0
  32. package/dist/index-WIsi8fln.js +339 -0
  33. package/dist/{index-ClA0896K.js → index-gxEdw4X4.js} +4 -4
  34. package/dist/index-tADa82Fa.js +130 -0
  35. package/dist/{index-BX1Wd9x9.js → index-yS7XIUis.js} +3 -3
  36. package/dist/index.js +1 -1
  37. package/dist/{instance-D5dhjbgg.js → instance-B0DZJnee.js} +3 -3
  38. package/dist/pages.js +1 -1
  39. package/dist/schedule-D3jTrI1R.js +497 -0
  40. package/dist/{send-default-agent-team-message-C882sJLV.js → send-default-agent-team-message-CbqHaohM.js} +1 -1
  41. package/dist/{sso-user-Bi9_l9yi.js → sso-user-Dw_wwYa-.js} +1 -1
  42. package/dist/{training-Ba09KItE.js → training-CETtJBNQ.js} +1 -1
  43. package/dist/{useAppStore-ibJyVIAX.js → useAppStore-s-CLa-nF.js} +19 -19
  44. package/dist/webide-6j4OVoNA.js +7845 -0
  45. package/dist/z-team-component.css +2 -2
  46. package/package.json +1 -1
  47. package/dist/createWorkspaceWsHandler-mq-UTF2O.js +0 -13028
  48. package/dist/index-7nSly-MA.js +0 -405
  49. package/dist/index-B3-0eXYQ.js +0 -844
  50. package/dist/index-Cp3DAwNx.js +0 -13862
  51. package/dist/index-NaBR2aQE.js +0 -6685
  52. package/dist/index-UsGqMo11.js +0 -848
  53. package/dist/schedule-C-4ksDPw.js +0 -239
  54. package/dist/webide-RsFP9pHM.js +0 -8087
@@ -3,16 +3,16 @@ import { SearchOutlined as Ie, ReloadOutlined as Ne, PlusOutlined as xe, ArrowUp
3
3
  import { Input as K, Select as ae, Button as M, Modal as ve, Space as qe, Tooltip as oe, message as P, Tag as H, Popconfirm as ke, Spin as Xe, Empty as Ke, AutoComplete as st, Segmented as Bt, TreeSelect as et, Descriptions as ne, InputNumber as Fe, Drawer as cl, Tabs as Mt, Switch as zt, Radio as yt, Tree as ul, Table as Oe } from "antd";
4
4
  import { ListTable as _e, DEFAULT_PAGINATION as hl } from "@yuku123/z-frontend-common/ui";
5
5
  import { useState as o, useCallback as de, useEffect as ce, useMemo as pe, useRef as Ft } from "react";
6
- import { f as Ut, a as Gt, b as ct, c as ut, s as vt, d as ml, e as pl, g as tt, h as gl, i as yl, j as vl, k as jt, l as ft, m as fl, n as wl, o as Cl, r as Wt, p as Ht, q as bl, t as wt, u as Il, v as ht, w as mt, x as xl, y as Tl, z as Nl, A as kl, B as Ct, C as Sl, D as _l, E as Al, F as El, G as Dl, H as bt, I as Rl, J as Ll, K as $l, L as Pl, M as Ol, N as Bl, O as Ml, P as It, Q as zl, R as Fl, S as Ul, T as Gl, U as jl } from "./training-Ba09KItE.js";
7
- import { u as Ce } from "./useAppStore-ibJyVIAX.js";
6
+ import { f as Ut, a as Gt, b as ct, c as ut, s as vt, d as ml, e as pl, g as tt, h as gl, i as yl, j as vl, k as jt, l as ft, m as fl, n as wl, o as Cl, r as Wt, p as Ht, q as bl, t as wt, u as Il, v as ht, w as mt, x as xl, y as Tl, z as Nl, A as kl, B as Ct, C as Sl, D as _l, E as Al, F as El, G as Dl, H as bt, I as Rl, J as Ll, K as $l, L as Pl, M as Ol, N as Bl, O as Ml, P as It, Q as zl, R as Fl, S as Ul, T as Gl, U as jl } from "./training-CETtJBNQ.js";
7
+ import { u as Ce } from "./useAppStore-s-CLa-nF.js";
8
8
  import { s as r } from "./index.module-UI0iz8K0.js";
9
9
  import Wl from "dayjs";
10
10
  import xt from "react-markdown";
11
11
  import Tt from "remark-gfm";
12
12
  import { h as be } from "./index.module-CAa-2T7m.js";
13
13
  import { M as Hl } from "./index-CUVdeb8y.js";
14
- import { af as Kl } from "./api-C78tCfne.js";
15
- import { h as ql } from "./schedule-C-4ksDPw.js";
14
+ import { ao as Kl } from "./api-Jfnj1ybB.js";
15
+ import { h as ql } from "./schedule-D3jTrI1R.js";
16
16
  import { s as Ee } from "./SmartWorkbench.module-xRRmpTTw.js";
17
17
  function Vl() {
18
18
  const l = Ce((i) => i.token), [n, D] = o([]), [k, L] = o(!1), [x, B] = o(""), [E, F] = o(null), [c, A] = o(!1), [C, T] = o(!1), [I, U] = o(null), [u, v] = o([]), [_, y] = o([]), [j, J] = o([]), [Z, O] = o([]), [w, z] = o([]), h = de(async () => {
@@ -1,16 +1,16 @@
1
1
  import { jsxs as n, jsx as e, Fragment as Ye } from "react/jsx-runtime";
2
- import { r as Nm, h as Cm, s as wm } from "./sso-user-Bi9_l9yi.js";
2
+ import { r as Nm, h as Cm, s as wm } from "./sso-user-Dw_wwYa-.js";
3
3
  import { PlusOutlined as $t, SaveOutlined as Gn, EditOutlined as xn, DeleteOutlined as Bt, ControlOutlined as Er, FolderOpenOutlined as ls, ReloadOutlined as Nt, RobotOutlined as sa, ProfileOutlined as Bd, MessageOutlined as eo, SettingOutlined as rl, ToolOutlined as ba, ApiOutlined as to, ClusterOutlined as Tm, InfoCircleOutlined as Dn, CaretDownOutlined as oi, CaretRightOutlined as ci, FolderOutlined as ol, ExperimentOutlined as Fd, CheckCircleOutlined as cl, SearchOutlined as Jn, CodeOutlined as Lo, PlayCircleOutlined as di, FormOutlined as Hd, CopyOutlined as vi, AppstoreOutlined as Jl, NotificationOutlined as km, CloseOutlined as bi, ThunderboltOutlined as ja, SyncOutlined as jd, CloseCircleOutlined as ui, FieldTimeOutlined as Sm, DownOutlined as Al, RightOutlined as mi, RollbackOutlined as Dr, TagOutlined as Ud, EllipsisOutlined as Gd, CheckOutlined as $o, UserAddOutlined as Qs, DatabaseOutlined as no, CloudSyncOutlined as xm, FileTextOutlined as ao, SwapOutlined as Im, CloudUploadOutlined as Am, FileMarkdownOutlined as Lm, BellOutlined as $m, RocketOutlined as Em, SendOutlined as Eo, LeftOutlined as Dm, CalendarOutlined as Rm, WarningOutlined as Rr, TeamOutlined as Or, SafetyCertificateOutlined as Om, MinusCircleOutlined as lo, PlusCircleOutlined as Pr, WarningFilled as Pm, CheckCircleFilled as Wd, CloseCircleFilled as qd, NodeIndexOutlined as Xs, FileImageOutlined as Vd, BookOutlined as Yd, BranchesOutlined as Kd, ExclamationCircleOutlined as zr, ArrowLeftOutlined as Jd, BulbOutlined as zm, FileSearchOutlined as Do, UpOutlined as Mm, LoadingOutlined as Ro, ExclamationCircleFilled as Bm, ExportOutlined as Fm, StarFilled as Oo, StarOutlined as Hm, EnterOutlined as jm, EyeOutlined as Ni, ClockCircleOutlined as Qd, BarChartOutlined as Xd, TableOutlined as Um, ShareAltOutlined as Gm, UndoOutlined as Wm, PictureOutlined as qm, LaptopOutlined as Vm, UserOutlined as Mr, DesktopOutlined as Ym, LockOutlined as Km, StopOutlined as Jm, MenuFoldOutlined as Qm, LogoutOutlined as Xm, MonitorOutlined as Zm, CodeSandboxOutlined as eh } from "@ant-design/icons";
4
4
  import { Form as We, Space as Ve, Button as C, Typography as pt, Card as Kn, Empty as Tt, Table as kt, Modal as et, Input as ve, Divider as Hn, Select as He, InputNumber as On, Switch as _n, message as m, Tooltip as fe, Tag as F, Spin as ot, Drawer as bn, Tabs as vt, Alert as an, Radio as Rn, Collapse as on, Popconfirm as nn, DatePicker as zn, Row as Br, Col as aa, Statistic as hn, Skeleton as Zs, Dropdown as Ci, Descriptions as wt, List as Ma, Layout as Zd, Tree as eu, Checkbox as ta, Steps as th, Upload as nh, Progress as so, Image as tu, Badge as jn, AutoComplete as ah, Breadcrumb as zi, Avatar as lh } from "antd";
5
5
  import { useState as i, useEffect as ke, useCallback as re, useMemo as De, useRef as Lt, useLayoutEffect as nu } from "react";
6
6
  import { h as Ll } from "./history-BlrA1eaW.js";
7
- import { h as au, E as sh } from "./schedule-C-4ksDPw.js";
8
- import ih from "./index-BAK7UDvY.js";
9
- import { d as rh, e as oh, g as io, h as lu, i as ch, j as ns, k as Mi, l as dh, m as uh, r as mh, u as hh, n as ph, o as gh, f as fh, p as yh, q as _h, v as vh, t as bh, w as Nh, x as Ch, y as wh, z as Th, A as kh, B as Sh, C as xh, D as Ih, E as Fr, F as su, G as Ah, H as Lh, I as $h, J as Eh, K as Dh, L as Po, M as Rh, N as Oh, O as zo, Q as hi, R as Ph, U as zh, V as Mh, W as Bh, X as Fh, Y as Hh, Z as jh, _ as Uh, $ as Gh, a0 as Wh, a1 as qh, a2 as Vh, a3 as Yh, a4 as Kh, a5 as Jh, a6 as Qh, a7 as Xh, a8 as Zh, a9 as ep, aa as tp, ab as np, ac as ap, ad as be, ae as Xt, af as Qe, ag as il, ah as iu, ai as ru, aj as Hr, ak as Sa, al as xt, am as Ua, an as al, ao as lp, ap as sp, aq as da, ar as ro, as as ip, at as rp, au as op, av as cp, aw as dp, ax as up, ay as mp, az as hp, aA as pp, aB as gp, aC as fp, aD as yp, aE as _p, aF as vp, aG as bp, aH as Np, aI as Mo, aJ as Cp, P as wp, S as Tp } from "./webide-RsFP9pHM.js";
10
- import { a as ct, f as It, B as bt, u as yt, b4 as oo, b5 as kp, t as lt, b6 as Sp, b7 as xp, aw as Ip, b8 as Ap, k as An, b9 as Lp, an as $p, ba as Ep, bb as Bo, bc as Dp, bd as Rp, be as Op, aq as ia, bf as Pp, i as ss, af as ei, bg as ms, bh as Bi, bi as Rl, bj as Fo, bk as zp, bl as Mp, bm as Bp, bn as Fp, bo as Hp, bp as jp, bq as Up, br as Gp, bs as Wp, bt as qp, bu as Vp, bv as Yp, bw as Ho, bx as Kp, by as jo, bz as Uo, bA as Jp, bB as Qp, bC as Xp, bD as Zp, bE as eg, bF as tg, y as ou, a3 as Go, bG as co, bH as uo, bI as ti, am as ng, bJ as ag, bK as lg, bL as sg, bM as ig, bN as rg, bO as og, bP as cg, bQ as dg, bR as ug, bS as mg, bT as hg, bU as pg, bV as gg, bW as cu, bX as fg, bY as yg, e as _g } from "./api-C78tCfne.js";
11
- import { u as Ct } from "./useAppStore-ibJyVIAX.js";
7
+ import { h as au, E as sh } from "./schedule-D3jTrI1R.js";
8
+ import ih from "./index-JLtVgwZv.js";
9
+ import { c as rh, d as oh, e as io, g as lu, h as ch, i as ns, j as Mi, k as dh, l as uh, r as mh, u as hh, m as ph, n as gh, f as fh, o as yh, p as _h, v as vh, q as bh, t as Nh, w as Ch, x as wh, y as Th, z as kh, A as Sh, B as xh, C as Ih, D as Fr, E as su, F as Ah, G as Lh, H as $h, I as Eh, J as Dh, K as Po, L as Rh, M as Oh, N as zo, O as hi, Q as Ph, R as zh, U as Mh, V as Bh, W as Fh, X as Hh, Y as jh, Z as Uh, _ as Gh, $ as Wh, a0 as qh, a1 as Vh, a2 as Yh, a3 as Kh, a4 as Jh, a5 as Qh, a6 as Xh, a7 as Zh, a8 as ep, a9 as tp, aa as np, ab as ap, ac as be, ad as Xt, ae as Qe, af as il, ag as iu, ah as ru, ai as Hr, aj as Sa, ak as xt, al as Ua, am as al, an as lp, ao as sp, ap as da, aq as ro, ar as ip, as as rp, at as op, au as cp, av as dp, aw as up, ax as mp, ay as hp, az as pp, aA as gp, aB as fp, aC as yp, aD as _p, aE as vp, aF as bp, aG as Np, aH as Mo, aI as Cp, P as wp, S as Tp } from "./webide-6j4OVoNA.js";
10
+ import { a as ct, f as It, B as bt, u as yt, b5 as oo, b6 as kp, t as lt, b7 as Sp, b8 as xp, as as Ip, b9 as Ap, k as An, ba as Lp, aL as $p, bb as Ep, bc as Bo, bd as Dp, be as Rp, bf as Op, aC as ia, bg as Pp, i as ss, ao as ei, bh as ms, bi as Bi, bj as Rl, bk as Fo, bl as zp, bm as Mp, bn as Bp, bo as Fp, bp as Hp, bq as jp, br as Up, bs as Gp, bt as Wp, bu as qp, bv as Vp, bw as Yp, bx as Ho, by as Kp, bz as jo, bA as Uo, bB as Jp, bC as Qp, bD as Xp, bE as Zp, bF as eg, bG as tg, I as ou, ac as Go, bH as co, bI as uo, bJ as ti, az as ng, bK as ag, bL as lg, bM as sg, bN as ig, bO as rg, bP as og, bQ as cg, bR as dg, bS as ug, bT as mg, bU as hg, bV as pg, bW as gg, bX as cu, bY as fg, bZ as yg, e as _g } from "./api-Jfnj1ybB.js";
11
+ import { u as Ct } from "./useAppStore-s-CLa-nF.js";
12
12
  /* empty css */
13
- import { l as du, n as uu, o as mu, p as hu, q as vg, v as pu, e as Wo, f as bg, u as qo, g as Fi, h as Ng, s as Cg } from "./admin-logs-D6HtRcK6.js";
13
+ import { l as du, n as uu, o as mu, p as hu, q as vg, v as pu, e as Wo, f as bg, u as qo, g as Fi, h as Ng, s as Cg } from "./admin-logs-vR556ORQ.js";
14
14
  import { ListTable as dn, EmptyState as wg } from "@yuku123/z-frontend-common/ui";
15
15
  import ht from "dayjs";
16
16
  import { s as at } from "./index.module-UI0iz8K0.js";
@@ -1,6 +1,6 @@
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-Cky9jCGu.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-Cky9jCGu.js";
1
+ import { AppLayout as v, ErrorBoundary as H, LoginPage as _, StatusTag as z, defaultStatusMap as F } from "@yuku123/z-frontend-common";
2
+ import { a as y } from "./ComponentDoc-y1NfPcHG.js";
3
+ import { b as J, E as Q, c as X, d as Y, e as Z, O as $, f as ee, R as te, g as re, h as ae, T as oe, j as ne, r as le, r as ie, s as se } from "./ComponentDoc-y1NfPcHG.js";
4
4
  import { jsxs as r, Fragment as h, jsx as e } from "react/jsx-runtime";
5
5
  import { useState as n, useEffect as T } from "react";
6
6
  import { Alert as I, Space as g, Button as l, Tag as c, Result as R } from "antd";
@@ -151,13 +151,13 @@ function W() {
151
151
  }
152
152
  export {
153
153
  K as AgentTeamIM,
154
- H as AppLayout,
154
+ v as AppLayout,
155
155
  J as CurlImportModal,
156
156
  W as DebugPlayground,
157
157
  Q as EndpointsTab,
158
158
  X as EnvironmentsTab,
159
- _ as ErrorBoundary,
160
- j as LoginPage,
159
+ H as ErrorBoundary,
160
+ _ as LoginPage,
161
161
  Y as MockPlatform,
162
162
  Z as MockTemplateHelper,
163
163
  $ as OpenApiImportModal,
@@ -3,7 +3,7 @@ import { CopyOutlined as se, ReloadOutlined as Te, PlusOutlined as Se, DeleteOut
3
3
  import { Tooltip as W, Tabs as Ae, Button as R, Modal as de, Input as we, Drawer as xe, Spin as V, Statistic as $, Table as Ke, message as G, Tag as J, Select as Ge, Checkbox as Je } from "antd";
4
4
  import { useState as S, useEffect as X, useCallback as q, useRef as me, useMemo as Me, Suspense as Qe, lazy as We } from "react";
5
5
  import { s as t } from "./SmartWorkbench.module-xRRmpTTw.js";
6
- import { u as be } from "./useAppStore-ibJyVIAX.js";
6
+ import { u as be } from "./useAppStore-s-CLa-nF.js";
7
7
  import { AgentAppList as Ye, McpPage as Ve, SkillMarket as Xe } from "@yuku123/z-agent-component";
8
8
  const le = "ft_gateway_default_ak", _e = "system-default", Z = "", he = "";
9
9
  function ee(a = {}) {
@@ -0,0 +1,474 @@
1
+ import { jsxs as d, jsx as t } from "react/jsx-runtime";
2
+ import { r as q, f as le } from "./ctc-sso-DtJHC-2M.js";
3
+ import { r as de, h as K, s as X } from "./sso-user-Dw_wwYa-.js";
4
+ import { ArrowLeftOutlined as ue, PlusOutlined as pe, LogoutOutlined as me, SearchOutlined as he } from "@ant-design/icons";
5
+ import { Spin as M, Button as D, Input as fe, Empty as J, Tag as ge, message as be } from "antd";
6
+ import Q from "query-string";
7
+ import { useState as S, useRef as E, useEffect as y, useMemo as Y, useCallback as B } from "react";
8
+ import { useLocation as ke } from "react-router-dom";
9
+ import { h as R } from "./history-BlrA1eaW.js";
10
+ import { c as we, C as Se } from "./createWorkspaceWsHandler-obuYWncQ.js";
11
+ import { u as c, f as ye, T as ve } from "./useAppStore-s-CLa-nF.js";
12
+ import { o as Te, q as Ne, v as je, w as Ce, e as ee } from "./api-Jfnj1ybB.js";
13
+ import { l as xe, j as Pe } from "./instance-B0DZJnee.js";
14
+ /* empty css */
15
+ import { s as _e } from "./admin-logs-vR556ORQ.js";
16
+ const ae = 2e4;
17
+ function Ee(l, o = ae, n = globalThis) {
18
+ let s = null;
19
+ return {
20
+ start() {
21
+ s == null && (s = n.setTimeout(() => {
22
+ s = null, l();
23
+ }, o));
24
+ },
25
+ stop() {
26
+ s != null && (n.clearTimeout(s), s = null);
27
+ }
28
+ };
29
+ }
30
+ function Ae({ text: l, onRetry: o }) {
31
+ return /* @__PURE__ */ d("div", { style: { marginTop: 12, textAlign: "center" }, children: [
32
+ /* @__PURE__ */ t("div", { style: { marginBottom: 10 }, children: l }),
33
+ /* @__PURE__ */ t(
34
+ "button",
35
+ {
36
+ type: "button",
37
+ onClick: o,
38
+ style: {
39
+ padding: "6px 16px",
40
+ borderRadius: 6,
41
+ border: "1px solid #1677ff",
42
+ background: "#1677ff",
43
+ color: "#fff",
44
+ cursor: "pointer"
45
+ },
46
+ children: "重新登录"
47
+ }
48
+ )
49
+ ] });
50
+ }
51
+ const Ie = "统一登录接入超时(可能是网络抖动或服务正在重启),请重新登录。";
52
+ function Le({
53
+ loadingText: l,
54
+ timeoutText: o = Ie,
55
+ onRetry: n,
56
+ timeoutMs: s = ae,
57
+ className: r
58
+ }) {
59
+ const [N, h] = S(!1), g = E(n);
60
+ return g.current = n, y(() => {
61
+ const m = Ee(
62
+ () => h(!0),
63
+ s
64
+ );
65
+ return m.start(), () => m.stop();
66
+ }, [s]), N ? /* @__PURE__ */ d("div", { className: r, children: [
67
+ /* @__PURE__ */ t(M, { description: "" }),
68
+ /* @__PURE__ */ t(
69
+ Ae,
70
+ {
71
+ text: o,
72
+ onRetry: () => g.current()
73
+ }
74
+ )
75
+ ] }) : /* @__PURE__ */ t("div", { className: r, children: /* @__PURE__ */ t(M, { description: l }) });
76
+ }
77
+ function Me(l, o) {
78
+ y(() => {
79
+ if (l == null)
80
+ return;
81
+ c.getState().setObserverStatus(null);
82
+ const n = () => {
83
+ const m = c.getState();
84
+ m.loadMessages().catch(() => {
85
+ }), m.loadRunningExecutions().catch(() => {
86
+ });
87
+ const f = m.activeTaskChat;
88
+ f != null && f.taskId && m.loadTaskMessages(f.taskId).catch(() => {
89
+ }), m.loadFileTree(void 0, !0).catch(() => {
90
+ });
91
+ }, s = Te((m) => {
92
+ c.getState().setWsState(m);
93
+ });
94
+ Ne(l, o, n), c.getState().loadRunningExecutions().catch(() => {
95
+ });
96
+ const r = c.getState(), { handler: N, dispose: h } = we({
97
+ projectId: l,
98
+ token: o,
99
+ updateExecution: r.updateExecution,
100
+ registerExecutionStart: r.registerExecutionStart,
101
+ clearExecution: r.clearExecution,
102
+ applyExecutionCancelled: r.applyExecutionCancelled,
103
+ addMessage: r.addMessage,
104
+ addTaskMessage: r.addTaskMessage,
105
+ deleteMessage: r.deleteMessage,
106
+ updateMessageReadStatus: r.updateMessageReadStatus,
107
+ loadFileTree: r.loadFileTree
108
+ }), g = je(N);
109
+ return () => {
110
+ g(), h(), Ce(), s(), c.getState().setObserverStatus(null);
111
+ };
112
+ }, [l, o]);
113
+ }
114
+ const Re = `${window.publicPath ?? "/"}logo.svg`;
115
+ function te() {
116
+ const { pathname: l, search: o } = R.location, n = Q.parse(o);
117
+ if (!n.projectId && !n.project_id)
118
+ return;
119
+ delete n.projectId, delete n.project_id;
120
+ const s = Q.stringify(n);
121
+ R.replace({
122
+ pathname: l,
123
+ search: s ? `?${s}` : ""
124
+ });
125
+ }
126
+ function Xe() {
127
+ const l = ke(), [o, n] = S("list"), [s, r] = S("chat"), [N, h] = S("team"), [g, m] = S(""), [f, V] = S(!1), [re, A] = S(!1), {
128
+ currentProject: v,
129
+ currentUser: O,
130
+ projects: I,
131
+ loading: ne,
132
+ members: W,
133
+ token: oe,
134
+ loadProjects: z,
135
+ expandProject: H,
136
+ updateCurrentUser: j,
137
+ requestChatScrollBottom: w
138
+ } = c(), k = Y(() => {
139
+ const e = Q.parse(l.search), a = String(e.projectId ?? e.project_id ?? "").trim();
140
+ if (!a)
141
+ return null;
142
+ const i = Number(a);
143
+ return Number.isFinite(i) && i > 0 ? i : null;
144
+ }, [l.search]), U = E(!1), C = E(!1), x = E(!1), Z = E(k);
145
+ Z.current = k, Me(v == null ? void 0 : v.id, oe), y(() => (document.body.classList.add("team-phone-workspace-route"), () => {
146
+ document.body.classList.remove("team-phone-workspace-route");
147
+ }), []);
148
+ const se = B(
149
+ (e) => {
150
+ r("chat"), h(e), w(e, !0);
151
+ },
152
+ [w]
153
+ );
154
+ y(() => {
155
+ let e = !1, a = 0;
156
+ const i = 100;
157
+ let P = !1, F = 0;
158
+ const L = 3, T = (b) => {
159
+ const u = c.getState().token;
160
+ if (Z.current != null) {
161
+ e || (j(X(b)), V(!0)), ee().then((G) => {
162
+ e || j(G);
163
+ }).catch(() => {
164
+ !e && u && (localStorage.removeItem("z_team_token"), c.setState({ token: "" }));
165
+ });
166
+ return;
167
+ }
168
+ ee().then((G) => {
169
+ e || j(G);
170
+ }).catch(() => {
171
+ e || (u && (localStorage.removeItem("z_team_token"), c.setState({ token: "" })), j(X(b)));
172
+ }).finally(() => {
173
+ e || V(!0);
174
+ });
175
+ };
176
+ return (() => {
177
+ if (e)
178
+ return;
179
+ const b = async () => {
180
+ if (e)
181
+ return;
182
+ let u = de();
183
+ if ((!u || !K(u)) && !P) {
184
+ P = !0;
185
+ try {
186
+ const p = await le();
187
+ p.kind === "authenticated" ? u = p.user : p.kind === "unauthenticated" && (F += 1);
188
+ } catch {
189
+ } finally {
190
+ P = !1;
191
+ }
192
+ }
193
+ if (u && K(u)) {
194
+ T(u);
195
+ return;
196
+ }
197
+ if (F >= L) {
198
+ q();
199
+ return;
200
+ }
201
+ if (a += 1, a >= i) {
202
+ q();
203
+ return;
204
+ }
205
+ window.setTimeout(() => {
206
+ b();
207
+ }, 150);
208
+ };
209
+ b();
210
+ })(), () => {
211
+ e = !0;
212
+ };
213
+ }, [j]), y(() => {
214
+ O && z();
215
+ }, [O, z]), y(() => {
216
+ var i;
217
+ if (!f || k != null || o === "project" || x.current)
218
+ return;
219
+ const e = c.getState(), a = (i = e.currentProject) == null ? void 0 : i.id;
220
+ a == null || !e.expandedProjectIds.includes(String(a)) || (n("project"), r("chat"), h("team"), w("team", !0));
221
+ }, [f, k, o, w]);
222
+ const ce = B(
223
+ async (e) => {
224
+ x.current = !1, A(!0);
225
+ try {
226
+ await H(e), n("project"), r("chat"), h("team");
227
+ const a = c.getState();
228
+ a.currentProject && await a.refreshProjectPanels(
229
+ String(a.currentProject.id),
230
+ a.projectSwitchSeq,
231
+ !1
232
+ ), w("team", !0);
233
+ } finally {
234
+ A(!1);
235
+ }
236
+ },
237
+ [H, w]
238
+ );
239
+ y(() => {
240
+ var L;
241
+ if (!f || k == null || U.current || C.current)
242
+ return;
243
+ const e = k == null ? "" : String(k), a = c.getState();
244
+ if (String(((L = a.currentProject) == null ? void 0 : L.id) ?? "") === e && a.expandedProjectIds.includes(e)) {
245
+ U.current = !0, te(), x.current = !1, n("project"), r("chat"), h("team"), c.getState().loadMessages().catch(() => {
246
+ });
247
+ return;
248
+ }
249
+ let i = !1;
250
+ C.current = !0, A(!0);
251
+ const P = async () => {
252
+ const T = Date.now() + 4e3;
253
+ for (; Date.now() < T; ) {
254
+ if (i)
255
+ return;
256
+ const _ = c.getState();
257
+ if (!_.loading || _.projects.length > 0)
258
+ return;
259
+ await new Promise((b) => setTimeout(b, 50));
260
+ }
261
+ };
262
+ return (async () => {
263
+ try {
264
+ if (await P(), i)
265
+ return;
266
+ let {
267
+ token: T,
268
+ projects: _,
269
+ expandProject: b
270
+ } = c.getState(), u = _.find((p) => p.id === e);
271
+ if (!u) {
272
+ const p = await xe(e, T);
273
+ if (i)
274
+ return;
275
+ if (p.status === "NOT_FOUND" || !p.scenarioInstance) {
276
+ be.info("无此工程");
277
+ return;
278
+ }
279
+ if (u = await Pe(e, T), i)
280
+ return;
281
+ }
282
+ if (i || !u)
283
+ return;
284
+ if (U.current = !0, await b(u), !i) {
285
+ x.current = !1, n("project"), r("chat"), h("team"), te();
286
+ const p = c.getState();
287
+ p.currentProject && await p.refreshProjectPanels(
288
+ String(p.currentProject.id),
289
+ p.projectSwitchSeq,
290
+ !1
291
+ ), w("team", !0);
292
+ }
293
+ } catch {
294
+ } finally {
295
+ A(!1), C.current = !1, c.getState().loadProjects();
296
+ }
297
+ })(), () => {
298
+ i = !0, C.current && (C.current = !1);
299
+ };
300
+ }, [f, k]);
301
+ const $ = Y(() => {
302
+ const e = g.trim().toLowerCase();
303
+ return e ? I.filter(
304
+ (a) => a.name.toLowerCase().includes(e) || (a.scenario_name ?? "").toLowerCase().includes(e)
305
+ ) : I;
306
+ }, [g, I]), ie = B(() => {
307
+ x.current = !0, n("list"), r("chat");
308
+ }, []);
309
+ return !f || !O ? /* @__PURE__ */ t(
310
+ Le,
311
+ {
312
+ className: "phone-workspace phone-workspace-loading",
313
+ loadingText: "正在接入 4A 统一登录…",
314
+ timeoutText: "4A 统一登录接入超时(可能是网络抖动或服务正在重启),请重新登录。",
315
+ onRetry: () => q()
316
+ }
317
+ ) : /* @__PURE__ */ d("div", { className: "phone-workspace", children: [
318
+ /* @__PURE__ */ d("header", { className: "phone-workspace-header", children: [
319
+ o === "project" ? /* @__PURE__ */ t(
320
+ D,
321
+ {
322
+ type: "text",
323
+ icon: /* @__PURE__ */ t(ue, {}),
324
+ className: "phone-workspace-back",
325
+ onClick: ie,
326
+ "aria-label": "返回项目列表"
327
+ }
328
+ ) : /* @__PURE__ */ t(
329
+ "img",
330
+ {
331
+ src: Re,
332
+ alt: "Z-Team",
333
+ className: "phone-workspace-logo",
334
+ onClick: () => R.push("/welcome"),
335
+ style: { cursor: "pointer" }
336
+ }
337
+ ),
338
+ /* @__PURE__ */ t("div", { className: "phone-workspace-header-title", children: o === "list" ? /* @__PURE__ */ t(
339
+ "span",
340
+ {
341
+ className: "phone-workspace-brand",
342
+ onClick: () => R.push("/welcome"),
343
+ style: { cursor: "pointer" },
344
+ children: "Z-Team"
345
+ }
346
+ ) : /* @__PURE__ */ t("span", { className: "phone-workspace-project-name", children: (v == null ? void 0 : v.name) ?? "工程" }) }),
347
+ /* @__PURE__ */ d("div", { className: "phone-workspace-header-actions", children: [
348
+ o === "list" ? /* @__PURE__ */ t(
349
+ D,
350
+ {
351
+ type: "text",
352
+ icon: /* @__PURE__ */ t(pe, {}),
353
+ onClick: () => {
354
+ },
355
+ "aria-label": "新建"
356
+ }
357
+ ) : null,
358
+ /* @__PURE__ */ t(
359
+ D,
360
+ {
361
+ type: "text",
362
+ icon: /* @__PURE__ */ t(me, {}),
363
+ onClick: () => {
364
+ _e();
365
+ },
366
+ "aria-label": "退出"
367
+ }
368
+ )
369
+ ] })
370
+ ] }),
371
+ /* @__PURE__ */ t("main", { className: "phone-workspace-main", children: o === "list" ? /* @__PURE__ */ d("div", { className: "phone-workspace-list", children: [
372
+ /* @__PURE__ */ t("div", { className: "phone-workspace-search", children: /* @__PURE__ */ t(
373
+ fe,
374
+ {
375
+ allowClear: !0,
376
+ prefix: /* @__PURE__ */ t(he, {}),
377
+ placeholder: "搜索项目",
378
+ value: g,
379
+ onChange: (e) => m(e.target.value)
380
+ }
381
+ ) }),
382
+ ne && I.length === 0 ? /* @__PURE__ */ t("div", { className: "phone-workspace-list-loading", children: /* @__PURE__ */ t(M, { description: "加载项目…" }) }) : $.length === 0 ? /* @__PURE__ */ t(
383
+ J,
384
+ {
385
+ description: g ? "无匹配项目" : "暂无项目",
386
+ className: "phone-workspace-empty"
387
+ }
388
+ ) : /* @__PURE__ */ t("ul", { className: "phone-project-list", children: $.map((e) => {
389
+ const a = ye(
390
+ e.created_at
391
+ );
392
+ return /* @__PURE__ */ t("li", { children: /* @__PURE__ */ d(
393
+ "button",
394
+ {
395
+ type: "button",
396
+ className: "phone-project-item",
397
+ onClick: () => {
398
+ ce(e);
399
+ },
400
+ children: [
401
+ /* @__PURE__ */ d("div", { className: "phone-project-item-main", children: [
402
+ /* @__PURE__ */ t("span", { className: "phone-project-item-name", children: e.name }),
403
+ e.scenario_name || a ? /* @__PURE__ */ d("div", { className: "phone-project-item-meta", children: [
404
+ e.scenario_name ? /* @__PURE__ */ t("span", { className: "phone-project-item-scenario", children: e.scenario_name }) : null,
405
+ a ? /* @__PURE__ */ t("span", { className: "phone-project-item-time", children: a }) : null
406
+ ] }) : null
407
+ ] }),
408
+ /* @__PURE__ */ t(
409
+ ge,
410
+ {
411
+ color: e.role === "ADMIN" ? "blue" : "default",
412
+ className: "phone-project-item-tag",
413
+ children: e.role === "ADMIN" ? "我创建" : "参与"
414
+ }
415
+ )
416
+ ]
417
+ }
418
+ ) }, e.id);
419
+ }) })
420
+ ] }) : /* @__PURE__ */ d("div", { className: "phone-workspace-detail", children: [
421
+ /* @__PURE__ */ d("div", { className: "phone-project-toolbar", children: [
422
+ /* @__PURE__ */ t("div", { className: "phone-project-toolbar-main", children: /* @__PURE__ */ t(
423
+ "button",
424
+ {
425
+ type: "button",
426
+ className: s === "chat" ? "phone-toolbar-tab phone-toolbar-active" : "phone-toolbar-tab",
427
+ onClick: () => se("team"),
428
+ children: "协作"
429
+ }
430
+ ) }),
431
+ /* @__PURE__ */ d(
432
+ "button",
433
+ {
434
+ type: "button",
435
+ className: s === "members" ? "phone-toolbar-tab phone-toolbar-members phone-toolbar-active" : "phone-toolbar-tab phone-toolbar-members",
436
+ onClick: () => r("members"),
437
+ children: [
438
+ "成员 (",
439
+ W.length,
440
+ ")"
441
+ ]
442
+ }
443
+ )
444
+ ] }),
445
+ /* @__PURE__ */ t("div", { className: "phone-workspace-detail-body", children: s === "members" ? /* @__PURE__ */ t("ul", { className: "phone-member-list", children: W.length === 0 ? /* @__PURE__ */ t(J, { description: "暂无成员" }) : W.map((e) => /* @__PURE__ */ d("li", { className: "phone-member-item", children: [
446
+ /* @__PURE__ */ t("span", { className: "phone-member-avatar", children: e.member_type === "AGENT" ? "🤖" : "👤" }),
447
+ /* @__PURE__ */ d("div", { className: "phone-member-info", children: [
448
+ /* @__PURE__ */ t("span", { className: "phone-member-name", children: e.display_name }),
449
+ /* @__PURE__ */ d("span", { className: "phone-member-meta", children: [
450
+ e.member_type === "AGENT" ? "Agent" : "成员",
451
+ " ·",
452
+ " ",
453
+ e.role
454
+ ] })
455
+ ] })
456
+ ] }, e.id)) }) : /* @__PURE__ */ t("div", { className: "phone-chat-host", children: /* @__PURE__ */ t(
457
+ Se,
458
+ {
459
+ hideTabs: !0,
460
+ activeTab: N,
461
+ onActiveTabChange: (e) => (
462
+ // @ts-expect-error phase1 宽松化:tab 类型比 chatTab="team" 宽,业务代码未启用 content 模式
463
+ h(e)
464
+ )
465
+ }
466
+ ) }) })
467
+ ] }) }),
468
+ re ? /* @__PURE__ */ t("div", { className: "phone-workspace-overlay", children: /* @__PURE__ */ t(M, { description: "正在打开工程…" }) }) : null,
469
+ /* @__PURE__ */ t(ve, {})
470
+ ] });
471
+ }
472
+ export {
473
+ Xe as default
474
+ };
@@ -1,7 +1,7 @@
1
1
  import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as N, useRef as A, useEffect as d, useCallback as h } from "react";
3
3
  import { h as _ } from "./history-BlrA1eaW.js";
4
- import { C as u } from "./ChangeLogView-nPAmM1X0.js";
4
+ import { C as u } from "./ChangeLogView-Dm7C3S14.js";
5
5
  const T = "_docs_t4zom_6", v = "_bgLayer_t4zom_33", p = "_bgGrid_t4zom_47", y = "_navbar_t4zom_65", f = "_navLeft_t4zom_81", z = "_navBack_t4zom_87", k = "_navBrand_t4zom_104", I = "_navLogo_t4zom_110", q = "_navTitle_t4zom_124", B = "_navLink_t4zom_130", L = "_layout_t4zom_144", C = "_sidebar_t4zom_154", S = "_sidebarInner_t4zom_165", G = "_sidebarTitle_t4zom_169", E = "_tocItem_t4zom_179", D = "_tocActive_t4zom_201", K = "_tocNum_t4zom_207", F = "_content_t4zom_219", w = "_section_t4zom_229", O = "_secTitle_t4zom_234", R = "_subTitle_t4zom_244", x = "_lead_t4zom_251", W = "_list_t4zom_266", M = "_olist_t4zom_297", Z = "_callout_t4zom_332", Q = "_calloutGreen_t4zom_344", P = "_calloutBlue_t4zom_356", U = "_calloutRed_t4zom_368", V = "_inlineCode_t4zom_385", H = "_codeBlock_t4zom_398", j = "_tableWrap_t4zom_413", Y = "_table_t4zom_413", $ = "_tableKey_t4zom_452", J = "_tableIcon_t4zom_457", X = "_faqList_t4zom_463", ee = "_faqItem_t4zom_469", le = "_faqQ_t4zom_481", ne = "_faqA_t4zom_488", ce = "_changelogEmbed_t4zom_495", ie = "_changelogTip_t4zom_499", te = "_changelogLink_t4zom_505", ae = "_docFooter_t4zom_516", se = "_backBtn_t4zom_525", re = "_docFooterText_t4zom_544", l = {
6
6
  docs: T,
7
7
  bgLayer: v,
@@ -1,5 +1,5 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { C as r } from "./ChangeLogView-nPAmM1X0.js";
2
+ import { C as r } from "./ChangeLogView-Dm7C3S14.js";
3
3
  function n() {
4
4
  return /* @__PURE__ */ e(r, { variant: "page" });
5
5
  }
@@ -1,8 +1,8 @@
1
1
  import { jsxs as a, jsx as i, Fragment as B } from "react/jsx-runtime";
2
2
  import { useState as d, useRef as F, useCallback as D, useEffect as R } from "react";
3
- import { u as O } from "./useAppStore-ibJyVIAX.js";
3
+ import { u as O } from "./useAppStore-s-CLa-nF.js";
4
4
  /* empty css */
5
- import { T as P, g as U } from "./api-C78tCfne.js";
5
+ import { T as P, g as U } from "./api-Jfnj1ybB.js";
6
6
  async function y(o, s) {
7
7
  const n = await o.text().catch(() => "");
8
8
  let t = {};