@yuku123/z-team-component 0.2.84 → 0.2.89

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 (69) hide show
  1. package/dist/{ChangeLogView-_bRZ55Yi.js → ChangeLogView-DagOxr6O.js} +1 -1
  2. package/dist/{ComponentDoc-BFoF51we.js → ComponentDoc-CP8PmT4l.js} +3 -3
  3. package/dist/ComponentDoc-D1vtx1CE.js +3998 -0
  4. package/dist/{InvitationManagementPage-CTPCZXHu.js → InvitationManagementPage-C-8t565B.js} +1 -1
  5. package/dist/InvitationManagementPage-DDx-AX4v.js +495 -0
  6. package/dist/{OnboardingPage-DwtuTL61.js → OnboardingPage-DUUHQLSp.js} +2 -2
  7. package/dist/OnboardingPage-DUVza4FC.js +393 -0
  8. package/dist/ScheduledTasks-BSJP-8rB.js +10708 -0
  9. package/dist/ScheduledTasks-CGNB0zlb.js +10708 -0
  10. package/dist/{SystemShell-D9OzKxL-.js → SystemShell-DTFR-Pfd.js} +5 -5
  11. package/dist/SystemShell-DZ-W2gUt.js +689 -0
  12. package/dist/{api-CIhVblfa.js → api-BftpestH.js} +392 -391
  13. package/dist/{api-DXLNhtCX.js → api-GfWm5pTp.js} +1 -1
  14. package/dist/api-nf4Uaca5.js +20 -0
  15. package/dist/{createWorkspaceWsHandler-BWP5S5X3.js → createWorkspaceWsHandler-rKc7vc8k.js} +4373 -4294
  16. package/dist/index-3qkbu-HG.js +9844 -0
  17. package/dist/{index-BCp5EtqR.js → index-9Vozb4E5.js} +3 -3
  18. package/dist/{index-PKkV63Sw.js → index-B1lzhb6f.js} +1 -1
  19. package/dist/{index-CxFAICql.js → index-B51WSpDM.js} +7 -7
  20. package/dist/{index-uF04Ucsi.js → index-B5dDwxhs.js} +1 -1
  21. package/dist/{index-Cvx6rrxD.js → index-BMQ6XkO3.js} +1 -1
  22. package/dist/{index-CESmMALI.js → index-BR0HXBjY.js} +3 -3
  23. package/dist/index-B_H-Ynz5.js +9844 -0
  24. package/dist/index-BngdCYiY.js +149 -0
  25. package/dist/{index-SbMjh8t4.js → index-BqG6XqTh.js} +2 -2
  26. package/dist/{index-CijskN6t.js → index-BxBGVGKQ.js} +4 -4
  27. package/dist/{index-x_7Rmav9.js → index-C1kpuot_.js} +2 -2
  28. package/dist/{index-nW0ikV2R.js → index-C5FC0WCa.js} +5 -5
  29. package/dist/{index-CoBZZQBy.js → index-CHTu5H1U.js} +3 -3
  30. package/dist/{index-CBQMS6rx.js → index-CUhSJJL0.js} +2 -2
  31. package/dist/index-D8ncig8C.js +149 -0
  32. package/dist/index-D92Y4nix.js +178 -0
  33. package/dist/index-DTFcQizU.js +3488 -0
  34. package/dist/index-D_t92tEF.js +2700 -0
  35. package/dist/{index-DK70mOTz.js → index-DcHrkop2.js} +3 -3
  36. package/dist/index-DelMCvoP.js +118 -0
  37. package/dist/{index-mnWs_wA3.js → index-DoC-nKZZ.js} +2 -2
  38. package/dist/index-Dxx0UEBW.js +93 -0
  39. package/dist/{index-Dm3wmB0K.js → index-DyFaoD5W.js} +2 -2
  40. package/dist/index-EdPtymBD.js +574 -0
  41. package/dist/index-JS2OVZ4Q.js +3488 -0
  42. package/dist/index-LkYDFjtJ.js +914 -0
  43. package/dist/{index-nU-V276i.js → index-MYohlrH6.js} +4 -4
  44. package/dist/{index-cdB5K3gx.js → index-VGtET31b.js} +1 -1
  45. package/dist/index-d7BD8lzt.js +242 -0
  46. package/dist/{index-DT80Pwa_.js → index-ji8TPz9K.js} +4 -4
  47. package/dist/index-mIk8zAAm.js +1143 -0
  48. package/dist/index-p1jMVRnp.js +112 -0
  49. package/dist/{index-Cwr5Slv1.js → index-pScDd5cp.js} +6 -6
  50. package/dist/{index-DzS6-D3M.js → index-s_ikMJ2V.js} +1 -1
  51. package/dist/{index-BgIheStI.js → index-v3WaXkDJ.js} +3 -3
  52. package/dist/index.js +1 -1
  53. package/dist/{instance-CDmueqyu.js → instance-CI6-4BZ6.js} +1 -1
  54. package/dist/{menuPermission-DHUqvHfu.js → menuPermission-CF3r6JEV.js} +3 -3
  55. package/dist/menuPermission-CZvOK8eU.js +60 -0
  56. package/dist/pages.js +1 -1
  57. package/dist/{personal-Bn3RLYB8.js → personal-D-eMMf0_.js} +2 -2
  58. package/dist/{schedule-CETzN_0H.js → schedule-ChO2xIGd.js} +1 -1
  59. package/dist/{send-default-agent-team-message-CfVaEN2y.js → send-default-agent-team-message-c5oKdQQA.js} +1 -1
  60. package/dist/{sso-user-ZUKv4XMX.js → sso-user-DToM5dPy.js} +1 -1
  61. package/dist/{training-bxftgU55.js → training-B38tnwLL.js} +1 -1
  62. package/dist/{useAppStore-BBr_Fwsz.js → useAppStore-BFO_h1L2.js} +1 -1
  63. package/dist/{webide-Cuj_Pvkk.js → webide-DTZ46LPR.js} +4 -4
  64. package/dist/z-team-component.css +2 -2
  65. package/package.json +1 -1
  66. package/dist/ScheduledTasks-yeTm2bOY.js +0 -9407
  67. package/dist/index-BHrMl3Jq.js +0 -9585
  68. package/dist/index-BP7WTzVH.js +0 -137
  69. package/dist/index-Co_0idJY.js +0 -2936
@@ -0,0 +1,149 @@
1
+ import { jsxs as r, jsx as s } from "react/jsx-runtime";
2
+ import { useState as c, useCallback as b } from "react";
3
+ import { S as N, T as I, P as W } from "./webide-DTZ46LPR.js";
4
+ import { P as H, S as $, C as B, E as j, a as q, W as h, b as u, T as E, c as K } from "./ScheduledTasks-CGNB0zlb.js";
5
+ import { p as L } from "./index-B_H-Ynz5.js";
6
+ function M({
7
+ view: t,
8
+ agents: e,
9
+ token: l,
10
+ currentUser: f,
11
+ onOpenChat: d,
12
+ onOpenAgentDetail: g,
13
+ onBackToExtensions: i,
14
+ onOpenTab: o,
15
+ onAgentCreated: T,
16
+ onOpenProject: n,
17
+ onOpenWorkbenchShell: p,
18
+ onOpenHistory: m
19
+ }) {
20
+ const [k, x] = c(
21
+ null
22
+ ), [P, S] = c(
23
+ null
24
+ ), y = b(
25
+ (a) => {
26
+ o("notes"), x({ id: a, ts: Date.now() });
27
+ },
28
+ [o]
29
+ ), D = b(
30
+ (a) => {
31
+ o("todo"), S({ id: a, ts: Date.now() });
32
+ },
33
+ [o]
34
+ ), A = t.kind === "chat" ? `${t.agent.id}-${t.sessionId ?? "new"}-${t.ts}` : "none";
35
+ return /* @__PURE__ */ r("div", { style: { height: "100%", display: "flex", flexDirection: "column" }, children: [
36
+ t.kind === "chat" && /* @__PURE__ */ s(
37
+ "div",
38
+ {
39
+ style: {
40
+ flex: 1,
41
+ minHeight: 0,
42
+ display: "flex",
43
+ flexDirection: "column"
44
+ },
45
+ children: /* @__PURE__ */ s(
46
+ H,
47
+ {
48
+ agent: t.agent,
49
+ initialSessionId: t.sessionId,
50
+ draftNoAutoPick: t.draft === !0,
51
+ autoSendDraft: t.autoSendDraft ?? null,
52
+ chromeless: !0,
53
+ agents: e,
54
+ onSwitchAgent: (a) => d(a)
55
+ },
56
+ A
57
+ )
58
+ }
59
+ ),
60
+ t.kind === "schedule" && /* @__PURE__ */ s(
61
+ $,
62
+ {
63
+ localOnline: !1,
64
+ agents: e,
65
+ token: l,
66
+ defaultLane: "cloud"
67
+ }
68
+ ),
69
+ t.kind === "history" && /* @__PURE__ */ s(
70
+ B,
71
+ {
72
+ agents: e,
73
+ token: l,
74
+ onOpenSession: (a, C) => d(a, C),
75
+ onBack: i
76
+ }
77
+ ),
78
+ t.kind === "extensions" && /* @__PURE__ */ s(
79
+ j,
80
+ {
81
+ agents: e,
82
+ loading: !1,
83
+ skillsAgent: L(e),
84
+ token: l,
85
+ currentUser: f,
86
+ onChat: (a) => d(a),
87
+ onConfig: g,
88
+ onCreated: T,
89
+ onOpenPersonalTab: o,
90
+ onOpenWorkbenchShell: p,
91
+ onOpenHistory: m,
92
+ capTabRequest: t.cap ? { tab: t.cap, ts: t.ts } : null
93
+ }
94
+ ),
95
+ t.kind === "agentDetail" && /* @__PURE__ */ s("div", { style: { flex: 1, minHeight: 0 }, children: /* @__PURE__ */ s(
96
+ q,
97
+ {
98
+ agent: t.agent,
99
+ onBack: i
100
+ }
101
+ ) }),
102
+ t.kind === "tab" && /* @__PURE__ */ r("div", { style: { flex: 1, minHeight: 0 }, children: [
103
+ t.tab === "projects" && /* @__PURE__ */ s(
104
+ h,
105
+ {
106
+ activeTab: "projects",
107
+ onActiveTabChange: () => {
108
+ },
109
+ onOpenProject: n,
110
+ hideTabs: !0
111
+ }
112
+ ),
113
+ t.tab === "personal" && /* @__PURE__ */ s(
114
+ h,
115
+ {
116
+ activeTab: "personal",
117
+ onActiveTabChange: () => {
118
+ },
119
+ onOpenProject: n,
120
+ hideTabs: !0
121
+ }
122
+ ),
123
+ t.tab === "business-stats" && /* @__PURE__ */ s(N, { source: "scenario" }),
124
+ t.tab === "tools" && /* @__PURE__ */ s(u, { showTools: !0, showWebsites: !1 }),
125
+ t.tab === "websites" && /* @__PURE__ */ s(u, { showTools: !1, showWebsites: !0 }),
126
+ t.tab === "todo" && /* @__PURE__ */ s(
127
+ I,
128
+ {
129
+ onOpenProject: n,
130
+ onOpenNote: y,
131
+ openTodoId: P
132
+ }
133
+ ),
134
+ t.tab === "notes" && /* @__PURE__ */ s(
135
+ W,
136
+ {
137
+ onOpenProject: n,
138
+ onOpenTodo: D,
139
+ openNoteId: k
140
+ }
141
+ ),
142
+ t.tab === "training" && /* @__PURE__ */ s(E, {}),
143
+ t.tab === "webide" && /* @__PURE__ */ s(K, {})
144
+ ] })
145
+ ] });
146
+ }
147
+ export {
148
+ M as default
149
+ };
@@ -2,7 +2,7 @@ import { jsx as e } from "react/jsx-runtime";
2
2
  import { Navigate as t } from "react-router-dom";
3
3
  import { lazy as A } from "react";
4
4
  import { UnorderedListOutlined as i, HistoryOutlined as T, ClusterOutlined as p, DashboardOutlined as s, ExperimentOutlined as q, SettingOutlined as d, KeyOutlined as n, AppstoreOutlined as r, SafetyCertificateOutlined as P, TeamOutlined as w, ProfileOutlined as b, ApiOutlined as u, HddOutlined as l, ApartmentOutlined as g, InboxOutlined as k, FileTextOutlined as y, SendOutlined as G, CloudServerOutlined as a, NodeIndexOutlined as z, TableOutlined as f, SearchOutlined as m, DatabaseOutlined as v, ConsoleSqlOutlined as E, BranchesOutlined as I, DeploymentUnitOutlined as M, BookOutlined as h, FundOutlined as N, CloudUploadOutlined as _, TagsOutlined as x, CodeOutlined as B } from "@ant-design/icons";
5
- import { W as R } from "./index-CoBZZQBy.js";
5
+ import { W as R } from "./index-CHTu5H1U.js";
6
6
  import { ConfigApp as U } from "@yuku123/z-config-component";
7
7
  import { MistApp as H } from "@yuku123/z-mist-component";
8
8
  import { MetaApp as L } from "@yuku123/z-meta-component";
@@ -16,7 +16,7 @@ import { MqApp as Z } from "@yuku123/z-mq-component";
16
16
  import { OssApp as J } from "@yuku123/z-oss-component";
17
17
  import { ZkbApp as X } from "@yuku123/z-kb-component";
18
18
  import { ScriptProductizationPage as o } from "@yuku123/z-agent-component";
19
- import "./index-BHrMl3Jq.js";
19
+ import "./index-B_H-Ynz5.js";
20
20
  const $ = "/api/graph";
21
21
  let O = !1;
22
22
  function ee() {
@@ -1,17 +1,17 @@
1
1
  import { jsx as t, jsxs as l } from "react/jsx-runtime";
2
2
  import { f as ie, r as z } from "./ctc-sso-DtJHC-2M.js";
3
- import { r as ne, h as X, s as oe } from "./sso-user-ZUKv4XMX.js";
3
+ import { r as ne, h as X, s as oe } from "./sso-user-DToM5dPy.js";
4
4
  import { CheckCircleFilled as le, QuestionCircleOutlined as ce, CloseOutlined as me } from "@ant-design/icons";
5
5
  import { message as k, Result as de, Button as D, Spin as G, Input as ue, Image as fe } from "antd";
6
6
  import pe from "query-string";
7
7
  import { useState as f, useRef as Y, useMemo as K, useCallback as w, useEffect as V } from "react";
8
8
  import { useLocation as ge } from "react-router-dom";
9
9
  import { h as W } from "./history-BlrA1eaW.js";
10
- import { l as he, d as be, e as _e } from "./api-CIhVblfa.js";
11
- import { u as c } from "./useAppStore-BBr_Fwsz.js";
10
+ import { l as he, d as be, e as _e } from "./api-BftpestH.js";
11
+ import { u as c } from "./useAppStore-BFO_h1L2.js";
12
12
  /* empty css */
13
13
  import { b as ye } from "./mobile-client-O3yr9h6t.js";
14
- import { a as ve, s as we } from "./send-default-agent-team-message-CfVaEN2y.js";
14
+ import { a as ve, s as we } from "./send-default-agent-team-message-c5oKdQQA.js";
15
15
  const Ne = 5e3, E = 9, Ce = 10 * 1024 * 1024, Se = /^image\//i, Ie = /\.(png|jpe?g|gif|bmp|webp)$/i;
16
16
  function Pe(a) {
17
17
  return a.type && Se.test(a.type) ? !0 : Ie.test(a.name || "");
@@ -3,8 +3,8 @@ import { useState as y, useMemo as d } from "react";
3
3
  import { useNavigate as G, useLocation as k } from "react-router-dom";
4
4
  import { CodeOutlined as L, DownOutlined as N, RightOutlined as O, AppstoreOutlined as v, TableOutlined as A, DatabaseOutlined as w, RobotOutlined as H, FunctionOutlined as M, ApartmentOutlined as W, EyeOutlined as C, BranchesOutlined as $, DeploymentUnitOutlined as p, SafetyCertificateOutlined as g } from "@ant-design/icons";
5
5
  import R from "@yuku123/z-lc-component";
6
- import { f as U, M as x } from "./menuPermission-DHUqvHfu.js";
7
- import { u as b } from "./useAppStore-BBr_Fwsz.js";
6
+ import { f as U, M as x } from "./menuPermission-CF3r6JEV.js";
7
+ import { u as b } from "./useAppStore-BFO_h1L2.js";
8
8
  const D = "_shell_1n5c7_7", E = "_sidebar_1n5c7_15", P = "_sidebarHeader_1n5c7_26", j = "_menuList_1n5c7_37", K = "_menuGroup_1n5c7_43", T = "_menuGroupHeader_1n5c7_47", B = "_menuGroupLabel_1n5c7_65", F = "_menuGroupArrow_1n5c7_69", q = "_menuSubList_1n5c7_74", z = "_menuSubItemWrap_1n5c7_80", J = "_menuSubItem_1n5c7_80", Q = "_menuSubItemActive_1n5c7_101", V = "_menuSubItemIcon_1n5c7_108", X = "_menuSubItemLabel_1n5c7_113", Y = "_main_1n5c7_118", t = {
9
9
  shell: D,
10
10
  sidebar: E,
@@ -6,10 +6,10 @@ import { useState as F, useRef as fp, useEffect as Y, useMemo as Wp, useCallback
6
6
  import Vp, { defaultUrlTransform as KA } from "react-markdown";
7
7
  import gp from "rehype-highlight";
8
8
  import Jp from "remark-gfm";
9
- import { ap as xa, aq as jA } from "./api-CIhVblfa.js";
10
- import { u as Dp } from "./useAppStore-BBr_Fwsz.js";
11
- import { z as ia, B as oA, E as fA, G as lA, i as xA, H as iA, I as cA, J as TA, K as vA, M as up, O as Yp, Q as mp, V as yp, X as Ip, Y as FA, Z as dA, _ as OA, $ as XA } from "./index-BHrMl3Jq.js";
12
- import { d as RA, e as NA, f as kA, g as WA, h as Cp, j as DA, k as qA, r as uA, l as mA, m as wA, n as BA, o as GA, p as LA, q as zA, t as VA } from "./createWorkspaceWsHandler-BWP5S5X3.js";
9
+ import { ar as xa, as as jA } from "./api-BftpestH.js";
10
+ import { u as Dp } from "./useAppStore-BFO_h1L2.js";
11
+ import { H as ia, I as oA, J as fA, K as lA, i as xA, M as iA, O as cA, Q as TA, V as vA, X as up, Y as Yp, Z as mp, _ as yp, $ as Ip, a0 as FA, a1 as dA, a2 as OA, a3 as XA } from "./index-B_H-Ynz5.js";
12
+ import { d as RA, e as NA, f as kA, g as WA, h as Cp, j as DA, k as qA, r as uA, l as mA, m as wA, n as BA, o as GA, p as LA, q as zA, t as VA } from "./createWorkspaceWsHandler-rKc7vc8k.js";
13
13
  import { h as r } from "./index.module-CAa-2T7m.js";
14
14
  const gA = "_editorView_as93v_7", JA = "_editorTopBar_as93v_16", bA = "_backBtn_as93v_25", MA = "_titleInput_as93v_39", sA = "_summaryBar_as93v_50", QA = "_summaryInput_as93v_55", hA = "_mdToolbar_as93v_67", YA = "_mdBtn_as93v_77", yA = "_mdSep_as93v_84", IA = "_editorBody_as93v_93", CA = "_tocPanel_as93v_100", ZA = "_tocHeader_as93v_108", EA = "_tocList_as93v_117", _A = "_tocItem_as93v_122", $A = "_tocEmpty_as93v_137", pt = "_textarea_as93v_144", at = "_half_as93v_160", At = "_preview_as93v_163", tt = "_markdown_as93v_173", et = "_videoEmbed_as93v_185", w = {
15
15
  editorView: gA,
@@ -1682,7 +1682,7 @@ const Rt = [
1682
1682
  draftDeleteBtn: T0,
1683
1683
  markdown: v0
1684
1684
  }, F0 = HA(
1685
- () => import("./index-BCp5EtqR.js").then((a) => ({ default: a.MarketContent }))
1685
+ () => import("./index-9Vozb4E5.js").then((a) => ({ default: a.MarketContent }))
1686
1686
  );
1687
1687
  function d0(a) {
1688
1688
  const n = [], x = a.split(`
@@ -2,9 +2,9 @@ import { jsxs as u, jsx as t } from "react/jsx-runtime";
2
2
  import { useState as L, useMemo as p } from "react";
3
3
  import { useNavigate as v, useLocation as A } from "react-router-dom";
4
4
  import { DownOutlined as k, RightOutlined as w } from "@ant-design/icons";
5
- import { P as W, R as $ } from "./index-mnWs_wA3.js";
6
- import { f as E, M as g } from "./menuPermission-DHUqvHfu.js";
7
- import { u as j } from "./useAppStore-BBr_Fwsz.js";
5
+ import { P as W, R as $ } from "./index-DoC-nKZZ.js";
6
+ import { f as E, M as g } from "./menuPermission-CF3r6JEV.js";
7
+ import { u as j } from "./useAppStore-BFO_h1L2.js";
8
8
  const H = "_shell_1jjcx_7", M = "_sidebar_1jjcx_15", R = "_menuList_1jjcx_37", T = "_menuGroup_1jjcx_43", C = "_menuGroupHeader_1jjcx_47", P = "_menuGroupIcon_1jjcx_65", z = "_menuGroupLabel_1jjcx_70", K = "_menuGroupArrow_1jjcx_74", U = "_menuSubList_1jjcx_80", Z = "_menuSubItem_1jjcx_86", B = "_menuSubItemActive_1jjcx_103", D = "_menuSubItemIcon_1jjcx_110", O = "_menuSubItemLabel_1jjcx_115", q = "_menuSubItemWrap_1jjcx_119", F = "_main_1jjcx_123", J = "_empty_1jjcx_134", Q = "_emptyIcon_1jjcx_144", V = "_emptyText_1jjcx_149", n = {
9
9
  shell: H,
10
10
  sidebar: M,
@@ -1,6 +1,6 @@
1
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-BFoF51we.js";
3
- import { c as J, E as Q, d as X, e as Y, f as Z, O as $, h as ee, R as te, j as re, k as ae, T as oe, l as ne, r as le, r as ie, m as se } from "./ComponentDoc-BFoF51we.js";
2
+ import { a as y } from "./ComponentDoc-CP8PmT4l.js";
3
+ import { c as J, E as Q, d as X, e as Y, f as Z, O as $, h as ee, R as te, j as re, k as ae, T as oe, l as ne, r as le, r as ie, m as se } from "./ComponentDoc-CP8PmT4l.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 x, Button as l, Tag as c, Result as R } from "antd";
@@ -0,0 +1,149 @@
1
+ import { jsxs as r, jsx as s } from "react/jsx-runtime";
2
+ import { useState as c, useCallback as b } from "react";
3
+ import { S as N, T as I, P as W } from "./webide-DTZ46LPR.js";
4
+ import { P as H, S as $, C as B, E as j, a as q, W as h, b as u, T as E, c as K } from "./ScheduledTasks-BSJP-8rB.js";
5
+ import { p as L } from "./index-3qkbu-HG.js";
6
+ function M({
7
+ view: t,
8
+ agents: e,
9
+ token: l,
10
+ currentUser: f,
11
+ onOpenChat: d,
12
+ onOpenAgentDetail: g,
13
+ onBackToExtensions: i,
14
+ onOpenTab: o,
15
+ onAgentCreated: T,
16
+ onOpenProject: n,
17
+ onOpenWorkbenchShell: p,
18
+ onOpenHistory: m
19
+ }) {
20
+ const [k, x] = c(
21
+ null
22
+ ), [P, S] = c(
23
+ null
24
+ ), y = b(
25
+ (a) => {
26
+ o("notes"), x({ id: a, ts: Date.now() });
27
+ },
28
+ [o]
29
+ ), D = b(
30
+ (a) => {
31
+ o("todo"), S({ id: a, ts: Date.now() });
32
+ },
33
+ [o]
34
+ ), A = t.kind === "chat" ? `${t.agent.id}-${t.sessionId ?? "new"}-${t.ts}` : "none";
35
+ return /* @__PURE__ */ r("div", { style: { height: "100%", display: "flex", flexDirection: "column" }, children: [
36
+ t.kind === "chat" && /* @__PURE__ */ s(
37
+ "div",
38
+ {
39
+ style: {
40
+ flex: 1,
41
+ minHeight: 0,
42
+ display: "flex",
43
+ flexDirection: "column"
44
+ },
45
+ children: /* @__PURE__ */ s(
46
+ H,
47
+ {
48
+ agent: t.agent,
49
+ initialSessionId: t.sessionId,
50
+ draftNoAutoPick: t.draft === !0,
51
+ autoSendDraft: t.autoSendDraft ?? null,
52
+ chromeless: !0,
53
+ agents: e,
54
+ onSwitchAgent: (a) => d(a)
55
+ },
56
+ A
57
+ )
58
+ }
59
+ ),
60
+ t.kind === "schedule" && /* @__PURE__ */ s(
61
+ $,
62
+ {
63
+ localOnline: !1,
64
+ agents: e,
65
+ token: l,
66
+ defaultLane: "cloud"
67
+ }
68
+ ),
69
+ t.kind === "history" && /* @__PURE__ */ s(
70
+ B,
71
+ {
72
+ agents: e,
73
+ token: l,
74
+ onOpenSession: (a, C) => d(a, C),
75
+ onBack: i
76
+ }
77
+ ),
78
+ t.kind === "extensions" && /* @__PURE__ */ s(
79
+ j,
80
+ {
81
+ agents: e,
82
+ loading: !1,
83
+ skillsAgent: L(e),
84
+ token: l,
85
+ currentUser: f,
86
+ onChat: (a) => d(a),
87
+ onConfig: g,
88
+ onCreated: T,
89
+ onOpenPersonalTab: o,
90
+ onOpenWorkbenchShell: p,
91
+ onOpenHistory: m,
92
+ capTabRequest: t.cap ? { tab: t.cap, ts: t.ts } : null
93
+ }
94
+ ),
95
+ t.kind === "agentDetail" && /* @__PURE__ */ s("div", { style: { flex: 1, minHeight: 0 }, children: /* @__PURE__ */ s(
96
+ q,
97
+ {
98
+ agent: t.agent,
99
+ onBack: i
100
+ }
101
+ ) }),
102
+ t.kind === "tab" && /* @__PURE__ */ r("div", { style: { flex: 1, minHeight: 0 }, children: [
103
+ t.tab === "projects" && /* @__PURE__ */ s(
104
+ h,
105
+ {
106
+ activeTab: "projects",
107
+ onActiveTabChange: () => {
108
+ },
109
+ onOpenProject: n,
110
+ hideTabs: !0
111
+ }
112
+ ),
113
+ t.tab === "personal" && /* @__PURE__ */ s(
114
+ h,
115
+ {
116
+ activeTab: "personal",
117
+ onActiveTabChange: () => {
118
+ },
119
+ onOpenProject: n,
120
+ hideTabs: !0
121
+ }
122
+ ),
123
+ t.tab === "business-stats" && /* @__PURE__ */ s(N, { source: "scenario" }),
124
+ t.tab === "tools" && /* @__PURE__ */ s(u, { showTools: !0, showWebsites: !1 }),
125
+ t.tab === "websites" && /* @__PURE__ */ s(u, { showTools: !1, showWebsites: !0 }),
126
+ t.tab === "todo" && /* @__PURE__ */ s(
127
+ I,
128
+ {
129
+ onOpenProject: n,
130
+ onOpenNote: y,
131
+ openTodoId: P
132
+ }
133
+ ),
134
+ t.tab === "notes" && /* @__PURE__ */ s(
135
+ W,
136
+ {
137
+ onOpenProject: n,
138
+ onOpenTodo: D,
139
+ openNoteId: k
140
+ }
141
+ ),
142
+ t.tab === "training" && /* @__PURE__ */ s(E, {}),
143
+ t.tab === "webide" && /* @__PURE__ */ s(K, {})
144
+ ] })
145
+ ] });
146
+ }
147
+ export {
148
+ M as default
149
+ };
@@ -0,0 +1,178 @@
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-D1vtx1CE.js";
3
+ import { c as J, E as Q, d as X, e as Y, f as Z, O as $, h as ee, R as te, j as re, k as ae, T as oe, l as ne, r as le, r as ie, m as se } from "./ComponentDoc-D1vtx1CE.js";
4
+ import { jsxs as r, Fragment as h, jsx as e } from "react/jsx-runtime";
5
+ import { useState as n, useEffect as T } from "react";
6
+ import { Alert as I, Space as x, Button as l, Tag as c, Result as R } from "antd";
7
+ import { ReloadOutlined as g, UserAddOutlined as E, TeamOutlined as b, 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 = {
10
+ LEADER: "red",
11
+ WORKER: "blue",
12
+ OBSERVER: "default"
13
+ };
14
+ function K() {
15
+ const [i] = n(!1), [s] = n([]);
16
+ return /* @__PURE__ */ r(h, { children: [
17
+ /* @__PURE__ */ e(
18
+ I,
19
+ {
20
+ type: "info",
21
+ showIcon: !0,
22
+ style: { marginBottom: 16 },
23
+ title: "IM 群组 (含 STOMP 实时消息) 后端服务尚未启动",
24
+ description: "当前展示群组列表占位。等 z-agent-team 后端就绪后切换为完整 IM 客户端。"
25
+ }
26
+ ),
27
+ /* @__PURE__ */ e(
28
+ f,
29
+ {
30
+ cardTitle: /* @__PURE__ */ r("span", { children: [
31
+ /* @__PURE__ */ e(b, { style: { marginRight: 8 } }),
32
+ "Agent 群组 IM"
33
+ ] }),
34
+ cardExtra: /* @__PURE__ */ r(x, { children: [
35
+ /* @__PURE__ */ e(l, { icon: /* @__PURE__ */ e(g, {}), loading: i, children: "刷新" }),
36
+ /* @__PURE__ */ e(l, { type: "primary", icon: /* @__PURE__ */ e(E, {}), disabled: !0, children: "创建群组" })
37
+ ] }),
38
+ rows: s,
39
+ columns: [
40
+ { title: "群组编码", dataIndex: "teamCode", width: 200, ellipsis: !0 },
41
+ { title: "群组名称", dataIndex: "teamName", width: 200 },
42
+ {
43
+ title: "我的角色",
44
+ dataIndex: "role",
45
+ width: 120,
46
+ render: (a) => /* @__PURE__ */ e(c, { color: O[a] || "default", children: a || "-" })
47
+ },
48
+ { title: "成员数", dataIndex: "memberCount", width: 100 },
49
+ { title: "最近消息", dataIndex: "lastMessage", width: 240, ellipsis: !0 },
50
+ { title: "更新时间", dataIndex: "updatedAt", width: 180 }
51
+ ],
52
+ rowKey: "teamCode",
53
+ loading: i,
54
+ searchKeys: ["teamCode", "teamName"],
55
+ searchPlaceholder: "按群组编码 / 名称过滤",
56
+ emptyTitle: "暂无群组",
57
+ emptyDescription: "当前还没有 IM 群组。"
58
+ }
59
+ )
60
+ ] });
61
+ }
62
+ const M = {
63
+ CREATING: { text: "创建中", color: "processing" },
64
+ RUNNING: { text: "运行中", color: "success" },
65
+ STOPPED: { text: "已停止", color: "default" },
66
+ ERROR: { text: "错误", color: "error" }
67
+ }, D = {
68
+ GIT: { text: "GIT 模式", color: "blue" },
69
+ SHARED: { text: "SHARED 模式", color: "purple" }
70
+ };
71
+ function U() {
72
+ const [i, s] = n([]), [d, a] = n(!1), [u, m] = n(null), p = async () => {
73
+ a(!0), m(null);
74
+ try {
75
+ s([]);
76
+ } catch (t) {
77
+ m((t == null ? void 0 : t.message) || "加载失败");
78
+ } finally {
79
+ a(!1);
80
+ }
81
+ };
82
+ return T(() => {
83
+ p();
84
+ }, []), /* @__PURE__ */ r(h, { children: [
85
+ u && /* @__PURE__ */ e(
86
+ I,
87
+ {
88
+ type: "warning",
89
+ showIcon: !0,
90
+ style: { marginBottom: 16 },
91
+ title: "后端 API 暂未连接",
92
+ description: u
93
+ }
94
+ ),
95
+ /* @__PURE__ */ e(
96
+ f,
97
+ {
98
+ cardTitle: /* @__PURE__ */ r("span", { children: [
99
+ /* @__PURE__ */ e(A, { style: { marginRight: 8 } }),
100
+ "WebIDE 容器管理"
101
+ ] }),
102
+ cardExtra: /* @__PURE__ */ r(x, { children: [
103
+ /* @__PURE__ */ e(l, { icon: /* @__PURE__ */ e(g, {}), onClick: p, loading: d, children: "刷新" }),
104
+ /* @__PURE__ */ e(l, { type: "primary", icon: /* @__PURE__ */ e(w, {}), disabled: !0, children: "新建 WebIDE" })
105
+ ] }),
106
+ rows: i,
107
+ columns: [
108
+ { title: "容器ID", dataIndex: "containerId", width: 220, ellipsis: !0 },
109
+ {
110
+ title: "模式",
111
+ dataIndex: "mode",
112
+ width: 120,
113
+ render: (t) => {
114
+ const o = D[t] || { text: t, color: "default" };
115
+ return /* @__PURE__ */ e(c, { color: o.color, children: o.text });
116
+ }
117
+ },
118
+ { title: "Git URL", dataIndex: "gitUrl", width: 240, ellipsis: !0 },
119
+ { title: "分支", dataIndex: "branch", width: 120 },
120
+ {
121
+ title: "状态",
122
+ dataIndex: "status",
123
+ width: 120,
124
+ render: (t) => {
125
+ const o = M[t] || { text: t, color: "default" };
126
+ return /* @__PURE__ */ e(c, { color: o.color, children: o.text });
127
+ }
128
+ },
129
+ { title: "创建时间", dataIndex: "createdAt", width: 180 }
130
+ ],
131
+ rowKey: "containerId",
132
+ loading: d,
133
+ scroll: { x: 1e3 },
134
+ searchKeys: ["containerId", "branch"],
135
+ searchPlaceholder: "按容器 ID / 分支过滤",
136
+ emptyTitle: "暂无容器",
137
+ emptyDescription: "后端 z-webide 服务尚未启动"
138
+ }
139
+ )
140
+ ] });
141
+ }
142
+ function k() {
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
+ }
152
+ export {
153
+ K as AgentTeamIM,
154
+ v as AppLayout,
155
+ J as CurlImportModal,
156
+ k as DebugPlayground,
157
+ Q as EndpointsTab,
158
+ X as EnvironmentsTab,
159
+ H as ErrorBoundary,
160
+ _ 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
178
+ };