@yuku123/z-team-component 0.2.22 → 0.2.25
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/DebugPlayground-cxffrMgF.js +15 -0
- package/dist/{InvitationManagementPage-C0FUV1TU.js → InvitationManagementPage-BnvfjueJ.js} +2 -2
- package/dist/{OnboardingPage-B030Arpo.js → OnboardingPage-B1uHZfRm.js} +2 -2
- package/dist/{ProjectApp-nq_XicIi.js → ProjectApp-C6GUGbAD.js} +3 -3
- package/dist/SmartWorkbench.module-DzQskKT0.js +85 -0
- package/dist/SystemShell-DSbSJWXv.js +602 -0
- package/dist/{admin-logs-96BMdLm3.js → admin-logs-C2V1ElH9.js} +34 -34
- package/dist/{api-DayyjL1e.js → api--Fg0hL9Y.js} +258 -258
- package/dist/{api-Cilf5gIj.js → api-BwXzkm3f.js} +1 -1
- package/dist/{createWorkspaceWsHandler-Dgpag_y3.js → createWorkspaceWsHandler-CqGqcTh_.js} +27 -27
- package/dist/echarts-B1OU1xr4.js +16 -0
- package/dist/{index-CW8ICCZX.js → index-3AXvDKQz.js} +3 -3
- package/dist/{index-BuGgpiDq.js → index-8V37FP9c.js} +4 -4
- package/dist/{index-gqKmHnTZ.js → index-B3ikipDf.js} +4 -4
- package/dist/{index-Cnw06MGB.js → index-BMRIUhOL.js} +3 -3
- package/dist/index-BaCiSbPR.js +956 -0
- package/dist/index-Bsh58cwF.js +975 -0
- package/dist/index-C01UUprh.js +41705 -0
- package/dist/index-C0EIMJI2.js +112 -0
- package/dist/{index-BX-3TBsz.js → index-CGDpGIZC.js} +6 -6
- package/dist/index-CUVdeb8y.js +638 -0
- package/dist/{index-DN6iuI7S.js → index-CkH1OY5_.js} +1616 -22092
- package/dist/{index-sGtg7MFg.js → index-D5u3BjCZ.js} +2 -2
- package/dist/{index-pJERGpTh.js → index-DK_aR-Vu.js} +5 -4
- package/dist/index-DPnfP7Cb.js +6879 -0
- package/dist/index-DkcpD37-.js +1171 -0
- package/dist/index-DvIHX7lZ.js +1657 -0
- package/dist/{index-Drj0OTv1.js → index-Jrz1Ho0h.js} +165 -163
- package/dist/{index-DHGvzWWQ.js → index-bbwTcNjB.js} +7 -7
- package/dist/index-hPzswwk2.js +5900 -0
- package/dist/index-mv7nvapp.js +1327 -0
- package/dist/index-pfzY68PH.js +1408 -0
- package/dist/index.js +1 -1
- package/dist/index.module-CAa-2T7m.js +72 -0
- package/dist/index.module-UI0iz8K0.js +42 -0
- package/dist/{instance-CNHJqTd1.js → instance-1QEDBRqA.js} +12 -12
- package/dist/pages.js +1 -1
- package/dist/schedule-C89oiqIR.js +239 -0
- package/dist/{send-default-agent-team-message-CRRwpv0q.js → send-default-agent-team-message-CxkWi3XC.js} +1 -1
- package/dist/{sso-user-D0JzsJeR.js → sso-user-BE1Ell5F.js} +1 -1
- package/dist/training-o-vSBkqP.js +450 -0
- package/dist/{useAppStore-BYXwTjW-.js → useAppStore-wgWaxcyc.js} +24 -24
- package/dist/webide-BxD6cYe-.js +8084 -0
- package/dist/z-team-component.css +2 -2
- package/package.json +1 -1
- package/dist/index-DvXzJh2b.js +0 -51507
|
@@ -1,26 +1,28 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n, Fragment as Ie } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { RightOutlined as ts, PlusOutlined as cn, LeftOutlined as
|
|
4
|
-
import { createElement as
|
|
5
|
-
import { createPortal as
|
|
6
|
-
import { a as Yt, f as Qt, B as Xt,
|
|
7
|
-
import {
|
|
8
|
-
import { u as Ye, s as mn } from "./useAppStore-
|
|
9
|
-
import { s as
|
|
2
|
+
import { f as Zs, u as el, a as tl, b as nl, s as al, S as Qa, T as Xa, P as Za, c as es } from "./webide-BxD6cYe-.js";
|
|
3
|
+
import { RightOutlined as ts, PlusOutlined as cn, LeftOutlined as sl, CheckOutlined as ea, LoadingOutlined as ra, EditOutlined as Cn, DeleteOutlined as fn, UpOutlined as ca, RedoOutlined as ns, DownOutlined as ll, StopOutlined as as, CopyOutlined as ol, ArrowLeftOutlined as tn, BellOutlined as il, CloseOutlined as da, SaveOutlined as rl, ProfileOutlined as cl, MessageOutlined as ta, SettingOutlined as ss, FolderOpenOutlined as on, ThunderboltOutlined as na, ClockCircleOutlined as Un, FolderOutlined as dl, FileTextOutlined as An, CommentOutlined as ul, SyncOutlined as ml, CheckCircleOutlined as Jt, PercentageOutlined as hl, FilePptOutlined as pl, ScheduleOutlined as _l, FileImageOutlined as gl, MinusOutlined as fl, ArrowUpOutlined as yl, ArrowDownOutlined as vl, CodeOutlined as ls, Html5Outlined as ua, OrderedListOutlined as ma, LockOutlined as wn, LinkOutlined as Sn, SnippetsOutlined as os, SafetyCertificateOutlined as ha, KeyOutlined as bl, DiffOutlined as Nl, FontSizeOutlined as kl, ScissorOutlined as Cl, ReloadOutlined as yn, CalendarOutlined as pa, BgColorsOutlined as wl, QrcodeOutlined as Sl, ApiOutlined as Tl, SendOutlined as Il, MoreOutlined as xl, FileSearchOutlined as is, PlayCircleOutlined as Gt, FileDoneOutlined as Wn, CloseCircleOutlined as Al, GiftOutlined as rs, CheckCircleFilled as Bl, GoldOutlined as cs, EyeOutlined as Ll, CrownOutlined as Ml, DesktopOutlined as $l, DashboardOutlined as aa, MenuUnfoldOutlined as Rl, MenuFoldOutlined as Dl, TeamOutlined as El, BarChartOutlined as ds, PieChartOutlined as us, UnorderedListOutlined as ms, ReadOutlined as hs, ConsoleSqlOutlined as ps } from "@ant-design/icons";
|
|
4
|
+
import { createElement as Pl, useState as o, useRef as Ae, useMemo as Le, useEffect as oe, useCallback as F, Fragment as Ol } from "react";
|
|
5
|
+
import { createPortal as Hl } from "react-dom";
|
|
6
|
+
import { a as Yt, f as Qt, B as Xt, u as Zt, at as jl, au as qn, k as yt, av as Fl, t as _s, aw as Gl, ax as zl, ay as Ul, J as Wl, az as gs, aA as ql, aB as Kl, q as Vl, aC as Jl, al as Yl, T as Ql, an as fs, aD as Xl, aE as ys, aF as Zl, aG as eo, aH as to, aI as no, aJ as vs, aK as ao } from "./api--Fg0hL9Y.js";
|
|
7
|
+
import { m as bs, n as $n, o as so, p as lo, r as oo, s as io, q as ro, v as Ns, w as _a, x as ks, y as co, z as Cs, A as Kn, B as uo, C as mo, D as ho } from "./index-DPnfP7Cb.js";
|
|
8
|
+
import { u as Ye, s as mn } from "./useAppStore-wgWaxcyc.js";
|
|
9
|
+
import { s as po } from "./admin-logs-C2V1ElH9.js";
|
|
10
|
+
import { h as Tn, b as _o, f as go, s as fo, c as yo, d as vo, u as bo, e as No, t as ko, r as Co, m as wo, a as So } from "./schedule-C89oiqIR.js";
|
|
10
11
|
import Bn from "react-markdown";
|
|
11
|
-
import
|
|
12
|
+
import ws from "rehype-highlight";
|
|
12
13
|
import Ln from "remark-gfm";
|
|
13
|
-
import { T as
|
|
14
|
-
import { message as we, Spin as Dt, Input as He, Switch as hn, Select as qt, InputNumber as
|
|
14
|
+
import { T as To, z as Io, A as xo, D as Ao } from "./createWorkspaceWsHandler-CqGqcTh_.js";
|
|
15
|
+
import { message as we, Spin as Dt, Input as He, Switch as hn, Select as qt, InputNumber as Bo, Tabs as Lo, Card as Mo, Tag as ge, Table as $o, DatePicker as Ro, Segmented as Do, Empty as vt, Modal as jt, Button as se, Space as et, Typography as Eo, Radio as Ft, Row as Mt, Col as nt, List as ga, Statistic as Po, Tooltip as rn, Form as pn, Progress as dn } from "antd";
|
|
15
16
|
import ln from "dayjs";
|
|
16
17
|
import * as In from "echarts/core";
|
|
17
|
-
import { BarChart as
|
|
18
|
-
import { GridComponent as
|
|
19
|
-
import { CanvasRenderer as
|
|
20
|
-
import {
|
|
21
|
-
import { diffLines as
|
|
22
|
-
import
|
|
23
|
-
import { format as
|
|
18
|
+
import { BarChart as Oo, LineChart as Ho, PieChart as jo } from "echarts/charts";
|
|
19
|
+
import { GridComponent as Fo, LegendComponent as Go, TitleComponent as zo, TooltipComponent as Uo } from "echarts/components";
|
|
20
|
+
import { CanvasRenderer as Wo } from "echarts/renderers";
|
|
21
|
+
import { c as qo } from "./instance-1QEDBRqA.js";
|
|
22
|
+
import { diffLines as Ko } from "diff";
|
|
23
|
+
import Vo, { DiffMethod as Jo } from "react-diff-viewer-continued";
|
|
24
|
+
import { format as Yo } from "sql-formatter";
|
|
25
|
+
import { V as Ss, W as Qo, k as Xo, h as Zo, X as Ts, Y as ei, Z as ti, _ as fa, $ as ni, a0 as ai, a1 as Is, a2 as si, a3 as li, a4 as oi, a5 as ii, a6 as ri, a7 as ci } from "./training-o-vSBkqP.js";
|
|
24
26
|
async function di(t = {}, s = "") {
|
|
25
27
|
const a = new URLSearchParams();
|
|
26
28
|
t.keyword && a.set("keyword", t.keyword), t.category && a.set("category", t.category), t.status !== void 0 && a.set("status", String(t.status)), s && a.set("token", s);
|
|
@@ -54,7 +56,7 @@ function xs(t, s) {
|
|
|
54
56
|
if (!t)
|
|
55
57
|
return hi.includes(s);
|
|
56
58
|
const a = mi[s];
|
|
57
|
-
return a ?
|
|
59
|
+
return a ? Tn(t, a) : !0;
|
|
58
60
|
}
|
|
59
61
|
function Pe(t) {
|
|
60
62
|
function s({ className: a, spin: l, style: i, ...c }) {
|
|
@@ -80,7 +82,7 @@ function Pe(t) {
|
|
|
80
82
|
},
|
|
81
83
|
...c,
|
|
82
84
|
children: t.map(
|
|
83
|
-
([h, r], u) =>
|
|
85
|
+
([h, r], u) => Pl(h, { ...r, key: u })
|
|
84
86
|
)
|
|
85
87
|
}
|
|
86
88
|
);
|
|
@@ -499,7 +501,7 @@ function Zr({ text: t }) {
|
|
|
499
501
|
Bn,
|
|
500
502
|
{
|
|
501
503
|
remarkPlugins: [Ln],
|
|
502
|
-
rehypePlugins: [
|
|
504
|
+
rehypePlugins: [ws],
|
|
503
505
|
components: {
|
|
504
506
|
pre: (s) => /* @__PURE__ */ e(Xr, { children: s.children })
|
|
505
507
|
},
|
|
@@ -550,7 +552,7 @@ function Yn({
|
|
|
550
552
|
},
|
|
551
553
|
title: a,
|
|
552
554
|
"aria-label": a,
|
|
553
|
-
children: l ? /* @__PURE__ */ e(ea, {}) : /* @__PURE__ */ e(
|
|
555
|
+
children: l ? /* @__PURE__ */ e(ea, {}) : /* @__PURE__ */ e(ol, {})
|
|
554
556
|
}
|
|
555
557
|
);
|
|
556
558
|
}
|
|
@@ -653,7 +655,7 @@ function Ds({
|
|
|
653
655
|
return;
|
|
654
656
|
}
|
|
655
657
|
let U = !1;
|
|
656
|
-
return K(!0),
|
|
658
|
+
return K(!0), so(O).then((Te) => {
|
|
657
659
|
U || W(ba(Te.messages));
|
|
658
660
|
}).catch(() => {
|
|
659
661
|
U || W([]);
|
|
@@ -695,7 +697,7 @@ function Ds({
|
|
|
695
697
|
const f = g, te = M.trim();
|
|
696
698
|
if (b(null), !(!f || !te))
|
|
697
699
|
try {
|
|
698
|
-
await
|
|
700
|
+
await oo(f, te), u(
|
|
699
701
|
(U) => U.map((Te) => Te.id === f ? { ...Te, title: te } : Te)
|
|
700
702
|
);
|
|
701
703
|
} catch {
|
|
@@ -704,7 +706,7 @@ function Ds({
|
|
|
704
706
|
if (window.confirm("确定删除此会话吗?")) {
|
|
705
707
|
v.current && ot.current === f && Je();
|
|
706
708
|
try {
|
|
707
|
-
await
|
|
709
|
+
await jl(f), u((te) => te.filter((U) => U.id !== f)), O === f && (ne(null), W([]));
|
|
708
710
|
} catch {
|
|
709
711
|
}
|
|
710
712
|
}
|
|
@@ -763,7 +765,7 @@ function Ds({
|
|
|
763
765
|
), Je = F(() => {
|
|
764
766
|
var ce;
|
|
765
767
|
const f = ot.current;
|
|
766
|
-
ot.current = null, (ce = Se.current) == null || ce.abort(), Se.current = null, N(!1), f &&
|
|
768
|
+
ot.current = null, (ce = Se.current) == null || ce.abort(), Se.current = null, N(!1), f && lo(f).catch(() => {
|
|
767
769
|
});
|
|
768
770
|
const te = Oe.current;
|
|
769
771
|
Oe.current = null;
|
|
@@ -809,7 +811,7 @@ function Ds({
|
|
|
809
811
|
return Oe.current = { sid: U, messages: re }, re;
|
|
810
812
|
}), N(!0), ot.current = U, Ke.current = !0;
|
|
811
813
|
const _ = new AbortController();
|
|
812
|
-
Se.current = _, await
|
|
814
|
+
Se.current = _, await io(
|
|
813
815
|
U,
|
|
814
816
|
f,
|
|
815
817
|
{
|
|
@@ -866,7 +868,7 @@ function Ds({
|
|
|
866
868
|
}, qe = async (f, te) => {
|
|
867
869
|
if (O)
|
|
868
870
|
try {
|
|
869
|
-
const { session: U, previousId: Te } = await
|
|
871
|
+
const { session: U, previousId: Te } = await ro(
|
|
870
872
|
O,
|
|
871
873
|
f
|
|
872
874
|
);
|
|
@@ -938,7 +940,7 @@ function Ds({
|
|
|
938
940
|
if (ce.type === "thinking")
|
|
939
941
|
Te.push(
|
|
940
942
|
/* @__PURE__ */ e(
|
|
941
|
-
|
|
943
|
+
To,
|
|
942
944
|
{
|
|
943
945
|
text: ce.text,
|
|
944
946
|
streaming: !!f.streaming,
|
|
@@ -952,7 +954,7 @@ function Ds({
|
|
|
952
954
|
const _ = ce.id ? te.get(ce.id) : void 0, P = ce._t0 != null && (_ == null ? void 0 : _._t1) != null ? Math.max(1, _._t1 - ce._t0) : ce.durationMs;
|
|
953
955
|
Te.push(
|
|
954
956
|
/* @__PURE__ */ e(
|
|
955
|
-
|
|
957
|
+
Io,
|
|
956
958
|
{
|
|
957
959
|
call: ce,
|
|
958
960
|
result: _,
|
|
@@ -1010,7 +1012,7 @@ function Ds({
|
|
|
1010
1012
|
className: J.sessionBtnSm,
|
|
1011
1013
|
onClick: () => rt(!0),
|
|
1012
1014
|
title: "收起会话列表",
|
|
1013
|
-
children: /* @__PURE__ */ e(
|
|
1015
|
+
children: /* @__PURE__ */ e(sl, {})
|
|
1014
1016
|
}
|
|
1015
1017
|
)
|
|
1016
1018
|
] })
|
|
@@ -1131,7 +1133,7 @@ function Ds({
|
|
|
1131
1133
|
te.stopPropagation(), Nt(f);
|
|
1132
1134
|
},
|
|
1133
1135
|
title: "重命名会话",
|
|
1134
|
-
children: /* @__PURE__ */ e(
|
|
1136
|
+
children: /* @__PURE__ */ e(Cn, {})
|
|
1135
1137
|
}
|
|
1136
1138
|
),
|
|
1137
1139
|
/* @__PURE__ */ e(
|
|
@@ -1224,7 +1226,7 @@ function Ds({
|
|
|
1224
1226
|
title: "编辑重发(其后内容将被截断)",
|
|
1225
1227
|
"aria-label": "编辑重发",
|
|
1226
1228
|
onClick: () => st(te, an(f.blocks)),
|
|
1227
|
-
children: /* @__PURE__ */ e(
|
|
1229
|
+
children: /* @__PURE__ */ e(Cn, {})
|
|
1228
1230
|
}
|
|
1229
1231
|
),
|
|
1230
1232
|
/* @__PURE__ */ e(
|
|
@@ -1297,7 +1299,7 @@ function Ds({
|
|
|
1297
1299
|
onClick: Tt,
|
|
1298
1300
|
title: "回到最新消息",
|
|
1299
1301
|
"aria-label": "回到最新消息",
|
|
1300
|
-
children: /* @__PURE__ */ e(
|
|
1302
|
+
children: /* @__PURE__ */ e(ll, {})
|
|
1301
1303
|
}
|
|
1302
1304
|
),
|
|
1303
1305
|
/* @__PURE__ */ n("div", { className: J.composerWrap, children: [
|
|
@@ -1562,14 +1564,14 @@ function Vd({
|
|
|
1562
1564
|
const i = Ye((S) => S.token), [c, h] = o([]), [r, u] = o(null), [m, d] = o("empty"), [g, b] = o(!1), [M, x] = o(""), [I, D] = o(""), [O, ne] = o(""), [ae, W] = o(""), [A, H] = o(""), [Y, k] = o(!1), [v, $] = o(""), [ue, fe] = o([]), [y, V] = o(!1), [q, me] = o(!1), w = Ae(null), [N, de] = o([]), [K, pe] = o(1), [Ne, xe] = o(0), [Be, Ce] = o(0), [Re, Ge] = o(!1), [Ue, lt] = o(!1), [rt, We] = o([]), [Qe, at] = o(0), [B, he] = o(!1), [je, L] = o(null), [_e, Se] = o([]), [ot, Ke] = o(!1), ct = F(async () => {
|
|
1563
1565
|
b(!0);
|
|
1564
1566
|
try {
|
|
1565
|
-
const S = await
|
|
1567
|
+
const S = await _o(t.id, i);
|
|
1566
1568
|
h(S);
|
|
1567
1569
|
} catch {
|
|
1568
1570
|
}
|
|
1569
1571
|
b(!1);
|
|
1570
1572
|
}, [t.id, i]), Oe = F(async () => {
|
|
1571
1573
|
try {
|
|
1572
|
-
const S = await
|
|
1574
|
+
const S = await go(i, 50);
|
|
1573
1575
|
We(S.items), at(S.unread);
|
|
1574
1576
|
} catch {
|
|
1575
1577
|
}
|
|
@@ -1598,7 +1600,7 @@ function Vd({
|
|
|
1598
1600
|
}
|
|
1599
1601
|
V(!0), me(!0), w.current = setTimeout(async () => {
|
|
1600
1602
|
try {
|
|
1601
|
-
const Q = await
|
|
1603
|
+
const Q = await fo(t.id, S, i);
|
|
1602
1604
|
fe(Q.slice(0, 20));
|
|
1603
1605
|
} catch {
|
|
1604
1606
|
fe([]);
|
|
@@ -1615,7 +1617,7 @@ function Vd({
|
|
|
1615
1617
|
async (S, Q) => {
|
|
1616
1618
|
Ge(!0);
|
|
1617
1619
|
try {
|
|
1618
|
-
const ye = await
|
|
1620
|
+
const ye = await yo(
|
|
1619
1621
|
t.id,
|
|
1620
1622
|
S,
|
|
1621
1623
|
Q,
|
|
@@ -1640,7 +1642,7 @@ function Vd({
|
|
|
1640
1642
|
if (!(!M.trim() || !I.trim() || !O.trim())) {
|
|
1641
1643
|
k(!0);
|
|
1642
1644
|
try {
|
|
1643
|
-
await
|
|
1645
|
+
await vo(
|
|
1644
1646
|
t.id,
|
|
1645
1647
|
M,
|
|
1646
1648
|
I,
|
|
@@ -1657,7 +1659,7 @@ function Vd({
|
|
|
1657
1659
|
if (r) {
|
|
1658
1660
|
k(!0);
|
|
1659
1661
|
try {
|
|
1660
|
-
await
|
|
1662
|
+
await bo(
|
|
1661
1663
|
t.id,
|
|
1662
1664
|
r,
|
|
1663
1665
|
{
|
|
@@ -1676,31 +1678,31 @@ function Vd({
|
|
|
1676
1678
|
}, Rt = async () => {
|
|
1677
1679
|
if (r && confirm("确定删除此定时任务?"))
|
|
1678
1680
|
try {
|
|
1679
|
-
await
|
|
1681
|
+
await No(t.id, r, i), await ct(), d("empty"), u(null);
|
|
1680
1682
|
} catch {
|
|
1681
1683
|
}
|
|
1682
1684
|
}, ht = async (S) => {
|
|
1683
1685
|
try {
|
|
1684
|
-
await
|
|
1686
|
+
await ko(t.id, S.id, S.enabled !== 1, i), await ct();
|
|
1685
1687
|
} catch {
|
|
1686
1688
|
}
|
|
1687
1689
|
}, xt = async () => {
|
|
1688
1690
|
if (r) {
|
|
1689
1691
|
lt(!0);
|
|
1690
1692
|
try {
|
|
1691
|
-
await
|
|
1693
|
+
await Co(t.id, r, i), await mt(r, 1);
|
|
1692
1694
|
} catch {
|
|
1693
1695
|
}
|
|
1694
1696
|
lt(!1);
|
|
1695
1697
|
}
|
|
1696
1698
|
}, Lt = async (S) => {
|
|
1697
1699
|
try {
|
|
1698
|
-
await
|
|
1700
|
+
await wo(S, i), await Oe();
|
|
1699
1701
|
} catch {
|
|
1700
1702
|
}
|
|
1701
1703
|
}, Je = async () => {
|
|
1702
1704
|
try {
|
|
1703
|
-
await
|
|
1705
|
+
await So(i), await Oe();
|
|
1704
1706
|
} catch {
|
|
1705
1707
|
}
|
|
1706
1708
|
}, Ee = c.find((S) => yt(S.id, r)), qe = /* @__PURE__ */ n("div", { className: T.staffDropdown, children: [
|
|
@@ -1782,7 +1784,7 @@ function Vd({
|
|
|
1782
1784
|
},
|
|
1783
1785
|
title: "触达通知",
|
|
1784
1786
|
children: [
|
|
1785
|
-
/* @__PURE__ */ e(
|
|
1787
|
+
/* @__PURE__ */ e(il, {}),
|
|
1786
1788
|
Qe > 0 && /* @__PURE__ */ e("span", { className: T.bellBadge, children: Qe > 99 ? "99+" : Qe })
|
|
1787
1789
|
]
|
|
1788
1790
|
}
|
|
@@ -2285,8 +2287,8 @@ function Es({
|
|
|
2285
2287
|
h(!0);
|
|
2286
2288
|
try {
|
|
2287
2289
|
const [ke, it] = await Promise.all([
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
+
Zs(t.agentCode, i),
|
|
2291
|
+
Fl(i)
|
|
2290
2292
|
]);
|
|
2291
2293
|
if (Q) return;
|
|
2292
2294
|
const Xe = ke._agenthub_raw ?? {};
|
|
@@ -2339,7 +2341,7 @@ function Es({
|
|
|
2339
2341
|
}
|
|
2340
2342
|
u(!0);
|
|
2341
2343
|
try {
|
|
2342
|
-
await
|
|
2344
|
+
await el(g, It(), i), we.success("配置已保存");
|
|
2343
2345
|
} catch (Q) {
|
|
2344
2346
|
we.error((Q == null ? void 0 : Q.userMessage) ?? "保存失败");
|
|
2345
2347
|
} finally {
|
|
@@ -2374,7 +2376,7 @@ function Es({
|
|
|
2374
2376
|
}, xt = async (Q) => {
|
|
2375
2377
|
Qe(Q), _e(!0);
|
|
2376
2378
|
try {
|
|
2377
|
-
const ye = await
|
|
2379
|
+
const ye = await co(
|
|
2378
2380
|
t.id,
|
|
2379
2381
|
Q,
|
|
2380
2382
|
i
|
|
@@ -2407,7 +2409,7 @@ function Es({
|
|
|
2407
2409
|
ke.is_dir ? ht(ke.path) : xt(ke.path);
|
|
2408
2410
|
},
|
|
2409
2411
|
children: ke.is_dir ? /* @__PURE__ */ n(Ie, { children: [
|
|
2410
|
-
it ? /* @__PURE__ */ e(on, { className: X.fileTreeIcon }) : /* @__PURE__ */ e(
|
|
2412
|
+
it ? /* @__PURE__ */ e(on, { className: X.fileTreeIcon }) : /* @__PURE__ */ e(dl, { className: X.fileTreeIcon }),
|
|
2411
2413
|
/* @__PURE__ */ e("span", { className: X.fileTreeName, children: ke.name })
|
|
2412
2414
|
] }) : /* @__PURE__ */ n(Ie, { children: [
|
|
2413
2415
|
/* @__PURE__ */ e(An, { className: X.fileTreeIcon }),
|
|
@@ -2484,7 +2486,7 @@ function Es({
|
|
|
2484
2486
|
disabled: r,
|
|
2485
2487
|
onClick: () => void Nt(),
|
|
2486
2488
|
children: [
|
|
2487
|
-
/* @__PURE__ */ e(
|
|
2489
|
+
/* @__PURE__ */ e(rl, {}),
|
|
2488
2490
|
" ",
|
|
2489
2491
|
r ? "保存中..." : "保存"
|
|
2490
2492
|
]
|
|
@@ -2499,7 +2501,7 @@ function Es({
|
|
|
2499
2501
|
className: `${X.tab} ${m === "basic" ? X.tabActive : ""}`,
|
|
2500
2502
|
onClick: () => d("basic"),
|
|
2501
2503
|
children: [
|
|
2502
|
-
/* @__PURE__ */ e(
|
|
2504
|
+
/* @__PURE__ */ e(cl, {}),
|
|
2503
2505
|
" 基础"
|
|
2504
2506
|
]
|
|
2505
2507
|
}
|
|
@@ -2710,7 +2712,7 @@ function Es({
|
|
|
2710
2712
|
st(
|
|
2711
2713
|
"Temperature",
|
|
2712
2714
|
/* @__PURE__ */ e(
|
|
2713
|
-
|
|
2715
|
+
Bo,
|
|
2714
2716
|
{
|
|
2715
2717
|
value: q,
|
|
2716
2718
|
onChange: (Q) => me(Q ?? void 0),
|
|
@@ -2933,10 +2935,10 @@ function vn(t) {
|
|
|
2933
2935
|
return t ? t.charAt(0).toUpperCase() : "?";
|
|
2934
2936
|
}
|
|
2935
2937
|
function nh({ content: t }) {
|
|
2936
|
-
const s =
|
|
2938
|
+
const s = Ao(t);
|
|
2937
2939
|
return /* @__PURE__ */ e(Ie, { children: s.map((a, l) => a.type === "reasoning" ? /* @__PURE__ */ n("details", { className: G.reasoningBlock, children: [
|
|
2938
2940
|
/* @__PURE__ */ n("summary", { className: G.reasoningSummary, children: [
|
|
2939
|
-
/* @__PURE__ */ e(
|
|
2941
|
+
/* @__PURE__ */ e(ul, { style: { marginRight: 4 } }),
|
|
2940
2942
|
a.name || "思考过程"
|
|
2941
2943
|
] }),
|
|
2942
2944
|
/* @__PURE__ */ e("div", { className: G.reasoningContent, children: a.text })
|
|
@@ -2944,7 +2946,7 @@ function nh({ content: t }) {
|
|
|
2944
2946
|
Bn,
|
|
2945
2947
|
{
|
|
2946
2948
|
remarkPlugins: [Ln],
|
|
2947
|
-
rehypePlugins: [
|
|
2949
|
+
rehypePlugins: [ws],
|
|
2948
2950
|
children: a.text
|
|
2949
2951
|
},
|
|
2950
2952
|
l
|
|
@@ -2974,9 +2976,9 @@ function Ps({
|
|
|
2974
2976
|
() => localStorage.getItem("ft_personal_llm_code") || ""
|
|
2975
2977
|
), [gt, wt] = o(!1), [ft, mt] = o(!1), Bt = Ae(null), Tt = Ae(null);
|
|
2976
2978
|
oe(() => {
|
|
2977
|
-
i &&
|
|
2979
|
+
i && Gl(r).then((p) => ot(p || [])).catch(console.error);
|
|
2978
2980
|
}, [i, r]), oe(() => {
|
|
2979
|
-
i &&
|
|
2981
|
+
i && zl(r).then((p) => ct(p || [])).catch(console.error);
|
|
2980
2982
|
}, [i, gt, r]), oe(() => {
|
|
2981
2983
|
if (!gt && !ft) return;
|
|
2982
2984
|
const p = (z) => {
|
|
@@ -2993,7 +2995,7 @@ function Ps({
|
|
|
2993
2995
|
return;
|
|
2994
2996
|
}
|
|
2995
2997
|
try {
|
|
2996
|
-
const p = await
|
|
2998
|
+
const p = await Ul(t.id, r);
|
|
2997
2999
|
if (d(p.sessions || []), K(p.isOwner || !1), Ne(p.userMeta || {}), p.sessions && p.sessions.length > 0 && !g) {
|
|
2998
3000
|
const z = a != null && p.sessions.some((Z) => Z.id === a) ? a : p.sessions[0].id;
|
|
2999
3001
|
b(z);
|
|
@@ -3066,7 +3068,7 @@ function Ps({
|
|
|
3066
3068
|
return;
|
|
3067
3069
|
}
|
|
3068
3070
|
try {
|
|
3069
|
-
const z = await
|
|
3071
|
+
const z = await ql(
|
|
3070
3072
|
t.id,
|
|
3071
3073
|
v,
|
|
3072
3074
|
p,
|
|
@@ -3080,7 +3082,7 @@ function Ps({
|
|
|
3080
3082
|
}, S = async (p) => {
|
|
3081
3083
|
if (t && window.confirm("确定删除此会话吗?"))
|
|
3082
3084
|
try {
|
|
3083
|
-
await
|
|
3085
|
+
await Kl(t.id, p, r), d((z) => z.filter((Z) => !yt(Z.id, p))), yt(g, p) && (b(null), x([]));
|
|
3084
3086
|
} catch {
|
|
3085
3087
|
}
|
|
3086
3088
|
}, Q = F(
|
|
@@ -3126,7 +3128,7 @@ function Ps({
|
|
|
3126
3128
|
if (Ce.length > 0) {
|
|
3127
3129
|
Ue(!0);
|
|
3128
3130
|
try {
|
|
3129
|
-
Z = await
|
|
3131
|
+
Z = await Vl(Ce);
|
|
3130
3132
|
} catch (tt) {
|
|
3131
3133
|
console.error("图片上传失败", tt), mn("图片上传失败,请重试", "error"), Ue(!1);
|
|
3132
3134
|
return;
|
|
@@ -3150,7 +3152,7 @@ ${tt}` : tt;
|
|
|
3150
3152
|
role: "assistant",
|
|
3151
3153
|
content: ""
|
|
3152
3154
|
};
|
|
3153
|
-
x((tt) => [...tt, ze, dt]), D(""), Re([]), ne(!0), he.current = !0, await
|
|
3155
|
+
x((tt) => [...tt, ze, dt]), D(""), Re([]), ne(!0), he.current = !0, await Jl(
|
|
3154
3156
|
t.id,
|
|
3155
3157
|
g,
|
|
3156
3158
|
ie,
|
|
@@ -3917,7 +3919,7 @@ ${tt}` : tt;
|
|
|
3917
3919
|
"success"
|
|
3918
3920
|
);
|
|
3919
3921
|
} catch (p) {
|
|
3920
|
-
console.error("导出聊天记录失败", p),
|
|
3922
|
+
console.error("导出聊天记录失败", p), Wl(p) || mn("导出失败,请重试", "error");
|
|
3921
3923
|
}
|
|
3922
3924
|
},
|
|
3923
3925
|
children: [
|
|
@@ -3952,7 +3954,7 @@ ${tt}` : tt;
|
|
|
3952
3954
|
if (t) {
|
|
3953
3955
|
rt(!0);
|
|
3954
3956
|
try {
|
|
3955
|
-
const p = await
|
|
3957
|
+
const p = await xo();
|
|
3956
3958
|
mn(
|
|
3957
3959
|
`学习完成:提取 ${p.totalCount} 条,通过 ${p.passedCount} 条`,
|
|
3958
3960
|
"success"
|
|
@@ -4116,14 +4118,14 @@ const ah = "_page_snv35_9", sh = "_pageHeader_snv35_15", lh = "_headerLeft_snv35
|
|
|
4116
4118
|
filterCount: Vh
|
|
4117
4119
|
};
|
|
4118
4120
|
In.use([
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4121
|
+
Oo,
|
|
4122
|
+
Ho,
|
|
4123
|
+
jo,
|
|
4124
|
+
Fo,
|
|
4125
|
+
Go,
|
|
4126
|
+
zo,
|
|
4127
|
+
Uo,
|
|
4128
|
+
Wo
|
|
4127
4129
|
]);
|
|
4128
4130
|
function En({
|
|
4129
4131
|
option: t,
|
|
@@ -4199,7 +4201,7 @@ function xa(t) {
|
|
|
4199
4201
|
const Zh = [
|
|
4200
4202
|
{
|
|
4201
4203
|
key: "ppt-creation",
|
|
4202
|
-
icon: /* @__PURE__ */ e(
|
|
4204
|
+
icon: /* @__PURE__ */ e(pl, {}),
|
|
4203
4205
|
title: "PPT 制作",
|
|
4204
4206
|
description: "PPT 制作:主题/受众/页数 → 大纲生成 → 逐页内容填充 → 风格与可视化建议",
|
|
4205
4207
|
scenarioCode: "ppt_creation",
|
|
@@ -4219,7 +4221,7 @@ const Zh = [
|
|
|
4219
4221
|
},
|
|
4220
4222
|
{
|
|
4221
4223
|
key: "longform-writing",
|
|
4222
|
-
icon: /* @__PURE__ */ e(
|
|
4224
|
+
icon: /* @__PURE__ */ e(Cn, {}),
|
|
4223
4225
|
title: "长文写作",
|
|
4224
4226
|
description: "长文写作:主题/关键词/风格 → 结构化大纲 → Markdown 正文 → 润色与精简",
|
|
4225
4227
|
scenarioCode: "longform_writing",
|
|
@@ -4238,7 +4240,7 @@ const Zh = [
|
|
|
4238
4240
|
},
|
|
4239
4241
|
{
|
|
4240
4242
|
key: "weekly-report",
|
|
4241
|
-
icon: /* @__PURE__ */ e(
|
|
4243
|
+
icon: /* @__PURE__ */ e(_l, {}),
|
|
4242
4244
|
title: "周报月报",
|
|
4243
4245
|
description: "周报/月报:碎片记录/时间段 → 自动汇总 → 模板化输出(本周工作/下周计划/风险对齐)",
|
|
4244
4246
|
scenarioCode: "weekly_report",
|
|
@@ -4259,7 +4261,7 @@ const Zh = [
|
|
|
4259
4261
|
},
|
|
4260
4262
|
{
|
|
4261
4263
|
key: "image-understanding",
|
|
4262
|
-
icon: /* @__PURE__ */ e(
|
|
4264
|
+
icon: /* @__PURE__ */ e(gl, {}),
|
|
4263
4265
|
title: "图片理解",
|
|
4264
4266
|
description: "图片理解:图片 + 问题 → OCR 文本提取 → 图表/表格识别 → 智能问答",
|
|
4265
4267
|
scenarioCode: "image_understanding",
|
|
@@ -4292,7 +4294,7 @@ function ep({
|
|
|
4292
4294
|
u(""), h(!0);
|
|
4293
4295
|
try {
|
|
4294
4296
|
const D = !!t.inputConfig, O = ((x = b.split(`
|
|
4295
|
-
`)[0]) == null ? void 0 : x.trim()) ?? "", ne = O.length > 0 ? O.length > 32 ? `${O.slice(0, 32)}…` : O : `${Date.now()}`, ae = `${t.title}-${ne}`, A = await (await fetch(`${
|
|
4297
|
+
`)[0]) == null ? void 0 : x.trim()) ?? "", ne = O.length > 0 ? O.length > 32 ? `${O.slice(0, 32)}…` : O : `${Date.now()}`, ae = `${t.title}-${ne}`, A = await (await fetch(`${Ql}/scenario-instances/`, {
|
|
4296
4298
|
method: "POST",
|
|
4297
4299
|
credentials: "include",
|
|
4298
4300
|
headers: {
|
|
@@ -4396,7 +4398,7 @@ function Aa({
|
|
|
4396
4398
|
gap: 16
|
|
4397
4399
|
},
|
|
4398
4400
|
children: Zh.map((l) => /* @__PURE__ */ n(
|
|
4399
|
-
|
|
4401
|
+
Mo,
|
|
4400
4402
|
{
|
|
4401
4403
|
hoverable: !0,
|
|
4402
4404
|
onClick: () => a(l),
|
|
@@ -4445,7 +4447,7 @@ function Ba({
|
|
|
4445
4447
|
[]
|
|
4446
4448
|
), v = Ae(null);
|
|
4447
4449
|
oe(() => {
|
|
4448
|
-
|
|
4450
|
+
Yl(a).then((y) => {
|
|
4449
4451
|
const V = Array.isArray(y) ? y : [];
|
|
4450
4452
|
k(V.map((q) => ({ code: q.code, name: q.name })));
|
|
4451
4453
|
}).catch(() => {
|
|
@@ -4460,7 +4462,7 @@ function Ba({
|
|
|
4460
4462
|
}, []), ue = F(async () => {
|
|
4461
4463
|
u(!0);
|
|
4462
4464
|
try {
|
|
4463
|
-
const y = await
|
|
4465
|
+
const y = await qo(
|
|
4464
4466
|
{
|
|
4465
4467
|
scenario_code: M || void 0,
|
|
4466
4468
|
status: I || void 0,
|
|
@@ -4592,7 +4594,7 @@ function Ba({
|
|
|
4592
4594
|
] })
|
|
4593
4595
|
] }),
|
|
4594
4596
|
/* @__PURE__ */ e(
|
|
4595
|
-
|
|
4597
|
+
$o,
|
|
4596
4598
|
{
|
|
4597
4599
|
dataSource: fe,
|
|
4598
4600
|
loading: r,
|
|
@@ -5100,12 +5102,12 @@ function La({
|
|
|
5100
5102
|
const K = w - N;
|
|
5101
5103
|
if (K === 0)
|
|
5102
5104
|
return /* @__PURE__ */ n("span", { className: ve.kpiDeltaFlat, children: [
|
|
5103
|
-
/* @__PURE__ */ e(
|
|
5105
|
+
/* @__PURE__ */ e(fl, {}),
|
|
5104
5106
|
" 与上期持平"
|
|
5105
5107
|
] });
|
|
5106
5108
|
const pe = K > 0;
|
|
5107
5109
|
return /* @__PURE__ */ n("span", { className: pe ? ve.kpiDeltaUp : ve.kpiDeltaDown, children: [
|
|
5108
|
-
pe ? /* @__PURE__ */ e(
|
|
5110
|
+
pe ? /* @__PURE__ */ e(yl, {}) : /* @__PURE__ */ e(vl, {}),
|
|
5109
5111
|
Math.abs(K),
|
|
5110
5112
|
de,
|
|
5111
5113
|
/* @__PURE__ */ e("span", { className: ve.kpiDeltaLabel, children: "较上一周期" })
|
|
@@ -5124,7 +5126,7 @@ function La({
|
|
|
5124
5126
|
{
|
|
5125
5127
|
key: "active",
|
|
5126
5128
|
label: "活跃中",
|
|
5127
|
-
icon: /* @__PURE__ */ e(
|
|
5129
|
+
icon: /* @__PURE__ */ e(ml, {}),
|
|
5128
5130
|
chipClass: ve.chipCyan,
|
|
5129
5131
|
value: H.activeCount,
|
|
5130
5132
|
suffix: "个",
|
|
@@ -5154,7 +5156,7 @@ function La({
|
|
|
5154
5156
|
{
|
|
5155
5157
|
key: "rate",
|
|
5156
5158
|
label: "关单率",
|
|
5157
|
-
icon: /* @__PURE__ */ e(
|
|
5159
|
+
icon: /* @__PURE__ */ e(hl, {}),
|
|
5158
5160
|
chipClass: ve.chipAmber,
|
|
5159
5161
|
value: H.closeRate,
|
|
5160
5162
|
suffix: "%",
|
|
@@ -5202,7 +5204,7 @@ function La({
|
|
|
5202
5204
|
}
|
|
5203
5205
|
),
|
|
5204
5206
|
l === "custom" && /* @__PURE__ */ e(
|
|
5205
|
-
|
|
5207
|
+
Ro.RangePicker,
|
|
5206
5208
|
{
|
|
5207
5209
|
value: c,
|
|
5208
5210
|
allowClear: !1,
|
|
@@ -5211,7 +5213,7 @@ function La({
|
|
|
5211
5213
|
}
|
|
5212
5214
|
),
|
|
5213
5215
|
/* @__PURE__ */ e(
|
|
5214
|
-
|
|
5216
|
+
Do,
|
|
5215
5217
|
{
|
|
5216
5218
|
value: l,
|
|
5217
5219
|
onChange: (w) => A(w),
|
|
@@ -5391,7 +5393,7 @@ function Qn({
|
|
|
5391
5393
|
)
|
|
5392
5394
|
] })
|
|
5393
5395
|
) : /* @__PURE__ */ e(
|
|
5394
|
-
|
|
5396
|
+
Lo,
|
|
5395
5397
|
{
|
|
5396
5398
|
activeKey: m,
|
|
5397
5399
|
onChange: d,
|
|
@@ -5533,7 +5535,7 @@ const tp = "_readOnlyCodeView_ioz80_1", np = "_header_ioz80_10", ap = "_title_io
|
|
|
5533
5535
|
scriptWarn: Zp,
|
|
5534
5536
|
scriptError: e_,
|
|
5535
5537
|
scriptReturn: t_
|
|
5536
|
-
}, { TextArea: Fe } = He, { Text: Et, Title: n_ } =
|
|
5538
|
+
}, { TextArea: Fe } = He, { Text: Et, Title: n_ } = Eo, js = [
|
|
5537
5539
|
{
|
|
5538
5540
|
key: "formatter",
|
|
5539
5541
|
label: "格式化",
|
|
@@ -5571,13 +5573,13 @@ const tp = "_readOnlyCodeView_ioz80_1", np = "_header_ioz80_10", ap = "_title_io
|
|
|
5571
5573
|
{
|
|
5572
5574
|
key: "base64",
|
|
5573
5575
|
label: "Base64",
|
|
5574
|
-
icon: /* @__PURE__ */ e(
|
|
5576
|
+
icon: /* @__PURE__ */ e(wn, {}),
|
|
5575
5577
|
description: "文本 ↔ Base64 / 图片转 URI"
|
|
5576
5578
|
},
|
|
5577
5579
|
{
|
|
5578
5580
|
key: "url",
|
|
5579
5581
|
label: "URL 编解码",
|
|
5580
|
-
icon: /* @__PURE__ */ e(
|
|
5582
|
+
icon: /* @__PURE__ */ e(Sn, {}),
|
|
5581
5583
|
description: "encode / decode + URL 解析"
|
|
5582
5584
|
},
|
|
5583
5585
|
{
|
|
@@ -5601,7 +5603,7 @@ const tp = "_readOnlyCodeView_ioz80_1", np = "_header_ioz80_10", ap = "_title_io
|
|
|
5601
5603
|
{
|
|
5602
5604
|
key: "hash",
|
|
5603
5605
|
label: "哈希生成",
|
|
5604
|
-
icon: /* @__PURE__ */ e(
|
|
5606
|
+
icon: /* @__PURE__ */ e(bl, {}),
|
|
5605
5607
|
description: "MD5 / SHA-1/256/512"
|
|
5606
5608
|
},
|
|
5607
5609
|
{
|
|
@@ -5619,13 +5621,13 @@ const tp = "_readOnlyCodeView_ioz80_1", np = "_header_ioz80_10", ap = "_title_io
|
|
|
5619
5621
|
{
|
|
5620
5622
|
key: "diff",
|
|
5621
5623
|
label: "文本对比",
|
|
5622
|
-
icon: /* @__PURE__ */ e(
|
|
5624
|
+
icon: /* @__PURE__ */ e(Nl, {}),
|
|
5623
5625
|
description: "逐行 diff 高亮差异"
|
|
5624
5626
|
},
|
|
5625
5627
|
{
|
|
5626
5628
|
key: "case",
|
|
5627
5629
|
label: "大小写转换",
|
|
5628
|
-
icon: /* @__PURE__ */ e(
|
|
5630
|
+
icon: /* @__PURE__ */ e(kl, {}),
|
|
5629
5631
|
description: "camel / snake / kebab / UPPER"
|
|
5630
5632
|
},
|
|
5631
5633
|
{
|
|
@@ -5637,7 +5639,7 @@ const tp = "_readOnlyCodeView_ioz80_1", np = "_header_ioz80_10", ap = "_title_io
|
|
|
5637
5639
|
{
|
|
5638
5640
|
key: "regex",
|
|
5639
5641
|
label: "正则测试",
|
|
5640
|
-
icon: /* @__PURE__ */ e(
|
|
5642
|
+
icon: /* @__PURE__ */ e(Cl, {}),
|
|
5641
5643
|
description: "在线验证正则表达式"
|
|
5642
5644
|
}
|
|
5643
5645
|
]
|
|
@@ -5667,13 +5669,13 @@ const tp = "_readOnlyCodeView_ioz80_1", np = "_header_ioz80_10", ap = "_title_io
|
|
|
5667
5669
|
{
|
|
5668
5670
|
key: "color",
|
|
5669
5671
|
label: "颜色转换",
|
|
5670
|
-
icon: /* @__PURE__ */ e(
|
|
5672
|
+
icon: /* @__PURE__ */ e(wl, {}),
|
|
5671
5673
|
description: "HEX ↔ RGB ↔ HSL + 选色"
|
|
5672
5674
|
},
|
|
5673
5675
|
{
|
|
5674
5676
|
key: "qrcode",
|
|
5675
5677
|
label: "二维码生成",
|
|
5676
|
-
icon: /* @__PURE__ */ e(
|
|
5678
|
+
icon: /* @__PURE__ */ e(Sl, {}),
|
|
5677
5679
|
description: "文本 / URL 生成 QR 码"
|
|
5678
5680
|
}
|
|
5679
5681
|
]
|
|
@@ -5685,7 +5687,7 @@ const tp = "_readOnlyCodeView_ioz80_1", np = "_header_ioz80_10", ap = "_title_io
|
|
|
5685
5687
|
{
|
|
5686
5688
|
key: "http",
|
|
5687
5689
|
label: "HTTP 客户端",
|
|
5688
|
-
icon: /* @__PURE__ */ e(
|
|
5690
|
+
icon: /* @__PURE__ */ e(Tl, {}),
|
|
5689
5691
|
description: "发送请求 / 导入导出 cURL"
|
|
5690
5692
|
},
|
|
5691
5693
|
{
|
|
@@ -5900,7 +5902,7 @@ function a_() {
|
|
|
5900
5902
|
);
|
|
5901
5903
|
}
|
|
5902
5904
|
function s_(t) {
|
|
5903
|
-
return
|
|
5905
|
+
return Yo(t, {
|
|
5904
5906
|
language: "mysql",
|
|
5905
5907
|
// @ts-ignore
|
|
5906
5908
|
tabWidth: 2,
|
|
@@ -6390,7 +6392,7 @@ function p_() {
|
|
|
6390
6392
|
}
|
|
6391
6393
|
function __(t, s) {
|
|
6392
6394
|
if (!t && !s) return { add: 0, remove: 0 };
|
|
6393
|
-
const a =
|
|
6395
|
+
const a = Ko(t, s);
|
|
6394
6396
|
let l = 0, i = 0;
|
|
6395
6397
|
for (const c of a) {
|
|
6396
6398
|
const h = c.value.split(`
|
|
@@ -6467,13 +6469,13 @@ function g_() {
|
|
|
6467
6469
|
] })
|
|
6468
6470
|
] }) }) }),
|
|
6469
6471
|
(t || a) && /* @__PURE__ */ e("div", { className: ee.diffBox, children: /* @__PURE__ */ e(
|
|
6470
|
-
|
|
6472
|
+
Vo,
|
|
6471
6473
|
{
|
|
6472
6474
|
oldValue: t,
|
|
6473
6475
|
newValue: a,
|
|
6474
6476
|
splitView: i,
|
|
6475
6477
|
showDiffOnly: !1,
|
|
6476
|
-
compareMethod:
|
|
6478
|
+
compareMethod: Jo.LINES,
|
|
6477
6479
|
hideLineNumbers: !1,
|
|
6478
6480
|
extraLinesSurroundingDiff: 3,
|
|
6479
6481
|
styles: {
|
|
@@ -6581,7 +6583,7 @@ function N_() {
|
|
|
6581
6583
|
{ title: "英文字母", value: a.english },
|
|
6582
6584
|
{ title: "数字", value: a.numbers }
|
|
6583
6585
|
].map((l) => /* @__PURE__ */ e(nt, { xs: 12, sm: 8, md: 6, children: /* @__PURE__ */ e(
|
|
6584
|
-
|
|
6586
|
+
Po,
|
|
6585
6587
|
{
|
|
6586
6588
|
title: l.title,
|
|
6587
6589
|
value: l.value,
|
|
@@ -6650,12 +6652,12 @@ function k_() {
|
|
|
6650
6652
|
" 处"
|
|
6651
6653
|
] }) }),
|
|
6652
6654
|
/* @__PURE__ */ e(
|
|
6653
|
-
|
|
6655
|
+
ga,
|
|
6654
6656
|
{
|
|
6655
6657
|
bordered: !0,
|
|
6656
6658
|
size: "small",
|
|
6657
6659
|
dataSource: h,
|
|
6658
|
-
renderItem: (g, b) => /* @__PURE__ */ n(
|
|
6660
|
+
renderItem: (g, b) => /* @__PURE__ */ n(ga.Item, { children: [
|
|
6659
6661
|
/* @__PURE__ */ n(Et, { code: !0, children: [
|
|
6660
6662
|
"#",
|
|
6661
6663
|
b + 1
|
|
@@ -7188,7 +7190,7 @@ function $_() {
|
|
|
7188
7190
|
se,
|
|
7189
7191
|
{
|
|
7190
7192
|
type: "primary",
|
|
7191
|
-
icon: /* @__PURE__ */ e(
|
|
7193
|
+
icon: /* @__PURE__ */ e(Il, {}),
|
|
7192
7194
|
loading: d,
|
|
7193
7195
|
onClick: $,
|
|
7194
7196
|
children: "发送"
|
|
@@ -7691,7 +7693,7 @@ function F_({
|
|
|
7691
7693
|
},
|
|
7692
7694
|
children: [
|
|
7693
7695
|
/* @__PURE__ */ n(n_, { level: 5, style: { margin: 0 }, children: [
|
|
7694
|
-
/* @__PURE__ */ e(
|
|
7696
|
+
/* @__PURE__ */ e(Sn, { style: { marginRight: 8 } }),
|
|
7695
7697
|
"常用网站"
|
|
7696
7698
|
] }),
|
|
7697
7699
|
/* @__PURE__ */ e(
|
|
@@ -7728,7 +7730,7 @@ function F_({
|
|
|
7728
7730
|
marginBottom: 4
|
|
7729
7731
|
},
|
|
7730
7732
|
children: [
|
|
7731
|
-
/* @__PURE__ */ e(
|
|
7733
|
+
/* @__PURE__ */ e(Sn, { style: { color: "var(--accent-blue)" } }),
|
|
7732
7734
|
/* @__PURE__ */ e(Et, { strong: !0, ellipsis: !0, style: { flex: 1, maxWidth: 140 }, children: m.name }),
|
|
7733
7735
|
m.category && /* @__PURE__ */ e(ge, { color: "default", children: m.category })
|
|
7734
7736
|
]
|
|
@@ -7741,7 +7743,7 @@ function F_({
|
|
|
7741
7743
|
{
|
|
7742
7744
|
type: "text",
|
|
7743
7745
|
size: "small",
|
|
7744
|
-
icon: /* @__PURE__ */ e(
|
|
7746
|
+
icon: /* @__PURE__ */ e(Cn, {}),
|
|
7745
7747
|
onClick: (d) => {
|
|
7746
7748
|
d.stopPropagation(), l(m);
|
|
7747
7749
|
},
|
|
@@ -7921,7 +7923,7 @@ function Ag({
|
|
|
7921
7923
|
}, [c, t, a]), Ce = F(async () => {
|
|
7922
7924
|
fe(!0);
|
|
7923
7925
|
try {
|
|
7924
|
-
const B = await
|
|
7926
|
+
const B = await Xl(c);
|
|
7925
7927
|
$(B);
|
|
7926
7928
|
} catch {
|
|
7927
7929
|
} finally {
|
|
@@ -7989,7 +7991,7 @@ function Ag({
|
|
|
7989
7991
|
Ne(!0);
|
|
7990
7992
|
try {
|
|
7991
7993
|
const he = B === "hermes" ? "hermes" : "claude-code";
|
|
7992
|
-
await
|
|
7994
|
+
await uo(he, B), we.success(`已引入 ${he},点击列表项即可开始对话`), K(!1), await Re();
|
|
7993
7995
|
} catch (he) {
|
|
7994
7996
|
we.error(
|
|
7995
7997
|
he.message || "创建失败,请检查本地 Agent 是否正常运行"
|
|
@@ -8000,7 +8002,7 @@ function Ag({
|
|
|
8000
8002
|
}, lt = async (B) => {
|
|
8001
8003
|
if (window.confirm("确定删除此 Agent?"))
|
|
8002
8004
|
try {
|
|
8003
|
-
await
|
|
8005
|
+
await mo(B), await Re();
|
|
8004
8006
|
} catch (he) {
|
|
8005
8007
|
we.error(he.message || "删除失败");
|
|
8006
8008
|
}
|
|
@@ -8009,7 +8011,7 @@ function Ag({
|
|
|
8009
8011
|
`确定删除 Agent「${B.displayName}」吗?所有会话记录将一并删除。`
|
|
8010
8012
|
))
|
|
8011
8013
|
try {
|
|
8012
|
-
await
|
|
8014
|
+
await Zl(B.id, c), d((he) => he.filter((je) => je.id !== B.id)), yt(t, B.id) && a(null);
|
|
8013
8015
|
} catch {
|
|
8014
8016
|
}
|
|
8015
8017
|
}, We = async () => {
|
|
@@ -8021,7 +8023,7 @@ function Ag({
|
|
|
8021
8023
|
}
|
|
8022
8024
|
k(!0);
|
|
8023
8025
|
try {
|
|
8024
|
-
const he = await
|
|
8026
|
+
const he = await eo(
|
|
8025
8027
|
A.agent.id,
|
|
8026
8028
|
B,
|
|
8027
8029
|
c
|
|
@@ -8038,7 +8040,7 @@ function Ag({
|
|
|
8038
8040
|
)) {
|
|
8039
8041
|
V(B.id);
|
|
8040
8042
|
try {
|
|
8041
|
-
const je = await
|
|
8043
|
+
const je = await to(
|
|
8042
8044
|
B.id,
|
|
8043
8045
|
!he,
|
|
8044
8046
|
c
|
|
@@ -8275,7 +8277,7 @@ function Ag({
|
|
|
8275
8277
|
});
|
|
8276
8278
|
},
|
|
8277
8279
|
title: "更多操作",
|
|
8278
|
-
children: /* @__PURE__ */ e(
|
|
8280
|
+
children: /* @__PURE__ */ e(xl, { style: { fontSize: 14 } })
|
|
8279
8281
|
}
|
|
8280
8282
|
)
|
|
8281
8283
|
]
|
|
@@ -8562,7 +8564,7 @@ function Cf({
|
|
|
8562
8564
|
{}
|
|
8563
8565
|
);
|
|
8564
8566
|
oe(() => {
|
|
8565
|
-
|
|
8567
|
+
Ss(t, l).then((q) => {
|
|
8566
8568
|
const me = {}, w = [...q].sort(
|
|
8567
8569
|
(N, de) => String(de.submitTime ?? "").localeCompare(String(N.submitTime ?? ""))
|
|
8568
8570
|
);
|
|
@@ -8575,7 +8577,7 @@ function Cf({
|
|
|
8575
8577
|
const H = F(async () => {
|
|
8576
8578
|
r(!0);
|
|
8577
8579
|
try {
|
|
8578
|
-
const q = await
|
|
8580
|
+
const q = await Qo(t, l);
|
|
8579
8581
|
c(q), m((me) => {
|
|
8580
8582
|
var w, N;
|
|
8581
8583
|
return me ?? ((N = (w = q.materials) == null ? void 0 : w[0]) == null ? void 0 : N.materialId) ?? null;
|
|
@@ -8588,10 +8590,10 @@ function Cf({
|
|
|
8588
8590
|
oe(() => {
|
|
8589
8591
|
H();
|
|
8590
8592
|
}, [H]), oe(() => {
|
|
8591
|
-
|
|
8593
|
+
Xo("", "", l).then((q) => I(Object.fromEntries(q.map((me) => [me.id, me])))).catch(() => {
|
|
8592
8594
|
});
|
|
8593
8595
|
}, [l]), oe(() => {
|
|
8594
|
-
u && (M(!0),
|
|
8596
|
+
u && (M(!0), Zo(u, l).then(g).catch(() => g(null)).finally(() => M(!1)));
|
|
8595
8597
|
}, [u, l]);
|
|
8596
8598
|
const Y = (i == null ? void 0 : i.materials) ?? [], k = i != null && i.finalPaperId ? W[i.finalPaperId] ?? null : null, v = Le(
|
|
8597
8599
|
() => Y.find((q) => q.materialId === u) ?? null,
|
|
@@ -8599,7 +8601,7 @@ function Cf({
|
|
|
8599
8601
|
), $ = async () => {
|
|
8600
8602
|
O(!0);
|
|
8601
8603
|
try {
|
|
8602
|
-
await
|
|
8604
|
+
await Ts(t, null, l), we.success("报名成功"), H();
|
|
8603
8605
|
} catch {
|
|
8604
8606
|
} finally {
|
|
8605
8607
|
O(!1);
|
|
@@ -8608,7 +8610,7 @@ function Cf({
|
|
|
8608
8610
|
if (v) {
|
|
8609
8611
|
ae(!0);
|
|
8610
8612
|
try {
|
|
8611
|
-
await
|
|
8613
|
+
await ei(t, v.materialId, l), we.success("已记录学习进度"), H();
|
|
8612
8614
|
} catch {
|
|
8613
8615
|
} finally {
|
|
8614
8616
|
ae(!1);
|
|
@@ -8855,7 +8857,7 @@ function Sf({
|
|
|
8855
8857
|
className: j.viewSub,
|
|
8856
8858
|
style: { textAlign: "center", marginTop: 4 },
|
|
8857
8859
|
children: [
|
|
8858
|
-
/* @__PURE__ */ e(
|
|
8860
|
+
/* @__PURE__ */ e(wn, { style: { marginRight: 4 } }),
|
|
8859
8861
|
a.title,
|
|
8860
8862
|
a.durationSec ? ` · ${Math.ceil(a.durationSec / 60)} 分钟` : ""
|
|
8861
8863
|
]
|
|
@@ -8911,7 +8913,7 @@ function xf({
|
|
|
8911
8913
|
const h = Ye((y) => y.token), [r, u] = o("loading"), [m, d] = o(null), [g, b] = o({}), [M, x] = o(!1), [I, D] = o(null), [O, ne] = o(null), ae = Ae(!1), W = F(async () => {
|
|
8912
8914
|
u("loading"), D(null), b({}), ae.current = !1;
|
|
8913
8915
|
try {
|
|
8914
|
-
const y = await
|
|
8916
|
+
const y = await ti(
|
|
8915
8917
|
t,
|
|
8916
8918
|
s,
|
|
8917
8919
|
a,
|
|
@@ -8925,7 +8927,7 @@ function xf({
|
|
|
8925
8927
|
}, [t, s, a, h, i]);
|
|
8926
8928
|
oe(() => {
|
|
8927
8929
|
if (l) {
|
|
8928
|
-
u("loading"),
|
|
8930
|
+
u("loading"), fa(l, h).then((y) => {
|
|
8929
8931
|
D(y), u("result");
|
|
8930
8932
|
}).catch(() => u("failed"));
|
|
8931
8933
|
return;
|
|
@@ -8937,7 +8939,7 @@ function xf({
|
|
|
8937
8939
|
if (!(!m || M)) {
|
|
8938
8940
|
x(!0);
|
|
8939
8941
|
try {
|
|
8940
|
-
const V = await
|
|
8942
|
+
const V = await ni(
|
|
8941
8943
|
{
|
|
8942
8944
|
paperId: t,
|
|
8943
8945
|
courseId: s ?? null,
|
|
@@ -8949,7 +8951,7 @@ function xf({
|
|
|
8949
8951
|
}))
|
|
8950
8952
|
},
|
|
8951
8953
|
h
|
|
8952
|
-
), q = (y = V.answers) != null && y.length ? V : await
|
|
8954
|
+
), q = (y = V.answers) != null && y.length ? V : await fa(V.examId, h);
|
|
8953
8955
|
D(q), u("result");
|
|
8954
8956
|
} catch {
|
|
8955
8957
|
} finally {
|
|
@@ -9204,7 +9206,7 @@ function Bf({
|
|
|
9204
9206
|
ge,
|
|
9205
9207
|
{
|
|
9206
9208
|
color: "error",
|
|
9207
|
-
icon: /* @__PURE__ */ e(
|
|
9209
|
+
icon: /* @__PURE__ */ e(Al, {}),
|
|
9208
9210
|
style: { marginTop: 10 },
|
|
9209
9211
|
children: "未通过"
|
|
9210
9212
|
}
|
|
@@ -9315,7 +9317,7 @@ function Ef({
|
|
|
9315
9317
|
const l = Ye((A) => A.token), [i, c] = o(null), [h, r] = o(!0), [u, m] = o(!1), d = F(async () => {
|
|
9316
9318
|
r(!0);
|
|
9317
9319
|
try {
|
|
9318
|
-
c(await
|
|
9320
|
+
c(await ai(t, l));
|
|
9319
9321
|
} catch {
|
|
9320
9322
|
} finally {
|
|
9321
9323
|
r(!1);
|
|
@@ -9327,7 +9329,7 @@ function Ef({
|
|
|
9327
9329
|
const g = async () => {
|
|
9328
9330
|
m(!0);
|
|
9329
9331
|
try {
|
|
9330
|
-
await
|
|
9332
|
+
await Is(t, l), we.success("已加入路径,开始学习吧"), d();
|
|
9331
9333
|
} catch {
|
|
9332
9334
|
} finally {
|
|
9333
9335
|
m(!1);
|
|
@@ -9432,7 +9434,7 @@ function Ef({
|
|
|
9432
9434
|
onClick: () => b(H)
|
|
9433
9435
|
},
|
|
9434
9436
|
H.courseId
|
|
9435
|
-
)) }) : /* @__PURE__ */ e("div", { className: j.nodeColumn, children: A.nodes.map((H, Y) => /* @__PURE__ */ n(
|
|
9437
|
+
)) }) : /* @__PURE__ */ e("div", { className: j.nodeColumn, children: A.nodes.map((H, Y) => /* @__PURE__ */ n(Ol, { children: [
|
|
9436
9438
|
Y > 0 && /* @__PURE__ */ e("div", { className: j.nodeLink }),
|
|
9437
9439
|
/* @__PURE__ */ e(
|
|
9438
9440
|
Ha,
|
|
@@ -9468,12 +9470,12 @@ function Ha({
|
|
|
9468
9470
|
onClick: a,
|
|
9469
9471
|
role: "button",
|
|
9470
9472
|
children: [
|
|
9471
|
-
/* @__PURE__ */ e("div", { className: `${j.nodeIndex} ${Rf(l)}`, children: l === "done" ? /* @__PURE__ */ e(
|
|
9473
|
+
/* @__PURE__ */ e("div", { className: `${j.nodeIndex} ${Rf(l)}`, children: l === "done" ? /* @__PURE__ */ e(Bl, {}) : l === "locked" ? /* @__PURE__ */ e(wn, {}) : s }),
|
|
9472
9474
|
/* @__PURE__ */ n("div", { className: j.nodeBody, children: [
|
|
9473
9475
|
/* @__PURE__ */ e("div", { className: j.nodeTitle, children: t.courseTitle }),
|
|
9474
9476
|
/* @__PURE__ */ e("div", { className: j.nodeMeta, children: Df(t) })
|
|
9475
9477
|
] }),
|
|
9476
|
-
l === "doing" ? /* @__PURE__ */ e(Gt, { style: { color: "#2f70f1", fontSize: 18 } }) : l === "done" ? /* @__PURE__ */ e(ge, { color: "success", children: "完成" }) : l === "locked" ? /* @__PURE__ */ e(
|
|
9478
|
+
l === "doing" ? /* @__PURE__ */ e(Gt, { style: { color: "#2f70f1", fontSize: 18 } }) : l === "done" ? /* @__PURE__ */ e(ge, { color: "success", children: "完成" }) : l === "locked" ? /* @__PURE__ */ e(wn, { style: { color: "#bbb" } }) : null
|
|
9477
9479
|
]
|
|
9478
9480
|
}
|
|
9479
9481
|
);
|
|
@@ -9624,7 +9626,7 @@ function Hf({
|
|
|
9624
9626
|
const a = Ye((u) => u.token), [l, i] = o([]), [c, h] = o(!0), r = F(async () => {
|
|
9625
9627
|
h(!0);
|
|
9626
9628
|
try {
|
|
9627
|
-
i(await
|
|
9629
|
+
i(await si(a));
|
|
9628
9630
|
} catch {
|
|
9629
9631
|
} finally {
|
|
9630
9632
|
h(!1);
|
|
@@ -9671,7 +9673,7 @@ function jf({
|
|
|
9671
9673
|
const a = Ye((u) => u.token), [l, i] = o([]), [c, h] = o(!0), r = F(async () => {
|
|
9672
9674
|
h(!0);
|
|
9673
9675
|
try {
|
|
9674
|
-
i(await
|
|
9676
|
+
i(await li(a));
|
|
9675
9677
|
} catch {
|
|
9676
9678
|
} finally {
|
|
9677
9679
|
h(!1);
|
|
@@ -9714,7 +9716,7 @@ function Ff() {
|
|
|
9714
9716
|
const t = Ye((r) => r.token), [s, a] = o([]), [l, i] = o(!0), c = F(async () => {
|
|
9715
9717
|
i(!0);
|
|
9716
9718
|
try {
|
|
9717
|
-
a(await
|
|
9719
|
+
a(await oi(t));
|
|
9718
9720
|
} catch {
|
|
9719
9721
|
} finally {
|
|
9720
9722
|
i(!1);
|
|
@@ -9733,7 +9735,7 @@ function Ff() {
|
|
|
9733
9735
|
);
|
|
9734
9736
|
const h = async (r) => {
|
|
9735
9737
|
try {
|
|
9736
|
-
await
|
|
9738
|
+
await ci(r, t), we.success("已提交兑换申请,等待运营确认发放"), c();
|
|
9737
9739
|
} catch {
|
|
9738
9740
|
}
|
|
9739
9741
|
};
|
|
@@ -9746,7 +9748,7 @@ function Ff() {
|
|
|
9746
9748
|
alt: "",
|
|
9747
9749
|
style: { width: 26, height: 26 }
|
|
9748
9750
|
}
|
|
9749
|
-
) : /* @__PURE__ */ e(
|
|
9751
|
+
) : /* @__PURE__ */ e(Ml, { style: { color: "#d48806", fontSize: 20 } }),
|
|
9750
9752
|
/* @__PURE__ */ e("span", { className: j.cardTitle, children: r.rewardName ?? "未知奖励" }),
|
|
9751
9753
|
r.rewardType === "RESOURCE_PACK" ? /* @__PURE__ */ e(ge, { color: "cyan", children: "资源包" }) : /* @__PURE__ */ e(ge, { color: "gold", children: "徽章" })
|
|
9752
9754
|
] }),
|
|
@@ -9781,7 +9783,7 @@ function zf({
|
|
|
9781
9783
|
const s = Ye((u) => u.token), [a, l] = o([]), [i, c] = o(!0), h = F(async () => {
|
|
9782
9784
|
c(!0);
|
|
9783
9785
|
try {
|
|
9784
|
-
l(await
|
|
9786
|
+
l(await Ss(null, s));
|
|
9785
9787
|
} catch {
|
|
9786
9788
|
} finally {
|
|
9787
9789
|
c(!1);
|
|
@@ -9857,7 +9859,7 @@ function zf({
|
|
|
9857
9859
|
type: "primary",
|
|
9858
9860
|
size: "small",
|
|
9859
9861
|
ghost: !0,
|
|
9860
|
-
icon: /* @__PURE__ */ e(
|
|
9862
|
+
icon: /* @__PURE__ */ e(Ll, {}),
|
|
9861
9863
|
onClick: () => t(u),
|
|
9862
9864
|
children: m ? "查看成绩" : "查看作答"
|
|
9863
9865
|
}
|
|
@@ -9873,7 +9875,7 @@ function Uf({
|
|
|
9873
9875
|
const s = Ye((d) => d.token), [a, l] = o([]), [i, c] = o(!0), [h, r] = o(null), u = F(async () => {
|
|
9874
9876
|
c(!0);
|
|
9875
9877
|
try {
|
|
9876
|
-
l(await
|
|
9878
|
+
l(await ii(s));
|
|
9877
9879
|
} catch {
|
|
9878
9880
|
} finally {
|
|
9879
9881
|
c(!1);
|
|
@@ -9887,7 +9889,7 @@ function Uf({
|
|
|
9887
9889
|
const m = async (d) => {
|
|
9888
9890
|
r(d);
|
|
9889
9891
|
try {
|
|
9890
|
-
await
|
|
9892
|
+
await Is(d, s), we.success("已加入路径,开始学习吧"), t(d);
|
|
9891
9893
|
} catch {
|
|
9892
9894
|
} finally {
|
|
9893
9895
|
r(null);
|
|
@@ -9962,7 +9964,7 @@ function Wf({
|
|
|
9962
9964
|
const s = Ye((d) => d.token), [a, l] = o([]), [i, c] = o(!0), [h, r] = o(null), u = F(async () => {
|
|
9963
9965
|
c(!0);
|
|
9964
9966
|
try {
|
|
9965
|
-
l(await
|
|
9967
|
+
l(await ri(s));
|
|
9966
9968
|
} catch {
|
|
9967
9969
|
} finally {
|
|
9968
9970
|
c(!1);
|
|
@@ -9976,7 +9978,7 @@ function Wf({
|
|
|
9976
9978
|
const m = async (d) => {
|
|
9977
9979
|
r(d);
|
|
9978
9980
|
try {
|
|
9979
|
-
await
|
|
9981
|
+
await Ts(d, null, s), we.success("报名成功,开始学习"), t(d);
|
|
9980
9982
|
} catch {
|
|
9981
9983
|
} finally {
|
|
9982
9984
|
r(null);
|
|
@@ -10113,7 +10115,7 @@ function Ys() {
|
|
|
10113
10115
|
const D = F(async () => {
|
|
10114
10116
|
r(!0);
|
|
10115
10117
|
try {
|
|
10116
|
-
const k = await
|
|
10118
|
+
const k = await tl();
|
|
10117
10119
|
c(Array.isArray(k) ? k : []);
|
|
10118
10120
|
} catch (k) {
|
|
10119
10121
|
console.warn("[WebIdeTab] fetch instances failed", k), c([]);
|
|
@@ -10125,7 +10127,7 @@ function Ys() {
|
|
|
10125
10127
|
D();
|
|
10126
10128
|
}, [D]);
|
|
10127
10129
|
const O = F((k) => {
|
|
10128
|
-
const v =
|
|
10130
|
+
const v = nl(k);
|
|
10129
10131
|
window.open(v, "_blank", "noopener,noreferrer");
|
|
10130
10132
|
}, []), ne = F((k) => {
|
|
10131
10133
|
!k.machineIp || !k.port || window.open(
|
|
@@ -10178,7 +10180,7 @@ function Ys() {
|
|
|
10178
10180
|
async (k) => {
|
|
10179
10181
|
I(k.id);
|
|
10180
10182
|
try {
|
|
10181
|
-
await
|
|
10183
|
+
await al(k.id), we.success("实例已停止"), D();
|
|
10182
10184
|
} catch (v) {
|
|
10183
10185
|
we.error(v instanceof Error ? v.message : "停止失败");
|
|
10184
10186
|
} finally {
|
|
@@ -10197,7 +10199,7 @@ function Ys() {
|
|
|
10197
10199
|
onOk: async () => {
|
|
10198
10200
|
I(k.id);
|
|
10199
10201
|
try {
|
|
10200
|
-
await
|
|
10202
|
+
await no(k.id), we.success("实例已删除"), D();
|
|
10201
10203
|
} catch (v) {
|
|
10202
10204
|
we.error(v instanceof Error ? v.message : "删除失败");
|
|
10203
10205
|
} finally {
|
|
@@ -10266,7 +10268,7 @@ function Ys() {
|
|
|
10266
10268
|
] }),
|
|
10267
10269
|
/* @__PURE__ */ n("div", { className: Me.section, children: [
|
|
10268
10270
|
/* @__PURE__ */ n("div", { className: Me.sectionHeader, children: [
|
|
10269
|
-
/* @__PURE__ */ e(
|
|
10271
|
+
/* @__PURE__ */ e($l, { className: Me.sectionIcon }),
|
|
10270
10272
|
/* @__PURE__ */ e("span", { className: Me.sectionTitle, children: "code-server 实例" }),
|
|
10271
10273
|
/* @__PURE__ */ n("span", { className: Me.sectionDesc, children: [
|
|
10272
10274
|
"来自 z-team-webide,共 ",
|
|
@@ -10567,7 +10569,7 @@ function Ky({
|
|
|
10567
10569
|
onClick: a,
|
|
10568
10570
|
"aria-label": "展开或收起个人菜单",
|
|
10569
10571
|
"aria-expanded": !s,
|
|
10570
|
-
children: s ? /* @__PURE__ */ e(
|
|
10572
|
+
children: s ? /* @__PURE__ */ e(Rl, {}) : /* @__PURE__ */ e(Dl, {})
|
|
10571
10573
|
}
|
|
10572
10574
|
)
|
|
10573
10575
|
}
|
|
@@ -10587,7 +10589,7 @@ const Qs = [
|
|
|
10587
10589
|
{ key: "personal", label: "个人统计", icon: /* @__PURE__ */ e(ds, {}) },
|
|
10588
10590
|
{ key: "business-stats", label: "业务指标", icon: /* @__PURE__ */ e(us, {}) },
|
|
10589
10591
|
{ key: "tools", label: "常用工具", icon: /* @__PURE__ */ e(ls, {}) },
|
|
10590
|
-
{ key: "websites", label: "常用网站", icon: /* @__PURE__ */ e(
|
|
10592
|
+
{ key: "websites", label: "常用网站", icon: /* @__PURE__ */ e(Sn, {}) },
|
|
10591
10593
|
{ key: "smart-partner", label: "智能伙伴", icon: /* @__PURE__ */ e(ta, {}) },
|
|
10592
10594
|
{ key: "todo", label: "工作待办", icon: /* @__PURE__ */ e(ms, {}) },
|
|
10593
10595
|
{ key: "notes", label: "个人笔记", icon: /* @__PURE__ */ e(An, {}) },
|
|
@@ -10660,10 +10662,10 @@ function Qy({
|
|
|
10660
10662
|
return window.addEventListener("keydown", $), () => window.removeEventListener("keydown", $);
|
|
10661
10663
|
}, [M]);
|
|
10662
10664
|
const x = Ye(($) => $.currentUser), I = Qs.filter(
|
|
10663
|
-
($) => !$.permission ||
|
|
10665
|
+
($) => !$.permission || Tn(x, $.permission)
|
|
10664
10666
|
), D = Le(() => u ? [
|
|
10665
10667
|
{ mode: "admin", label: "运营工作台", icon: /* @__PURE__ */ e(ss, {}) },
|
|
10666
|
-
{ mode: "collaboration", label: "协作工作台", icon: /* @__PURE__ */ e(
|
|
10668
|
+
{ mode: "collaboration", label: "协作工作台", icon: /* @__PURE__ */ e(El, {}) }
|
|
10667
10669
|
].filter(
|
|
10668
10670
|
(ue) => xs(x, ue.mode)
|
|
10669
10671
|
) : [], [x, u]), O = ((v = I.find(($) => $.key === m)) == null ? void 0 : v.label) ?? "个人工作台", [ne, ae] = o(null), [W, A] = o(null), H = F(($) => {
|
|
@@ -11071,7 +11073,7 @@ function ib({
|
|
|
11071
11073
|
async (v, $) => {
|
|
11072
11074
|
x(null), D(v.id);
|
|
11073
11075
|
try {
|
|
11074
|
-
const ue = await
|
|
11076
|
+
const ue = await ao(
|
|
11075
11077
|
v.personalAgentId,
|
|
11076
11078
|
v.id,
|
|
11077
11079
|
s,
|
|
@@ -12761,7 +12763,7 @@ function BC({
|
|
|
12761
12763
|
}
|
|
12762
12764
|
) });
|
|
12763
12765
|
}
|
|
12764
|
-
const _t =
|
|
12766
|
+
const _t = ho() || typeof localStorage < "u" && localStorage.getItem("ft_exclusive_force_desktop") === "1", LC = `${window.publicPath ?? "/"}logo.svg`, MC = [
|
|
12765
12767
|
"帮我排查一个线上问题",
|
|
12766
12768
|
"总结一下今天的群聊进展",
|
|
12767
12769
|
"把这周的变更整理成周报"
|
|
@@ -12858,13 +12860,13 @@ function PC(t) {
|
|
|
12858
12860
|
localAgentType: t.type
|
|
12859
12861
|
};
|
|
12860
12862
|
}
|
|
12861
|
-
function
|
|
12863
|
+
function r0({
|
|
12862
12864
|
onSwitchMode: t,
|
|
12863
12865
|
onOpenProject: s,
|
|
12864
12866
|
openAgentRequest: a
|
|
12865
12867
|
}) {
|
|
12866
12868
|
const l = Ye((_) => _.token), i = Ye((_) => _.currentUser), c = Ja.filter(
|
|
12867
|
-
(_) => !_.permission ||
|
|
12869
|
+
(_) => !_.permission || Tn(i, _.permission)
|
|
12868
12870
|
), [h, r] = o([]), [u, m] = o(!0), [d, g] = o(null), [b, M] = o("landing"), [x, I] = o(null), [D, O] = o(
|
|
12869
12871
|
_t ? "local" : "cloud"
|
|
12870
12872
|
), [ne, ae] = o(
|
|
@@ -12889,7 +12891,7 @@ function o0({
|
|
|
12889
12891
|
(_) => {
|
|
12890
12892
|
var re;
|
|
12891
12893
|
const P = (re = Ja.find((p) => p.tab === _)) == null ? void 0 : re.permission;
|
|
12892
|
-
P && !
|
|
12894
|
+
P && !Tn(i, P) || (xt(_), M("personalTab"));
|
|
12893
12895
|
},
|
|
12894
12896
|
[i]
|
|
12895
12897
|
), [ct, Oe] = o(!1), [Ct, gt] = o(!1), [wt, ft] = o(
|
|
@@ -13507,7 +13509,7 @@ function o0({
|
|
|
13507
13509
|
]
|
|
13508
13510
|
}
|
|
13509
13511
|
),
|
|
13510
|
-
L &&
|
|
13512
|
+
L && Hl(
|
|
13511
13513
|
/* @__PURE__ */ n(
|
|
13512
13514
|
"div",
|
|
13513
13515
|
{
|
|
@@ -13812,7 +13814,7 @@ function o0({
|
|
|
13812
13814
|
type: "button",
|
|
13813
13815
|
role: "menuitem",
|
|
13814
13816
|
className: C.agentMenuItem,
|
|
13815
|
-
onClick: () => void
|
|
13817
|
+
onClick: () => void po(),
|
|
13816
13818
|
children: [
|
|
13817
13819
|
/* @__PURE__ */ e("span", { className: C.navIcon, children: /* @__PURE__ */ e(fi, {}) }),
|
|
13818
13820
|
/* @__PURE__ */ e("span", { children: "退出登录" })
|
|
@@ -13873,5 +13875,5 @@ function o0({
|
|
|
13873
13875
|
] });
|
|
13874
13876
|
}
|
|
13875
13877
|
export {
|
|
13876
|
-
|
|
13878
|
+
r0 as default
|
|
13877
13879
|
};
|