@yuku123/z-team-component 0.2.89 → 0.2.90
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.
- package/dist/{ComponentDoc-CP8PmT4l.js → ComponentDoc-DgjWNYvc.js} +1 -1
- package/dist/{InvitationManagementPage-C-8t565B.js → InvitationManagementPage-BWeW0h7p.js} +1 -1
- package/dist/{OnboardingPage-DUUHQLSp.js → OnboardingPage-tW2xXPui.js} +2 -2
- package/dist/{ScheduledTasks-BSJP-8rB.js → ScheduledTasks-2X5KfwFi.js} +1470 -1461
- package/dist/{SystemShell-DTFR-Pfd.js → SystemShell-CSiNt2JL.js} +4 -4
- package/dist/{api-GfWm5pTp.js → api-WqoLUPy-.js} +1 -1
- package/dist/{index-C5FC0WCa.js → index-7iEmueKf.js} +2 -2
- package/dist/{index-BR0HXBjY.js → index-B8mikT45.js} +3 -3
- package/dist/{index-D92Y4nix.js → index-BIbkA-jX.js} +2 -2
- package/dist/{index-CHTu5H1U.js → index-CGSWoJJv.js} +2 -2
- package/dist/{index-DTFcQizU.js → index-ClRT3ECx.js} +2 -2
- package/dist/{index-9Vozb4E5.js → index-DBEdsfjb.js} +1 -1
- package/dist/{index-EdPtymBD.js → index-DKWvNjHa.js} +2 -2
- package/dist/{index-DelMCvoP.js → index-DS4IgliO.js} +1 -1
- package/dist/{index-BngdCYiY.js → index-Ds6Ac0UE.js} +2 -2
- package/dist/{index-Dxx0UEBW.js → index-NCoTXpQ0.js} +1 -1
- package/dist/{index-3qkbu-HG.js → index-Pt4RiXWL.js} +3 -3
- package/dist/{index-mIk8zAAm.js → index-iCpFhLce.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{menuPermission-CF3r6JEV.js → menuPermission-BqZsG_Fz.js} +1 -1
- package/dist/pages.js +1 -1
- package/package.json +1 -1
- package/dist/ComponentDoc-D1vtx1CE.js +0 -3998
- package/dist/InvitationManagementPage-DDx-AX4v.js +0 -495
- package/dist/OnboardingPage-DUVza4FC.js +0 -393
- package/dist/ScheduledTasks-CGNB0zlb.js +0 -10708
- package/dist/SystemShell-DZ-W2gUt.js +0 -689
- package/dist/api-nf4Uaca5.js +0 -20
- package/dist/index-B1lzhb6f.js +0 -1143
- package/dist/index-B_H-Ynz5.js +0 -9844
- package/dist/index-BqG6XqTh.js +0 -574
- package/dist/index-C1kpuot_.js +0 -118
- package/dist/index-CUhSJJL0.js +0 -178
- package/dist/index-D8ncig8C.js +0 -149
- package/dist/index-D_t92tEF.js +0 -2700
- package/dist/index-DoC-nKZZ.js +0 -93
- package/dist/index-JS2OVZ4Q.js +0 -3488
- package/dist/index-LkYDFjtJ.js +0 -914
- package/dist/index-d7BD8lzt.js +0 -242
- package/dist/index-p1jMVRnp.js +0 -112
- package/dist/menuPermission-CZvOK8eU.js +0 -60
package/dist/index-C1kpuot_.js
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useState as y, useMemo as d } from "react";
|
|
3
|
-
import { useNavigate as G, useLocation as k } from "react-router-dom";
|
|
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
|
-
import R from "@yuku123/z-lc-component";
|
|
6
|
-
import { f as U, M as x } from "./menuPermission-CF3r6JEV.js";
|
|
7
|
-
import { u as b } from "./useAppStore-BFO_h1L2.js";
|
|
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
|
-
shell: D,
|
|
10
|
-
sidebar: E,
|
|
11
|
-
sidebarHeader: P,
|
|
12
|
-
menuList: j,
|
|
13
|
-
menuGroup: K,
|
|
14
|
-
menuGroupHeader: T,
|
|
15
|
-
menuGroupLabel: B,
|
|
16
|
-
menuGroupArrow: F,
|
|
17
|
-
menuSubList: q,
|
|
18
|
-
menuSubItemWrap: z,
|
|
19
|
-
menuSubItem: J,
|
|
20
|
-
menuSubItemActive: Q,
|
|
21
|
-
menuSubItemIcon: V,
|
|
22
|
-
menuSubItemLabel: X,
|
|
23
|
-
main: Y
|
|
24
|
-
}, r = [
|
|
25
|
-
{
|
|
26
|
-
title: "应用",
|
|
27
|
-
items: [
|
|
28
|
-
{ key: "apps", label: "应用列表", icon: /* @__PURE__ */ e(v, {}), path: "apps" }
|
|
29
|
-
]
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
title: "建模",
|
|
33
|
-
items: [
|
|
34
|
-
{ key: "designer", label: "Schema 设计器", icon: /* @__PURE__ */ e(A, {}), path: "designer" },
|
|
35
|
-
{ key: "db-import", label: "从数据库导入", icon: /* @__PURE__ */ e(w, {}), path: "db-import" },
|
|
36
|
-
{ key: "admin-ai", label: "AI 建模", icon: /* @__PURE__ */ e(H, {}), path: "admin/ai" }
|
|
37
|
-
]
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
title: "配置",
|
|
41
|
-
items: [
|
|
42
|
-
{ key: "admin-dicts", label: "数据字典", icon: /* @__PURE__ */ e(M, {}), path: "admin/dicts" },
|
|
43
|
-
{ key: "admin-relations", label: "实体关系", icon: /* @__PURE__ */ e(W, {}), path: "admin/relations" },
|
|
44
|
-
{ key: "admin-views", label: "视图配置", icon: /* @__PURE__ */ e(C, {}), path: "admin/views" },
|
|
45
|
-
{ key: "admin-pipelines", label: "Pipeline", icon: /* @__PURE__ */ e($, {}), path: "admin/pipelines" },
|
|
46
|
-
{ key: "admin-workflows", label: "流程绑定", icon: /* @__PURE__ */ e(p, {}), path: "admin/workflows" }
|
|
47
|
-
]
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
title: "运行",
|
|
51
|
-
items: [
|
|
52
|
-
{ key: "admin-permissions", label: "权限矩阵", icon: /* @__PURE__ */ e(g, {}), path: "admin/permissions", permission: "PERMISSION_MANAGE" },
|
|
53
|
-
{ key: "admin-deployments", label: "部署记录", icon: /* @__PURE__ */ e(p, {}), path: "admin/deployments" }
|
|
54
|
-
]
|
|
55
|
-
}
|
|
56
|
-
], c = "/lc";
|
|
57
|
-
function Z(l) {
|
|
58
|
-
if (!l.startsWith(c)) return null;
|
|
59
|
-
const m = l.slice(c.length).replace(/^\//, "");
|
|
60
|
-
for (const o of r)
|
|
61
|
-
for (const s of o.items)
|
|
62
|
-
if (m === s.path || m.startsWith(`${s.path}/`)) return s.key;
|
|
63
|
-
return null;
|
|
64
|
-
}
|
|
65
|
-
function le() {
|
|
66
|
-
const l = G(), { pathname: m } = k(), o = b((n) => n.currentUser), s = b((n) => n.permissionState), [_, h] = y(
|
|
67
|
-
new Set(r.map((n) => n.title))
|
|
68
|
-
), S = d(
|
|
69
|
-
() => s === "failed" ? r : U(r, o),
|
|
70
|
-
[o, s]
|
|
71
|
-
), I = d(() => Z(m), [m]), f = (n) => {
|
|
72
|
-
h((u) => {
|
|
73
|
-
const i = new Set(u);
|
|
74
|
-
return i.has(n) ? i.delete(n) : i.add(n), i;
|
|
75
|
-
});
|
|
76
|
-
};
|
|
77
|
-
return /* @__PURE__ */ a("div", { className: t.shell, children: [
|
|
78
|
-
/* @__PURE__ */ a("aside", { className: t.sidebar, children: [
|
|
79
|
-
/* @__PURE__ */ a("div", { className: t.sidebarHeader, children: [
|
|
80
|
-
/* @__PURE__ */ e(L, {}),
|
|
81
|
-
/* @__PURE__ */ e("span", { children: "研发工作台" })
|
|
82
|
-
] }),
|
|
83
|
-
/* @__PURE__ */ e(x, {}),
|
|
84
|
-
/* @__PURE__ */ e("nav", { className: t.menuList, children: S.map((n) => {
|
|
85
|
-
const u = !_.has(n.title);
|
|
86
|
-
return /* @__PURE__ */ a("div", { className: t.menuGroup, children: [
|
|
87
|
-
/* @__PURE__ */ a(
|
|
88
|
-
"div",
|
|
89
|
-
{
|
|
90
|
-
className: t.menuGroupHeader,
|
|
91
|
-
onClick: () => f(n.title),
|
|
92
|
-
children: [
|
|
93
|
-
/* @__PURE__ */ e("span", { className: t.menuGroupLabel, children: n.title }),
|
|
94
|
-
/* @__PURE__ */ e("span", { className: t.menuGroupArrow, children: u ? /* @__PURE__ */ e(N, {}) : /* @__PURE__ */ e(O, {}) })
|
|
95
|
-
]
|
|
96
|
-
}
|
|
97
|
-
),
|
|
98
|
-
u && /* @__PURE__ */ e("ul", { className: t.menuSubList, children: n.items.map((i) => /* @__PURE__ */ a(
|
|
99
|
-
"li",
|
|
100
|
-
{
|
|
101
|
-
className: `${t.menuSubItemWrap} ${t.menuSubItem} ${I === i.key ? t.menuSubItemActive : ""}`,
|
|
102
|
-
onClick: () => l(`${c}/${i.path}`),
|
|
103
|
-
children: [
|
|
104
|
-
/* @__PURE__ */ e("span", { className: t.menuSubItemIcon, children: i.icon }),
|
|
105
|
-
/* @__PURE__ */ e("span", { className: t.menuSubItemLabel, children: i.label })
|
|
106
|
-
]
|
|
107
|
-
},
|
|
108
|
-
i.key
|
|
109
|
-
)) })
|
|
110
|
-
] }, n.title);
|
|
111
|
-
}) })
|
|
112
|
-
] }),
|
|
113
|
-
/* @__PURE__ */ e("main", { className: t.main, children: /* @__PURE__ */ e(R, {}) })
|
|
114
|
-
] });
|
|
115
|
-
}
|
|
116
|
-
export {
|
|
117
|
-
le as default
|
|
118
|
-
};
|
package/dist/index-CUhSJJL0.js
DELETED
|
@@ -1,178 +0,0 @@
|
|
|
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-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
|
-
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
|
-
};
|
package/dist/index-D8ncig8C.js
DELETED
|
@@ -1,149 +0,0 @@
|
|
|
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
|
-
};
|