@yuku123/z-team-component 0.2.51 → 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-DQqssf25.js → ComponentDoc-y1NfPcHG.js} +506 -461
  3. package/dist/{InvitationManagementPage-VP4Z5dfA.js → InvitationManagementPage-Btw9iVOl.js} +1 -1
  4. package/dist/{OnboardingPage-DItjgM-n.js → OnboardingPage-wF0OrgfD.js} +2 -2
  5. package/dist/ScheduledTasks-CzzgG3n8.js +9417 -0
  6. package/dist/{SystemShell-5h2iViyD.js → SystemShell-BSCmnOxf.js} +1 -1
  7. package/dist/{admin-logs-D6HtRcK6.js → admin-logs-vR556ORQ.js} +2 -2
  8. package/dist/{api-yLI7Ykc0.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-uQn3pzQd.js → index-BXiuxhgz.js} +6 -6
  14. package/dist/{index-B6bDmTPW.js → index-BbkE7r8M.js} +431 -432
  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-CLLTeFL6.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-td6dkPa2.js → index-Di_vaPxC.js} +3 -3
  25. package/dist/{index-dPkeRBwq.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-BzBTizx3.js +0 -6685
  50. package/dist/index-CKCDXE2N.js +0 -13862
  51. package/dist/index-DDFDZ3CZ.js +0 -844
  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
@@ -0,0 +1,339 @@
1
+ import { jsxs as r, jsx as n } from "react/jsx-runtime";
2
+ import { useState as o, useEffect as h, useCallback as k, useMemo as B } from "react";
3
+ import { h as l } from "./history-BlrA1eaW.js";
4
+ import { f as x, p as N, L as d, M, A as S, a as W, b as R } from "./index-DWsfQMp8.js";
5
+ const E = "_page_z9ex0_8", F = "_bgWash_z9ex0_48", C = "_bgGrid_z9ex0_59", G = "_navbar_z9ex0_74", O = "_navInner_z9ex0_84", H = "_navBrand_z9ex0_95", Z = "_navMark_z9ex0_102", $ = "_navBrandText_z9ex0_116", U = "_navBack_z9ex0_123", K = "_hero_z9ex0_143", j = "_eyebrow_z9ex0_151", X = "_eyebrowDot_z9ex0_166", Q = "_heroTitle_z9ex0_174", V = "_heroLead_z9ex0_183", q = "_grid_z9ex0_192", J = "_card_z9ex0_203", Y = "_cardFocused_z9ex0_219", ee = "_cardHead_z9ex0_224", ae = "_cardIcon_z9ex0_230", ne = "_cardHeadText_z9ex0_243", te = "_cardTitle_z9ex0_248", re = "_cardEn_z9ex0_256", se = "_cardBadges_z9ex0_262", ce = "_badge_z9ex0_270", oe = "_badgeDevice_z9ex0_271", de = "_badge_ready_z9ex0_286", ie = "_badge_beta_z9ex0_292", le = "_badge_soon_z9ex0_298", _e = "_badge_free_z9ex0_304", me = "_badge_instant_z9ex0_310", he = "_cardDesc_z9ex0_316", be = "_metaRow_z9ex0_323", ge = "_metaItem_z9ex0_330", ue = "_changelog_z9ex0_343", fe = "_changelogLabel_z9ex0_351", ke = "_changelogText_z9ex0_358", xe = "_steps_z9ex0_365", Ne = "_cardAction_z9ex0_381", ve = "_btnPrimary_z9ex0_385", we = "_btnGhost_z9ex0_386", ye = "_btnDisabled_z9ex0_387", ze = "_cardNote_z9ex0_432", pe = "_footer_z9ex0_439", Te = "_footerLink_z9ex0_455", e = {
6
+ page: E,
7
+ bgWash: F,
8
+ bgGrid: C,
9
+ navbar: G,
10
+ navInner: O,
11
+ navBrand: H,
12
+ navMark: Z,
13
+ navBrandText: $,
14
+ navBack: U,
15
+ hero: K,
16
+ eyebrow: j,
17
+ eyebrowDot: X,
18
+ heroTitle: Q,
19
+ heroLead: V,
20
+ grid: q,
21
+ card: J,
22
+ cardFocused: Y,
23
+ cardHead: ee,
24
+ cardIcon: ae,
25
+ cardHeadText: ne,
26
+ cardTitle: te,
27
+ cardEn: re,
28
+ cardBadges: se,
29
+ badge: ce,
30
+ badgeDevice: oe,
31
+ badge_ready: de,
32
+ badge_beta: ie,
33
+ badge_soon: le,
34
+ badge_free: _e,
35
+ badge_instant: me,
36
+ cardDesc: he,
37
+ metaRow: be,
38
+ metaItem: ge,
39
+ changelog: ue,
40
+ changelogLabel: fe,
41
+ changelogText: ke,
42
+ steps: xe,
43
+ cardAction: Ne,
44
+ btnPrimary: ve,
45
+ btnGhost: we,
46
+ btnDisabled: ye,
47
+ cardNote: ze,
48
+ footer: pe,
49
+ footerLink: Te
50
+ }, Ae = {
51
+ ready: "正式版",
52
+ beta: "内测中",
53
+ soon: "即将发布",
54
+ free: "免安装",
55
+ instant: "即刻可用"
56
+ }, m = [
57
+ {
58
+ key: "macos",
59
+ icon: "laptop",
60
+ name: "macOS 桌面客户端",
61
+ en: "ZTeamAgent · Apple Silicon",
62
+ state: "ready",
63
+ desc: "本地 Agent 沙箱、火箭跳转、自动更新。桌面端与生产 Agent 集群双向打通,敏感操作不出本地。"
64
+ },
65
+ {
66
+ key: "windows",
67
+ icon: "windows",
68
+ name: "Windows 桌面客户端",
69
+ en: "ZTeamAgent · Windows 10+",
70
+ state: "ready",
71
+ desc: "与 macOS 同源交付:本地 Agent 沙箱、火箭跳转、自动更新一套不打折。安装包为 x64 setup 格式。"
72
+ },
73
+ {
74
+ key: "ios",
75
+ icon: "phone",
76
+ name: "iOS App",
77
+ en: "Z-Team · iPhone / iPad",
78
+ state: "beta",
79
+ desc: "iOS 版通过 TestFlight 分发内测版本,测试通过后上架 App Store。后续版本由 TestFlight 自动推送。"
80
+ },
81
+ {
82
+ key: "android",
83
+ icon: "bot",
84
+ name: "Android App",
85
+ en: "Z-Team · APK 直装包",
86
+ state: "soon",
87
+ desc: "APK 直装包,支持手机浏览器直接下载安装。若提示「未知来源」,需在系统设置中允许浏览器安装应用。"
88
+ },
89
+ {
90
+ key: "web",
91
+ icon: "globe",
92
+ name: "Web 版",
93
+ en: "浏览器 · 全平台",
94
+ state: "free",
95
+ desc: "无需安装,浏览器直接进入完整工作台。手机浏览器自动进入移动端界面,数据与客户端完全同步。"
96
+ },
97
+ {
98
+ key: "cli",
99
+ icon: "terminal",
100
+ name: "CLI Agent",
101
+ en: "claude-code 等多运行时",
102
+ state: "instant",
103
+ desc: "接入既有 CLI 运行时,在命令行里把任务交给 Agent 执行,结论回到会话。详见操作手册的接入章节。"
104
+ }
105
+ ];
106
+ function Le(s, c) {
107
+ return c && c.releaseType === "beta" ? "beta" : s.state;
108
+ }
109
+ function De(s, c) {
110
+ return c && c.releaseType === "beta" ? "内测版" : Ae[s.state];
111
+ }
112
+ function Ie() {
113
+ const s = navigator.userAgent;
114
+ return /iPad|iPhone|iPod/.test(s) ? "ios" : /Android/i.test(s) ? "android" : /Mac OS X|Macintosh/.test(s) ? "macos" : "web";
115
+ }
116
+ function v() {
117
+ if (typeof window > "u") return null;
118
+ const s = new URLSearchParams(window.location.search).get("platform");
119
+ return s && m.some((c) => c.key === s) ? s : null;
120
+ }
121
+ function Re() {
122
+ const [s, c] = o(null), [b, w] = o(null), [g, u] = o(!1), [y, f] = o(!1), [_, z] = o(
123
+ v
124
+ ), [p, Pe] = o(() => Ie());
125
+ h(() => {
126
+ let a = !0;
127
+ return x(M).then((t) => {
128
+ a && (c(t), u(!0));
129
+ }).catch(() => a && u(!0)), x(S).then((t) => {
130
+ a && (w(t), f(!0));
131
+ }).catch(() => a && f(!0)), () => {
132
+ a = !1;
133
+ };
134
+ }, []), h(() => {
135
+ const a = () => z(v());
136
+ return window.addEventListener("popstate", a), () => window.removeEventListener("popstate", a);
137
+ }, []), h(() => {
138
+ if (!_) return;
139
+ const a = document.getElementById(`dl-${_}`);
140
+ if (!a) return;
141
+ const t = window.setTimeout(
142
+ () => a.scrollIntoView({ behavior: "smooth", block: "center" }),
143
+ 120
144
+ );
145
+ return () => window.clearTimeout(t);
146
+ }, [_]);
147
+ const T = k(() => {
148
+ const a = /iPad|iPhone|iPod|Android/i.test(navigator.userAgent);
149
+ l.push(a ? "/phone" : "/workspace");
150
+ }, []), i = k(
151
+ (a) => a === "macos" ? N(s, "macos") : a === "windows" ? N(s, "windows") : a === "android" ? b : null,
152
+ [s, b]
153
+ ), A = (a) => {
154
+ const t = i(a.key);
155
+ return a.key === "macos" ? t ? /* @__PURE__ */ r(
156
+ "a",
157
+ {
158
+ className: e.btnPrimary,
159
+ href: t.downloadUrl,
160
+ target: "_blank",
161
+ rel: "noreferrer",
162
+ children: [
163
+ /* @__PURE__ */ n(d, { name: "download", size: 15, strokeWidth: 2 }),
164
+ "下载 DMG · v",
165
+ t.version
166
+ ]
167
+ }
168
+ ) : /* @__PURE__ */ n("button", { className: e.btnDisabled, disabled: !0, children: g ? "版本清单未获取" : "版本清单加载中…" }) : a.key === "windows" ? t ? /* @__PURE__ */ r(
169
+ "a",
170
+ {
171
+ className: e.btnPrimary,
172
+ href: t.downloadUrl,
173
+ target: "_blank",
174
+ rel: "noreferrer",
175
+ children: [
176
+ /* @__PURE__ */ n(d, { name: "download", size: 15, strokeWidth: 2 }),
177
+ "下载 Windows 版 · v",
178
+ t.version
179
+ ]
180
+ }
181
+ ) : /* @__PURE__ */ n("button", { className: e.btnDisabled, disabled: !0, children: g ? "版本清单未获取" : "版本清单加载中…" }) : a.key === "android" ? t ? /* @__PURE__ */ r(
182
+ "a",
183
+ {
184
+ className: e.btnPrimary,
185
+ href: t.downloadUrl,
186
+ target: "_blank",
187
+ rel: "noreferrer",
188
+ children: [
189
+ /* @__PURE__ */ n(d, { name: "download", size: 15, strokeWidth: 2 }),
190
+ "下载 APK · v",
191
+ t.version
192
+ ]
193
+ }
194
+ ) : /* @__PURE__ */ n("button", { className: e.btnDisabled, disabled: !0, children: y ? "即将发布 · 敬请期待" : "版本清单加载中…" }) : a.key === "ios" ? /* @__PURE__ */ n("button", { className: e.btnDisabled, disabled: !0, children: "内测资格申请中 · 敬请期待" }) : a.key === "web" ? /* @__PURE__ */ r("button", { className: e.btnPrimary, onClick: T, children: [
195
+ /* @__PURE__ */ n(d, { name: "arrow", size: 15, strokeWidth: 2 }),
196
+ "立即进入工作台"
197
+ ] }) : a.key === "cli" ? /* @__PURE__ */ n(
198
+ "button",
199
+ {
200
+ className: e.btnGhost,
201
+ onClick: () => l.push("/docs"),
202
+ children: "查看接入方式"
203
+ }
204
+ ) : /* @__PURE__ */ n("button", { className: e.btnDisabled, disabled: !0, children: "安装包制作中" });
205
+ }, L = (a) => {
206
+ const t = i(a.key);
207
+ return t ? /* @__PURE__ */ r("div", { className: e.metaRow, children: [
208
+ /* @__PURE__ */ r("span", { className: e.metaItem, children: [
209
+ /* @__PURE__ */ n(d, { name: "check", size: 13, strokeWidth: 2.2 }),
210
+ "v",
211
+ t.version
212
+ ] }),
213
+ t.fileSize > 0 && /* @__PURE__ */ n("span", { className: e.metaItem, children: W(t.fileSize) }),
214
+ t.releaseTime && /* @__PURE__ */ n("span", { className: e.metaItem, children: R(t.releaseTime) }),
215
+ t.arch && /* @__PURE__ */ n("span", { className: e.metaItem, children: t.arch })
216
+ ] }) : null;
217
+ }, D = B(
218
+ () => m.filter((a) => a.key === "web" || a.key === "cli" ? !0 : !!i(a.key)).length,
219
+ [i]
220
+ );
221
+ return /* @__PURE__ */ r("div", { className: e.page, children: [
222
+ /* @__PURE__ */ n("div", { className: e.bgWash }),
223
+ /* @__PURE__ */ n("div", { className: e.bgGrid }),
224
+ /* @__PURE__ */ n("nav", { className: e.navbar, children: /* @__PURE__ */ r("div", { className: e.navInner, children: [
225
+ /* @__PURE__ */ r(
226
+ "div",
227
+ {
228
+ className: e.navBrand,
229
+ onClick: () => l.push("/welcome"),
230
+ role: "button",
231
+ tabIndex: 0,
232
+ children: [
233
+ /* @__PURE__ */ n("span", { className: e.navMark, children: "ZT" }),
234
+ /* @__PURE__ */ n("span", { className: e.navBrandText, children: "Z Team" })
235
+ ]
236
+ }
237
+ ),
238
+ /* @__PURE__ */ n(
239
+ "button",
240
+ {
241
+ className: e.navBack,
242
+ onClick: () => l.push("/welcome"),
243
+ children: "返回产品首页"
244
+ }
245
+ )
246
+ ] }) }),
247
+ /* @__PURE__ */ r("header", { className: e.hero, children: [
248
+ /* @__PURE__ */ r("span", { className: e.eyebrow, children: [
249
+ /* @__PURE__ */ n("span", { className: e.eyebrowDot }),
250
+ "下载中心"
251
+ ] }),
252
+ /* @__PURE__ */ n("h1", { className: e.heroTitle, children: "全平台客户端" }),
253
+ /* @__PURE__ */ r("p", { className: e.heroLead, children: [
254
+ m.length,
255
+ " 个终端、同一条消息协议、同一套账号。 桌面端跑本地 Agent,移动端随手跟进,Web 与 CLI 随时接入。 当前 ",
256
+ D,
257
+ " 个终端可直接下载或使用。"
258
+ ] })
259
+ ] }),
260
+ /* @__PURE__ */ n("main", { className: e.grid, children: m.map((a) => {
261
+ const t = i(a.key), I = a.key === p, P = _ === a.key;
262
+ return /* @__PURE__ */ r(
263
+ "section",
264
+ {
265
+ id: `dl-${a.key}`,
266
+ className: `${e.card} ${P ? e.cardFocused : ""}`,
267
+ children: [
268
+ /* @__PURE__ */ r("div", { className: e.cardHead, children: [
269
+ /* @__PURE__ */ n("span", { className: e.cardIcon, children: /* @__PURE__ */ n(
270
+ d,
271
+ {
272
+ name: a.icon,
273
+ size: 21,
274
+ strokeWidth: 1.8
275
+ }
276
+ ) }),
277
+ /* @__PURE__ */ r("div", { className: e.cardHeadText, children: [
278
+ /* @__PURE__ */ n("h2", { className: e.cardTitle, children: a.name }),
279
+ /* @__PURE__ */ n("div", { className: e.cardEn, children: a.en })
280
+ ] }),
281
+ /* @__PURE__ */ r("div", { className: e.cardBadges, children: [
282
+ I && /* @__PURE__ */ n("span", { className: e.badgeDevice, children: "当前设备" }),
283
+ /* @__PURE__ */ n(
284
+ "span",
285
+ {
286
+ className: `${e.badge} ${e[`badge_${Le(a, t)}`]}`,
287
+ children: De(a, t)
288
+ }
289
+ )
290
+ ] })
291
+ ] }),
292
+ /* @__PURE__ */ n("p", { className: e.cardDesc, children: a.desc }),
293
+ L(a),
294
+ (t == null ? void 0 : t.changelog) && /* @__PURE__ */ r("div", { className: e.changelog, children: [
295
+ /* @__PURE__ */ n("span", { className: e.changelogLabel, children: "本次更新" }),
296
+ /* @__PURE__ */ n("p", { className: e.changelogText, children: t.changelog })
297
+ ] }),
298
+ a.key === "ios" && /* @__PURE__ */ r("ol", { className: e.steps, children: [
299
+ /* @__PURE__ */ r("li", { children: [
300
+ "在 App Store 搜索并安装",
301
+ " ",
302
+ /* @__PURE__ */ n("b", { children: "TestFlight" }),
303
+ "(苹果官方测试平台)"
304
+ ] }),
305
+ /* @__PURE__ */ r("li", { children: [
306
+ "用 iPhone 打开",
307
+ /* @__PURE__ */ n("b", { children: "邀请链接" }),
308
+ ",点击「接受」 加入内测"
309
+ ] }),
310
+ /* @__PURE__ */ r("li", { children: [
311
+ "在 TestFlight 中安装 Z-Team,后续版本",
312
+ /* @__PURE__ */ n("b", { children: "自动推送" })
313
+ ] })
314
+ ] }),
315
+ /* @__PURE__ */ n("div", { className: e.cardAction, children: A(a) }),
316
+ a.key === "macos" && /* @__PURE__ */ n("p", { className: e.cardNote, children: "下载后拖入「应用程序」即可使用,客户端支持自动检查更新" }),
317
+ a.key === "web" && /* @__PURE__ */ n("p", { className: e.cardNote, children: "平台 SSO 登录后使用,数据与客户端完全同步" }),
318
+ a.key === "android" && /* @__PURE__ */ n("p", { className: e.cardNote, children: "建议用手机浏览器打开本页直接下载安装" })
319
+ ]
320
+ },
321
+ a.key
322
+ );
323
+ }) }),
324
+ /* @__PURE__ */ r("footer", { className: e.footer, children: [
325
+ /* @__PURE__ */ n("span", { children: "© 2026 Z Team · 组织级 AI 协同平台" }),
326
+ /* @__PURE__ */ n(
327
+ "button",
328
+ {
329
+ className: e.footerLink,
330
+ onClick: () => l.push("/welcome"),
331
+ children: "返回产品首页"
332
+ }
333
+ )
334
+ ] })
335
+ ] });
336
+ }
337
+ export {
338
+ Re as default
339
+ };
@@ -1,16 +1,16 @@
1
1
  import { jsx as r, jsxs as x } from "react/jsx-runtime";
2
2
  import { f as z, r as T } from "./ctc-sso-DtJHC-2M.js";
3
- import { r as D, h as U, s as F } from "./sso-user-Bi9_l9yi.js";
3
+ import { r as D, h as U, s as F } from "./sso-user-Dw_wwYa-.js";
4
4
  import { CheckCircleFilled as W } from "@ant-design/icons";
5
5
  import { Result as B, Button as H, Spin as G } from "antd";
6
6
  import J from "query-string";
7
7
  import { useState as d, useRef as K, useCallback as O, useMemo as R, useEffect as E } from "react";
8
8
  import { useLocation as Q } from "react-router-dom";
9
9
  import { h as b } from "./history-BlrA1eaW.js";
10
- import { d as V, e as X } from "./api-C78tCfne.js";
11
- import { u as s } from "./useAppStore-ibJyVIAX.js";
10
+ import { d as V, e as X } from "./api-Jfnj1ybB.js";
11
+ import { u as s } from "./useAppStore-s-CLa-nF.js";
12
12
  import { b as Y } from "./mobile-client-O3yr9h6t.js";
13
- import { s as Z } from "./send-default-agent-team-message-C882sJLV.js";
13
+ import { s as Z } from "./send-default-agent-team-message-CbqHaohM.js";
14
14
  function de() {
15
15
  const h = Q(), f = J.parse(h.search), c = String(
16
16
  f.scenarioCode ?? f.scenario_code ?? ""
@@ -0,0 +1,130 @@
1
+ import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
+ import { useState as r, useCallback as c } from "react";
3
+ import { S, T as A, P as D } from "./webide-6j4OVoNA.js";
4
+ import { P as I, S as N, C as W, E as H, a as $, W as h, b, T as B, c as E } from "./ScheduledTasks-CzzgG3n8.js";
5
+ import { p as j } from "./index-DUmgSTQu.js";
6
+ function J({
7
+ view: s,
8
+ agents: a,
9
+ token: l,
10
+ onOpenChat: i,
11
+ onOpenAgentDetail: g,
12
+ onBackToExtensions: f,
13
+ onOpenTab: o,
14
+ onAgentCreated: u,
15
+ onOpenProject: n
16
+ }) {
17
+ const [T, m] = r(
18
+ null
19
+ ), [p, k] = r(
20
+ null
21
+ ), x = c(
22
+ (t) => {
23
+ o("notes"), m({ id: t, ts: Date.now() });
24
+ },
25
+ [o]
26
+ ), y = c(
27
+ (t) => {
28
+ o("todo"), k({ id: t, ts: Date.now() });
29
+ },
30
+ [o]
31
+ ), P = s.kind === "chat" ? `${s.agent.id}-${s.sessionId ?? "new"}-${s.ts}` : "none";
32
+ return /* @__PURE__ */ d("div", { style: { height: "100%", display: "flex", flexDirection: "column" }, children: [
33
+ s.kind === "chat" && /* @__PURE__ */ e(
34
+ "div",
35
+ {
36
+ style: {
37
+ flex: 1,
38
+ minHeight: 0,
39
+ display: "flex",
40
+ flexDirection: "column"
41
+ },
42
+ children: /* @__PURE__ */ e(
43
+ I,
44
+ {
45
+ agent: s.agent,
46
+ initialSessionId: s.sessionId,
47
+ chromeless: !0,
48
+ agents: a,
49
+ onSwitchAgent: (t) => i(t)
50
+ },
51
+ P
52
+ )
53
+ }
54
+ ),
55
+ s.kind === "schedule" && /* @__PURE__ */ e(N, { localOnline: !1 }),
56
+ s.kind === "history" && /* @__PURE__ */ e(
57
+ W,
58
+ {
59
+ agents: a,
60
+ token: l,
61
+ onOpenSession: (t, C) => i(t, C)
62
+ }
63
+ ),
64
+ s.kind === "extensions" && /* @__PURE__ */ e(
65
+ H,
66
+ {
67
+ agents: a,
68
+ loading: !1,
69
+ skillsAgent: j(a),
70
+ token: l,
71
+ onChat: (t) => i(t),
72
+ onConfig: g,
73
+ onCreated: u
74
+ }
75
+ ),
76
+ s.kind === "agentDetail" && /* @__PURE__ */ e("div", { style: { flex: 1, minHeight: 0 }, children: /* @__PURE__ */ e(
77
+ $,
78
+ {
79
+ agent: s.agent,
80
+ onBack: f
81
+ }
82
+ ) }),
83
+ s.kind === "tab" && /* @__PURE__ */ d("div", { style: { flex: 1, minHeight: 0 }, children: [
84
+ s.tab === "projects" && /* @__PURE__ */ e(
85
+ h,
86
+ {
87
+ activeTab: "projects",
88
+ onActiveTabChange: () => {
89
+ },
90
+ onOpenProject: n,
91
+ hideTabs: !0
92
+ }
93
+ ),
94
+ s.tab === "personal" && /* @__PURE__ */ e(
95
+ h,
96
+ {
97
+ activeTab: "personal",
98
+ onActiveTabChange: () => {
99
+ },
100
+ onOpenProject: n,
101
+ hideTabs: !0
102
+ }
103
+ ),
104
+ s.tab === "business-stats" && /* @__PURE__ */ e(S, { source: "scenario" }),
105
+ s.tab === "tools" && /* @__PURE__ */ e(b, { showTools: !0, showWebsites: !1 }),
106
+ s.tab === "websites" && /* @__PURE__ */ e(b, { showTools: !1, showWebsites: !0 }),
107
+ s.tab === "todo" && /* @__PURE__ */ e(
108
+ A,
109
+ {
110
+ onOpenProject: n,
111
+ onOpenNote: x,
112
+ openTodoId: p
113
+ }
114
+ ),
115
+ s.tab === "notes" && /* @__PURE__ */ e(
116
+ D,
117
+ {
118
+ onOpenProject: n,
119
+ onOpenTodo: y,
120
+ openNoteId: T
121
+ }
122
+ ),
123
+ s.tab === "training" && /* @__PURE__ */ e(B, {}),
124
+ s.tab === "webide" && /* @__PURE__ */ e(E, {})
125
+ ] })
126
+ ] });
127
+ }
128
+ export {
129
+ J as default
130
+ };
@@ -1,13 +1,13 @@
1
1
  import { jsx as c, jsxs as _ } from "react/jsx-runtime";
2
- import { i as $, t as x, p as O, c as b, b as v } from "./api-C78tCfne.js";
2
+ import { i as $, t as x, p as O, c as b, b as v } from "./api-Jfnj1ybB.js";
3
3
  import { CheckCircleFilled as F } from "@ant-design/icons";
4
4
  import { Result as D, Button as R, Spin as U } from "antd";
5
5
  import B from "query-string";
6
6
  import { useMemo as j, useState as f, useRef as q, useCallback as A, useEffect as J } from "react";
7
7
  import { useLocation as W } from "react-router-dom";
8
8
  import { h as y } from "./history-BlrA1eaW.js";
9
- import { l as Z, j as z, f as H, b as L, p as M } from "./instance-D5dhjbgg.js";
10
- import { u as w } from "./useAppStore-ibJyVIAX.js";
9
+ import { l as Z, j as z, f as H, b as L, p as M } from "./instance-B0DZJnee.js";
10
+ import { u as w } from "./useAppStore-s-CLa-nF.js";
11
11
  import { b as N } from "./mobile-client-O3yr9h6t.js";
12
12
  function ct() {
13
13
  const m = W(), p = B.parse(m.search), o = String(
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-DQqssf25.js";
1
+ import { C as e, P as s, S as a, Z as r, i } from "./ComponentDoc-y1NfPcHG.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 d, B as r, u as c } from "./api-C78tCfne.js";
1
+ import { a as o, f as d, B as r, u as c } from "./api-Jfnj1ybB.js";
2
2
  async function h(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));
@@ -198,9 +198,9 @@ async function F(e = "", n = 8) {
198
198
  }));
199
199
  }
200
200
  export {
201
- F as a,
201
+ h as a,
202
202
  v as b,
203
- h as c,
203
+ F as c,
204
204
  I as d,
205
205
  b as e,
206
206
  C as f,
package/dist/pages.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createElement as e } from "react";
2
2
  import { ReadOutlined as t } from "@ant-design/icons";
3
- import { S as o, P as a, C as r, Z as m } from "./ComponentDoc-DQqssf25.js";
3
+ import { S as o, P as a, C as r, Z as m } from "./ComponentDoc-y1NfPcHG.js";
4
4
  import "react/jsx-runtime";
5
5
  import "react-router-dom";
6
6
  import "antd";