@yuku123/z-team-component 0.2.141 → 0.2.143
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/{AdminModuleContent-FFU5MUjw.js → AdminModuleContent-C9y4u5Ab.js} +6 -6
- package/dist/{ChangeLogView-C5v5uT8L.js → ChangeLogView-Crx_PRZV.js} +1 -1
- package/dist/{ComponentDoc-DnZq0_Rk.js → ComponentDoc-CpD9Oqft.js} +3 -3
- package/dist/{InvitationManagementPage-dEBNe9_s.js → InvitationManagementPage-K8R9NQMT.js} +1 -1
- package/dist/{OnboardingPage-BW8WhBg5.js → OnboardingPage-DovjMzon.js} +2 -2
- package/dist/{ScheduledTasks-BaZ0_klE.js → ScheduledTasks-CAtPYgXw.js} +1681 -1700
- package/dist/SettingsModal-B6s0m7ss.js +1103 -0
- package/dist/{SystemShell-I7vWo1XG.js → SystemShell-BwtZGu32.js} +361 -311
- package/dist/{admin-logs-BDPC3Q_Y.js → admin-logs-CqN5Phct.js} +1 -1
- package/dist/{api-U9U4zzq_.js → api-Cibkde66.js} +1 -1
- package/dist/{api-BJ5jPWNm.js → api-DIAm9CQz.js} +1 -1
- package/dist/{createWorkspaceWsHandler-B6TdD0Oz.js → createWorkspaceWsHandler-DTnK73tD.js} +822 -822
- package/dist/{ctc-sso-DtJHC-2M.js → ctc-sso-Hj8fdMY0.js} +8 -6
- package/dist/{index-BGZV4U3S.js → index-B2ytjRa-.js} +3 -3
- package/dist/{index-CPpqideA.js → index-BBtMl9Nz.js} +1 -1
- package/dist/{index-CP5raaOW.js → index-BGcqNhV1.js} +3 -3
- package/dist/{index-DSXVCDf7.js → index-BGwAJocm.js} +1 -1
- package/dist/{index-Dd5RE_0a.js → index-Bbb31dmy.js} +4 -4
- package/dist/{index-BPEfgkzE.js → index-BfR9eIzg.js} +3 -3
- package/dist/{index-XgaiU13i.js → index-BhHEPcvx.js} +1 -1
- package/dist/{index-WWGxF0UX.js → index-Bn9tzXst.js} +2 -2
- package/dist/{index-mDjl3m2W.js → index-Bs8fmFn0.js} +22 -22
- package/dist/{index-DuZrrpXt.js → index-CGYCCh8R.js} +3 -3
- package/dist/{index-BwhK44Dc.js → index-C_Ysrnnp.js} +3 -3
- package/dist/{index-XTNGZnrF.js → index-CshNZQgN.js} +1 -1
- package/dist/{index-CVgvlDAT.js → index-D7dN1HGT.js} +2 -2
- package/dist/{index-DKUg7Evq.js → index-DCoLm48X.js} +2 -2
- package/dist/{index-Bfw6OE5L.js → index-DTezuv5L.js} +3 -3
- package/dist/{index-DIv1OJ_2.js → index-DW8IHcLd.js} +2 -2
- package/dist/{index-Gn0zdd5m.js → index-DXaXLRHV.js} +2 -2
- package/dist/{index-CmzTSdmD.js → index-Dd2LlTvg.js} +4 -4
- package/dist/{index-d6RIzlsj.js → index-DkbEusgG.js} +2 -2
- package/dist/index-Dpcve4hK.js +20 -0
- package/dist/index-VIj6jQQc.js +8412 -0
- package/dist/{index-CToJEufJ.js → index-WeUfGyGs.js} +1 -1
- package/dist/{index-BXaJSMd0.js → index-a3rvjuIX.js} +2 -2
- package/dist/{index-skl-gjj4.js → index-amd_6wnu.js} +285 -293
- package/dist/{index-CsNtBWH-.js → index-oCHQ6Gm8.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/{instance-D_EP8AQm.js → instance-cM3jNPz_.js} +1 -1
- package/dist/{menuPermission-Bhnols4v.js → menuPermission-CtsbPA_m.js} +3 -3
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-0RB1pYex.js → send-default-agent-team-message-C3A4gJAt.js} +1 -1
- package/dist/{training-B1eRX8g1.js → training-VX0S1Wq1.js} +1 -1
- package/dist/{webide-C4ThGZzY.js → webide-DdKW4JyS.js} +3 -3
- package/dist/z-team-component.css +1 -1
- package/package.json +2 -2
- package/dist/index-kjli87DO.js +0 -9458
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as n, jsxs as c, Fragment as Se } from "react/jsx-runtime";
|
|
2
|
-
import { ShareAltOutlined as
|
|
3
|
-
import { message as Pe, Drawer as Ta, Spin as Lt, Input as mn, Button as Nt, Segmented as Po, Modal as pn, AutoComplete as Do, Typography as Rt, Checkbox as Wn, Space as Vt, Radio as gs, Skeleton as
|
|
2
|
+
import { ShareAltOutlined as ko, EditOutlined as ma, EyeOutlined as bo, FileTextOutlined as pa, CloseOutlined as vo, MinusCircleOutlined as No, PlusOutlined as To, ToolOutlined as Yt, DownOutlined as _a, RightOutlined as ha, CloseCircleOutlined as fa, CheckOutlined as jt, LoadingOutlined as Co, ThunderboltOutlined as ga, SettingOutlined as ya, StopOutlined as sn, CopyOutlined as an, LinkOutlined as on, ForkOutlined as rn, PhoneOutlined as fs, ProfileOutlined as In, RollbackOutlined as So, CheckCircleOutlined as ka, RobotOutlined as $n, CommentOutlined as ba, DatabaseOutlined as wo, ExpandAltOutlined as va, HistoryOutlined as Io, CheckCircleFilled as Ao, SendOutlined as Na, ExportOutlined as xo, ImportOutlined as Bo, CheckSquareOutlined as Lo, CodeOutlined as qo, SyncOutlined as Ro, FileImageOutlined as $o, QuestionCircleOutlined as Mo } from "@ant-design/icons";
|
|
3
|
+
import { message as Pe, Drawer as Ta, Spin as Lt, Input as mn, Button as Nt, Segmented as Po, Modal as pn, AutoComplete as Do, Typography as Rt, Checkbox as Wn, Space as Vt, Radio as gs, Skeleton as kn, Popover as Eo, Timeline as ys, Tag as Xt, Tooltip as un, Tree as Fo, Empty as ks } from "antd";
|
|
4
4
|
import et, { useState as I, useRef as fe, useEffect as oe, useCallback as j, useMemo as he, useContext as Oo, createContext as Ho, useLayoutEffect as Ca, memo as Sa, useImperativeHandle as Wo } from "react";
|
|
5
5
|
import { createPortal as wa } from "react-dom";
|
|
6
|
-
import { a as Be, f as je, B as Ue, b as Ve, a8 as Go, u as E, v as qt, aE as Ia, ax as Aa, z as ae, aB as jo, aF as es, aG as An, t as ve, aH as Uo, aI as zo, aJ as Vo, aq as Ee, aK as Jo, aL as xa, aM as Ba, aN as ts, aO as Ko, aP as La, aQ as qa, aR as Ra, aS as $a, aT as Gn, aU as ns, aV as Qo, aW as Yo, aX as Xo, aY as Zo, aZ as er, a_ as tr, a$ as
|
|
6
|
+
import { a as Be, f as je, B as Ue, b as Ve, a8 as Go, u as E, v as qt, aE as Ia, ax as Aa, z as ae, aB as jo, aF as es, aG as An, t as ve, aH as Uo, aI as zo, aJ as Vo, aq as Ee, aK as Jo, aL as xa, aM as Ba, aN as ts, aO as Ko, aP as La, aQ as qa, aR as Ra, aS as $a, aT as Gn, aU as ns, aV as Qo, aW as Yo, aX as Xo, aY as Zo, aZ as er, a_ as tr, a$ as bt, b0 as vt, b1 as nr, b2 as sr, b3 as ar, e as Jt, b4 as or, b5 as rr, b6 as ir, b7 as cr, b8 as lr, b9 as dr, ba as ur, bb as mr, bc as pr, bd as _r, be as ss, bf as hr, bg as fr, E as gr, bh as yr, bi as bs, bj as Ma, T as Pa, bk as pt, bl as vs, s as kr, bm as br, bn as vr, bo as Ns, ap as Ts, bp as Nr, bq as Cs, br as Tr } from "./ComponentDoc-CpD9Oqft.js";
|
|
7
7
|
import ct from "react-markdown";
|
|
8
8
|
import dn from "rehype-highlight";
|
|
9
9
|
import lt from "remark-gfm";
|
|
10
|
-
import { i as Cr, u as Sr, e as wr, j as Ir, k as Ar, t as xr } from "./admin-logs-
|
|
10
|
+
import { i as Cr, u as Sr, e as wr, j as Ir, k as Ar, t as xr } from "./admin-logs-CqN5Phct.js";
|
|
11
11
|
import $e from "handlebars";
|
|
12
|
-
import { c as Br, d as Lr, j as qr } from "./instance-
|
|
12
|
+
import { c as Br, d as Lr, j as qr } from "./instance-cM3jNPz_.js";
|
|
13
13
|
async function FC(e) {
|
|
14
14
|
const t = e ? `?token=${encodeURIComponent(e)}` : "", s = await Be(
|
|
15
15
|
`${Ue}/personal-agents/custom-models${t}`,
|
|
@@ -204,18 +204,18 @@ function Wr({
|
|
|
204
204
|
token: i,
|
|
205
205
|
onContentLoaded: d
|
|
206
206
|
}) {
|
|
207
|
-
const [_, p] = I(!1), [
|
|
207
|
+
const [_, p] = I(!1), [k, h] = I(null), [l, w] = I("edit"), [S, T] = I(""), [g, U] = I(""), [A, M] = I(!1), [W, P] = I("idle"), [O, N] = I(!1), v = fe(null), D = fe(null), Y = fe(""), q = fe("");
|
|
208
208
|
oe(() => {
|
|
209
|
-
!e || !s || (p(!0), M(!1), P("idle"), Cr(s, a, o || "", i).then((
|
|
210
|
-
h(
|
|
209
|
+
!e || !s || (p(!0), M(!1), P("idle"), Cr(s, a, o || "", i).then((y) => {
|
|
210
|
+
h(y), T(y.title), U(y.content ?? ""), D.current = y.id, Y.current = y.content ?? "", q.current = y.title, d == null || d(!!(y.content && y.content.trim()));
|
|
211
211
|
}).catch(() => {
|
|
212
212
|
h(null);
|
|
213
213
|
}).finally(() => p(!1)));
|
|
214
214
|
}, [e, s, a, o, i]);
|
|
215
215
|
const B = j(() => {
|
|
216
|
-
const
|
|
217
|
-
|
|
218
|
-
|
|
216
|
+
const y = D.current;
|
|
217
|
+
y != null && (P("saving"), Sr(
|
|
218
|
+
y,
|
|
219
219
|
{ title: q.current, content: Y.current },
|
|
220
220
|
i
|
|
221
221
|
).then(() => {
|
|
@@ -233,10 +233,10 @@ function Wr({
|
|
|
233
233
|
};
|
|
234
234
|
}, [A, B]);
|
|
235
235
|
const x = j(async () => {
|
|
236
|
-
if (
|
|
236
|
+
if (k) {
|
|
237
237
|
N(!0);
|
|
238
238
|
try {
|
|
239
|
-
const
|
|
239
|
+
const y = await wr(k.id, i), F = `${window.location.origin}/note/shared?token=${y}`;
|
|
240
240
|
let Z = !1;
|
|
241
241
|
try {
|
|
242
242
|
await navigator.clipboard.writeText(F), Z = !0;
|
|
@@ -258,7 +258,7 @@ function Wr({
|
|
|
258
258
|
N(!1);
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
|
-
}, [
|
|
261
|
+
}, [k, i]);
|
|
262
262
|
return /* @__PURE__ */ n(
|
|
263
263
|
Ta,
|
|
264
264
|
{
|
|
@@ -276,7 +276,7 @@ function Wr({
|
|
|
276
276
|
Nt,
|
|
277
277
|
{
|
|
278
278
|
size: "small",
|
|
279
|
-
icon: /* @__PURE__ */ n(
|
|
279
|
+
icon: /* @__PURE__ */ n(ko, {}),
|
|
280
280
|
loading: O,
|
|
281
281
|
onClick: x,
|
|
282
282
|
children: "分享"
|
|
@@ -286,15 +286,15 @@ function Wr({
|
|
|
286
286
|
Po,
|
|
287
287
|
{
|
|
288
288
|
value: l,
|
|
289
|
-
onChange: (
|
|
289
|
+
onChange: (y) => w(y),
|
|
290
290
|
options: [
|
|
291
291
|
{ label: "编辑", value: "edit", icon: /* @__PURE__ */ n(ma, {}) },
|
|
292
|
-
{ label: "预览", value: "preview", icon: /* @__PURE__ */ n(
|
|
292
|
+
{ label: "预览", value: "preview", icon: /* @__PURE__ */ n(bo, {}) }
|
|
293
293
|
]
|
|
294
294
|
}
|
|
295
295
|
)
|
|
296
296
|
] }),
|
|
297
|
-
children: /* @__PURE__ */ n(Lt, { spinning: _, children:
|
|
297
|
+
children: /* @__PURE__ */ n(Lt, { spinning: _, children: k && /* @__PURE__ */ c(
|
|
298
298
|
"div",
|
|
299
299
|
{
|
|
300
300
|
style: {
|
|
@@ -308,8 +308,8 @@ function Wr({
|
|
|
308
308
|
mn,
|
|
309
309
|
{
|
|
310
310
|
value: S,
|
|
311
|
-
onChange: (
|
|
312
|
-
const F =
|
|
311
|
+
onChange: (y) => {
|
|
312
|
+
const F = y.target.value;
|
|
313
313
|
T(F), q.current = F, M(!0);
|
|
314
314
|
},
|
|
315
315
|
placeholder: "笔记标题",
|
|
@@ -331,19 +331,19 @@ function Wr({
|
|
|
331
331
|
"textarea",
|
|
332
332
|
{
|
|
333
333
|
value: g,
|
|
334
|
-
onChange: (
|
|
335
|
-
const F =
|
|
334
|
+
onChange: (y) => {
|
|
335
|
+
const F = y.target.value;
|
|
336
336
|
U(F), Y.current = F, M(!0), d == null || d(!!F.trim());
|
|
337
337
|
},
|
|
338
|
-
onPaste: async (
|
|
338
|
+
onPaste: async (y) => {
|
|
339
339
|
var J;
|
|
340
|
-
const F = (J =
|
|
340
|
+
const F = (J = y.clipboardData) == null ? void 0 : J.items;
|
|
341
341
|
if (!F) return;
|
|
342
|
-
const Z =
|
|
342
|
+
const Z = y.currentTarget, ue = Z.selectionStart, ie = Z.selectionEnd;
|
|
343
343
|
for (let m = 0; m < F.length; m++) {
|
|
344
344
|
const L = F[m];
|
|
345
345
|
if (L.type.startsWith("image/")) {
|
|
346
|
-
|
|
346
|
+
y.preventDefault();
|
|
347
347
|
const ne = L.getAsFile();
|
|
348
348
|
if (!ne) continue;
|
|
349
349
|
try {
|
|
@@ -501,7 +501,7 @@ function JC({ children: e }) {
|
|
|
501
501
|
return (S = h.removeEventListener) == null ? void 0 : S.call(h, "change", l);
|
|
502
502
|
};
|
|
503
503
|
}, [p]);
|
|
504
|
-
const
|
|
504
|
+
const k = he(
|
|
505
505
|
() => ({
|
|
506
506
|
config: s,
|
|
507
507
|
loaded: o,
|
|
@@ -520,7 +520,7 @@ function JC({ children: e }) {
|
|
|
520
520
|
}),
|
|
521
521
|
[s, o, _]
|
|
522
522
|
);
|
|
523
|
-
return /* @__PURE__ */ n(Ea.Provider, { value:
|
|
523
|
+
return /* @__PURE__ */ n(Ea.Provider, { value: k, children: e });
|
|
524
524
|
}
|
|
525
525
|
function Fa(e, t) {
|
|
526
526
|
return e.key !== "Enter" ? !1 : t === "mod-enter" ? (e.metaKey || e.ctrlKey) && !e.shiftKey : !e.shiftKey && !e.metaKey && !e.ctrlKey;
|
|
@@ -694,15 +694,15 @@ function mi({
|
|
|
694
694
|
] })
|
|
695
695
|
] }) : /* @__PURE__ */ n(xs, { content: e, filePath: t });
|
|
696
696
|
}
|
|
697
|
-
const pi = "_renderTabs_mosi5_1", _i = "_tabBar_mosi5_8", hi = "_tab_mosi5_8", fi = "_active_mosi5_38", gi = "_tabTitle_mosi5_46",
|
|
697
|
+
const pi = "_renderTabs_mosi5_1", _i = "_tabBar_mosi5_8", hi = "_tab_mosi5_8", fi = "_active_mosi5_38", gi = "_tabTitle_mosi5_46", yi = "_closeBtn_mosi5_52", ki = "_tabContent_mosi5_66", bi = "_tabPane_mosi5_72", vi = "_loading_mosi5_78", Ni = "_error_mosi5_79", Ti = "_htmlContent_mosi5_92", Ci = "_codeContent_mosi5_98", Si = "_webideIframe_mosi5_111", wi = "_iframeContent_mosi5_119", Qe = {
|
|
698
698
|
renderTabs: pi,
|
|
699
699
|
tabBar: _i,
|
|
700
700
|
tab: hi,
|
|
701
701
|
active: fi,
|
|
702
702
|
tabTitle: gi,
|
|
703
|
-
closeBtn:
|
|
704
|
-
tabContent:
|
|
705
|
-
tabPane:
|
|
703
|
+
closeBtn: yi,
|
|
704
|
+
tabContent: ki,
|
|
705
|
+
tabPane: bi,
|
|
706
706
|
loading: vi,
|
|
707
707
|
error: Ni,
|
|
708
708
|
htmlContent: Ti,
|
|
@@ -825,18 +825,18 @@ async function xi(e, t, s, a, o) {
|
|
|
825
825
|
dataPath: a,
|
|
826
826
|
stageDir: o
|
|
827
827
|
});
|
|
828
|
-
let _ = de.find((
|
|
828
|
+
let _ = de.find((k) => k.id === e);
|
|
829
829
|
if (_)
|
|
830
830
|
if (_.type !== "render")
|
|
831
|
-
de = de.filter((
|
|
831
|
+
de = de.filter((k) => k.id !== e);
|
|
832
832
|
else {
|
|
833
|
-
const [
|
|
833
|
+
const [k, h] = await Promise.all([
|
|
834
834
|
At(t, `${i}/template.html`),
|
|
835
835
|
At(t, `${i}/data.json`).then(
|
|
836
836
|
(l) => JSON.parse(l)
|
|
837
837
|
)
|
|
838
838
|
]);
|
|
839
|
-
_.html =
|
|
839
|
+
_.html = k, _.data = h, _.title = d, _.loading = !1, _.error = void 0, Me();
|
|
840
840
|
return;
|
|
841
841
|
}
|
|
842
842
|
const p = {
|
|
@@ -847,14 +847,14 @@ async function xi(e, t, s, a, o) {
|
|
|
847
847
|
};
|
|
848
848
|
de.push(p), Me(), Ge && Ge(e);
|
|
849
849
|
try {
|
|
850
|
-
const [
|
|
850
|
+
const [k, h] = await Promise.all([
|
|
851
851
|
At(t, `${i}/template.html`),
|
|
852
852
|
At(t, `${i}/data.json`)
|
|
853
853
|
]), l = JSON.parse(h), w = de.findIndex((S) => S.id === e);
|
|
854
|
-
w >= 0 && (de[w].html =
|
|
855
|
-
} catch (
|
|
854
|
+
w >= 0 && (de[w].html = k, de[w].data = l, de[w].title = d, de[w].loading = !1, Me());
|
|
855
|
+
} catch (k) {
|
|
856
856
|
const h = de.findIndex((l) => l.id === e);
|
|
857
|
-
h >= 0 && (de[h].loading = !1, de[h].error = (
|
|
857
|
+
h >= 0 && (de[h].loading = !1, de[h].error = (k == null ? void 0 : k.message) || "加载失败", Me());
|
|
858
858
|
}
|
|
859
859
|
}
|
|
860
860
|
function Bi(e) {
|
|
@@ -937,8 +937,8 @@ async function Mi(e, t, s) {
|
|
|
937
937
|
l >= 0 && (de[l].iframeUrl = h, de[l].loading = !1, Me());
|
|
938
938
|
} catch (p) {
|
|
939
939
|
console.error("[openWebIdeTab] error:", p);
|
|
940
|
-
const
|
|
941
|
-
|
|
940
|
+
const k = de.findIndex((h) => h.id === a);
|
|
941
|
+
k >= 0 && (de[k].loading = !1, de[k].error = (p == null ? void 0 : p.userMessage) || (p == null ? void 0 : p.message) || "WebIDE 加载失败", Me());
|
|
942
942
|
}
|
|
943
943
|
}
|
|
944
944
|
const Ha = ".z_team/.meta/data.json";
|
|
@@ -958,10 +958,10 @@ async function Kt(e, t, s) {
|
|
|
958
958
|
token: s ? "valid" : "EMPTY",
|
|
959
959
|
effectiveType: i
|
|
960
960
|
});
|
|
961
|
-
let d = de.find((
|
|
961
|
+
let d = de.find((k) => k.id === a);
|
|
962
962
|
if (d)
|
|
963
963
|
if (d.type !== i)
|
|
964
|
-
de = de.filter((
|
|
964
|
+
de = de.filter((k) => k.id !== a), d = void 0;
|
|
965
965
|
else {
|
|
966
966
|
Ge && Ge(a), Me();
|
|
967
967
|
return;
|
|
@@ -977,11 +977,11 @@ async function Kt(e, t, s) {
|
|
|
977
977
|
};
|
|
978
978
|
de.push(p), Me(), Ge && Ge(a);
|
|
979
979
|
try {
|
|
980
|
-
const
|
|
981
|
-
h >= 0 && (de[h].content =
|
|
982
|
-
} catch (
|
|
980
|
+
const k = await At(t, e), h = de.findIndex((l) => l.id === a);
|
|
981
|
+
h >= 0 && (de[h].content = k, de[h].loading = !1, Me());
|
|
982
|
+
} catch (k) {
|
|
983
983
|
const h = de.findIndex((l) => l.id === a);
|
|
984
|
-
h >= 0 && (de[h].loading = !1, de[h].error = (
|
|
984
|
+
h >= 0 && (de[h].loading = !1, de[h].error = (k == null ? void 0 : k.message) || "加载失败", Me());
|
|
985
985
|
}
|
|
986
986
|
}
|
|
987
987
|
function Pi(e) {
|
|
@@ -1206,23 +1206,23 @@ function Vi({
|
|
|
1206
1206
|
onPicked: s,
|
|
1207
1207
|
placeholder: a
|
|
1208
1208
|
}) {
|
|
1209
|
-
const [o, i] = I([]), [d, _] = I(!1), p = fe(void 0),
|
|
1209
|
+
const [o, i] = I([]), [d, _] = I(!1), p = fe(void 0), k = fe(0), h = j(async (w) => {
|
|
1210
1210
|
const S = w.trim();
|
|
1211
1211
|
if (!S || qs(S)) {
|
|
1212
1212
|
i([]), _(!1);
|
|
1213
1213
|
return;
|
|
1214
1214
|
}
|
|
1215
|
-
const T = ++
|
|
1215
|
+
const T = ++k.current;
|
|
1216
1216
|
_(!0);
|
|
1217
1217
|
try {
|
|
1218
1218
|
const g = await Ui(S);
|
|
1219
|
-
if (T !==
|
|
1219
|
+
if (T !== k.current)
|
|
1220
1220
|
return;
|
|
1221
1221
|
i(zi((g == null ? void 0 : g.dataSource) || []));
|
|
1222
1222
|
} catch {
|
|
1223
|
-
T ===
|
|
1223
|
+
T === k.current && i([]);
|
|
1224
1224
|
} finally {
|
|
1225
|
-
T ===
|
|
1225
|
+
T === k.current && _(!1);
|
|
1226
1226
|
}
|
|
1227
1227
|
}, []), l = j(
|
|
1228
1228
|
(w) => {
|
|
@@ -1233,7 +1233,7 @@ function Vi({
|
|
|
1233
1233
|
[t, h]
|
|
1234
1234
|
);
|
|
1235
1235
|
return oe(() => () => {
|
|
1236
|
-
p.current && clearTimeout(p.current),
|
|
1236
|
+
p.current && clearTimeout(p.current), k.current += 1;
|
|
1237
1237
|
}, []), /* @__PURE__ */ n(
|
|
1238
1238
|
Do,
|
|
1239
1239
|
{
|
|
@@ -1258,7 +1258,7 @@ function Vi({
|
|
|
1258
1258
|
}
|
|
1259
1259
|
);
|
|
1260
1260
|
}
|
|
1261
|
-
const Ji = "
|
|
1261
|
+
const Ji = "_sidebarInner_7pd2f_1", Ki = "_timeDropdownOverlay_7pd2f_57", Qi = "_participantWrap_7pd2f_101", Yi = "_participantPanel_7pd2f_110", Xi = "_participantPanelLeft_7pd2f_127", Zi = "_participantPanelRight_7pd2f_136", ec = "_participantSearchWrap_7pd2f_143", tc = "_participantSearchBox_7pd2f_148", nc = "_participantSearchInput_7pd2f_152", sc = "_participantSearchIcon_7pd2f_173", ac = "_participantSearchSpinner_7pd2f_188", oc = "_participantList_7pd2f_203", rc = "_participantListSearching_7pd2f_211", ic = "_participantColHeader_7pd2f_217", cc = "_participantClearAll_7pd2f_228", lc = "_participantItem_7pd2f_242", dc = "_participantItemChecked_7pd2f_257", uc = "_participantItemName_7pd2f_265", mc = "_participantItemAccount_7pd2f_280", pc = "_participantItemCheck_7pd2f_257", _c = "_participantSelectedItem_7pd2f_298", hc = "_participantRemoveBtn_7pd2f_312", fc = "_participantEmpty_7pd2f_338", gc = "_fileSection_7pd2f_387", yc = "_navDivider_7pd2f_394", kc = "_listQueryBar_7pd2f_403", bc = "_listQuerySpinner_7pd2f_418", vc = "_listQueryingContent_7pd2f_429", Nc = "_fileItem_7pd2f_437", Tc = "_moreBtn_7pd2f_458", Cc = "_fileItemActive_7pd2f_462", Sc = "_fileItemArchived_7pd2f_467", wc = "_fileItemIcon_7pd2f_475", Ic = "_iconStatusActive_7pd2f_485", Ac = "_iconStatusClosed_7pd2f_489", xc = "_iconStatusIdle_7pd2f_493", Bc = "_fileItemName_7pd2f_497", Lc = "_fileItemBadge_7pd2f_504", qc = "_forkBadge_7pd2f_514", Rc = "_treeArrow_7pd2f_525", $c = "_treeChildren_7pd2f_560", Mc = "_emptyHint_7pd2f_564", Pc = "_localLaneBlock_7pd2f_571", Dc = "_localLaneHeader_7pd2f_577", Ec = "_localLaneIcon_7pd2f_586", Fc = "_localLaneTitle_7pd2f_591", Oc = "_localLaneBadge_7pd2f_595", Hc = "_localLaneBadgeOn_7pd2f_606", Wc = "_localLaneNewBtn_7pd2f_611", Gc = "_contextMenu_7pd2f_697", jc = "_contextMenuItem_7pd2f_708", Uc = "_contextMenuItemDisabled_7pd2f_723", zc = "_contextMenuIcon_7pd2f_733", Vc = "_dialogOverlay_7pd2f_741", Jc = "_dialogBox_7pd2f_751", Kc = "_dialogTitle_7pd2f_759", Qc = "_dialogInput_7pd2f_766", Yc = "_dialogActions_7pd2f_782", Xc = "_btnCancel_7pd2f_789", Zc = "_btnConfirm_7pd2f_803", el = "_skillPickerOverlay_7pd2f_818", tl = "_skillPickerBox_7pd2f_828", nl = "_skillPickerHeader_7pd2f_840", sl = "_skillPickerTitle_7pd2f_848", al = "_skillPickerCount_7pd2f_854", ol = "_skillPickerList_7pd2f_859", rl = "_skillPickerGroup_7pd2f_865", il = "_skillPickerGroupLabel_7pd2f_869", cl = "_skillPickerItem_7pd2f_878", ll = "_skillPickerItemActive_7pd2f_891", dl = "_skillPickerCheckbox_7pd2f_895", ul = "_skillPickerItemInfo_7pd2f_903", ml = "_skillPickerItemName_7pd2f_911", pl = "_skillPickerItemDesc_7pd2f_920", _l = "_skillPickerActions_7pd2f_928", hl = "_groupHeader_7pd2f_984", fl = "_sectionHeader_7pd2f_978", gl = "_groupRow_7pd2f_982", yl = "_sectionIcon_7pd2f_1041", kl = "_groupCount_7pd2f_1046", bl = "_groupGearBtn_7pd2f_1051", vl = "_groupLabel_7pd2f_1057", Nl = "_collapseColumnBtn_7pd2f_1110", Tl = "_tagList_7pd2f_1154", Cl = "_iconBtn_7pd2f_1162", Sl = "_iconBtnReset_7pd2f_1255", wl = "_iconBtnResetActive_7pd2f_1269", Il = "_filterPopover_7pd2f_1342", Al = "_filterSection_7pd2f_1350", xl = "_filterSectionTitle_7pd2f_1356", Bl = "_filterSectionRow_7pd2f_1362", Ll = "_filterTimeOptions_7pd2f_1368", ql = "_filterTimeOption_7pd2f_1368", Rl = "_filterTimeOptionActive_7pd2f_1391", $l = "_iconChip_7pd2f_1398", Ml = "_iconChipWithLabel_7pd2f_1417", Pl = "_iconChipLabel_7pd2f_1425", Dl = "_iconChipActive_7pd2f_1443", El = "_iconChipSort_7pd2f_1454", Fl = "_iconChipOrder_7pd2f_1460", Ol = "_iconChipArrow_7pd2f_1485", Hl = "_refreshIconLoading_7pd2f_1503", Te = {
|
|
1262
1262
|
sidebarInner: Ji,
|
|
1263
1263
|
timeDropdownOverlay: Ki,
|
|
1264
1264
|
participantWrap: Qi,
|
|
@@ -1283,9 +1283,9 @@ const Ji = "_sidebarInner_5frbm_1", Ki = "_timeDropdownOverlay_5frbm_57", Qi = "
|
|
|
1283
1283
|
participantRemoveBtn: hc,
|
|
1284
1284
|
participantEmpty: fc,
|
|
1285
1285
|
fileSection: gc,
|
|
1286
|
-
navDivider:
|
|
1287
|
-
listQueryBar:
|
|
1288
|
-
listQuerySpinner:
|
|
1286
|
+
navDivider: yc,
|
|
1287
|
+
listQueryBar: kc,
|
|
1288
|
+
listQuerySpinner: bc,
|
|
1289
1289
|
listQueryingContent: vc,
|
|
1290
1290
|
fileItem: Nc,
|
|
1291
1291
|
moreBtn: Tc,
|
|
@@ -1337,9 +1337,9 @@ const Ji = "_sidebarInner_5frbm_1", Ki = "_timeDropdownOverlay_5frbm_57", Qi = "
|
|
|
1337
1337
|
groupHeader: hl,
|
|
1338
1338
|
sectionHeader: fl,
|
|
1339
1339
|
groupRow: gl,
|
|
1340
|
-
sectionIcon:
|
|
1341
|
-
groupCount:
|
|
1342
|
-
groupGearBtn:
|
|
1340
|
+
sectionIcon: yl,
|
|
1341
|
+
groupCount: kl,
|
|
1342
|
+
groupGearBtn: bl,
|
|
1343
1343
|
groupLabel: vl,
|
|
1344
1344
|
collapseColumnBtn: Nl,
|
|
1345
1345
|
tagList: Tl,
|
|
@@ -1409,7 +1409,7 @@ function Gl({
|
|
|
1409
1409
|
const S = new Set(w);
|
|
1410
1410
|
return S.has(l) ? S.delete(l) : S.add(l), S;
|
|
1411
1411
|
});
|
|
1412
|
-
},
|
|
1412
|
+
}, k = async () => {
|
|
1413
1413
|
_(!0), await s(o), _(!1);
|
|
1414
1414
|
}, h = e.reduce((l, w) => {
|
|
1415
1415
|
const S = w.category || "其他";
|
|
@@ -1469,7 +1469,7 @@ function Gl({
|
|
|
1469
1469
|
"button",
|
|
1470
1470
|
{
|
|
1471
1471
|
className: Te.btnConfirm,
|
|
1472
|
-
onClick:
|
|
1472
|
+
onClick: k,
|
|
1473
1473
|
disabled: d,
|
|
1474
1474
|
children: d ? "保存中..." : "确认"
|
|
1475
1475
|
}
|
|
@@ -1479,7 +1479,7 @@ function Gl({
|
|
|
1479
1479
|
}
|
|
1480
1480
|
) });
|
|
1481
1481
|
}
|
|
1482
|
-
const
|
|
1482
|
+
const ke = {
|
|
1483
1483
|
folder: /* @__PURE__ */ n(
|
|
1484
1484
|
"svg",
|
|
1485
1485
|
{
|
|
@@ -1803,14 +1803,14 @@ function jl(e) {
|
|
|
1803
1803
|
return /^\.z_team\/\.agent\/[^/]+\/skills$/.test(e);
|
|
1804
1804
|
}
|
|
1805
1805
|
function Ul(e) {
|
|
1806
|
-
const { openDialog: t, openSkillPicker: s } = e, a = E((f) => f.currentUser), o = E((f) => f.currentProject), i = E((f) => f.isLocal), d = E((f) => f.deleteScenarioInstance), _ = E((f) => f.forkScenarioInstance), p = E((f) => f.updateScenarioInstance),
|
|
1806
|
+
const { openDialog: t, openSkillPicker: s } = e, a = E((f) => f.currentUser), o = E((f) => f.currentProject), i = E((f) => f.isLocal), d = E((f) => f.deleteScenarioInstance), _ = E((f) => f.forkScenarioInstance), p = E((f) => f.updateScenarioInstance), k = E((f) => f.deleteFile), h = E((f) => f.uploadFile), l = E((f) => f.uploadFolder), w = E((f) => f.downloadFile), S = E((f) => f.refreshAgentSkills), T = E((f) => f.refreshAllAgentSkills), g = E((f) => f.syncFromProduction), U = he(
|
|
1807
1807
|
() => Aa(a),
|
|
1808
1808
|
[a]
|
|
1809
1809
|
), [A, M] = I(null), [W, P] = I({ x: 0, y: 0 }), [O, N] = I(!1), v = fe(null), D = fe(null);
|
|
1810
1810
|
oe(() => {
|
|
1811
1811
|
if (!A) return;
|
|
1812
|
-
const f = () => M(null), R = (
|
|
1813
|
-
|
|
1812
|
+
const f = () => M(null), R = (y) => {
|
|
1813
|
+
y.key === "Escape" && M(null);
|
|
1814
1814
|
};
|
|
1815
1815
|
return setTimeout(() => {
|
|
1816
1816
|
document.addEventListener("click", f), document.addEventListener("keydown", R);
|
|
@@ -1825,17 +1825,17 @@ function Ul(e) {
|
|
|
1825
1825
|
}
|
|
1826
1826
|
const f = D.current;
|
|
1827
1827
|
if (!f) return;
|
|
1828
|
-
const { width: R, height:
|
|
1828
|
+
const { width: R, height: y } = f.getBoundingClientRect(), F = 8;
|
|
1829
1829
|
let Z = A.initialX, ue = A.initialY;
|
|
1830
1830
|
A.placement === "bottom-end" && (Z = A.initialX - R);
|
|
1831
1831
|
const ie = (J = v.current) == null ? void 0 : J.getBoundingClientRect();
|
|
1832
1832
|
ie ? Z = Math.max(
|
|
1833
1833
|
ie.left + F,
|
|
1834
1834
|
Math.min(Z, ie.right - R - F)
|
|
1835
|
-
) : Z = Math.max(F, Math.min(Z, window.innerWidth - R - F)), ue = Math.max(F, Math.min(ue, window.innerHeight -
|
|
1835
|
+
) : Z = Math.max(F, Math.min(Z, window.innerWidth - R - F)), ue = Math.max(F, Math.min(ue, window.innerHeight - y - F)), P({ x: Z, y: ue }), N(!0);
|
|
1836
1836
|
}, [A]);
|
|
1837
1837
|
const Y = j(
|
|
1838
|
-
(f, R,
|
|
1838
|
+
(f, R, y, F = !1) => {
|
|
1839
1839
|
if (f.preventDefault(), f.stopPropagation(), N(!1), F) {
|
|
1840
1840
|
const Z = f.currentTarget.getBoundingClientRect();
|
|
1841
1841
|
M({
|
|
@@ -1843,7 +1843,7 @@ function Ul(e) {
|
|
|
1843
1843
|
initialY: Z.bottom + 4,
|
|
1844
1844
|
placement: "bottom-end",
|
|
1845
1845
|
targetType: R,
|
|
1846
|
-
target:
|
|
1846
|
+
target: y
|
|
1847
1847
|
});
|
|
1848
1848
|
return;
|
|
1849
1849
|
}
|
|
@@ -1852,7 +1852,7 @@ function Ul(e) {
|
|
|
1852
1852
|
initialY: f.clientY,
|
|
1853
1853
|
placement: "pointer",
|
|
1854
1854
|
targetType: R,
|
|
1855
|
-
target:
|
|
1855
|
+
target: y
|
|
1856
1856
|
});
|
|
1857
1857
|
},
|
|
1858
1858
|
[]
|
|
@@ -1915,20 +1915,20 @@ function Ul(e) {
|
|
|
1915
1915
|
}
|
|
1916
1916
|
});
|
|
1917
1917
|
else if (f === "upload-file") {
|
|
1918
|
-
const
|
|
1919
|
-
|
|
1918
|
+
const y = document.createElement("input");
|
|
1919
|
+
y.type = "file", y.onchange = (F) => {
|
|
1920
1920
|
var ue;
|
|
1921
1921
|
const Z = (ue = F.target.files) == null ? void 0 : ue[0];
|
|
1922
1922
|
Z && h(R.workspace_path, Z);
|
|
1923
|
-
},
|
|
1923
|
+
}, y.click();
|
|
1924
1924
|
} else if (f === "upload-folder") {
|
|
1925
|
-
const
|
|
1926
|
-
|
|
1925
|
+
const y = document.createElement("input");
|
|
1926
|
+
y.type = "file", y.webkitdirectory = !0, y.multiple = !0, y.onchange = (F) => {
|
|
1927
1927
|
const Z = Array.from(
|
|
1928
1928
|
F.target.files || []
|
|
1929
1929
|
);
|
|
1930
1930
|
Z.length > 0 && l(R.workspace_path, Z);
|
|
1931
|
-
},
|
|
1931
|
+
}, y.click();
|
|
1932
1932
|
} else if (f === "download")
|
|
1933
1933
|
ae("下载整个项目功能开发中...", "info");
|
|
1934
1934
|
else if (f === "sync-from-prod")
|
|
@@ -1939,40 +1939,40 @@ function Ul(e) {
|
|
|
1939
1939
|
))
|
|
1940
1940
|
return;
|
|
1941
1941
|
T(R.id);
|
|
1942
|
-
} else f === "fork-snapshot" ? (ae("正在 Fork(快照模式)...", "info"), _(R.id, "snapshot").then((
|
|
1943
|
-
ae(`Fork 成功:${
|
|
1944
|
-
}).catch((
|
|
1945
|
-
ae(`Fork 失败:${(
|
|
1946
|
-
})) : f === "fork-clean" ? (ae("正在 Fork(初始化模式)...", "info"), _(R.id, "clean").then((
|
|
1947
|
-
ae(`Fork 成功:${
|
|
1948
|
-
}).catch((
|
|
1949
|
-
ae(`Fork 失败:${(
|
|
1942
|
+
} else f === "fork-snapshot" ? (ae("正在 Fork(快照模式)...", "info"), _(R.id, "snapshot").then((y) => {
|
|
1943
|
+
ae(`Fork 成功:${y.name}`, "success");
|
|
1944
|
+
}).catch((y) => {
|
|
1945
|
+
ae(`Fork 失败:${(y == null ? void 0 : y.message) ?? y}`, "error");
|
|
1946
|
+
})) : f === "fork-clean" ? (ae("正在 Fork(初始化模式)...", "info"), _(R.id, "clean").then((y) => {
|
|
1947
|
+
ae(`Fork 成功:${y.name}`, "success");
|
|
1948
|
+
}).catch((y) => {
|
|
1949
|
+
ae(`Fork 失败:${(y == null ? void 0 : y.message) ?? y}`, "error");
|
|
1950
1950
|
})) : f === "archive" ? (p(R.id, { status: "ARCHIVED" }), ae(`已归档「${R.name}」`, "success")) : f === "unarchive" && (p(R.id, { status: "ACTIVE" }), ae(`已取消归档「${R.name}」`, "success"));
|
|
1951
1951
|
} else {
|
|
1952
1952
|
const R = A.target;
|
|
1953
1953
|
if (f === "rename")
|
|
1954
1954
|
t({ type: "rename-file", target: R });
|
|
1955
1955
|
else if (f === "delete")
|
|
1956
|
-
confirm(`确定删除「${R.name}」?`) &&
|
|
1956
|
+
confirm(`确定删除「${R.name}」?`) && k(R.path);
|
|
1957
1957
|
else if (f === "new-file")
|
|
1958
1958
|
t({ type: "new-file", target: R });
|
|
1959
1959
|
else if (f === "new-folder")
|
|
1960
1960
|
t({ type: "new-folder", target: R });
|
|
1961
1961
|
else if (f === "upload-file") {
|
|
1962
|
-
const
|
|
1963
|
-
|
|
1962
|
+
const y = document.createElement("input");
|
|
1963
|
+
y.type = "file", y.onchange = (F) => {
|
|
1964
1964
|
var ue;
|
|
1965
1965
|
const Z = (ue = F.target.files) == null ? void 0 : ue[0];
|
|
1966
1966
|
Z && h(R.path, Z);
|
|
1967
|
-
},
|
|
1967
|
+
}, y.click();
|
|
1968
1968
|
} else if (f === "upload-folder") {
|
|
1969
|
-
const
|
|
1970
|
-
|
|
1969
|
+
const y = document.createElement("input");
|
|
1970
|
+
y.type = "file", y.webkitdirectory = !0, y.multiple = !0, y.onchange = (F) => {
|
|
1971
1971
|
const Z = Array.from(
|
|
1972
1972
|
F.target.files || []
|
|
1973
1973
|
);
|
|
1974
1974
|
Z.length > 0 && l(R.path, Z);
|
|
1975
|
-
},
|
|
1975
|
+
}, y.click();
|
|
1976
1976
|
} else f === "download" && (R.is_dir ? ae("下载文件夹功能开发中...", "info") : w(R.path));
|
|
1977
1977
|
}
|
|
1978
1978
|
}
|
|
@@ -1981,7 +1981,7 @@ function Ul(e) {
|
|
|
1981
1981
|
A,
|
|
1982
1982
|
d,
|
|
1983
1983
|
_,
|
|
1984
|
-
|
|
1984
|
+
k,
|
|
1985
1985
|
h,
|
|
1986
1986
|
l,
|
|
1987
1987
|
w,
|
|
@@ -1995,54 +1995,54 @@ function Ul(e) {
|
|
|
1995
1995
|
s,
|
|
1996
1996
|
p
|
|
1997
1997
|
]
|
|
1998
|
-
), B = !U, x = (f, R,
|
|
1998
|
+
), B = !U, x = (f, R, y) => ({
|
|
1999
1999
|
label: f,
|
|
2000
2000
|
icon: R,
|
|
2001
|
-
action:
|
|
2002
|
-
disabled: Rs.has(
|
|
2001
|
+
action: y,
|
|
2002
|
+
disabled: Rs.has(y) && B
|
|
2003
2003
|
}), Q = () => {
|
|
2004
2004
|
if (!A) return [];
|
|
2005
2005
|
if (A.targetType === "project") {
|
|
2006
|
-
const R = A.target,
|
|
2007
|
-
x("重命名",
|
|
2008
|
-
x("新建文件",
|
|
2009
|
-
x("新建文件夹",
|
|
2010
|
-
x("上传文件",
|
|
2011
|
-
x("上传文件夹",
|
|
2012
|
-
x("下载",
|
|
2006
|
+
const R = A.target, y = [
|
|
2007
|
+
x("重命名", ke.edit, "rename"),
|
|
2008
|
+
x("新建文件", ke.file, "new-file"),
|
|
2009
|
+
x("新建文件夹", ke.folder, "new-folder"),
|
|
2010
|
+
x("上传文件", ke.upload, "upload-file"),
|
|
2011
|
+
x("上传文件夹", ke.upload, "upload-folder"),
|
|
2012
|
+
x("下载", ke.download, "download")
|
|
2013
2013
|
];
|
|
2014
|
-
return i &&
|
|
2015
|
-
x("刷新所有技能",
|
|
2016
|
-
),
|
|
2014
|
+
return i && y.push(x("从生产同步", ke.sync, "sync-from-prod")), y.push(
|
|
2015
|
+
x("刷新所有技能", ke.refresh, "refresh-all-skills")
|
|
2016
|
+
), y.push(x("Fork(快照)", ke.fork, "fork-snapshot")), y.push(x("Fork(初始化)", ke.fork, "fork-clean")), R.status === "ARCHIVED" ? y.push(x("取消归档", ke.archive, "unarchive")) : y.push(x("归档", ke.archive, "archive")), y.push(x("删除", ke.trash, "delete")), y;
|
|
2017
2017
|
}
|
|
2018
2018
|
const f = A.target;
|
|
2019
2019
|
return f.is_dir && f.path === ".z_team/.skills" ? [
|
|
2020
|
-
x("添加技能",
|
|
2021
|
-
x("新建文件",
|
|
2022
|
-
x("新建文件夹",
|
|
2023
|
-
x("上传文件",
|
|
2024
|
-
x("上传文件夹",
|
|
2020
|
+
x("添加技能", ke.plus, "add-skill"),
|
|
2021
|
+
x("新建文件", ke.file, "new-file"),
|
|
2022
|
+
x("新建文件夹", ke.folder, "new-folder"),
|
|
2023
|
+
x("上传文件", ke.upload, "upload-file"),
|
|
2024
|
+
x("上传文件夹", ke.upload, "upload-folder")
|
|
2025
2025
|
] : f.is_dir && jl(f.path) ? [
|
|
2026
|
-
x("刷新技能",
|
|
2027
|
-
x("新建文件",
|
|
2028
|
-
x("新建文件夹",
|
|
2029
|
-
x("上传文件",
|
|
2030
|
-
x("上传文件夹",
|
|
2031
|
-
x("重命名",
|
|
2032
|
-
x("删除",
|
|
2033
|
-
x("下载",
|
|
2026
|
+
x("刷新技能", ke.refresh, "refresh-agent-skills"),
|
|
2027
|
+
x("新建文件", ke.file, "new-file"),
|
|
2028
|
+
x("新建文件夹", ke.folder, "new-folder"),
|
|
2029
|
+
x("上传文件", ke.upload, "upload-file"),
|
|
2030
|
+
x("上传文件夹", ke.upload, "upload-folder"),
|
|
2031
|
+
x("重命名", ke.edit, "rename"),
|
|
2032
|
+
x("删除", ke.trash, "delete"),
|
|
2033
|
+
x("下载", ke.download, "download")
|
|
2034
2034
|
] : f.is_dir ? [
|
|
2035
|
-
x("新建文件",
|
|
2036
|
-
x("新建文件夹",
|
|
2037
|
-
x("上传文件",
|
|
2038
|
-
x("上传文件夹",
|
|
2039
|
-
x("重命名",
|
|
2040
|
-
x("删除",
|
|
2041
|
-
x("下载",
|
|
2035
|
+
x("新建文件", ke.file, "new-file"),
|
|
2036
|
+
x("新建文件夹", ke.folder, "new-folder"),
|
|
2037
|
+
x("上传文件", ke.upload, "upload-file"),
|
|
2038
|
+
x("上传文件夹", ke.upload, "upload-folder"),
|
|
2039
|
+
x("重命名", ke.edit, "rename"),
|
|
2040
|
+
x("删除", ke.trash, "delete"),
|
|
2041
|
+
x("下载", ke.download, "download")
|
|
2042
2042
|
] : [
|
|
2043
|
-
x("重命名",
|
|
2044
|
-
x("删除",
|
|
2045
|
-
x("下载",
|
|
2043
|
+
x("重命名", ke.edit, "rename"),
|
|
2044
|
+
x("删除", ke.trash, "delete"),
|
|
2045
|
+
x("下载", ke.download, "download")
|
|
2046
2046
|
];
|
|
2047
2047
|
}, se = A && /* @__PURE__ */ n(
|
|
2048
2048
|
"div",
|
|
@@ -2090,8 +2090,8 @@ const zl = "_root_1tpld_1", Vl = "_treePane_1tpld_9", Jl = "_treeHeader_1tpld_20
|
|
|
2090
2090
|
function sd(e) {
|
|
2091
2091
|
const t = E((S) => S.currentProject), s = E((S) => S.fileTreeVersion), a = E((S) => S.selectedFilePath), o = E((S) => S.selectFile), [i, d] = I({}), [_, p] = I(
|
|
2092
2092
|
/* @__PURE__ */ new Set()
|
|
2093
|
-
),
|
|
2094
|
-
|
|
2093
|
+
), k = fe(_);
|
|
2094
|
+
k.current = _;
|
|
2095
2095
|
const h = j(
|
|
2096
2096
|
async (S) => {
|
|
2097
2097
|
if (!t) return;
|
|
@@ -2110,7 +2110,7 @@ function sd(e) {
|
|
|
2110
2110
|
[t]
|
|
2111
2111
|
);
|
|
2112
2112
|
oe(() => {
|
|
2113
|
-
d({}), t &&
|
|
2113
|
+
d({}), t && k.current.forEach((S) => {
|
|
2114
2114
|
const T = S.indexOf("/");
|
|
2115
2115
|
if (T > 0) {
|
|
2116
2116
|
const g = S.substring(T + 1);
|
|
@@ -2145,8 +2145,8 @@ function sd(e) {
|
|
|
2145
2145
|
path: O
|
|
2146
2146
|
}),
|
|
2147
2147
|
children: [
|
|
2148
|
-
P.is_dir && /* @__PURE__ */ n("span", { className: Te.treeArrow, children:
|
|
2149
|
-
/* @__PURE__ */ n("span", { className: Te.fileItemIcon, children: P.is_dir ?
|
|
2148
|
+
P.is_dir && /* @__PURE__ */ n("span", { className: Te.treeArrow, children: ke.chevron(D) }),
|
|
2149
|
+
/* @__PURE__ */ n("span", { className: Te.fileItemIcon, children: P.is_dir ? ke.folder : ke.file }),
|
|
2150
2150
|
/* @__PURE__ */ n("span", { className: Te.fileItemName, children: P.name }),
|
|
2151
2151
|
P.created_by_agent && /* @__PURE__ */ n("span", { className: Te.fileItemBadge, children: "AI" }),
|
|
2152
2152
|
/* @__PURE__ */ n(
|
|
@@ -2164,7 +2164,7 @@ function sd(e) {
|
|
|
2164
2164
|
!0
|
|
2165
2165
|
);
|
|
2166
2166
|
},
|
|
2167
|
-
children:
|
|
2167
|
+
children: ke.more
|
|
2168
2168
|
}
|
|
2169
2169
|
)
|
|
2170
2170
|
]
|
|
@@ -2216,7 +2216,7 @@ function ad({
|
|
|
2216
2216
|
}
|
|
2217
2217
|
const od = Sa(ad);
|
|
2218
2218
|
function rd() {
|
|
2219
|
-
const e = E((q) => q.currentProject), t = E((q) => q.currentUser), s = E((q) => q.allSkills), a = E((q) => q.skills), o = E((q) => q.loadFileTree), i = E((q) => q.updateScenarioInstance), d = E((q) => q.renameFile), _ = E((q) => q.createFile), p = E((q) => q.createFolder),
|
|
2219
|
+
const e = E((q) => q.currentProject), t = E((q) => q.currentUser), s = E((q) => q.allSkills), a = E((q) => q.skills), o = E((q) => q.loadFileTree), i = E((q) => q.updateScenarioInstance), d = E((q) => q.renameFile), _ = E((q) => q.createFile), p = E((q) => q.createFolder), k = E((q) => q.loadAllSkills), h = E((q) => q.addProjectSkill), l = E((q) => q.removeProjectSkill), { hasTabs: w } = Ua(), S = he(
|
|
2220
2220
|
() => Aa(t),
|
|
2221
2221
|
[t]
|
|
2222
2222
|
), [T, g] = I(null), [U, A] = I(!1), M = j(() => A(!0), []), { handleContextMenu: W, menuNode: P } = Ul({
|
|
@@ -2229,8 +2229,8 @@ function rd() {
|
|
|
2229
2229
|
const q = E.getState().token;
|
|
2230
2230
|
Wa(e.id, q);
|
|
2231
2231
|
}, [e == null ? void 0 : e.id, o]), oe(() => {
|
|
2232
|
-
U &&
|
|
2233
|
-
}, [U,
|
|
2232
|
+
U && k();
|
|
2233
|
+
}, [U, k]);
|
|
2234
2234
|
const O = j(() => {
|
|
2235
2235
|
o("", !0);
|
|
2236
2236
|
}, [o]), N = j(
|
|
@@ -2265,7 +2265,7 @@ function rd() {
|
|
|
2265
2265
|
onClick: (q) => {
|
|
2266
2266
|
e && W(q, "project", e, !0);
|
|
2267
2267
|
},
|
|
2268
|
-
children:
|
|
2268
|
+
children: ke.more
|
|
2269
2269
|
}
|
|
2270
2270
|
),
|
|
2271
2271
|
/* @__PURE__ */ n(
|
|
@@ -2276,7 +2276,7 @@ function rd() {
|
|
|
2276
2276
|
title: "刷新文件树",
|
|
2277
2277
|
disabled: !e,
|
|
2278
2278
|
onClick: O,
|
|
2279
|
-
children:
|
|
2279
|
+
children: ke.refresh
|
|
2280
2280
|
}
|
|
2281
2281
|
)
|
|
2282
2282
|
] })
|
|
@@ -2377,7 +2377,7 @@ function dd(e) {
|
|
|
2377
2377
|
}
|
|
2378
2378
|
return Xa(t) && !s ? ["retry"] : [];
|
|
2379
2379
|
}
|
|
2380
|
-
const ud = "_panel_1q1e4_1", md = "_panelEmbedded_1q1e4_10", pd = "_tabBar_1q1e4_18", _d = "_instanceRow_1q1e4_30", hd = "_instanceLabel_1q1e4_36", fd = "_instanceTitleInline_1q1e4_46", gd = "_foneRelatedInline_1q1e4_63", bd = "_foneRelatedItem_1q1e4_75", yd = "_tabs_1q1e4_89", kd = "_tab_1q1e4_18", vd = "_tabActive_1q1e4_113", Nd = "_tabObservation_1q1e4_119", Td = "_chatToolbar_1q1e4_130", Cd = "_messages_1q1e4_143", Sd = "_scrollTopBtn_1q1e4_159", wd = "_scrollTopBtnVisible_1q1e4_180", Id = "_loadingMore_1q1e4_198", Ad = "_emptyChat_1q1e4_206", xd = "_emptyChatIcon_1q1e4_217", Bd = "_emptyChatTitle_1q1e4_229", Ld = "_emptyChatText_1q1e4_234", qd = "_emptyChatRoster_1q1e4_240", Rd = "_emptyChatMember_1q1e4_248", $d = "_emptyChatAvatar_1q1e4_257", Md = "_emptyChatMemberName_1q1e4_269", Pd = "_emptyChatMemberRole_1q1e4_274", Dd = "_emptyMessages_1q1e4_280", Ed = "_msgOwn_1q1e4_289", Fd = "_msgOwnBubbleWrap_1q1e4_296", Od = "_msgOwnBubble_1q1e4_296", Hd = "_msgOther_1q1e4_319", Wd = "_msgHumanBubble_1q1e4_326", Gd = "_msgAgentAvatar_1q1e4_340", jd = "_msgAgentName_1q1e4_354", Ud = "_msgAgentBody_1q1e4_361", zd = "_taskBootstrapBody_1q1e4_370", Vd = "_msgAgent_1q1e4_340", Jd = "_msgAgentBubble_1q1e4_382", Kd = "_msgOtherBubbleWrap_1q1e4_399", Qd = "_msgAgentBubbleWrap_1q1e4_404", Yd = "_msgTurnTimeline_1q1e4_410", Xd = "_msgSystem_1q1e4_419", Zd = "_msgMeta_1q1e4_431", eu = "_msgTime_1q1e4_440", tu = "_modeBar_1q1e4_447", nu = "_toolToggleBtn_1q1e4_456", su = "_toolToggleBtnActive_1q1e4_478", au = "_modeDropdown_1q1e4_487", ou = "_toolCollapsedSummary_1q1e4_493", ru = "_modeDropdownTrigger_1q1e4_504", iu = "_modeDropdownTriggerDisabled_1q1e4_523", cu = "_modeIcon_1q1e4_531", lu = "_modeIconSvg_1q1e4_538", du = "_modeArrow_1q1e4_545", uu = "_modeDropdownMenu_1q1e4_551", mu = "_modeDropdownItem_1q1e4_564", pu = "_modeCheck_1q1e4_578", _u = "_modeDropdownItemActive_1q1e4_584", hu = "_cmdName_1q1e4_590", fu = "_cmdDesc_1q1e4_596", gu = "_inputArea_1q1e4_605", bu = "_resizeHandle_1q1e4_626", yu = "_resizeHandleActive_1q1e4_651", ku = "_input_1q1e4_605", vu = "_inputRoomy_1q1e4_680", Nu = "_composerInput_1q1e4_685", Tu = "_mentionOverlay_1q1e4_702", Cu = "_mentionDropdown_1q1e4_707", Su = "_mentionItem_1q1e4_721", wu = "_mentionItemSelected_1q1e4_731", Iu = "_mentionLabel_1q1e4_733", Au = "_observerBar_1q1e4_744", xu = "_observerBarWorking_1q1e4_761", Bu = "_observerBarIdle_1q1e4_766", Lu = "_observerIcon_1q1e4_771", qu = "_observerTitle_1q1e4_776", Ru = "_observerSteps_1q1e4_781", $u = "_observerStep_1q1e4_781", Mu = "_observerStepDone_1q1e4_797", Pu = "_observerStepActive_1q1e4_802", Du = "_observerPulse_1q1e4_1", Eu = "_observerStepPending_1q1e4_807", Fu = "_observerThought_1q1e4_812", Ou = "_observerTargets_1q1e4_822", Hu = "_statusBarWrap_1q1e4_839", Wu = "_statusBar_1q1e4_839", Gu = "_execArrow_1q1e4_863", ju = "_execList_1q1e4_870", Uu = "_execItem_1q1e4_876", zu = "_execItemAvatar_1q1e4_886", Vu = "_execItemAvatarSvg_1q1e4_893", Ju = "_execItemName_1q1e4_905", Ku = "_execItemStep_1q1e4_911", Qu = "_execItemPreview_1q1e4_916", Yu = "_execItemPending_1q1e4_926", Xu = "_execStopBtn_1q1e4_936", Zu = "_execIndicator_1q1e4_949", em = "_execDot_1q1e4_955", tm = "_dotPulse_1q1e4_1", nm = "_reasoningBlock_1q1e4_973", sm = "_reasoningSummary_1q1e4_980", am = "_reasoningContent_1q1e4_1002", om = "_toolCallBlock_1q1e4_1015", rm = "_toolCallHeader_1q1e4_1023", im = "_toolCallBody_1q1e4_1057", cm = "_memoryCompressBlock_1q1e4_1078", lm = "_toolResultBlock_1q1e4_1090", dm = "_toolResultHeader_1q1e4_1098", um = "_toolResultBody_1q1e4_1132", mm = "_toolGroupBlock_1q1e4_1155", pm = "_toolGroupSummary_1q1e4_1162", _m = "_toolGroupSummaryLive_1q1e4_1172", hm = "_toolGroupSummaryDone_1q1e4_1176", fm = "_toolGroupSummaryFailed_1q1e4_1180", gm = "_toolGroupStepCount_1q1e4_1184", bm = "_toolGroupReasoning_1q1e4_1206", ym = "_toolGroupReasoningLabel_1q1e4_1214", km = "_toolGroupBody_1q1e4_1221", vm = "_msgContent_1q1e4_1232", Nm = "_loadingBubble_1q1e4_1250", Tm = "_typingIndicator_1q1e4_1259", Cm = "_queuedLabel_1q1e4_1267", Sm = "_turnSummaryBubble_1q1e4_1273", wm = "_turnSummaryInline_1q1e4_1283", Im = "_turnSummaryRefBtn_1q1e4_1294", Am = "_turnSummaryBody_1q1e4_1309", xm = "_loadingDot_1q1e4_1323", Bm = "_loadingPulse_1q1e4_1", Lm = "_msgActions_1q1e4_1342", qm = "_msgActionsPinned_1q1e4_1355", Rm = "_msgActionsOther_1q1e4_1360", $m = "_msgContentWrap_1q1e4_1371", Mm = "_msgContentCollapsed_1q1e4_1375", Pm = "_msgContentFade_1q1e4_1380", Dm = "_msgExpandBtn_1q1e4_1397", Em = "_msgActionBtn_1q1e4_1412", Fm = "_msgActionBtnPromote_1q1e4_1434", Om = "_msgActionBtnStop_1q1e4_1443", Hm = "_quoteBar_1q1e4_1453", Wm = "_quoteBarSender_1q1e4_1466", Gm = "_quoteBarContent_1q1e4_1472", jm = "_quoteBarClose_1q1e4_1480", Um = "_todoList_1q1e4_1551", zm = "_todoEmpty_1q1e4_1557", Vm = "_todoRefreshBtn_1q1e4_1569", Jm = "_todoCard_1q1e4_1581", Km = "_todoCardHeader_1q1e4_1592", Qm = "_todoStatusDot_1q1e4_1598", Ym = "_todoStatusPending_1q1e4_1604", Xm = "_todoStatusRunning_1q1e4_1605", Zm = "_pulse_1q1e4_1", ep = "_todoStatusDone_1q1e4_1606", tp = "_todoStatusFailed_1q1e4_1607", np = "_todoStatusCancelled_1q1e4_1608", sp = "_todoStatusSuspended_1q1e4_1609", ap = "_todoName_1q1e4_1611", op = "_todoTag_1q1e4_1621", rp = "_todoTagPending_1q1e4_1628", ip = "_todoTagRunning_1q1e4_1629", cp = "_todoTagDone_1q1e4_1630", lp = "_todoTagFailed_1q1e4_1631", dp = "_todoCardMeta_1q1e4_1633", up = "_todoFrom_1q1e4_1643", mp = "_todoTime_1q1e4_1648", pp = "_todoPanel_1q1e4_1652", _p = "_tabTask_1q1e4_1661", hp = "_tabTaskName_1q1e4_1667", fp = "_tabTaskClose_1q1e4_1673", gp = "_taskChatPanel_1q1e4_1687", bp = "_taskChatHeader_1q1e4_1695", yp = "_taskChatIcon_1q1e4_1704", kp = "_taskChatTitle_1q1e4_1707", vp = "_taskChatId_1q1e4_1715", Np = "_taskProgressCard_1q1e4_1722", Tp = "_taskProgressHeader_1q1e4_1735", Cp = "_taskProgressIcon_1q1e4_1741", Sp = "_taskProgressLabel_1q1e4_1744", wp = "_taskProgressStatus_1q1e4_1749", Ip = "_taskProgressText_1q1e4_1757", Ap = "_taskProgressHint_1q1e4_1762", xp = "_taskTag_1q1e4_1770", Bp = "_taskTagPending_1q1e4_1790", Lp = "_taskTagRunning_1q1e4_1799", qp = "_taskTagDone_1q1e4_1808", Rp = "_taskTagFailed_1q1e4_1817", $p = "_taskTagSuspended_1q1e4_1826", Mp = "_taskTagQuestion_1q1e4_1836", Pp = "_taskTagCancelled_1q1e4_1847", Dp = "_taskTagActions_1q1e4_1859", Ep = "_taskTagContinueBtn_1q1e4_1868", Fp = "_taskTagResetBtn_1q1e4_1869", Op = "_taskTagCompleteBtn_1q1e4_1870", Hp = "_taskTagSuspendBtn_1q1e4_1871", Wp = "_taskTagCancelBtn_1q1e4_1872", Gp = "_contentTabPanel_1q1e4_1945", jp = "_todoListWrap_1q1e4_1955", Up = "_todoHeader_1q1e4_1963", zp = "_todoHeaderTitle_1q1e4_1972", Vp = "_todoSearchInput_1q1e4_1979", Jp = "_todoScrollArea_1q1e4_1984", Kp = "_todoGroup_1q1e4_1991", Qp = "_todoGroupHeader_1q1e4_1995", Yp = "_todoGroupTitle_1q1e4_2015", Xp = "_todoGroupCount_1q1e4_2023", Zp = "_todoScrollSentinel_1q1e4_2034", e_ = "_todoLoadHint_1q1e4_2039", t_ = "_thinkingPlaceholder_1q1e4_2047", n_ = "_thinkingInline_1q1e4_2065", s_ = "_taskTicker_1q1e4_2084", a_ = "_taskTickerHeader_1q1e4_2094", o_ = "_taskTickerLiveDot_1q1e4_2105", r_ = "_taskTickerLivePulse_1q1e4_1", i_ = "_taskTickerCount_1q1e4_2117", c_ = "_taskTickerBody_1q1e4_2126", l_ = "_taskTickerEmpty_1q1e4_2139", d_ = "_taskTickerPulse_1q1e4_2146", u_ = "_taskTickerPulseDot_1q1e4_1", m_ = "_taskTickerItem_1q1e4_2157", p_ = "_taskTickerFadeIn_1q1e4_1", __ = "_taskTickerItemLatest_1q1e4_2168", h_ = "_taskTickerPop_1q1e4_1", f_ = "_taskTickerTime_1q1e4_2181", g_ = "_taskTickerSender_1q1e4_2186", b_ = "_taskTickerText_1q1e4_2192", y_ = "_taskTickerTerminal_1q1e4_2197", k_ = "_humanAssistPanel_1q1e4_2205", v_ = "_humanAssistHeader_1q1e4_2216", N_ = "_humanAssistBadge_1q1e4_2223", T_ = "_humanAssistTitle_1q1e4_2231", C_ = "_humanAssistAssignee_1q1e4_2236", S_ = "_humanAssistDesc_1q1e4_2240", w_ = "_humanAssistSubmit_1q1e4_2246", I_ = "_humanAssistReadonlyHint_1q1e4_2249", A_ = "_humanAssistLoadingShell_1q1e4_2255", x_ = "_humanAssistSkeletonField_1q1e4_2259", B_ = "_humanAssistSkeletonTextarea_1q1e4_2263", L_ = "_humanAssistSkeletonPulse_1q1e4_1", q_ = "_quoteBlock_1q1e4_2281", R_ = "_quoteSender_1q1e4_2298", $_ = "_quotePreview_1q1e4_2307", M_ = "_msgHeaderRow_1q1e4_2317", P_ = "_msgAgentNameInline_1q1e4_2326", D_ = "_quoteInline_1q1e4_2333", E_ = "_quoteInlineSender_1q1e4_2350", F_ = "_quoteInlinePreview_1q1e4_2359", O_ = "_msgObserved_1q1e4_2368", H_ = "_cardFormBlock_1q1e4_2375", W_ = "_cardFormTitle_1q1e4_2382", G_ = "_cardFormDesc_1q1e4_2387", j_ = "_cardFormField_1q1e4_2392", U_ = "_cardFormRadio_1q1e4_2401", z_ = "_cardFormSubmit_1q1e4_2412", V_ = "_cardFormFieldLabel_1q1e4_2427", J_ = "_cardFormReadonlyOption_1q1e4_2435", K_ = "_cardFormReadonlyOptionSelected_1q1e4_2446", Q_ = "_cardFormReadonlyRadio_1q1e4_2452", Y_ = "_cardFormReadonlyLabel_1q1e4_2459", X_ = "_cardFormReadonlyValue_1q1e4_2463", Z_ = "_cardFormReadonlyFooter_1q1e4_2473", eh = "_taskLifecycleCard_1q1e4_2482", th = "_taskLifecycleHeader_1q1e4_2495", nh = "_taskLifecycleIcon_1q1e4_2509", sh = "_taskLifecycleTitle_1q1e4_2514", ah = "_taskLifecycleToggle_1q1e4_2519", oh = "_taskLifecycleSummary_1q1e4_2526", rh = "_taskLifecycleBody_1q1e4_2534", ih = "_imagePreviewBar_1q1e4_2578", ch = "_imagePreviewItem_1q1e4_2586", lh = "_imagePreviewRemove_1q1e4_2602", dh = "_imageUploadBtn_1q1e4_2629", uh = "_sendBtn_1q1e4_2655", mh = "_sendBtnIcon_1q1e4_2679", ph = "_msgImages_1q1e4_2706", _h = "_msgImageThumb_1q1e4_2713", hh = "_imagePreviewOverlay_1q1e4_2735", fh = "_imagePreviewFull_1q1e4_2749", gh = "_todoGearBtn_1q1e4_2757", bh = "_todoGearBtnActive_1q1e4_2786", yh = "_todoGearBtnDanger_1q1e4_2791", kh = "_noteBtnHasContent_1q1e4_2804", vh = "_closeBtnActive_1q1e4_2815", Nh = "_closedBanner_1q1e4_2825", Th = "_todoBadge_1q1e4_2838", Ch = "_todoHeaderActions_1q1e4_2858", Sh = "_moreActionsWrap_1q1e4_2871", wh = "_forkPopoverAnchor_1q1e4_2890", Ih = "_headerActionBtn_1q1e4_2897", Ah = "_headerActionBtnIcon_1q1e4_2917", xh = "_headerActionBadgeFloat_1q1e4_2925", Bh = "_headerActionBtnActive_1q1e4_2937", Lh = "_headerActionBtnPrimary_1q1e4_2943", qh = "_headerActionBtnClosed_1q1e4_2956", Rh = "_headerActionBadge_1q1e4_2925", $h = "_settingsDrawer_1q1e4_2984", Mh = "_settingsDrawerClosed_1q1e4_3000", Ph = "_drawerHeader_1q1e4_3005", Dh = "_drawerBackBtn_1q1e4_3014", Eh = "_drawerTitle_1q1e4_3034", Fh = "_drawerBody_1q1e4_3040", Oh = "_drawerSection_1q1e4_3045", Hh = "_drawerSectionTitle_1q1e4_3051", Wh = "_drawerSectionBody_1q1e4_3059", Gh = "_memberItem_1q1e4_3064", jh = "_memberAvatar_1q1e4_3075", Uh = "_memberInfo_1q1e4_3087", zh = "_memberName_1q1e4_3091", Vh = "_memberRoleTag_1q1e4_3099", Jh = "_memberRoleAgent_1q1e4_3106", Kh = "_memberRoleHuman_1q1e4_3110", Qh = "_memberRoleOwner_1q1e4_3114", Yh = "_memberStatus_1q1e4_3118", Xh = "_memberStatusOnline_1q1e4_3125", Zh = "_memberStatusOffline_1q1e4_3128", ef = "_memberStatusDot_1q1e4_3131", tf = "_memberRemoveBtn_1q1e4_3145", nf = "_settingRow_1q1e4_3176", sf = "_settingLabel_1q1e4_3187", af = "_settingDesc_1q1e4_3192", of = "_settingValue_1q1e4_3197", rf = "_toggleSwitch_1q1e4_3208", cf = "_toggleSwitchOn_1q1e4_3220", lf = "_addMemberBtn_1q1e4_3240", df = "_addMemberIcon_1q1e4_3260", uf = "_observerHistoryBtn_1q1e4_3267", mf = "_observerTriggerBtn_1q1e4_3289", pf = "_dispatchLogItem_1q1e4_3307", _f = "_dispatchLogHeader_1q1e4_3318", hf = "_dispatchLogTargets_1q1e4_3326", ff = "_dispatchLogSender_1q1e4_3331", gf = "_dispatchLogDuration_1q1e4_3335", bf = "_dispatchLogTime_1q1e4_3340", yf = "_dispatchLogSummary_1q1e4_3346", kf = "_dispatchLogDetail_1q1e4_3357", vf = "_dispatchLogSection_1q1e4_3363", Nf = "_dispatchLogSectionTitle_1q1e4_3368", Tf = "_dispatchLogSectionBody_1q1e4_3375", Cf = "_dispatchLogPre_1q1e4_3381", Sf = "_readStatus_1q1e4_3397", wf = "_readStatusOwn_1q1e4_3404", If = "_readStatusToggle_1q1e4_3408", Af = "_readStatusPopover_1q1e4_3422", xf = "_readStatusSection_1q1e4_3432", Bf = "_readStatusSectionTitle_1q1e4_3438", Lf = "_readStatusSectionList_1q1e4_3446", qf = "_readStatusMemberName_1q1e4_3452", Rf = "_closeFeedbackPopover_1q1e4_3461", $f = "_closeWarningTip_1q1e4_3468", Mf = "_closeFeedbackLabel_1q1e4_3478", Pf = "_closeFeedbackTags_1q1e4_3484", Df = "_closeTagPositive_1q1e4_3497", Ef = "_closeTagNegative_1q1e4_3498", Ff = "_closeTagNeutral_1q1e4_3499", Of = "_closeFeedbackInput_1q1e4_3576", Hf = "_closeFeedbackActions_1q1e4_3580", Wf = "_observerHistoryBtnActive_1q1e4_3588", r = {
|
|
2380
|
+
const ud = "_panel_1q1e4_1", md = "_panelEmbedded_1q1e4_10", pd = "_tabBar_1q1e4_18", _d = "_instanceRow_1q1e4_30", hd = "_instanceLabel_1q1e4_36", fd = "_instanceTitleInline_1q1e4_46", gd = "_foneRelatedInline_1q1e4_63", yd = "_foneRelatedItem_1q1e4_75", kd = "_tabs_1q1e4_89", bd = "_tab_1q1e4_18", vd = "_tabActive_1q1e4_113", Nd = "_tabObservation_1q1e4_119", Td = "_chatToolbar_1q1e4_130", Cd = "_messages_1q1e4_143", Sd = "_scrollTopBtn_1q1e4_159", wd = "_scrollTopBtnVisible_1q1e4_180", Id = "_loadingMore_1q1e4_198", Ad = "_emptyChat_1q1e4_206", xd = "_emptyChatIcon_1q1e4_217", Bd = "_emptyChatTitle_1q1e4_229", Ld = "_emptyChatText_1q1e4_234", qd = "_emptyChatRoster_1q1e4_240", Rd = "_emptyChatMember_1q1e4_248", $d = "_emptyChatAvatar_1q1e4_257", Md = "_emptyChatMemberName_1q1e4_269", Pd = "_emptyChatMemberRole_1q1e4_274", Dd = "_emptyMessages_1q1e4_280", Ed = "_msgOwn_1q1e4_289", Fd = "_msgOwnBubbleWrap_1q1e4_296", Od = "_msgOwnBubble_1q1e4_296", Hd = "_msgOther_1q1e4_319", Wd = "_msgHumanBubble_1q1e4_326", Gd = "_msgAgentAvatar_1q1e4_340", jd = "_msgAgentName_1q1e4_354", Ud = "_msgAgentBody_1q1e4_361", zd = "_taskBootstrapBody_1q1e4_370", Vd = "_msgAgent_1q1e4_340", Jd = "_msgAgentBubble_1q1e4_382", Kd = "_msgOtherBubbleWrap_1q1e4_399", Qd = "_msgAgentBubbleWrap_1q1e4_404", Yd = "_msgTurnTimeline_1q1e4_410", Xd = "_msgSystem_1q1e4_419", Zd = "_msgMeta_1q1e4_431", eu = "_msgTime_1q1e4_440", tu = "_modeBar_1q1e4_447", nu = "_toolToggleBtn_1q1e4_456", su = "_toolToggleBtnActive_1q1e4_478", au = "_modeDropdown_1q1e4_487", ou = "_toolCollapsedSummary_1q1e4_493", ru = "_modeDropdownTrigger_1q1e4_504", iu = "_modeDropdownTriggerDisabled_1q1e4_523", cu = "_modeIcon_1q1e4_531", lu = "_modeIconSvg_1q1e4_538", du = "_modeArrow_1q1e4_545", uu = "_modeDropdownMenu_1q1e4_551", mu = "_modeDropdownItem_1q1e4_564", pu = "_modeCheck_1q1e4_578", _u = "_modeDropdownItemActive_1q1e4_584", hu = "_cmdName_1q1e4_590", fu = "_cmdDesc_1q1e4_596", gu = "_inputArea_1q1e4_605", yu = "_resizeHandle_1q1e4_626", ku = "_resizeHandleActive_1q1e4_651", bu = "_input_1q1e4_605", vu = "_inputRoomy_1q1e4_680", Nu = "_composerInput_1q1e4_685", Tu = "_mentionOverlay_1q1e4_702", Cu = "_mentionDropdown_1q1e4_707", Su = "_mentionItem_1q1e4_721", wu = "_mentionItemSelected_1q1e4_731", Iu = "_mentionLabel_1q1e4_733", Au = "_observerBar_1q1e4_744", xu = "_observerBarWorking_1q1e4_761", Bu = "_observerBarIdle_1q1e4_766", Lu = "_observerIcon_1q1e4_771", qu = "_observerTitle_1q1e4_776", Ru = "_observerSteps_1q1e4_781", $u = "_observerStep_1q1e4_781", Mu = "_observerStepDone_1q1e4_797", Pu = "_observerStepActive_1q1e4_802", Du = "_observerPulse_1q1e4_1", Eu = "_observerStepPending_1q1e4_807", Fu = "_observerThought_1q1e4_812", Ou = "_observerTargets_1q1e4_822", Hu = "_statusBarWrap_1q1e4_839", Wu = "_statusBar_1q1e4_839", Gu = "_execArrow_1q1e4_863", ju = "_execList_1q1e4_870", Uu = "_execItem_1q1e4_876", zu = "_execItemAvatar_1q1e4_886", Vu = "_execItemAvatarSvg_1q1e4_893", Ju = "_execItemName_1q1e4_905", Ku = "_execItemStep_1q1e4_911", Qu = "_execItemPreview_1q1e4_916", Yu = "_execItemPending_1q1e4_926", Xu = "_execStopBtn_1q1e4_936", Zu = "_execIndicator_1q1e4_949", em = "_execDot_1q1e4_955", tm = "_dotPulse_1q1e4_1", nm = "_reasoningBlock_1q1e4_973", sm = "_reasoningSummary_1q1e4_980", am = "_reasoningContent_1q1e4_1002", om = "_toolCallBlock_1q1e4_1015", rm = "_toolCallHeader_1q1e4_1023", im = "_toolCallBody_1q1e4_1057", cm = "_memoryCompressBlock_1q1e4_1078", lm = "_toolResultBlock_1q1e4_1090", dm = "_toolResultHeader_1q1e4_1098", um = "_toolResultBody_1q1e4_1132", mm = "_toolGroupBlock_1q1e4_1155", pm = "_toolGroupSummary_1q1e4_1162", _m = "_toolGroupSummaryLive_1q1e4_1172", hm = "_toolGroupSummaryDone_1q1e4_1176", fm = "_toolGroupSummaryFailed_1q1e4_1180", gm = "_toolGroupStepCount_1q1e4_1184", ym = "_toolGroupReasoning_1q1e4_1206", km = "_toolGroupReasoningLabel_1q1e4_1214", bm = "_toolGroupBody_1q1e4_1221", vm = "_msgContent_1q1e4_1232", Nm = "_loadingBubble_1q1e4_1250", Tm = "_typingIndicator_1q1e4_1259", Cm = "_queuedLabel_1q1e4_1267", Sm = "_turnSummaryBubble_1q1e4_1273", wm = "_turnSummaryInline_1q1e4_1283", Im = "_turnSummaryRefBtn_1q1e4_1294", Am = "_turnSummaryBody_1q1e4_1309", xm = "_loadingDot_1q1e4_1323", Bm = "_loadingPulse_1q1e4_1", Lm = "_msgActions_1q1e4_1342", qm = "_msgActionsPinned_1q1e4_1355", Rm = "_msgActionsOther_1q1e4_1360", $m = "_msgContentWrap_1q1e4_1371", Mm = "_msgContentCollapsed_1q1e4_1375", Pm = "_msgContentFade_1q1e4_1380", Dm = "_msgExpandBtn_1q1e4_1397", Em = "_msgActionBtn_1q1e4_1412", Fm = "_msgActionBtnPromote_1q1e4_1434", Om = "_msgActionBtnStop_1q1e4_1443", Hm = "_quoteBar_1q1e4_1453", Wm = "_quoteBarSender_1q1e4_1466", Gm = "_quoteBarContent_1q1e4_1472", jm = "_quoteBarClose_1q1e4_1480", Um = "_todoList_1q1e4_1551", zm = "_todoEmpty_1q1e4_1557", Vm = "_todoRefreshBtn_1q1e4_1569", Jm = "_todoCard_1q1e4_1581", Km = "_todoCardHeader_1q1e4_1592", Qm = "_todoStatusDot_1q1e4_1598", Ym = "_todoStatusPending_1q1e4_1604", Xm = "_todoStatusRunning_1q1e4_1605", Zm = "_pulse_1q1e4_1", ep = "_todoStatusDone_1q1e4_1606", tp = "_todoStatusFailed_1q1e4_1607", np = "_todoStatusCancelled_1q1e4_1608", sp = "_todoStatusSuspended_1q1e4_1609", ap = "_todoName_1q1e4_1611", op = "_todoTag_1q1e4_1621", rp = "_todoTagPending_1q1e4_1628", ip = "_todoTagRunning_1q1e4_1629", cp = "_todoTagDone_1q1e4_1630", lp = "_todoTagFailed_1q1e4_1631", dp = "_todoCardMeta_1q1e4_1633", up = "_todoFrom_1q1e4_1643", mp = "_todoTime_1q1e4_1648", pp = "_todoPanel_1q1e4_1652", _p = "_tabTask_1q1e4_1661", hp = "_tabTaskName_1q1e4_1667", fp = "_tabTaskClose_1q1e4_1673", gp = "_taskChatPanel_1q1e4_1687", yp = "_taskChatHeader_1q1e4_1695", kp = "_taskChatIcon_1q1e4_1704", bp = "_taskChatTitle_1q1e4_1707", vp = "_taskChatId_1q1e4_1715", Np = "_taskProgressCard_1q1e4_1722", Tp = "_taskProgressHeader_1q1e4_1735", Cp = "_taskProgressIcon_1q1e4_1741", Sp = "_taskProgressLabel_1q1e4_1744", wp = "_taskProgressStatus_1q1e4_1749", Ip = "_taskProgressText_1q1e4_1757", Ap = "_taskProgressHint_1q1e4_1762", xp = "_taskTag_1q1e4_1770", Bp = "_taskTagPending_1q1e4_1790", Lp = "_taskTagRunning_1q1e4_1799", qp = "_taskTagDone_1q1e4_1808", Rp = "_taskTagFailed_1q1e4_1817", $p = "_taskTagSuspended_1q1e4_1826", Mp = "_taskTagQuestion_1q1e4_1836", Pp = "_taskTagCancelled_1q1e4_1847", Dp = "_taskTagActions_1q1e4_1859", Ep = "_taskTagContinueBtn_1q1e4_1868", Fp = "_taskTagResetBtn_1q1e4_1869", Op = "_taskTagCompleteBtn_1q1e4_1870", Hp = "_taskTagSuspendBtn_1q1e4_1871", Wp = "_taskTagCancelBtn_1q1e4_1872", Gp = "_contentTabPanel_1q1e4_1945", jp = "_todoListWrap_1q1e4_1955", Up = "_todoHeader_1q1e4_1963", zp = "_todoHeaderTitle_1q1e4_1972", Vp = "_todoSearchInput_1q1e4_1979", Jp = "_todoScrollArea_1q1e4_1984", Kp = "_todoGroup_1q1e4_1991", Qp = "_todoGroupHeader_1q1e4_1995", Yp = "_todoGroupTitle_1q1e4_2015", Xp = "_todoGroupCount_1q1e4_2023", Zp = "_todoScrollSentinel_1q1e4_2034", e_ = "_todoLoadHint_1q1e4_2039", t_ = "_thinkingPlaceholder_1q1e4_2047", n_ = "_thinkingInline_1q1e4_2065", s_ = "_taskTicker_1q1e4_2084", a_ = "_taskTickerHeader_1q1e4_2094", o_ = "_taskTickerLiveDot_1q1e4_2105", r_ = "_taskTickerLivePulse_1q1e4_1", i_ = "_taskTickerCount_1q1e4_2117", c_ = "_taskTickerBody_1q1e4_2126", l_ = "_taskTickerEmpty_1q1e4_2139", d_ = "_taskTickerPulse_1q1e4_2146", u_ = "_taskTickerPulseDot_1q1e4_1", m_ = "_taskTickerItem_1q1e4_2157", p_ = "_taskTickerFadeIn_1q1e4_1", __ = "_taskTickerItemLatest_1q1e4_2168", h_ = "_taskTickerPop_1q1e4_1", f_ = "_taskTickerTime_1q1e4_2181", g_ = "_taskTickerSender_1q1e4_2186", y_ = "_taskTickerText_1q1e4_2192", k_ = "_taskTickerTerminal_1q1e4_2197", b_ = "_humanAssistPanel_1q1e4_2205", v_ = "_humanAssistHeader_1q1e4_2216", N_ = "_humanAssistBadge_1q1e4_2223", T_ = "_humanAssistTitle_1q1e4_2231", C_ = "_humanAssistAssignee_1q1e4_2236", S_ = "_humanAssistDesc_1q1e4_2240", w_ = "_humanAssistSubmit_1q1e4_2246", I_ = "_humanAssistReadonlyHint_1q1e4_2249", A_ = "_humanAssistLoadingShell_1q1e4_2255", x_ = "_humanAssistSkeletonField_1q1e4_2259", B_ = "_humanAssistSkeletonTextarea_1q1e4_2263", L_ = "_humanAssistSkeletonPulse_1q1e4_1", q_ = "_quoteBlock_1q1e4_2281", R_ = "_quoteSender_1q1e4_2298", $_ = "_quotePreview_1q1e4_2307", M_ = "_msgHeaderRow_1q1e4_2317", P_ = "_msgAgentNameInline_1q1e4_2326", D_ = "_quoteInline_1q1e4_2333", E_ = "_quoteInlineSender_1q1e4_2350", F_ = "_quoteInlinePreview_1q1e4_2359", O_ = "_msgObserved_1q1e4_2368", H_ = "_cardFormBlock_1q1e4_2375", W_ = "_cardFormTitle_1q1e4_2382", G_ = "_cardFormDesc_1q1e4_2387", j_ = "_cardFormField_1q1e4_2392", U_ = "_cardFormRadio_1q1e4_2401", z_ = "_cardFormSubmit_1q1e4_2412", V_ = "_cardFormFieldLabel_1q1e4_2427", J_ = "_cardFormReadonlyOption_1q1e4_2435", K_ = "_cardFormReadonlyOptionSelected_1q1e4_2446", Q_ = "_cardFormReadonlyRadio_1q1e4_2452", Y_ = "_cardFormReadonlyLabel_1q1e4_2459", X_ = "_cardFormReadonlyValue_1q1e4_2463", Z_ = "_cardFormReadonlyFooter_1q1e4_2473", eh = "_taskLifecycleCard_1q1e4_2482", th = "_taskLifecycleHeader_1q1e4_2495", nh = "_taskLifecycleIcon_1q1e4_2509", sh = "_taskLifecycleTitle_1q1e4_2514", ah = "_taskLifecycleToggle_1q1e4_2519", oh = "_taskLifecycleSummary_1q1e4_2526", rh = "_taskLifecycleBody_1q1e4_2534", ih = "_imagePreviewBar_1q1e4_2578", ch = "_imagePreviewItem_1q1e4_2586", lh = "_imagePreviewRemove_1q1e4_2602", dh = "_imageUploadBtn_1q1e4_2629", uh = "_sendBtn_1q1e4_2655", mh = "_sendBtnIcon_1q1e4_2679", ph = "_msgImages_1q1e4_2706", _h = "_msgImageThumb_1q1e4_2713", hh = "_imagePreviewOverlay_1q1e4_2735", fh = "_imagePreviewFull_1q1e4_2749", gh = "_todoGearBtn_1q1e4_2757", yh = "_todoGearBtnActive_1q1e4_2786", kh = "_todoGearBtnDanger_1q1e4_2791", bh = "_noteBtnHasContent_1q1e4_2804", vh = "_closeBtnActive_1q1e4_2815", Nh = "_closedBanner_1q1e4_2825", Th = "_todoBadge_1q1e4_2838", Ch = "_todoHeaderActions_1q1e4_2858", Sh = "_moreActionsWrap_1q1e4_2871", wh = "_forkPopoverAnchor_1q1e4_2890", Ih = "_headerActionBtn_1q1e4_2897", Ah = "_headerActionBtnIcon_1q1e4_2917", xh = "_headerActionBadgeFloat_1q1e4_2925", Bh = "_headerActionBtnActive_1q1e4_2937", Lh = "_headerActionBtnPrimary_1q1e4_2943", qh = "_headerActionBtnClosed_1q1e4_2956", Rh = "_headerActionBadge_1q1e4_2925", $h = "_settingsDrawer_1q1e4_2984", Mh = "_settingsDrawerClosed_1q1e4_3000", Ph = "_drawerHeader_1q1e4_3005", Dh = "_drawerBackBtn_1q1e4_3014", Eh = "_drawerTitle_1q1e4_3034", Fh = "_drawerBody_1q1e4_3040", Oh = "_drawerSection_1q1e4_3045", Hh = "_drawerSectionTitle_1q1e4_3051", Wh = "_drawerSectionBody_1q1e4_3059", Gh = "_memberItem_1q1e4_3064", jh = "_memberAvatar_1q1e4_3075", Uh = "_memberInfo_1q1e4_3087", zh = "_memberName_1q1e4_3091", Vh = "_memberRoleTag_1q1e4_3099", Jh = "_memberRoleAgent_1q1e4_3106", Kh = "_memberRoleHuman_1q1e4_3110", Qh = "_memberRoleOwner_1q1e4_3114", Yh = "_memberStatus_1q1e4_3118", Xh = "_memberStatusOnline_1q1e4_3125", Zh = "_memberStatusOffline_1q1e4_3128", ef = "_memberStatusDot_1q1e4_3131", tf = "_memberRemoveBtn_1q1e4_3145", nf = "_settingRow_1q1e4_3176", sf = "_settingLabel_1q1e4_3187", af = "_settingDesc_1q1e4_3192", of = "_settingValue_1q1e4_3197", rf = "_toggleSwitch_1q1e4_3208", cf = "_toggleSwitchOn_1q1e4_3220", lf = "_addMemberBtn_1q1e4_3240", df = "_addMemberIcon_1q1e4_3260", uf = "_observerHistoryBtn_1q1e4_3267", mf = "_observerTriggerBtn_1q1e4_3289", pf = "_dispatchLogItem_1q1e4_3307", _f = "_dispatchLogHeader_1q1e4_3318", hf = "_dispatchLogTargets_1q1e4_3326", ff = "_dispatchLogSender_1q1e4_3331", gf = "_dispatchLogDuration_1q1e4_3335", yf = "_dispatchLogTime_1q1e4_3340", kf = "_dispatchLogSummary_1q1e4_3346", bf = "_dispatchLogDetail_1q1e4_3357", vf = "_dispatchLogSection_1q1e4_3363", Nf = "_dispatchLogSectionTitle_1q1e4_3368", Tf = "_dispatchLogSectionBody_1q1e4_3375", Cf = "_dispatchLogPre_1q1e4_3381", Sf = "_readStatus_1q1e4_3397", wf = "_readStatusOwn_1q1e4_3404", If = "_readStatusToggle_1q1e4_3408", Af = "_readStatusPopover_1q1e4_3422", xf = "_readStatusSection_1q1e4_3432", Bf = "_readStatusSectionTitle_1q1e4_3438", Lf = "_readStatusSectionList_1q1e4_3446", qf = "_readStatusMemberName_1q1e4_3452", Rf = "_closeFeedbackPopover_1q1e4_3461", $f = "_closeWarningTip_1q1e4_3468", Mf = "_closeFeedbackLabel_1q1e4_3478", Pf = "_closeFeedbackTags_1q1e4_3484", Df = "_closeTagPositive_1q1e4_3497", Ef = "_closeTagNegative_1q1e4_3498", Ff = "_closeTagNeutral_1q1e4_3499", Of = "_closeFeedbackInput_1q1e4_3576", Hf = "_closeFeedbackActions_1q1e4_3580", Wf = "_observerHistoryBtnActive_1q1e4_3588", r = {
|
|
2381
2381
|
panel: ud,
|
|
2382
2382
|
panelEmbedded: md,
|
|
2383
2383
|
tabBar: pd,
|
|
@@ -2385,9 +2385,9 @@ const ud = "_panel_1q1e4_1", md = "_panelEmbedded_1q1e4_10", pd = "_tabBar_1q1e4
|
|
|
2385
2385
|
instanceLabel: hd,
|
|
2386
2386
|
instanceTitleInline: fd,
|
|
2387
2387
|
foneRelatedInline: gd,
|
|
2388
|
-
foneRelatedItem:
|
|
2389
|
-
tabs:
|
|
2390
|
-
tab:
|
|
2388
|
+
foneRelatedItem: yd,
|
|
2389
|
+
tabs: kd,
|
|
2390
|
+
tab: bd,
|
|
2391
2391
|
tabActive: vd,
|
|
2392
2392
|
tabObservation: Nd,
|
|
2393
2393
|
chatToolbar: Td,
|
|
@@ -2439,9 +2439,9 @@ const ud = "_panel_1q1e4_1", md = "_panelEmbedded_1q1e4_10", pd = "_tabBar_1q1e4
|
|
|
2439
2439
|
cmdName: hu,
|
|
2440
2440
|
cmdDesc: fu,
|
|
2441
2441
|
inputArea: gu,
|
|
2442
|
-
resizeHandle:
|
|
2443
|
-
resizeHandleActive:
|
|
2444
|
-
input:
|
|
2442
|
+
resizeHandle: yu,
|
|
2443
|
+
resizeHandleActive: ku,
|
|
2444
|
+
input: bu,
|
|
2445
2445
|
inputRoomy: vu,
|
|
2446
2446
|
composerInput: Nu,
|
|
2447
2447
|
mentionOverlay: Tu,
|
|
@@ -2493,9 +2493,9 @@ const ud = "_panel_1q1e4_1", md = "_panelEmbedded_1q1e4_10", pd = "_tabBar_1q1e4
|
|
|
2493
2493
|
toolGroupSummaryDone: hm,
|
|
2494
2494
|
toolGroupSummaryFailed: fm,
|
|
2495
2495
|
toolGroupStepCount: gm,
|
|
2496
|
-
toolGroupReasoning:
|
|
2497
|
-
toolGroupReasoningLabel:
|
|
2498
|
-
toolGroupBody:
|
|
2496
|
+
toolGroupReasoning: ym,
|
|
2497
|
+
toolGroupReasoningLabel: km,
|
|
2498
|
+
toolGroupBody: bm,
|
|
2499
2499
|
msgContent: vm,
|
|
2500
2500
|
loadingBubble: Nm,
|
|
2501
2501
|
typingIndicator: Tm,
|
|
@@ -2547,9 +2547,9 @@ const ud = "_panel_1q1e4_1", md = "_panelEmbedded_1q1e4_10", pd = "_tabBar_1q1e4
|
|
|
2547
2547
|
tabTaskName: hp,
|
|
2548
2548
|
tabTaskClose: fp,
|
|
2549
2549
|
taskChatPanel: gp,
|
|
2550
|
-
taskChatHeader:
|
|
2551
|
-
taskChatIcon:
|
|
2552
|
-
taskChatTitle:
|
|
2550
|
+
taskChatHeader: yp,
|
|
2551
|
+
taskChatIcon: kp,
|
|
2552
|
+
taskChatTitle: bp,
|
|
2553
2553
|
taskChatId: vp,
|
|
2554
2554
|
taskProgressCard: Np,
|
|
2555
2555
|
taskProgressHeader: Tp,
|
|
@@ -2601,9 +2601,9 @@ const ud = "_panel_1q1e4_1", md = "_panelEmbedded_1q1e4_10", pd = "_tabBar_1q1e4
|
|
|
2601
2601
|
taskTickerPop: h_,
|
|
2602
2602
|
taskTickerTime: f_,
|
|
2603
2603
|
taskTickerSender: g_,
|
|
2604
|
-
taskTickerText:
|
|
2605
|
-
taskTickerTerminal:
|
|
2606
|
-
humanAssistPanel:
|
|
2604
|
+
taskTickerText: y_,
|
|
2605
|
+
taskTickerTerminal: k_,
|
|
2606
|
+
humanAssistPanel: b_,
|
|
2607
2607
|
humanAssistHeader: v_,
|
|
2608
2608
|
humanAssistBadge: N_,
|
|
2609
2609
|
humanAssistTitle: T_,
|
|
@@ -2655,9 +2655,9 @@ const ud = "_panel_1q1e4_1", md = "_panelEmbedded_1q1e4_10", pd = "_tabBar_1q1e4
|
|
|
2655
2655
|
imagePreviewOverlay: hh,
|
|
2656
2656
|
imagePreviewFull: fh,
|
|
2657
2657
|
todoGearBtn: gh,
|
|
2658
|
-
todoGearBtnActive:
|
|
2659
|
-
todoGearBtnDanger:
|
|
2660
|
-
noteBtnHasContent:
|
|
2658
|
+
todoGearBtnActive: yh,
|
|
2659
|
+
todoGearBtnDanger: kh,
|
|
2660
|
+
noteBtnHasContent: bh,
|
|
2661
2661
|
closeBtnActive: vh,
|
|
2662
2662
|
closedBanner: Nh,
|
|
2663
2663
|
todoBadge: Th,
|
|
@@ -2708,9 +2708,9 @@ const ud = "_panel_1q1e4_1", md = "_panelEmbedded_1q1e4_10", pd = "_tabBar_1q1e4
|
|
|
2708
2708
|
dispatchLogTargets: hf,
|
|
2709
2709
|
dispatchLogSender: ff,
|
|
2710
2710
|
dispatchLogDuration: gf,
|
|
2711
|
-
dispatchLogTime:
|
|
2712
|
-
dispatchLogSummary:
|
|
2713
|
-
dispatchLogDetail:
|
|
2711
|
+
dispatchLogTime: yf,
|
|
2712
|
+
dispatchLogSummary: kf,
|
|
2713
|
+
dispatchLogDetail: bf,
|
|
2714
2714
|
dispatchLogSection: vf,
|
|
2715
2715
|
dispatchLogSectionTitle: Nf,
|
|
2716
2716
|
dispatchLogSectionBody: Tf,
|
|
@@ -3068,13 +3068,13 @@ function hn(e, t) {
|
|
|
3068
3068
|
const o = a, i = o.options ?? o.choices;
|
|
3069
3069
|
if (Array.isArray(i) && a.fields.length > 0 && a.fields.every(
|
|
3070
3070
|
(p) => {
|
|
3071
|
-
var
|
|
3072
|
-
return p.type !== "single_choice" && p.type !== "multi_choice" || !(((
|
|
3071
|
+
var k;
|
|
3072
|
+
return p.type !== "single_choice" && p.type !== "multi_choice" || !(((k = p.options) == null ? void 0 : k.length) > 0);
|
|
3073
3073
|
}
|
|
3074
3074
|
)) {
|
|
3075
|
-
const p = i.map(to).filter((
|
|
3075
|
+
const p = i.map(to).filter((k) => k != null);
|
|
3076
3076
|
p.length > 0 && (a.fields = a.fields.map(
|
|
3077
|
-
(
|
|
3077
|
+
(k, h) => h === 0 ? { ...k, options: p } : k
|
|
3078
3078
|
));
|
|
3079
3079
|
}
|
|
3080
3080
|
const d = a;
|
|
@@ -3267,8 +3267,8 @@ function Hs(e, t) {
|
|
|
3267
3267
|
const p = a.items.slice(0, -1).concat({
|
|
3268
3268
|
...d,
|
|
3269
3269
|
text: _
|
|
3270
|
-
}),
|
|
3271
|
-
return It.set(e,
|
|
3270
|
+
}), k = { content: t, items: p };
|
|
3271
|
+
return It.set(e, k), p;
|
|
3272
3272
|
}
|
|
3273
3273
|
if ((d == null ? void 0 : d.type) === "card_form") {
|
|
3274
3274
|
const _ = Sn(
|
|
@@ -3403,11 +3403,11 @@ function ms(e, t) {
|
|
|
3403
3403
|
}
|
|
3404
3404
|
return null;
|
|
3405
3405
|
}
|
|
3406
|
-
const gg = "_cardShell_1pwcy_1",
|
|
3406
|
+
const gg = "_cardShell_1pwcy_1", yg = "_cardLoading_1pwcy_13", kg = "_cardTitle_1pwcy_20", bg = "_cardDescription_1pwcy_27", vg = "_fieldBlock_1pwcy_34", Ng = "_fieldLabel_1pwcy_42", Tg = "_requiredMark_1pwcy_48", Cg = "_choiceGroup_1pwcy_53", Sg = "_choiceList_1pwcy_57", wg = "_optionLabel_1pwcy_61", Ig = "_optionDesc_1pwcy_65", Ag = "_submitRow_1pwcy_71", xg = "_submittedMeta_1pwcy_77", Bg = "_readonlyValue_1pwcy_85", Lg = "_readonlyTag_1pwcy_91", qg = "_statusExpired_1pwcy_101", be = {
|
|
3407
3407
|
cardShell: gg,
|
|
3408
|
-
cardLoading:
|
|
3409
|
-
cardTitle:
|
|
3410
|
-
cardDescription:
|
|
3408
|
+
cardLoading: yg,
|
|
3409
|
+
cardTitle: kg,
|
|
3410
|
+
cardDescription: bg,
|
|
3411
3411
|
fieldBlock: vg,
|
|
3412
3412
|
fieldLabel: Ng,
|
|
3413
3413
|
requiredMark: Tg,
|
|
@@ -3434,39 +3434,39 @@ function Og({
|
|
|
3434
3434
|
onChange: s,
|
|
3435
3435
|
disabled: a
|
|
3436
3436
|
}) {
|
|
3437
|
-
const o = t.length > 0 ? t : Array.from({ length: Fg }, () => ""), i = (p,
|
|
3437
|
+
const o = t.length > 0 ? t : Array.from({ length: Fg }, () => ""), i = (p, k) => {
|
|
3438
3438
|
const h = [...o];
|
|
3439
|
-
h[p] =
|
|
3439
|
+
h[p] = k, s(h);
|
|
3440
3440
|
}, d = () => {
|
|
3441
3441
|
const p = e.max ?? 20;
|
|
3442
3442
|
o.length >= p || s([...o, ""]);
|
|
3443
3443
|
}, _ = (p) => {
|
|
3444
|
-
const
|
|
3445
|
-
o.length <=
|
|
3444
|
+
const k = e.min ?? 1;
|
|
3445
|
+
o.length <= k || s(o.filter((h, l) => l !== p));
|
|
3446
3446
|
};
|
|
3447
|
-
return /* @__PURE__ */ c("div", { className:
|
|
3448
|
-
/* @__PURE__ */ c(Gs, { strong: !0, className:
|
|
3447
|
+
return /* @__PURE__ */ c("div", { className: be.fieldBlock, children: [
|
|
3448
|
+
/* @__PURE__ */ c(Gs, { strong: !0, className: be.fieldLabel, children: [
|
|
3449
3449
|
e.label,
|
|
3450
|
-
e.required !== !1 ? /* @__PURE__ */ n("span", { className:
|
|
3450
|
+
e.required !== !1 ? /* @__PURE__ */ n("span", { className: be.requiredMark, children: "*" }) : null
|
|
3451
3451
|
] }),
|
|
3452
3452
|
e.description ? /* @__PURE__ */ n(Gs, { type: "secondary", className: zt.hint, children: e.description }) : null,
|
|
3453
3453
|
/* @__PURE__ */ c("div", { className: zt.list, children: [
|
|
3454
|
-
o.map((p,
|
|
3454
|
+
o.map((p, k) => /* @__PURE__ */ c("div", { className: zt.row, children: [
|
|
3455
3455
|
/* @__PURE__ */ n("div", { className: zt.inputWrap, children: /* @__PURE__ */ n(
|
|
3456
3456
|
Vi,
|
|
3457
3457
|
{
|
|
3458
3458
|
value: p,
|
|
3459
|
-
onChange: (h) => i(
|
|
3459
|
+
onChange: (h) => i(k, h)
|
|
3460
3460
|
}
|
|
3461
3461
|
) }),
|
|
3462
3462
|
o.length > (e.min ?? 1) ? /* @__PURE__ */ n(
|
|
3463
3463
|
No,
|
|
3464
3464
|
{
|
|
3465
3465
|
className: zt.remove,
|
|
3466
|
-
onClick: () => !a && _(
|
|
3466
|
+
onClick: () => !a && _(k)
|
|
3467
3467
|
}
|
|
3468
3468
|
) : null
|
|
3469
|
-
] }, `git-row-${
|
|
3469
|
+
] }, `git-row-${k}`)),
|
|
3470
3470
|
/* @__PURE__ */ n(
|
|
3471
3471
|
Nt,
|
|
3472
3472
|
{
|
|
@@ -3492,10 +3492,10 @@ function Hg({
|
|
|
3492
3492
|
() => new Set(e.options.map((d) => d.id)),
|
|
3493
3493
|
[e.options]
|
|
3494
3494
|
), i = t.filter((d) => o.has(d));
|
|
3495
|
-
return /* @__PURE__ */ c("div", { className:
|
|
3496
|
-
/* @__PURE__ */ c(js, { strong: !0, className:
|
|
3495
|
+
return /* @__PURE__ */ c("div", { className: be.fieldBlock, children: [
|
|
3496
|
+
/* @__PURE__ */ c(js, { strong: !0, className: be.fieldLabel, children: [
|
|
3497
3497
|
e.label,
|
|
3498
|
-
e.required !== !1 ? /* @__PURE__ */ n("span", { className:
|
|
3498
|
+
e.required !== !1 ? /* @__PURE__ */ n("span", { className: be.requiredMark, children: "*" }) : null
|
|
3499
3499
|
] }),
|
|
3500
3500
|
/* @__PURE__ */ n(
|
|
3501
3501
|
Wn.Group,
|
|
@@ -3503,15 +3503,15 @@ function Hg({
|
|
|
3503
3503
|
value: i,
|
|
3504
3504
|
onChange: (d) => s(d.map(String)),
|
|
3505
3505
|
disabled: a,
|
|
3506
|
-
className:
|
|
3507
|
-
children: /* @__PURE__ */ n(Vt, { direction: "vertical", size: 8, className:
|
|
3506
|
+
className: be.choiceGroup,
|
|
3507
|
+
children: /* @__PURE__ */ n(Vt, { direction: "vertical", size: 8, className: be.choiceList, children: e.options.length === 0 ? /* @__PURE__ */ n("span", { className: be.optionDesc, children: "暂无可选项" }) : e.options.map((d) => /* @__PURE__ */ c(
|
|
3508
3508
|
Wn,
|
|
3509
3509
|
{
|
|
3510
3510
|
value: d.id,
|
|
3511
3511
|
disabled: a || d.disabled,
|
|
3512
3512
|
children: [
|
|
3513
|
-
/* @__PURE__ */ n("span", { className:
|
|
3514
|
-
d.description ? /* @__PURE__ */ n(js, { type: "secondary", className:
|
|
3513
|
+
/* @__PURE__ */ n("span", { className: be.optionLabel, children: d.label }),
|
|
3514
|
+
d.description ? /* @__PURE__ */ n(js, { type: "secondary", className: be.optionDesc, children: d.description }) : null
|
|
3515
3515
|
]
|
|
3516
3516
|
},
|
|
3517
3517
|
d.id
|
|
@@ -3527,10 +3527,10 @@ function Wg({
|
|
|
3527
3527
|
onChange: s,
|
|
3528
3528
|
disabled: a
|
|
3529
3529
|
}) {
|
|
3530
|
-
return /* @__PURE__ */ c("div", { className:
|
|
3531
|
-
/* @__PURE__ */ c(Us, { strong: !0, className:
|
|
3530
|
+
return /* @__PURE__ */ c("div", { className: be.fieldBlock, children: [
|
|
3531
|
+
/* @__PURE__ */ c(Us, { strong: !0, className: be.fieldLabel, children: [
|
|
3532
3532
|
e.label,
|
|
3533
|
-
e.required !== !1 ? /* @__PURE__ */ n("span", { className:
|
|
3533
|
+
e.required !== !1 ? /* @__PURE__ */ n("span", { className: be.requiredMark, children: "*" }) : null
|
|
3534
3534
|
] }),
|
|
3535
3535
|
/* @__PURE__ */ n(
|
|
3536
3536
|
gs.Group,
|
|
@@ -3538,15 +3538,15 @@ function Wg({
|
|
|
3538
3538
|
value: t,
|
|
3539
3539
|
onChange: (o) => s(String(o.target.value)),
|
|
3540
3540
|
disabled: a,
|
|
3541
|
-
className:
|
|
3542
|
-
children: /* @__PURE__ */ n(Vt, { direction: "vertical", size: 8, className:
|
|
3541
|
+
className: be.choiceGroup,
|
|
3542
|
+
children: /* @__PURE__ */ n(Vt, { direction: "vertical", size: 8, className: be.choiceList, children: e.options.map((o) => /* @__PURE__ */ c(
|
|
3543
3543
|
gs,
|
|
3544
3544
|
{
|
|
3545
3545
|
value: o.id,
|
|
3546
3546
|
disabled: a || o.disabled,
|
|
3547
3547
|
children: [
|
|
3548
|
-
/* @__PURE__ */ n("span", { className:
|
|
3549
|
-
o.description ? /* @__PURE__ */ n(Us, { type: "secondary", className:
|
|
3548
|
+
/* @__PURE__ */ n("span", { className: be.optionLabel, children: o.label }),
|
|
3549
|
+
o.description ? /* @__PURE__ */ n(Us, { type: "secondary", className: be.optionDesc, children: o.description }) : null
|
|
3550
3550
|
]
|
|
3551
3551
|
},
|
|
3552
3552
|
o.id
|
|
@@ -3562,12 +3562,12 @@ function Gg({
|
|
|
3562
3562
|
onChange: s,
|
|
3563
3563
|
disabled: a
|
|
3564
3564
|
}) {
|
|
3565
|
-
return /* @__PURE__ */ c("div", { className:
|
|
3566
|
-
/* @__PURE__ */ c(zs, { strong: !0, className:
|
|
3565
|
+
return /* @__PURE__ */ c("div", { className: be.fieldBlock, children: [
|
|
3566
|
+
/* @__PURE__ */ c(zs, { strong: !0, className: be.fieldLabel, children: [
|
|
3567
3567
|
e.label,
|
|
3568
|
-
e.required !== !1 ? /* @__PURE__ */ n("span", { className:
|
|
3568
|
+
e.required !== !1 ? /* @__PURE__ */ n("span", { className: be.requiredMark, children: "*" }) : null
|
|
3569
3569
|
] }),
|
|
3570
|
-
e.description ? /* @__PURE__ */ n(zs, { type: "secondary", className:
|
|
3570
|
+
e.description ? /* @__PURE__ */ n(zs, { type: "secondary", className: be.optionDesc, children: e.description }) : null,
|
|
3571
3571
|
/* @__PURE__ */ n(
|
|
3572
3572
|
mn.TextArea,
|
|
3573
3573
|
{
|
|
@@ -3633,7 +3633,7 @@ function io({
|
|
|
3633
3633
|
}
|
|
3634
3634
|
const { Text: jg } = Rt;
|
|
3635
3635
|
function Ug() {
|
|
3636
|
-
return /* @__PURE__ */ n("div", { className: `${
|
|
3636
|
+
return /* @__PURE__ */ n("div", { className: `${be.cardShell} ${be.cardLoading}`, children: /* @__PURE__ */ n(jg, { type: "secondary", children: "卡片渲染中…" }) });
|
|
3637
3637
|
}
|
|
3638
3638
|
const { Text: xt } = Rt;
|
|
3639
3639
|
function zg(e) {
|
|
@@ -3673,14 +3673,14 @@ function Qg(e, t, s) {
|
|
|
3673
3673
|
}
|
|
3674
3674
|
if (e.type === "multi_choice") {
|
|
3675
3675
|
const o = Array.isArray(t) ? t : [];
|
|
3676
|
-
return o.length === 0 ? /* @__PURE__ */ n(xt, { type: "secondary", children: "未选择" }) : /* @__PURE__ */ n("div", { children: o.map((i) => /* @__PURE__ */ n("span", { className:
|
|
3676
|
+
return o.length === 0 ? /* @__PURE__ */ n(xt, { type: "secondary", children: "未选择" }) : /* @__PURE__ */ n("div", { children: o.map((i) => /* @__PURE__ */ n("span", { className: be.readonlyTag, children: s.get(i) || i }, i)) });
|
|
3677
3677
|
}
|
|
3678
3678
|
if (e.type === "text_input") {
|
|
3679
3679
|
const o = typeof t == "string" ? t.trim() : "";
|
|
3680
|
-
return o ? /* @__PURE__ */ n("span", { className:
|
|
3680
|
+
return o ? /* @__PURE__ */ n("span", { className: be.readonlyValue, children: o }) : /* @__PURE__ */ n(xt, { type: "secondary", children: "未填写" });
|
|
3681
3681
|
}
|
|
3682
3682
|
const a = typeof t == "string" ? t : "";
|
|
3683
|
-
return a ? /* @__PURE__ */ n("span", { className:
|
|
3683
|
+
return a ? /* @__PURE__ */ n("span", { className: be.readonlyValue, children: s.get(a) || a }) : /* @__PURE__ */ n(xt, { type: "secondary", children: "未选择" });
|
|
3684
3684
|
}
|
|
3685
3685
|
function cn({
|
|
3686
3686
|
projectId: e,
|
|
@@ -3692,7 +3692,7 @@ function cn({
|
|
|
3692
3692
|
const i = he(
|
|
3693
3693
|
() => hn(a, { messageCreatedAt: o }),
|
|
3694
3694
|
[a, o]
|
|
3695
|
-
), [d, _] = I({}), [p,
|
|
3695
|
+
), [d, _] = I({}), [p, k] = I(!1), [h, l] = I(
|
|
3696
3696
|
null
|
|
3697
3697
|
), w = i ? no(i, o) : !1, S = w || h != null;
|
|
3698
3698
|
oe(() => {
|
|
@@ -3739,7 +3739,7 @@ function cn({
|
|
|
3739
3739
|
return;
|
|
3740
3740
|
}
|
|
3741
3741
|
const v = i.blockId || s, D = Jg(i.fields, d);
|
|
3742
|
-
|
|
3742
|
+
k(!0);
|
|
3743
3743
|
try {
|
|
3744
3744
|
const B = await as(
|
|
3745
3745
|
e,
|
|
@@ -3765,19 +3765,19 @@ function cn({
|
|
|
3765
3765
|
const x = B;
|
|
3766
3766
|
Pe.error(x.userMessage || x.message || "提交失败");
|
|
3767
3767
|
} finally {
|
|
3768
|
-
|
|
3768
|
+
k(!1);
|
|
3769
3769
|
}
|
|
3770
3770
|
}, [i, s, S, d, t, e, p]);
|
|
3771
3771
|
if (!i) {
|
|
3772
3772
|
const N = a.trim();
|
|
3773
|
-
return !N || N.startsWith("{") || N.startsWith("```") || Qn(N) || /\[\[CARD_FORM:/i.test(N) ? /* @__PURE__ */ n(Ug, {}) : /* @__PURE__ */ n("div", { className:
|
|
3773
|
+
return !N || N.startsWith("{") || N.startsWith("```") || Qn(N) || /\[\[CARD_FORM:/i.test(N) ? /* @__PURE__ */ n(Ug, {}) : /* @__PURE__ */ n("div", { className: be.cardShell, children: /* @__PURE__ */ n(xt, { type: "secondary", children: "卡片表单数据无效" }) });
|
|
3774
3774
|
}
|
|
3775
3775
|
const W = i.status === "expired" || i.status === "cancelled" || S, P = i.submitLabel || "确认", O = S && Kn(g);
|
|
3776
|
-
return /* @__PURE__ */ c("div", { className:
|
|
3777
|
-
/* @__PURE__ */ n("div", { className:
|
|
3778
|
-
i.description ? /* @__PURE__ */ n("div", { className:
|
|
3779
|
-
i.fields.map((N) => /* @__PURE__ */ n("div", { children: W ? /* @__PURE__ */ c("div", { className:
|
|
3780
|
-
/* @__PURE__ */ n(xt, { strong: !0, className:
|
|
3776
|
+
return /* @__PURE__ */ c("div", { className: be.cardShell, children: [
|
|
3777
|
+
/* @__PURE__ */ n("div", { className: be.cardTitle, children: i.title }),
|
|
3778
|
+
i.description ? /* @__PURE__ */ n("div", { className: be.cardDescription, children: i.description }) : null,
|
|
3779
|
+
i.fields.map((N) => /* @__PURE__ */ n("div", { children: W ? /* @__PURE__ */ c("div", { className: be.fieldBlock, children: [
|
|
3780
|
+
/* @__PURE__ */ n(xt, { strong: !0, className: be.fieldLabel, children: N.label }),
|
|
3781
3781
|
Qg(N, g[N.name], T)
|
|
3782
3782
|
] }) : /* @__PURE__ */ n(
|
|
3783
3783
|
io,
|
|
@@ -3788,8 +3788,8 @@ function cn({
|
|
|
3788
3788
|
disabled: p
|
|
3789
3789
|
}
|
|
3790
3790
|
) }, N.name)),
|
|
3791
|
-
W ? null : /* @__PURE__ */ n("div", { className:
|
|
3792
|
-
O && U ? /* @__PURE__ */ c("div", { className:
|
|
3791
|
+
W ? null : /* @__PURE__ */ n("div", { className: be.submitRow, children: /* @__PURE__ */ n(Nt, { type: "primary", loading: p, onClick: M, children: P }) }),
|
|
3792
|
+
O && U ? /* @__PURE__ */ c("div", { className: be.submittedMeta, children: [
|
|
3793
3793
|
U.name ? `${U.name} ` : "",
|
|
3794
3794
|
"已于 ",
|
|
3795
3795
|
U.at,
|
|
@@ -3801,10 +3801,10 @@ function cn({
|
|
|
3801
3801
|
return (N.type === "single_choice" || N.type === "multi_choice") && !(((v = N.options) == null ? void 0 : v.length) > 0);
|
|
3802
3802
|
}
|
|
3803
3803
|
) ? /* @__PURE__ */ n(xt, { type: "secondary", children: "卡片选项未配置,请让 Agent 重新发送" }) : null,
|
|
3804
|
-
i.status === "expired" || i.status === "cancelled" ? /* @__PURE__ */ n("div", { className: `${
|
|
3804
|
+
i.status === "expired" || i.status === "cancelled" ? /* @__PURE__ */ n("div", { className: `${be.submittedMeta} ${be.statusExpired}`, children: "该卡片已失效" }) : null
|
|
3805
3805
|
] });
|
|
3806
3806
|
}
|
|
3807
|
-
const Yg = "_thinkingBlock_1pw6i_7", Xg = "_thinkingHeader_1pw6i_14", Zg = "_thinkingIcon_1pw6i_32", e1 = "_thinkingPreview_1pw6i_37", t1 = "_thinkingCaret_1pw6i_47", n1 = "_thinkingBody_1pw6i_53", s1 = "_toolItem_1pw6i_67", a1 = "_toolHeader_1pw6i_74", o1 = "_toolIcon_1pw6i_92", r1 = "_toolName_1pw6i_98", i1 = "_toolSummary_1pw6i_106", c1 = "_toolStatus_1pw6i_117", l1 = "_toolIconDone_1pw6i_123", d1 = "_toolIconRunning_1pw6i_128", u1 = "_toolIconNoResult_1pw6i_133", m1 = "_toolIconFailed_1pw6i_138", p1 = "_toolCaret_1pw6i_143", _1 = "_toolBody_1pw6i_149", h1 = "_toolSectionLabel_1pw6i_154", f1 = "_toolSectionLabelFailed_1pw6i_163", g1 = "_toolPre_1pw6i_167",
|
|
3807
|
+
const Yg = "_thinkingBlock_1pw6i_7", Xg = "_thinkingHeader_1pw6i_14", Zg = "_thinkingIcon_1pw6i_32", e1 = "_thinkingPreview_1pw6i_37", t1 = "_thinkingCaret_1pw6i_47", n1 = "_thinkingBody_1pw6i_53", s1 = "_toolItem_1pw6i_67", a1 = "_toolHeader_1pw6i_74", o1 = "_toolIcon_1pw6i_92", r1 = "_toolName_1pw6i_98", i1 = "_toolSummary_1pw6i_106", c1 = "_toolStatus_1pw6i_117", l1 = "_toolIconDone_1pw6i_123", d1 = "_toolIconRunning_1pw6i_128", u1 = "_toolIconNoResult_1pw6i_133", m1 = "_toolIconFailed_1pw6i_138", p1 = "_toolCaret_1pw6i_143", _1 = "_toolBody_1pw6i_149", h1 = "_toolSectionLabel_1pw6i_154", f1 = "_toolSectionLabelFailed_1pw6i_163", g1 = "_toolPre_1pw6i_167", y1 = "_toolDuration_1pw6i_182", k1 = "_toolDiffStat_1pw6i_189", b1 = "_toolDiffAdd_1pw6i_197", v1 = "_toolDiffDel_1pw6i_201", N1 = "_diffView_1pw6i_206", T1 = "_diffFile_1pw6i_212", C1 = "_diffPre_1pw6i_221", S1 = "_diffSkip_1pw6i_232", w1 = "_diffDel_1pw6i_244", I1 = "_diffAdd_1pw6i_249", A1 = "_diffCtx_1pw6i_254", x1 = "_codeBlockWrap_1pw6i_259", B1 = "_codeCopyBtn_1pw6i_264", Ne = {
|
|
3808
3808
|
thinkingBlock: Yg,
|
|
3809
3809
|
thinkingHeader: Xg,
|
|
3810
3810
|
thinkingIcon: Zg,
|
|
@@ -3826,9 +3826,9 @@ const Yg = "_thinkingBlock_1pw6i_7", Xg = "_thinkingHeader_1pw6i_14", Zg = "_thi
|
|
|
3826
3826
|
toolSectionLabel: h1,
|
|
3827
3827
|
toolSectionLabelFailed: f1,
|
|
3828
3828
|
toolPre: g1,
|
|
3829
|
-
toolDuration:
|
|
3830
|
-
toolDiffStat:
|
|
3831
|
-
toolDiffAdd:
|
|
3829
|
+
toolDuration: y1,
|
|
3830
|
+
toolDiffStat: k1,
|
|
3831
|
+
toolDiffAdd: b1,
|
|
3832
3832
|
toolDiffDel: v1,
|
|
3833
3833
|
diffView: N1,
|
|
3834
3834
|
diffFile: T1,
|
|
@@ -3864,13 +3864,13 @@ function q1(e, t) {
|
|
|
3864
3864
|
for (let l = i - 1; l >= 0; l--)
|
|
3865
3865
|
d[h][l] = s[h] === a[l] ? d[h + 1][l + 1] + 1 : Math.max(d[h + 1][l], d[h][l + 1]);
|
|
3866
3866
|
const _ = [];
|
|
3867
|
-
let p = 0,
|
|
3868
|
-
for (; p < o &&
|
|
3869
|
-
s[p] === a[
|
|
3867
|
+
let p = 0, k = 0;
|
|
3868
|
+
for (; p < o && k < i; )
|
|
3869
|
+
s[p] === a[k] ? (_.push({ type: "ctx", text: s[p] }), p++, k++) : d[p + 1][k] >= d[p][k + 1] ? (_.push({ type: "del", text: s[p] }), p++) : (_.push({ type: "add", text: a[k] }), k++);
|
|
3870
3870
|
for (; p < o; )
|
|
3871
3871
|
_.push({ type: "del", text: s[p] }), p++;
|
|
3872
|
-
for (;
|
|
3873
|
-
_.push({ type: "add", text: a[
|
|
3872
|
+
for (; k < i; )
|
|
3873
|
+
_.push({ type: "add", text: a[k] }), k++;
|
|
3874
3874
|
return _;
|
|
3875
3875
|
}
|
|
3876
3876
|
function R1(e) {
|
|
@@ -3964,7 +3964,7 @@ function co({
|
|
|
3964
3964
|
const w = window.setInterval(() => p((S) => S + 1), 1e3);
|
|
3965
3965
|
return () => window.clearInterval(w);
|
|
3966
3966
|
}, [t, s]);
|
|
3967
|
-
const
|
|
3967
|
+
const k = s ? Math.max(1, Math.round((Date.now() - s) / 1e3)) : 0, h = t ? s ? `思考中… ${k}s` : "正在思考…" : a != null ? `已深度思考 · ${Math.max(1, Math.round(a / 1e3))}s` : "已深度思考", l = e.replace(/\s+/g, " ").trim().slice(0, 60) || "(空)";
|
|
3968
3968
|
return /* @__PURE__ */ c("div", { className: Ne.thinkingBlock, children: [
|
|
3969
3969
|
/* @__PURE__ */ c(
|
|
3970
3970
|
"button",
|
|
@@ -3999,7 +3999,7 @@ function xn({
|
|
|
3999
3999
|
const O = window.setInterval(() => p((N) => N + 1), 1e3);
|
|
4000
4000
|
return () => window.clearInterval(O);
|
|
4001
4001
|
}, [s, o]);
|
|
4002
|
-
const
|
|
4002
|
+
const k = e.name || "tool", h = $1(e.input), l = L1(k, e.input), w = l != null, S = (l == null ? void 0 : l.oldText) ?? "", T = (l == null ? void 0 : l.newText) ?? "", g = he(
|
|
4003
4003
|
() => w ? q1(S, T) : null,
|
|
4004
4004
|
[w, S, T]
|
|
4005
4005
|
), U = g ? g.filter((O) => O.type === "add").length : 0, A = g ? g.filter((O) => O.type === "del").length : 0, M = s && o ? Math.max(1, Math.round((Date.now() - o) / 1e3)) : null, W = t ? i ? /* @__PURE__ */ n(fa, { className: Ne.toolIconFailed }) : /* @__PURE__ */ n(jt, { className: Ne.toolIconDone }) : s ? /* @__PURE__ */ n(Co, { className: Ne.toolIconRunning }) : /* @__PURE__ */ n("span", { className: Ne.toolIconNoResult, children: "—" }), P = typeof e.input == "string" ? e.input : e.input != null ? JSON.stringify(e.input, null, 2) : "(无入参)";
|
|
@@ -4012,7 +4012,7 @@ function xn({
|
|
|
4012
4012
|
onClick: () => _((O) => !O),
|
|
4013
4013
|
children: [
|
|
4014
4014
|
/* @__PURE__ */ n(Yt, { className: Ne.toolIcon }),
|
|
4015
|
-
/* @__PURE__ */ n("span", { className: Ne.toolName, children:
|
|
4015
|
+
/* @__PURE__ */ n("span", { className: Ne.toolName, children: k }),
|
|
4016
4016
|
h && /* @__PURE__ */ n("span", { className: Ne.toolSummary, children: h }),
|
|
4017
4017
|
g && U + A > 0 && /* @__PURE__ */ c("span", { className: Ne.toolDiffStat, children: [
|
|
4018
4018
|
/* @__PURE__ */ c("span", { className: Ne.toolDiffAdd, children: [
|
|
@@ -4105,7 +4105,7 @@ function P1() {
|
|
|
4105
4105
|
/* @__PURE__ */ c("div", { className: r.humanAssistHeader, children: [
|
|
4106
4106
|
/* @__PURE__ */ n("span", { className: r.humanAssistBadge, children: "人类待办" }),
|
|
4107
4107
|
/* @__PURE__ */ n(
|
|
4108
|
-
|
|
4108
|
+
kn.Input,
|
|
4109
4109
|
{
|
|
4110
4110
|
active: !0,
|
|
4111
4111
|
size: "small",
|
|
@@ -4114,7 +4114,7 @@ function P1() {
|
|
|
4114
4114
|
)
|
|
4115
4115
|
] }),
|
|
4116
4116
|
/* @__PURE__ */ n(
|
|
4117
|
-
|
|
4117
|
+
kn,
|
|
4118
4118
|
{
|
|
4119
4119
|
active: !0,
|
|
4120
4120
|
paragraph: { rows: 2, width: ["100%", "85%"] },
|
|
@@ -4122,11 +4122,11 @@ function P1() {
|
|
|
4122
4122
|
}
|
|
4123
4123
|
),
|
|
4124
4124
|
/* @__PURE__ */ c("div", { className: r.humanAssistSkeletonField, children: [
|
|
4125
|
-
/* @__PURE__ */ n(
|
|
4125
|
+
/* @__PURE__ */ n(kn.Input, { active: !0, block: !0, style: { height: 14, marginBottom: 8 } }),
|
|
4126
4126
|
/* @__PURE__ */ n("div", { className: r.humanAssistSkeletonTextarea })
|
|
4127
4127
|
] }),
|
|
4128
4128
|
/* @__PURE__ */ n(
|
|
4129
|
-
|
|
4129
|
+
kn.Button,
|
|
4130
4130
|
{
|
|
4131
4131
|
active: !0,
|
|
4132
4132
|
size: "small",
|
|
@@ -4157,7 +4157,7 @@ const Vs = 30, D1 = {
|
|
|
4157
4157
|
i.current != null && (cancelAnimationFrame(i.current), i.current = null);
|
|
4158
4158
|
};
|
|
4159
4159
|
}, [d, p]);
|
|
4160
|
-
const
|
|
4160
|
+
const k = (d == null ? void 0 : d.length) ?? 0, h = s != null ? D1[s] : null;
|
|
4161
4161
|
return /* @__PURE__ */ c(
|
|
4162
4162
|
"div",
|
|
4163
4163
|
{
|
|
@@ -4170,14 +4170,14 @@ const Vs = 30, D1 = {
|
|
|
4170
4170
|
/* @__PURE__ */ n("span", { children: "实时活动" }),
|
|
4171
4171
|
_ > 0 && /* @__PURE__ */ n("span", { className: r.taskTickerCount, children: _ })
|
|
4172
4172
|
] }),
|
|
4173
|
-
/* @__PURE__ */ n("div", { className: r.taskTickerBody, ref: o, children:
|
|
4173
|
+
/* @__PURE__ */ n("div", { className: r.taskTickerBody, ref: o, children: k === 0 ? /* @__PURE__ */ c("div", { className: r.taskTickerEmpty, children: [
|
|
4174
4174
|
p ? /* @__PURE__ */ n("span", { className: r.taskTickerPulse }) : null,
|
|
4175
4175
|
h ?? (p ? "正在监听任务执行…" : "实时活动已结束")
|
|
4176
4176
|
] }) : /* @__PURE__ */ c(Se, { children: [
|
|
4177
4177
|
d.map((l, w) => /* @__PURE__ */ c(
|
|
4178
4178
|
"div",
|
|
4179
4179
|
{
|
|
4180
|
-
className: w ===
|
|
4180
|
+
className: w === k - 1 && p ? `${r.taskTickerItem} ${r.taskTickerItemLatest}` : r.taskTickerItem,
|
|
4181
4181
|
children: [
|
|
4182
4182
|
/* @__PURE__ */ n("span", { className: r.taskTickerTime, children: l.time }),
|
|
4183
4183
|
l.sender ? /* @__PURE__ */ n("span", { className: r.taskTickerSender, children: l.sender }) : null,
|
|
@@ -4259,7 +4259,7 @@ const U1 = ({
|
|
|
4259
4259
|
var ie;
|
|
4260
4260
|
const o = E((J) => J.currentProject), i = E(
|
|
4261
4261
|
(J) => J.humanAssistRevision[e] ?? 0
|
|
4262
|
-
), d = E((J) => J.addMessage), _ = E((J) => J.bumpHumanAssistRevision), p = E((J) => J.requestChatScrollBottom),
|
|
4262
|
+
), d = E((J) => J.addMessage), _ = E((J) => J.bumpHumanAssistRevision), p = E((J) => J.requestChatScrollBottom), k = E((J) => J.taskActivitySettled[e]), [h, l] = I(
|
|
4263
4263
|
a != null && a.humanTaskId ? a : null
|
|
4264
4264
|
), [w, S] = I(
|
|
4265
4265
|
() => !Js(a, !0)
|
|
@@ -4356,9 +4356,9 @@ const U1 = ({
|
|
|
4356
4356
|
e
|
|
4357
4357
|
]);
|
|
4358
4358
|
if (w && !h)
|
|
4359
|
-
return t ? /* @__PURE__ */ n(P1, {}) : Dn(e,
|
|
4359
|
+
return t ? /* @__PURE__ */ n(P1, {}) : Dn(e, k);
|
|
4360
4360
|
if (!se)
|
|
4361
|
-
return h && h.humanTaskId != null ? h.pending ? Dn(e,
|
|
4361
|
+
return h && h.humanTaskId != null ? h.pending ? Dn(e, k) : /* @__PURE__ */ c("div", { className: r.humanAssistPanel, children: [
|
|
4362
4362
|
/* @__PURE__ */ c("div", { className: r.humanAssistHeader, children: [
|
|
4363
4363
|
/* @__PURE__ */ n("span", { className: r.humanAssistBadge, children: "人类待办" }),
|
|
4364
4364
|
/* @__PURE__ */ c("span", { className: r.humanAssistTitle, children: [
|
|
@@ -4367,23 +4367,23 @@ const U1 = ({
|
|
|
4367
4367
|
] })
|
|
4368
4368
|
] }),
|
|
4369
4369
|
/* @__PURE__ */ n(Pn, { type: "secondary", className: r.humanAssistReadonlyHint, children: B ?? "已处理" })
|
|
4370
|
-
] }) : Dn(e,
|
|
4371
|
-
const
|
|
4370
|
+
] }) : Dn(e, k);
|
|
4371
|
+
const y = ((ie = h == null ? void 0 : h.assignee) == null ? void 0 : ie.name) || "被指派人", F = (D == null ? void 0 : D.title) || `待办 #${h == null ? void 0 : h.humanTaskId}`, Z = (D == null ? void 0 : D.description) || (h == null ? void 0 : h.instruction) || "", ue = (D == null ? void 0 : D.submitLabel) || "提交并完成";
|
|
4372
4372
|
return /* @__PURE__ */ c("div", { className: r.humanAssistPanel, children: [
|
|
4373
4373
|
/* @__PURE__ */ c("div", { className: r.humanAssistHeader, children: [
|
|
4374
4374
|
/* @__PURE__ */ n("span", { className: r.humanAssistBadge, children: "人类待办" }),
|
|
4375
4375
|
/* @__PURE__ */ n("span", { className: r.humanAssistTitle, children: F }),
|
|
4376
4376
|
/* @__PURE__ */ c("span", { className: r.humanAssistAssignee, children: [
|
|
4377
4377
|
"@",
|
|
4378
|
-
|
|
4378
|
+
y
|
|
4379
4379
|
] })
|
|
4380
4380
|
] }),
|
|
4381
4381
|
Z ? /* @__PURE__ */ n("div", { className: r.humanAssistDesc, children: Z }) : null,
|
|
4382
|
-
/* @__PURE__ */ n("div", { className:
|
|
4382
|
+
/* @__PURE__ */ n("div", { className: be.cardFormBlock, children: Y.map((J) => {
|
|
4383
4383
|
if (J.type === "text_input") {
|
|
4384
4384
|
const m = J, L = T[J.name];
|
|
4385
|
-
return /* @__PURE__ */ c("div", { className:
|
|
4386
|
-
/* @__PURE__ */ c("div", { className:
|
|
4385
|
+
return /* @__PURE__ */ c("div", { className: be.cardFormField, children: [
|
|
4386
|
+
/* @__PURE__ */ c("div", { className: be.cardFormFieldLabel, children: [
|
|
4387
4387
|
m.label,
|
|
4388
4388
|
m.required ? " *" : ""
|
|
4389
4389
|
] }),
|
|
@@ -4399,7 +4399,7 @@ const U1 = ({
|
|
|
4399
4399
|
)
|
|
4400
4400
|
] }, J.name);
|
|
4401
4401
|
}
|
|
4402
|
-
return /* @__PURE__ */ n("div", { className:
|
|
4402
|
+
return /* @__PURE__ */ n("div", { className: be.cardFormField, children: /* @__PURE__ */ n(
|
|
4403
4403
|
io,
|
|
4404
4404
|
{
|
|
4405
4405
|
field: J,
|
|
@@ -4411,7 +4411,7 @@ const U1 = ({
|
|
|
4411
4411
|
}) }),
|
|
4412
4412
|
!x && (h != null && h.pending) && !Q ? /* @__PURE__ */ c(Pn, { type: "secondary", className: r.humanAssistReadonlyHint, children: [
|
|
4413
4413
|
"仅 @",
|
|
4414
|
-
|
|
4414
|
+
y,
|
|
4415
4415
|
" 可提交此待办"
|
|
4416
4416
|
] }) : !x && (h != null && h.pending) ? /* @__PURE__ */ n(
|
|
4417
4417
|
Nt,
|
|
@@ -4424,7 +4424,7 @@ const U1 = ({
|
|
|
4424
4424
|
}
|
|
4425
4425
|
) : /* @__PURE__ */ n(Pn, { type: "secondary", className: r.humanAssistReadonlyHint, children: B ?? (x ? "已提交" : "待处理") })
|
|
4426
4426
|
] });
|
|
4427
|
-
}, z1 = et.memo(U1), V1 = "_taskPanel_1p5df_1", J1 = "_taskSplitLayout_1p5df_8", K1 = "_taskListPane_1p5df_15", Q1 = "_taskListPaneFull_1p5df_25", Y1 = "_taskListPaneNarrow_1p5df_33", X1 = "_taskDetailPane_1p5df_41", Z1 = "_taskDetailPaneOpen_1p5df_55",
|
|
4427
|
+
}, z1 = et.memo(U1), V1 = "_taskPanel_1p5df_1", J1 = "_taskSplitLayout_1p5df_8", K1 = "_taskListPane_1p5df_15", Q1 = "_taskListPaneFull_1p5df_25", Y1 = "_taskListPaneNarrow_1p5df_33", X1 = "_taskDetailPane_1p5df_41", Z1 = "_taskDetailPaneOpen_1p5df_55", ey = "_taskDetailPanel_1p5df_62", ty = "_taskDetailClose_1p5df_71", ny = "_taskHeaderSpacer_1p5df_95", sy = "_taskHeaderActions_1p5df_99", ay = "_taskHeader_1p5df_95", oy = "_taskHeaderFull_1p5df_117", ry = "_taskHeaderTitle_1p5df_124", iy = "_taskListFull_1p5df_131", cy = "_headerActions_1p5df_135", ly = "_refreshBtn_1p5df_147", dy = "_filterChip_1p5df_167", uy = "_filterChipActive_1p5df_189", my = "_filterCount_1p5df_201", py = "_taskList_1p5df_15", _y = "_taskEmpty_1p5df_222", hy = "_taskCardFull_1p5df_233", fy = "_taskCardCompact_1p5df_240", gy = "_taskCard_1p5df_233", yy = "_taskCardSelected_1p5df_265", ky = "_taskStatus_1p5df_271", by = "_taskStatusPending_1p5df_278", vy = "_taskStatusRunning_1p5df_282", Ny = "_taskStatusDone_1p5df_287", Ty = "_taskStatusFailed_1p5df_291", Cy = "_taskStatusSuspended_1p5df_295", Sy = "_taskInfo_1p5df_309", wy = "_taskName_1p5df_314", Iy = "_taskMeta_1p5df_333", Ay = "_taskMembers_1p5df_343", xy = "_taskMemberItem_1p5df_358", By = "_taskMemberLabel_1p5df_365", Ly = "_taskMemberValue_1p5df_371", qy = "_taskMemberAgent_1p5df_379", Ry = "_taskTag_1p5df_384", $y = "_taskTagPending_1p5df_392", My = "_taskTagRunning_1p5df_397", Py = "_taskTagDone_1p5df_402", Dy = "_taskTagFailed_1p5df_407", Ey = "_taskTagSuspended_1p5df_412", Fy = "_taskTime_1p5df_417", Oy = "_completeBtn_1p5df_424", Hy = "_taskDetailFooter_1p5df_441", Wy = "_taskCompleteBtn_1p5df_468", Gy = "_taskContinueBtn_1p5df_490", jy = "_taskResetBtn_1p5df_512", Uy = "_taskSuspendBtn_1p5df_540", zy = "_taskCancelBtn_1p5df_541", Vy = "_taskSessionLocked_1p5df_568", Jy = "_taskTagCancelled_1p5df_577", Ky = "_taskStatusCancelled_1p5df_582", Qy = "_taskLoading_1p5df_586", Yy = "_taskError_1p5df_595", Xy = "_taskContextBar_1p5df_641", Zy = "_taskContextInstruction_1p5df_651", ek = "_taskContextMeta_1p5df_659", tk = "_taskContextFrom_1p5df_667", nk = "_taskContextTo_1p5df_671", sk = "_taskContextArrow_1p5df_675", ak = "_taskContextToggle_1p5df_680", ok = "_taskContextChevron_1p5df_693", rk = "_taskContextPreview_1p5df_701", ik = "_viewToggle_1p5df_712", ck = "_viewToggleBtn_1p5df_721", lk = "_viewToggleBtnActive_1p5df_746", dk = "_treeExpandBtn_1p5df_758", uk = "_treeExpandSpacer_1p5df_781", z = {
|
|
4428
4428
|
taskPanel: V1,
|
|
4429
4429
|
taskSplitLayout: J1,
|
|
4430
4430
|
taskListPane: K1,
|
|
@@ -4432,72 +4432,72 @@ const U1 = ({
|
|
|
4432
4432
|
taskListPaneNarrow: Y1,
|
|
4433
4433
|
taskDetailPane: X1,
|
|
4434
4434
|
taskDetailPaneOpen: Z1,
|
|
4435
|
-
taskDetailPanel:
|
|
4436
|
-
taskDetailClose:
|
|
4437
|
-
taskHeaderSpacer:
|
|
4438
|
-
taskHeaderActions:
|
|
4439
|
-
taskHeader:
|
|
4440
|
-
taskHeaderFull:
|
|
4441
|
-
taskHeaderTitle:
|
|
4442
|
-
taskListFull:
|
|
4443
|
-
headerActions:
|
|
4444
|
-
refreshBtn:
|
|
4445
|
-
filterChip:
|
|
4446
|
-
filterChipActive:
|
|
4447
|
-
filterCount:
|
|
4448
|
-
taskList:
|
|
4449
|
-
taskEmpty:
|
|
4450
|
-
taskCardFull:
|
|
4451
|
-
taskCardCompact:
|
|
4452
|
-
taskCard:
|
|
4453
|
-
taskCardSelected:
|
|
4454
|
-
taskStatus:
|
|
4455
|
-
taskStatusPending:
|
|
4456
|
-
taskStatusRunning:
|
|
4457
|
-
taskStatusDone:
|
|
4458
|
-
taskStatusFailed:
|
|
4459
|
-
taskStatusSuspended:
|
|
4460
|
-
taskInfo:
|
|
4461
|
-
taskName:
|
|
4462
|
-
taskMeta:
|
|
4463
|
-
taskMembers:
|
|
4464
|
-
taskMemberItem:
|
|
4465
|
-
taskMemberLabel:
|
|
4466
|
-
taskMemberValue:
|
|
4467
|
-
taskMemberAgent:
|
|
4468
|
-
taskTag:
|
|
4469
|
-
taskTagPending: $
|
|
4470
|
-
taskTagRunning:
|
|
4471
|
-
taskTagDone:
|
|
4472
|
-
taskTagFailed:
|
|
4473
|
-
taskTagSuspended:
|
|
4474
|
-
taskTime:
|
|
4475
|
-
completeBtn:
|
|
4476
|
-
taskDetailFooter:
|
|
4477
|
-
taskCompleteBtn:
|
|
4478
|
-
taskContinueBtn:
|
|
4479
|
-
taskResetBtn:
|
|
4480
|
-
taskSuspendBtn:
|
|
4481
|
-
taskCancelBtn:
|
|
4482
|
-
taskSessionLocked:
|
|
4483
|
-
taskTagCancelled:
|
|
4484
|
-
taskStatusCancelled:
|
|
4485
|
-
taskLoading:
|
|
4486
|
-
taskError:
|
|
4487
|
-
taskContextBar:
|
|
4488
|
-
taskContextInstruction:
|
|
4489
|
-
taskContextMeta:
|
|
4490
|
-
taskContextFrom:
|
|
4491
|
-
taskContextTo:
|
|
4492
|
-
taskContextArrow:
|
|
4493
|
-
taskContextToggle:
|
|
4494
|
-
taskContextChevron:
|
|
4495
|
-
taskContextPreview:
|
|
4496
|
-
viewToggle:
|
|
4497
|
-
viewToggleBtn:
|
|
4498
|
-
viewToggleBtnActive:
|
|
4499
|
-
treeExpandBtn:
|
|
4500
|
-
treeExpandSpacer:
|
|
4435
|
+
taskDetailPanel: ey,
|
|
4436
|
+
taskDetailClose: ty,
|
|
4437
|
+
taskHeaderSpacer: ny,
|
|
4438
|
+
taskHeaderActions: sy,
|
|
4439
|
+
taskHeader: ay,
|
|
4440
|
+
taskHeaderFull: oy,
|
|
4441
|
+
taskHeaderTitle: ry,
|
|
4442
|
+
taskListFull: iy,
|
|
4443
|
+
headerActions: cy,
|
|
4444
|
+
refreshBtn: ly,
|
|
4445
|
+
filterChip: dy,
|
|
4446
|
+
filterChipActive: uy,
|
|
4447
|
+
filterCount: my,
|
|
4448
|
+
taskList: py,
|
|
4449
|
+
taskEmpty: _y,
|
|
4450
|
+
taskCardFull: hy,
|
|
4451
|
+
taskCardCompact: fy,
|
|
4452
|
+
taskCard: gy,
|
|
4453
|
+
taskCardSelected: yy,
|
|
4454
|
+
taskStatus: ky,
|
|
4455
|
+
taskStatusPending: by,
|
|
4456
|
+
taskStatusRunning: vy,
|
|
4457
|
+
taskStatusDone: Ny,
|
|
4458
|
+
taskStatusFailed: Ty,
|
|
4459
|
+
taskStatusSuspended: Cy,
|
|
4460
|
+
taskInfo: Sy,
|
|
4461
|
+
taskName: wy,
|
|
4462
|
+
taskMeta: Iy,
|
|
4463
|
+
taskMembers: Ay,
|
|
4464
|
+
taskMemberItem: xy,
|
|
4465
|
+
taskMemberLabel: By,
|
|
4466
|
+
taskMemberValue: Ly,
|
|
4467
|
+
taskMemberAgent: qy,
|
|
4468
|
+
taskTag: Ry,
|
|
4469
|
+
taskTagPending: $y,
|
|
4470
|
+
taskTagRunning: My,
|
|
4471
|
+
taskTagDone: Py,
|
|
4472
|
+
taskTagFailed: Dy,
|
|
4473
|
+
taskTagSuspended: Ey,
|
|
4474
|
+
taskTime: Fy,
|
|
4475
|
+
completeBtn: Oy,
|
|
4476
|
+
taskDetailFooter: Hy,
|
|
4477
|
+
taskCompleteBtn: Wy,
|
|
4478
|
+
taskContinueBtn: Gy,
|
|
4479
|
+
taskResetBtn: jy,
|
|
4480
|
+
taskSuspendBtn: Uy,
|
|
4481
|
+
taskCancelBtn: zy,
|
|
4482
|
+
taskSessionLocked: Vy,
|
|
4483
|
+
taskTagCancelled: Jy,
|
|
4484
|
+
taskStatusCancelled: Ky,
|
|
4485
|
+
taskLoading: Qy,
|
|
4486
|
+
taskError: Yy,
|
|
4487
|
+
taskContextBar: Xy,
|
|
4488
|
+
taskContextInstruction: Zy,
|
|
4489
|
+
taskContextMeta: ek,
|
|
4490
|
+
taskContextFrom: tk,
|
|
4491
|
+
taskContextTo: nk,
|
|
4492
|
+
taskContextArrow: sk,
|
|
4493
|
+
taskContextToggle: ak,
|
|
4494
|
+
taskContextChevron: ok,
|
|
4495
|
+
taskContextPreview: rk,
|
|
4496
|
+
viewToggle: ik,
|
|
4497
|
+
viewToggleBtn: ck,
|
|
4498
|
+
viewToggleBtnActive: lk,
|
|
4499
|
+
treeExpandBtn: dk,
|
|
4500
|
+
treeExpandSpacer: uk
|
|
4501
4501
|
}, Ks = [
|
|
4502
4502
|
"continue",
|
|
4503
4503
|
"reset",
|
|
@@ -4540,7 +4540,7 @@ function mo({
|
|
|
4540
4540
|
d,
|
|
4541
4541
|
e.id
|
|
4542
4542
|
]
|
|
4543
|
-
),
|
|
4543
|
+
), k = j(
|
|
4544
4544
|
(P) => {
|
|
4545
4545
|
P.stopPropagation(), p(
|
|
4546
4546
|
"continue",
|
|
@@ -4620,7 +4620,7 @@ function mo({
|
|
|
4620
4620
|
className: A("continue"),
|
|
4621
4621
|
disabled: M || W,
|
|
4622
4622
|
title: W ? "深度分析回调等待中,结果返回后任务将自动唤醒;如需重新发起分析请使用「重置执行」" : void 0,
|
|
4623
|
-
onClick:
|
|
4623
|
+
onClick: k,
|
|
4624
4624
|
children: o === "continue" ? "调度中…" : W ? "等待回调" : "继续执行"
|
|
4625
4625
|
}
|
|
4626
4626
|
),
|
|
@@ -4701,17 +4701,17 @@ function po({
|
|
|
4701
4701
|
const Wt = (e) => {
|
|
4702
4702
|
const t = e.src, s = t && t.startsWith("https://cdn.nlark.com/") ? `${sr}/image-proxy?url=${encodeURIComponent(t)}` : t;
|
|
4703
4703
|
return /* @__PURE__ */ n("img", { ...e, src: s });
|
|
4704
|
-
},
|
|
4704
|
+
}, bn = 6e3;
|
|
4705
4705
|
function En({
|
|
4706
4706
|
content: e,
|
|
4707
4707
|
revealed: t,
|
|
4708
4708
|
onReveal: s,
|
|
4709
4709
|
children: a
|
|
4710
4710
|
}) {
|
|
4711
|
-
if (e.length <=
|
|
4711
|
+
if (e.length <= bn || t)
|
|
4712
4712
|
return /* @__PURE__ */ n(Se, { children: a() });
|
|
4713
4713
|
const o = e.lastIndexOf(`
|
|
4714
|
-
`,
|
|
4714
|
+
`, bn), i = o > bn * 0.5 ? o : bn, d = e.slice(0, i);
|
|
4715
4715
|
return /* @__PURE__ */ c("div", { children: [
|
|
4716
4716
|
/* @__PURE__ */ n(
|
|
4717
4717
|
"pre",
|
|
@@ -4792,7 +4792,7 @@ function Qs({
|
|
|
4792
4792
|
const a = et.useMemo(
|
|
4793
4793
|
() => cs(e.fields),
|
|
4794
4794
|
[e.fields]
|
|
4795
|
-
), [o, i] = et.useState({}), [d, _] = et.useState(!1), [p,
|
|
4795
|
+
), [o, i] = et.useState({}), [d, _] = et.useState(!1), [p, k] = et.useState(null), h = et.useRef(!1), l = e.status != null && e.status !== "pending", w = p || e.value;
|
|
4796
4796
|
if (!e)
|
|
4797
4797
|
return null;
|
|
4798
4798
|
const S = (A, M) => {
|
|
@@ -4812,7 +4812,7 @@ function Qs({
|
|
|
4812
4812
|
return;
|
|
4813
4813
|
}
|
|
4814
4814
|
const W = us(a, o);
|
|
4815
|
-
h.current = !0,
|
|
4815
|
+
h.current = !0, k(W), _(!0), ae("已提交");
|
|
4816
4816
|
try {
|
|
4817
4817
|
const O = await as(
|
|
4818
4818
|
t,
|
|
@@ -4822,7 +4822,7 @@ function Qs({
|
|
|
4822
4822
|
);
|
|
4823
4823
|
ls(s), O && E.getState().addMessage(An(O));
|
|
4824
4824
|
} catch (O) {
|
|
4825
|
-
if (_(!1),
|
|
4825
|
+
if (_(!1), k(null), !Ee(O)) {
|
|
4826
4826
|
const N = O;
|
|
4827
4827
|
ae(N.userMessage || N.message || "提交失败", "error");
|
|
4828
4828
|
}
|
|
@@ -4916,7 +4916,7 @@ function Qs({
|
|
|
4916
4916
|
)
|
|
4917
4917
|
] });
|
|
4918
4918
|
}
|
|
4919
|
-
function
|
|
4919
|
+
function mk(e) {
|
|
4920
4920
|
if (!e) return null;
|
|
4921
4921
|
try {
|
|
4922
4922
|
const t = typeof e == "string" ? JSON.parse(e) : e;
|
|
@@ -4933,9 +4933,9 @@ function Nn({
|
|
|
4933
4933
|
inline: a = !1
|
|
4934
4934
|
}) {
|
|
4935
4935
|
var S;
|
|
4936
|
-
const o =
|
|
4936
|
+
const o = mk(e);
|
|
4937
4937
|
if (!o) return null;
|
|
4938
|
-
const i = t == null ? void 0 : t.find((T) => qt(T.id, o.msgRefId)), d = o.msgRefSender || (i == null ? void 0 : i.sender_name) || "", _ = o.msgRefContent || ((S = i == null ? void 0 : i.content) == null ? void 0 : S.substring(0, 120)) || "", p = _o(e),
|
|
4938
|
+
const i = t == null ? void 0 : t.find((T) => qt(T.id, o.msgRefId)), d = o.msgRefSender || (i == null ? void 0 : i.sender_name) || "", _ = o.msgRefContent || ((S = i == null ? void 0 : i.content) == null ? void 0 : S.substring(0, 120)) || "", p = _o(e), k = () => {
|
|
4939
4939
|
o != null && o.msgRefId && s && s(o.msgRefId);
|
|
4940
4940
|
}, h = {
|
|
4941
4941
|
display: "block",
|
|
@@ -4949,7 +4949,7 @@ function Nn({
|
|
|
4949
4949
|
"div",
|
|
4950
4950
|
{
|
|
4951
4951
|
className: r.quoteInline,
|
|
4952
|
-
onClick:
|
|
4952
|
+
onClick: k,
|
|
4953
4953
|
title: w,
|
|
4954
4954
|
children: [
|
|
4955
4955
|
/* @__PURE__ */ n("span", { className: r.quoteInlineSender, children: d }),
|
|
@@ -4957,13 +4957,13 @@ function Nn({
|
|
|
4957
4957
|
p.map((T, g) => /* @__PURE__ */ n("img", { src: T, alt: "引用图片", style: h }, g))
|
|
4958
4958
|
]
|
|
4959
4959
|
}
|
|
4960
|
-
) : /* @__PURE__ */ c("div", { className: r.quoteBlock, onClick:
|
|
4960
|
+
) : /* @__PURE__ */ c("div", { className: r.quoteBlock, onClick: k, title: w, children: [
|
|
4961
4961
|
/* @__PURE__ */ n("span", { className: r.quoteSender, children: d }),
|
|
4962
4962
|
/* @__PURE__ */ n("span", { className: r.quotePreview, children: _ }),
|
|
4963
4963
|
p.map((T, g) => /* @__PURE__ */ n("img", { src: T, alt: "引用图片", style: h }, g))
|
|
4964
4964
|
] });
|
|
4965
4965
|
}
|
|
4966
|
-
function
|
|
4966
|
+
function pk({
|
|
4967
4967
|
text: e,
|
|
4968
4968
|
live: t
|
|
4969
4969
|
}) {
|
|
@@ -4983,12 +4983,12 @@ function Ys(e) {
|
|
|
4983
4983
|
}
|
|
4984
4984
|
return t;
|
|
4985
4985
|
}
|
|
4986
|
-
function
|
|
4986
|
+
function _k(e, t) {
|
|
4987
4987
|
const s = e.indexOf(`
|
|
4988
4988
|
`);
|
|
4989
4989
|
return s > 0 && e.slice(0, s).startsWith(t) ? e.slice(s + 1).trim() : e;
|
|
4990
4990
|
}
|
|
4991
|
-
function
|
|
4991
|
+
function hk() {
|
|
4992
4992
|
return /* @__PURE__ */ c("div", { className: r.loadingBubble, children: [
|
|
4993
4993
|
/* @__PURE__ */ n("span", { className: r.loadingDot }),
|
|
4994
4994
|
/* @__PURE__ */ n("span", { className: r.loadingDot }),
|
|
@@ -5002,8 +5002,8 @@ function Tn() {
|
|
|
5002
5002
|
/* @__PURE__ */ n("span", { className: r.loadingDot })
|
|
5003
5003
|
] });
|
|
5004
5004
|
}
|
|
5005
|
-
function
|
|
5006
|
-
const t = e.text || "", s = e.type === "tool_call", a = !s && (t.includes("执行失败") || t.trimStart().startsWith("❌")), o =
|
|
5005
|
+
function fk(e) {
|
|
5006
|
+
const t = e.text || "", s = e.type === "tool_call", a = !s && (t.includes("执行失败") || t.trimStart().startsWith("❌")), o = _k(t, s ? "🔧" : a ? "❌" : "✅");
|
|
5007
5007
|
let i = e.name || "";
|
|
5008
5008
|
if (!i) {
|
|
5009
5009
|
const p = t.match(/^\s*[🔧✅❌]\s*\*\*([^*]+)\*\*/);
|
|
@@ -5025,7 +5025,7 @@ function ho({
|
|
|
5025
5025
|
step: e,
|
|
5026
5026
|
idx: t
|
|
5027
5027
|
}) {
|
|
5028
|
-
const s = e.type === "tool_call", a =
|
|
5028
|
+
const s = e.type === "tool_call", a = fk(e);
|
|
5029
5029
|
return s ? /* @__PURE__ */ n(
|
|
5030
5030
|
xn,
|
|
5031
5031
|
{
|
|
@@ -5044,10 +5044,10 @@ function ho({
|
|
|
5044
5044
|
t
|
|
5045
5045
|
);
|
|
5046
5046
|
}
|
|
5047
|
-
function
|
|
5047
|
+
function gk({ text: e }) {
|
|
5048
5048
|
return /* @__PURE__ */ n(co, { text: e, streaming: !1 });
|
|
5049
5049
|
}
|
|
5050
|
-
function
|
|
5050
|
+
function yk({
|
|
5051
5051
|
steps: e,
|
|
5052
5052
|
live: t
|
|
5053
5053
|
}) {
|
|
@@ -5065,7 +5065,7 @@ function by({
|
|
|
5065
5065
|
style: { color: "var(--accent-red, #ea4335)", marginRight: 4 }
|
|
5066
5066
|
}
|
|
5067
5067
|
) : /* @__PURE__ */ n(
|
|
5068
|
-
|
|
5068
|
+
ka,
|
|
5069
5069
|
{
|
|
5070
5070
|
style: { color: "var(--accent-green, #34a853)", marginRight: 4 }
|
|
5071
5071
|
}
|
|
@@ -5079,7 +5079,7 @@ function by({
|
|
|
5079
5079
|
] }) : null
|
|
5080
5080
|
] }),
|
|
5081
5081
|
/* @__PURE__ */ n("div", { className: r.toolGroupBody, children: e.map(
|
|
5082
|
-
(p,
|
|
5082
|
+
(p, k) => p.type === "reasoning" ? /* @__PURE__ */ n(gk, { name: p.name, text: p.text }, k) : /* @__PURE__ */ n(ho, { step: p, idx: k }, k)
|
|
5083
5083
|
) })
|
|
5084
5084
|
] });
|
|
5085
5085
|
}
|
|
@@ -5095,7 +5095,7 @@ function Xs(e, t, s) {
|
|
|
5095
5095
|
}
|
|
5096
5096
|
});
|
|
5097
5097
|
}
|
|
5098
|
-
function
|
|
5098
|
+
function kk({
|
|
5099
5099
|
content: e,
|
|
5100
5100
|
inline: t = !1
|
|
5101
5101
|
}) {
|
|
@@ -5149,7 +5149,7 @@ function yy({
|
|
|
5149
5149
|
}
|
|
5150
5150
|
);
|
|
5151
5151
|
}
|
|
5152
|
-
const
|
|
5152
|
+
const bk = {
|
|
5153
5153
|
0: "taskTagPending",
|
|
5154
5154
|
1: "taskTagRunning",
|
|
5155
5155
|
2: "taskTagSuspended",
|
|
@@ -5174,7 +5174,7 @@ function Zs({ taskId: e, agentName: t }) {
|
|
|
5174
5174
|
_ = !1;
|
|
5175
5175
|
};
|
|
5176
5176
|
}, [e]);
|
|
5177
|
-
const i = a != null && r[
|
|
5177
|
+
const i = a != null && r[bk[a.status] || ""] || "", d = (a == null ? void 0 : a.status) === 5;
|
|
5178
5178
|
return /* @__PURE__ */ c(Se, { children: [
|
|
5179
5179
|
/* @__PURE__ */ c(
|
|
5180
5180
|
"span",
|
|
@@ -5201,7 +5201,7 @@ function Zs({ taskId: e, agentName: t }) {
|
|
|
5201
5201
|
)
|
|
5202
5202
|
] });
|
|
5203
5203
|
}
|
|
5204
|
-
function
|
|
5204
|
+
function vk(e) {
|
|
5205
5205
|
if (e.ext)
|
|
5206
5206
|
try {
|
|
5207
5207
|
const s = JSON.parse(e.ext), a = s.taskId ?? s.task_id, o = ve(a);
|
|
@@ -5214,11 +5214,11 @@ function vy(e) {
|
|
|
5214
5214
|
const t = e.content.match(/任务 #(\d+)/);
|
|
5215
5215
|
return { taskId: t ? ve(t[1]) : void 0 };
|
|
5216
5216
|
}
|
|
5217
|
-
function
|
|
5217
|
+
function Nk({
|
|
5218
5218
|
msg: e,
|
|
5219
5219
|
formatTime: t
|
|
5220
5220
|
}) {
|
|
5221
|
-
const [s, a] = I(!1), o =
|
|
5221
|
+
const [s, a] = I(!1), o = vk(e), i = async () => {
|
|
5222
5222
|
if (!o.taskId) {
|
|
5223
5223
|
ae("无法识别任务 ID", "error");
|
|
5224
5224
|
return;
|
|
@@ -5234,7 +5234,7 @@ function Ny({
|
|
|
5234
5234
|
};
|
|
5235
5235
|
return /* @__PURE__ */ c("div", { className: r.taskProgressCard, children: [
|
|
5236
5236
|
/* @__PURE__ */ c("div", { className: r.taskProgressHeader, children: [
|
|
5237
|
-
/* @__PURE__ */ n("span", { className: r.taskProgressIcon, children: /* @__PURE__ */ n(
|
|
5237
|
+
/* @__PURE__ */ n("span", { className: r.taskProgressIcon, children: /* @__PURE__ */ n(ka, {}) }),
|
|
5238
5238
|
/* @__PURE__ */ c("span", { className: r.taskProgressLabel, children: [
|
|
5239
5239
|
"任务确认 #",
|
|
5240
5240
|
o.taskId ?? "?"
|
|
@@ -5254,7 +5254,7 @@ function Ny({
|
|
|
5254
5254
|
)
|
|
5255
5255
|
] });
|
|
5256
5256
|
}
|
|
5257
|
-
function
|
|
5257
|
+
function Tk({
|
|
5258
5258
|
readStatus: e,
|
|
5259
5259
|
isOwn: t
|
|
5260
5260
|
}) {
|
|
@@ -5289,7 +5289,7 @@ function Ty({
|
|
|
5289
5289
|
}
|
|
5290
5290
|
);
|
|
5291
5291
|
}
|
|
5292
|
-
const
|
|
5292
|
+
const Ck = et.memo(
|
|
5293
5293
|
function({
|
|
5294
5294
|
msg: t,
|
|
5295
5295
|
formatTime: s,
|
|
@@ -5299,7 +5299,7 @@ const Cy = et.memo(
|
|
|
5299
5299
|
onEditDraft: d,
|
|
5300
5300
|
onWithdraw: _,
|
|
5301
5301
|
onForkMessage: p,
|
|
5302
|
-
reasoningLive:
|
|
5302
|
+
reasoningLive: k,
|
|
5303
5303
|
isQueued: h,
|
|
5304
5304
|
showPromote: l,
|
|
5305
5305
|
onPromoteToTeam: w,
|
|
@@ -5342,7 +5342,7 @@ const Cy = et.memo(
|
|
|
5342
5342
|
})();
|
|
5343
5343
|
if (t.sender_type === "SYSTEM")
|
|
5344
5344
|
return /* @__PURE__ */ c("div", { className: r.msgSystem, children: [
|
|
5345
|
-
/* @__PURE__ */ n(
|
|
5345
|
+
/* @__PURE__ */ n(ya, { style: { marginRight: 4 } }),
|
|
5346
5346
|
t.content
|
|
5347
5347
|
] });
|
|
5348
5348
|
const x = t.sender_type === "AGENT" ? r.msgAgent : a ? r.msgOwn : r.msgOther, Q = a ? r.msgOwnBubble : t.sender_type === "AGENT" ? r.msgAgentBubble : r.msgHumanBubble, se = async () => {
|
|
@@ -5361,14 +5361,14 @@ const Cy = et.memo(
|
|
|
5361
5361
|
} catch {
|
|
5362
5362
|
ae("复制失败", "error");
|
|
5363
5363
|
}
|
|
5364
|
-
}, f = fe(null), [R,
|
|
5364
|
+
}, f = fe(null), [R, y] = I(!0), [F, Z] = I(!1), [ue, ie] = I(!1), [J, m] = I(null);
|
|
5365
5365
|
if (oe(() => {
|
|
5366
5366
|
W !== null && Z(W);
|
|
5367
5367
|
}, [W]), oe(() => {
|
|
5368
5368
|
const G = f.current;
|
|
5369
5369
|
if (!G) return;
|
|
5370
5370
|
const K = () => {
|
|
5371
|
-
|
|
5371
|
+
y(G.scrollHeight > G.clientHeight + 4);
|
|
5372
5372
|
};
|
|
5373
5373
|
K();
|
|
5374
5374
|
const X = setTimeout(K, 100);
|
|
@@ -5402,7 +5402,7 @@ const Cy = et.memo(
|
|
|
5402
5402
|
cursor: B ? "pointer" : "default"
|
|
5403
5403
|
},
|
|
5404
5404
|
onClick: () => B && Y(B),
|
|
5405
|
-
children:
|
|
5405
|
+
children: bt(N)
|
|
5406
5406
|
}
|
|
5407
5407
|
),
|
|
5408
5408
|
/* @__PURE__ */ c("div", { children: [
|
|
@@ -5580,7 +5580,7 @@ const Cy = et.memo(
|
|
|
5580
5580
|
cursor: B ? "pointer" : "default"
|
|
5581
5581
|
},
|
|
5582
5582
|
onClick: () => B && Y(B),
|
|
5583
|
-
children:
|
|
5583
|
+
children: bt(N)
|
|
5584
5584
|
}
|
|
5585
5585
|
),
|
|
5586
5586
|
/* @__PURE__ */ c("div", { children: [
|
|
@@ -5640,7 +5640,7 @@ const Cy = et.memo(
|
|
|
5640
5640
|
{
|
|
5641
5641
|
type: "button",
|
|
5642
5642
|
className: r.msgExpandBtn,
|
|
5643
|
-
onClick: () => Z((
|
|
5643
|
+
onClick: () => Z((b) => !b),
|
|
5644
5644
|
children: F ? "收起" : "展开全部"
|
|
5645
5645
|
}
|
|
5646
5646
|
),
|
|
@@ -5734,12 +5734,12 @@ const Cy = et.memo(
|
|
|
5734
5734
|
cursor: B ? "pointer" : "default"
|
|
5735
5735
|
},
|
|
5736
5736
|
onClick: () => B && Y(B),
|
|
5737
|
-
children:
|
|
5737
|
+
children: bt(N)
|
|
5738
5738
|
}
|
|
5739
5739
|
),
|
|
5740
5740
|
/* @__PURE__ */ c("div", { children: [
|
|
5741
5741
|
/* @__PURE__ */ n("div", { className: r.msgAgentName, children: N }),
|
|
5742
|
-
/* @__PURE__ */ n(
|
|
5742
|
+
/* @__PURE__ */ n(Nk, { msg: t, formatTime: s })
|
|
5743
5743
|
] }),
|
|
5744
5744
|
/* @__PURE__ */ n("div", { className: r.msgActionsOther, children: /* @__PURE__ */ c(
|
|
5745
5745
|
"div",
|
|
@@ -5819,7 +5819,7 @@ const Cy = et.memo(
|
|
|
5819
5819
|
cursor: B ? "pointer" : "default"
|
|
5820
5820
|
},
|
|
5821
5821
|
onClick: () => B && Y(B),
|
|
5822
|
-
children:
|
|
5822
|
+
children: bt(N)
|
|
5823
5823
|
}
|
|
5824
5824
|
),
|
|
5825
5825
|
/* @__PURE__ */ c("div", { children: [
|
|
@@ -5836,7 +5836,7 @@ const Cy = et.memo(
|
|
|
5836
5836
|
allMessages: A
|
|
5837
5837
|
}
|
|
5838
5838
|
),
|
|
5839
|
-
/* @__PURE__ */ n(
|
|
5839
|
+
/* @__PURE__ */ n(kk, { content: t.content, inline: !0 }),
|
|
5840
5840
|
G != null && /* @__PURE__ */ n(
|
|
5841
5841
|
Zs,
|
|
5842
5842
|
{
|
|
@@ -5954,12 +5954,12 @@ const Cy = et.memo(
|
|
|
5954
5954
|
running: !1
|
|
5955
5955
|
}
|
|
5956
5956
|
);
|
|
5957
|
-
const
|
|
5957
|
+
const b = ee !== void 0 ? JSON.stringify(ee, null, 2) : $;
|
|
5958
5958
|
return /* @__PURE__ */ n(
|
|
5959
5959
|
xn,
|
|
5960
5960
|
{
|
|
5961
5961
|
call: { name: K || "tool" },
|
|
5962
|
-
result: { content:
|
|
5962
|
+
result: { content: b },
|
|
5963
5963
|
running: !1,
|
|
5964
5964
|
resultError: X
|
|
5965
5965
|
}
|
|
@@ -5968,26 +5968,26 @@ const Cy = et.memo(
|
|
|
5968
5968
|
const L = nr(t.content) && t.content !== "已取消" && t.content !== "已挂起", ne = {
|
|
5969
5969
|
width: "fit-content",
|
|
5970
5970
|
maxWidth: "100%"
|
|
5971
|
-
}, ce =
|
|
5971
|
+
}, ce = k && !h, le = _o(t.ext || null), ge = (G, K = ce) => {
|
|
5972
5972
|
const X = G === t.content && O != null ? O : (() => {
|
|
5973
5973
|
var pe;
|
|
5974
|
-
const
|
|
5974
|
+
const b = Ys(
|
|
5975
5975
|
Hs(t.id, G)
|
|
5976
|
-
), V =
|
|
5977
|
-
(
|
|
5976
|
+
), V = b.filter(
|
|
5977
|
+
(ye) => ye.type === "text"
|
|
5978
5978
|
).length;
|
|
5979
|
-
return
|
|
5979
|
+
return b.some((ye) => ye.type !== "text") || V > 1 ? {
|
|
5980
5980
|
hasStructuredBlocks: !0,
|
|
5981
|
-
displayItems: Ms(
|
|
5981
|
+
displayItems: Ms(b)
|
|
5982
5982
|
} : {
|
|
5983
5983
|
hasStructuredBlocks: !1,
|
|
5984
|
-
plain: ((pe =
|
|
5984
|
+
plain: ((pe = b[0]) == null ? void 0 : pe.text) ?? G
|
|
5985
5985
|
};
|
|
5986
5986
|
})();
|
|
5987
5987
|
if (!X.hasStructuredBlocks) {
|
|
5988
|
-
const
|
|
5989
|
-
if (wt(
|
|
5990
|
-
const pe =
|
|
5988
|
+
const b = X.plain, V = ar(t), Ce = !V && /[#*_`()>|~\-]/.test(b);
|
|
5989
|
+
if (wt(b)) {
|
|
5990
|
+
const pe = b.search(/\[\[CARD_FORM:/i), ye = b.indexOf("{"), Le = pe >= 0 ? pe : ye >= 0 && (b.includes('"fields"') || b.includes('"title"')) ? ye : -1, Re = Le > 0 ? b.slice(0, Le).trim() : "", tt = (Le >= 0 ? b.slice(Le) : b).replace(/\[\[CARD_FORM:[^\]]+\]\]/gi, "").replace(/\[\[\/CARD_FORM\]\]/gi, "").trim();
|
|
5991
5991
|
return /* @__PURE__ */ c(Se, { children: [
|
|
5992
5992
|
Re ? /* @__PURE__ */ n(
|
|
5993
5993
|
"div",
|
|
@@ -6013,7 +6013,7 @@ const Cy = et.memo(
|
|
|
6013
6013
|
{
|
|
6014
6014
|
projectId: t.scenario_instance_id,
|
|
6015
6015
|
messageId: t.id,
|
|
6016
|
-
blockId: Qt(
|
|
6016
|
+
blockId: Qt(b),
|
|
6017
6017
|
rawJson: tt,
|
|
6018
6018
|
messageCreatedAt: t.created_at
|
|
6019
6019
|
}
|
|
@@ -6021,7 +6021,7 @@ const Cy = et.memo(
|
|
|
6021
6021
|
K ? /* @__PURE__ */ n(Tn, {}) : null
|
|
6022
6022
|
] });
|
|
6023
6023
|
}
|
|
6024
|
-
return V || !Ce ||
|
|
6024
|
+
return V || !Ce || k ? /* @__PURE__ */ c(
|
|
6025
6025
|
"div",
|
|
6026
6026
|
{
|
|
6027
6027
|
className: V ? `${Q} ${r.taskBootstrapBody}` : Q,
|
|
@@ -6030,15 +6030,15 @@ const Cy = et.memo(
|
|
|
6030
6030
|
whiteSpace: "pre-wrap"
|
|
6031
6031
|
},
|
|
6032
6032
|
children: [
|
|
6033
|
-
Jn(
|
|
6034
|
-
le.length > 0 && /* @__PURE__ */ n("div", { className: r.msgImages, children: le.map((pe,
|
|
6033
|
+
Jn(b) ? Ps(b) : b,
|
|
6034
|
+
le.length > 0 && /* @__PURE__ */ n("div", { className: r.msgImages, children: le.map((pe, ye) => /* @__PURE__ */ n(
|
|
6035
6035
|
"div",
|
|
6036
6036
|
{
|
|
6037
6037
|
className: r.msgImageThumb,
|
|
6038
6038
|
onClick: () => m(pe),
|
|
6039
|
-
children: /* @__PURE__ */ n("img", { src: pe, alt: `图片${
|
|
6039
|
+
children: /* @__PURE__ */ n("img", { src: pe, alt: `图片${ye + 1}` })
|
|
6040
6040
|
},
|
|
6041
|
-
|
|
6041
|
+
ye
|
|
6042
6042
|
)) }),
|
|
6043
6043
|
K ? /* @__PURE__ */ n(Tn, {}) : null
|
|
6044
6044
|
]
|
|
@@ -6052,7 +6052,7 @@ const Cy = et.memo(
|
|
|
6052
6052
|
/* @__PURE__ */ n(
|
|
6053
6053
|
En,
|
|
6054
6054
|
{
|
|
6055
|
-
content:
|
|
6055
|
+
content: b,
|
|
6056
6056
|
revealed: ue,
|
|
6057
6057
|
onReveal: () => ie(!0),
|
|
6058
6058
|
children: () => /* @__PURE__ */ n(
|
|
@@ -6066,19 +6066,19 @@ const Cy = et.memo(
|
|
|
6066
6066
|
img: Wt,
|
|
6067
6067
|
pre: Ht
|
|
6068
6068
|
},
|
|
6069
|
-
children: Ft(
|
|
6069
|
+
children: Ft(b)
|
|
6070
6070
|
}
|
|
6071
6071
|
)
|
|
6072
6072
|
}
|
|
6073
6073
|
),
|
|
6074
|
-
le.length > 0 && /* @__PURE__ */ n("div", { className: r.msgImages, children: le.map((pe,
|
|
6074
|
+
le.length > 0 && /* @__PURE__ */ n("div", { className: r.msgImages, children: le.map((pe, ye) => /* @__PURE__ */ n(
|
|
6075
6075
|
"div",
|
|
6076
6076
|
{
|
|
6077
6077
|
className: r.msgImageThumb,
|
|
6078
6078
|
onClick: () => m(pe),
|
|
6079
|
-
children: /* @__PURE__ */ n("img", { src: pe, alt: `图片${
|
|
6079
|
+
children: /* @__PURE__ */ n("img", { src: pe, alt: `图片${ye + 1}` })
|
|
6080
6080
|
},
|
|
6081
|
-
|
|
6081
|
+
ye
|
|
6082
6082
|
)) }),
|
|
6083
6083
|
K ? /* @__PURE__ */ n(Tn, {}) : null
|
|
6084
6084
|
]
|
|
@@ -6094,66 +6094,66 @@ const Cy = et.memo(
|
|
|
6094
6094
|
"memory_compress"
|
|
6095
6095
|
]);
|
|
6096
6096
|
return /* @__PURE__ */ c("div", { className: r.msgTurnTimeline, children: [
|
|
6097
|
-
$.map((
|
|
6098
|
-
if (M && ee.has(
|
|
6099
|
-
const pe =
|
|
6100
|
-
/* @__PURE__ */ n(
|
|
6097
|
+
$.map((b, V) => {
|
|
6098
|
+
if (M && ee.has(b.type)) {
|
|
6099
|
+
const pe = b.type === "reasoning" ? /* @__PURE__ */ c(Se, { children: [
|
|
6100
|
+
/* @__PURE__ */ n(ba, { style: { marginRight: 4 } }),
|
|
6101
6101
|
"推理"
|
|
6102
|
-
] }) :
|
|
6102
|
+
] }) : b.type === "tool_group" ? /* @__PURE__ */ c(Se, { children: [
|
|
6103
6103
|
/* @__PURE__ */ n(Yt, { style: { marginRight: 4 } }),
|
|
6104
6104
|
"工具组",
|
|
6105
|
-
|
|
6106
|
-
] }) :
|
|
6105
|
+
b.name ? `: ${b.name}` : ""
|
|
6106
|
+
] }) : b.type === "tool_call" ? /* @__PURE__ */ c(Se, { children: [
|
|
6107
6107
|
/* @__PURE__ */ n(fs, { style: { marginRight: 4 } }),
|
|
6108
6108
|
"调用",
|
|
6109
|
-
|
|
6110
|
-
] }) :
|
|
6109
|
+
b.name ? `: ${b.name}` : ""
|
|
6110
|
+
] }) : b.type === "tool_result" ? /* @__PURE__ */ c(Se, { children: [
|
|
6111
6111
|
/* @__PURE__ */ n(In, { style: { marginRight: 4 } }),
|
|
6112
6112
|
"结果"
|
|
6113
|
-
] }) :
|
|
6113
|
+
] }) : b.type === "tool_step" ? /* @__PURE__ */ c(Se, { children: [
|
|
6114
6114
|
/* @__PURE__ */ n(Yt, { style: { marginRight: 4 } }),
|
|
6115
|
-
|
|
6116
|
-
] }) :
|
|
6115
|
+
b.name || b.type
|
|
6116
|
+
] }) : b.type === "memory_compress" ? /* @__PURE__ */ c(Se, { children: [
|
|
6117
6117
|
/* @__PURE__ */ n(wo, { style: { marginRight: 4 } }),
|
|
6118
6118
|
"记忆压缩"
|
|
6119
|
-
] }) :
|
|
6119
|
+
] }) : b.type;
|
|
6120
6120
|
return /* @__PURE__ */ n("div", { className: r.toolCollapsedSummary, children: pe }, V);
|
|
6121
6121
|
}
|
|
6122
|
-
if (
|
|
6123
|
-
return es(
|
|
6124
|
-
|
|
6122
|
+
if (b.type === "reasoning")
|
|
6123
|
+
return es(b) ? null : /* @__PURE__ */ n(
|
|
6124
|
+
pk,
|
|
6125
6125
|
{
|
|
6126
|
-
name:
|
|
6127
|
-
text:
|
|
6128
|
-
live:
|
|
6126
|
+
name: b.name,
|
|
6127
|
+
text: b.text,
|
|
6128
|
+
live: k
|
|
6129
6129
|
},
|
|
6130
6130
|
V
|
|
6131
6131
|
);
|
|
6132
|
-
if (
|
|
6133
|
-
return /* @__PURE__ */ n("div", { className: r.memoryCompressBlock, children:
|
|
6134
|
-
if (
|
|
6132
|
+
if (b.type === "memory_compress")
|
|
6133
|
+
return /* @__PURE__ */ n("div", { className: r.memoryCompressBlock, children: b.text.replace(/^🧠\s*/, "") }, V);
|
|
6134
|
+
if (b.type === "tool_group")
|
|
6135
6135
|
return /* @__PURE__ */ n(
|
|
6136
|
-
|
|
6136
|
+
yk,
|
|
6137
6137
|
{
|
|
6138
|
-
steps:
|
|
6139
|
-
live:
|
|
6138
|
+
steps: b.steps,
|
|
6139
|
+
live: k
|
|
6140
6140
|
},
|
|
6141
6141
|
V
|
|
6142
6142
|
);
|
|
6143
|
-
if (
|
|
6143
|
+
if (b.type === "card_form")
|
|
6144
6144
|
return /* @__PURE__ */ n(
|
|
6145
6145
|
cn,
|
|
6146
6146
|
{
|
|
6147
6147
|
projectId: t.scenario_instance_id,
|
|
6148
6148
|
messageId: t.id,
|
|
6149
|
-
blockId:
|
|
6150
|
-
rawJson:
|
|
6149
|
+
blockId: b.name || "form",
|
|
6150
|
+
rawJson: b.text,
|
|
6151
6151
|
messageCreatedAt: t.created_at
|
|
6152
6152
|
},
|
|
6153
|
-
`${
|
|
6153
|
+
`${b.name || "form"}-${V}`
|
|
6154
6154
|
);
|
|
6155
|
-
if (
|
|
6156
|
-
const pe =
|
|
6155
|
+
if (b.type === "text" && wt(b.text)) {
|
|
6156
|
+
const pe = b.text.search(/\[\[CARD_FORM:/i), ye = b.text.indexOf("{"), Le = pe >= 0 ? pe : ye >= 0 && (b.text.includes('"fields"') || b.text.includes('"title"')) ? ye : -1, Re = Le > 0 ? b.text.slice(0, Le).trim() : "";
|
|
6157
6157
|
return /* @__PURE__ */ c(et.Fragment, { children: [
|
|
6158
6158
|
Re ? /* @__PURE__ */ n(
|
|
6159
6159
|
"div",
|
|
@@ -6179,29 +6179,29 @@ const Cy = et.memo(
|
|
|
6179
6179
|
{
|
|
6180
6180
|
projectId: t.scenario_instance_id,
|
|
6181
6181
|
messageId: t.id,
|
|
6182
|
-
blockId: Qt(
|
|
6183
|
-
rawJson: Le >= 0 ?
|
|
6182
|
+
blockId: Qt(b.text),
|
|
6183
|
+
rawJson: Le >= 0 ? b.text.slice(Le) : b.text,
|
|
6184
6184
|
messageCreatedAt: t.created_at
|
|
6185
6185
|
}
|
|
6186
6186
|
)
|
|
6187
6187
|
] }, `card-mixed-${V}`);
|
|
6188
6188
|
}
|
|
6189
|
-
if (
|
|
6189
|
+
if (b.type === "tool_call" || b.type === "tool_result" || b.type === "tool_step")
|
|
6190
6190
|
return /* @__PURE__ */ n(
|
|
6191
6191
|
ho,
|
|
6192
6192
|
{
|
|
6193
|
-
step:
|
|
6193
|
+
step: b,
|
|
6194
6194
|
idx: V
|
|
6195
6195
|
},
|
|
6196
6196
|
V
|
|
6197
6197
|
);
|
|
6198
|
-
const Ce =
|
|
6198
|
+
const Ce = b;
|
|
6199
6199
|
return /* @__PURE__ */ n(
|
|
6200
6200
|
"div",
|
|
6201
6201
|
{
|
|
6202
|
-
className: `${Q} ${
|
|
6202
|
+
className: `${Q} ${k ? "" : "markdown-body"} ${r.msgContent}`,
|
|
6203
6203
|
style: ne,
|
|
6204
|
-
children:
|
|
6204
|
+
children: k ? /* @__PURE__ */ n("span", { style: { whiteSpace: "pre-wrap" }, children: Jn(Ce.text) ? Ps(Ce.text) : Ce.text }) : /* @__PURE__ */ n(
|
|
6205
6205
|
ct,
|
|
6206
6206
|
{
|
|
6207
6207
|
remarkPlugins: [lt],
|
|
@@ -6229,12 +6229,12 @@ const Cy = et.memo(
|
|
|
6229
6229
|
V
|
|
6230
6230
|
);
|
|
6231
6231
|
}),
|
|
6232
|
-
le.length > 0 && /* @__PURE__ */ n("div", { className: r.msgImages, children: le.map((
|
|
6232
|
+
le.length > 0 && /* @__PURE__ */ n("div", { className: r.msgImages, children: le.map((b, V) => /* @__PURE__ */ n(
|
|
6233
6233
|
"div",
|
|
6234
6234
|
{
|
|
6235
6235
|
className: r.msgImageThumb,
|
|
6236
|
-
onClick: () => m(
|
|
6237
|
-
children: /* @__PURE__ */ n("img", { src:
|
|
6236
|
+
onClick: () => m(b),
|
|
6237
|
+
children: /* @__PURE__ */ n("img", { src: b, alt: `图片${V + 1}` })
|
|
6238
6238
|
},
|
|
6239
6239
|
V
|
|
6240
6240
|
)) }),
|
|
@@ -6255,7 +6255,7 @@ const Cy = et.memo(
|
|
|
6255
6255
|
cursor: B ? "pointer" : "default"
|
|
6256
6256
|
},
|
|
6257
6257
|
onClick: () => B && Y(B),
|
|
6258
|
-
children:
|
|
6258
|
+
children: bt(N)
|
|
6259
6259
|
}
|
|
6260
6260
|
),
|
|
6261
6261
|
/* @__PURE__ */ c(
|
|
@@ -6283,7 +6283,7 @@ const Cy = et.memo(
|
|
|
6283
6283
|
ref: f,
|
|
6284
6284
|
className: `${r.msgContentWrap} ${D && !F && (R || W === !1) ? r.msgContentCollapsed : ""}`,
|
|
6285
6285
|
children: [
|
|
6286
|
-
h ? /* @__PURE__ */ n("div", { className: r.loadingBubble, children: /* @__PURE__ */ n("span", { className: r.queuedLabel, children: "排队中…" }) }) : L ? /* @__PURE__ */ n(
|
|
6286
|
+
h ? /* @__PURE__ */ n("div", { className: r.loadingBubble, children: /* @__PURE__ */ n("span", { className: r.queuedLabel, children: "排队中…" }) }) : L ? /* @__PURE__ */ n(hk, {}) : ge(t.content),
|
|
6287
6287
|
D && !F && (R || W === !1) && /* @__PURE__ */ n("div", { className: r.msgContentFade })
|
|
6288
6288
|
]
|
|
6289
6289
|
}
|
|
@@ -6305,7 +6305,7 @@ const Cy = et.memo(
|
|
|
6305
6305
|
onScrollToMessage: g
|
|
6306
6306
|
}
|
|
6307
6307
|
) : null,
|
|
6308
|
-
t.read_status && /* @__PURE__ */ n(
|
|
6308
|
+
t.read_status && /* @__PURE__ */ n(Tk, { readStatus: t.read_status, isOwn: a })
|
|
6309
6309
|
]
|
|
6310
6310
|
}
|
|
6311
6311
|
),
|
|
@@ -6411,7 +6411,7 @@ const Cy = et.memo(
|
|
|
6411
6411
|
var s, a, o, i;
|
|
6412
6412
|
return e.msg.id === t.msg.id && e.msg.content === t.msg.content && e.isOwn === t.isOwn && e.members === t.members && e.reasoningLive === t.reasoningLive && e.isQueued === t.isQueued && e.showPromote === t.showPromote && !!e.onPromoteToTeam == !!t.onPromoteToTeam && e.showStop === t.showStop && !!e.onStop == !!t.onStop && !!e.onEditDraft == !!t.onEditDraft && !!e.onWithdraw == !!t.onWithdraw && e.onScrollToMessage === t.onScrollToMessage && ((s = e.attachedSummary) == null ? void 0 : s.id) === ((a = t.attachedSummary) == null ? void 0 : a.id) && ((o = e.attachedSummary) == null ? void 0 : o.content) === ((i = t.attachedSummary) == null ? void 0 : i.content) && e.msg.read_status === t.msg.read_status && e.forceExpandAll === t.forceExpandAll && e.hideToolCalls === t.hideToolCalls;
|
|
6413
6413
|
}
|
|
6414
|
-
),
|
|
6414
|
+
), Sk = {
|
|
6415
6415
|
received: "收到消息",
|
|
6416
6416
|
analyzing: "意图分析中",
|
|
6417
6417
|
concluded: "分析完成",
|
|
@@ -6430,13 +6430,13 @@ const Cy = et.memo(
|
|
|
6430
6430
|
json_parse_error: { text: "JSON 解析失败", color: "red" },
|
|
6431
6431
|
llm_error: { text: "LLM 异常", color: "red" }
|
|
6432
6432
|
};
|
|
6433
|
-
function
|
|
6433
|
+
function wk({
|
|
6434
6434
|
forceExpandAll: e,
|
|
6435
6435
|
onToggleExpandAll: t
|
|
6436
6436
|
}) {
|
|
6437
|
-
const s = E((
|
|
6437
|
+
const s = E((y) => y.observerStatus), a = E((y) => y.currentProject), o = (a == null ? void 0 : a.id) != null ? String(a.id) : null, i = s != null && o != null && String(s.scenarioInstanceId ?? "") === o ? s : null, [d, _] = I(
|
|
6438
6438
|
null
|
|
6439
|
-
), [p,
|
|
6439
|
+
), [p, k] = I(!1), [h, l] = I(!1), [w, S] = I(
|
|
6440
6440
|
[]
|
|
6441
6441
|
), [T, g] = I(
|
|
6442
6442
|
null
|
|
@@ -6454,31 +6454,31 @@ function wy({
|
|
|
6454
6454
|
}
|
|
6455
6455
|
if (i.status === "idle" && i.stage === "done") {
|
|
6456
6456
|
_(i);
|
|
6457
|
-
const
|
|
6458
|
-
return () => window.clearTimeout(
|
|
6457
|
+
const y = window.setTimeout(() => _(null), 1500);
|
|
6458
|
+
return () => window.clearTimeout(y);
|
|
6459
6459
|
}
|
|
6460
6460
|
_(i);
|
|
6461
6461
|
}, [i]);
|
|
6462
6462
|
const P = j(async () => {
|
|
6463
6463
|
if (a != null && a.id) {
|
|
6464
|
-
|
|
6464
|
+
k(!0), l(!0), g(null);
|
|
6465
6465
|
try {
|
|
6466
|
-
const
|
|
6467
|
-
S(
|
|
6468
|
-
} catch (
|
|
6469
|
-
console.error("[ObserverStatusBar] fetch logs failed:",
|
|
6466
|
+
const y = await Ir(a.id, 50);
|
|
6467
|
+
S(y);
|
|
6468
|
+
} catch (y) {
|
|
6469
|
+
console.error("[ObserverStatusBar] fetch logs failed:", y);
|
|
6470
6470
|
} finally {
|
|
6471
6471
|
l(!1);
|
|
6472
6472
|
}
|
|
6473
6473
|
}
|
|
6474
6474
|
}, [a == null ? void 0 : a.id]), O = j(
|
|
6475
|
-
async (
|
|
6475
|
+
async (y) => {
|
|
6476
6476
|
if (a != null && a.id) {
|
|
6477
6477
|
A(!0), g(null);
|
|
6478
6478
|
try {
|
|
6479
6479
|
const F = await Ar(
|
|
6480
6480
|
a.id,
|
|
6481
|
-
|
|
6481
|
+
y
|
|
6482
6482
|
);
|
|
6483
6483
|
g(F);
|
|
6484
6484
|
} catch (F) {
|
|
@@ -6493,12 +6493,12 @@ function wy({
|
|
|
6493
6493
|
if (!(!(a != null && a.id) || M)) {
|
|
6494
6494
|
W(!0);
|
|
6495
6495
|
try {
|
|
6496
|
-
const
|
|
6497
|
-
|
|
6498
|
-
|
|
6499
|
-
) : Pe.warning(
|
|
6500
|
-
} catch (
|
|
6501
|
-
console.error("[ObserverStatusBar] trigger observer failed:",
|
|
6496
|
+
const y = await xr(a.id);
|
|
6497
|
+
y.triggered ? Pe.success(
|
|
6498
|
+
y.messageSummary ? `已触发观察: ${y.messageSummary.slice(0, 50)}${y.messageSummary.length > 50 ? "..." : ""}` : "观察已触发"
|
|
6499
|
+
) : Pe.warning(y.message || "未找到可观察的消息");
|
|
6500
|
+
} catch (y) {
|
|
6501
|
+
console.error("[ObserverStatusBar] trigger observer failed:", y);
|
|
6502
6502
|
} finally {
|
|
6503
6503
|
W(!1);
|
|
6504
6504
|
}
|
|
@@ -6550,39 +6550,39 @@ function wy({
|
|
|
6550
6550
|
{
|
|
6551
6551
|
title: "Observer 派发意图审计历史",
|
|
6552
6552
|
open: p,
|
|
6553
|
-
onCancel: () =>
|
|
6553
|
+
onCancel: () => k(!1),
|
|
6554
6554
|
footer: null,
|
|
6555
6555
|
styles: { body: { maxHeight: "70vh", overflow: "auto" } },
|
|
6556
6556
|
children: [
|
|
6557
|
-
h ? /* @__PURE__ */ n("div", { style: { textAlign: "center", padding: 40 }, children: /* @__PURE__ */ n(Lt, {}) }) : w.length === 0 ? /* @__PURE__ */ n("div", { style: { textAlign: "center", padding: 40, color: "#999" }, children: "暂无派发记录" }) : /* @__PURE__ */ n(
|
|
6558
|
-
const F = Xn[
|
|
6559
|
-
text:
|
|
6557
|
+
h ? /* @__PURE__ */ n("div", { style: { textAlign: "center", padding: 40 }, children: /* @__PURE__ */ n(Lt, {}) }) : w.length === 0 ? /* @__PURE__ */ n("div", { style: { textAlign: "center", padding: 40, color: "#999" }, children: "暂无派发记录" }) : /* @__PURE__ */ n(ys, { children: w.map((y) => {
|
|
6558
|
+
const F = Xn[y.conclusion] ?? {
|
|
6559
|
+
text: y.conclusion,
|
|
6560
6560
|
color: "default"
|
|
6561
6561
|
};
|
|
6562
|
-
return /* @__PURE__ */ n(
|
|
6562
|
+
return /* @__PURE__ */ n(ys.Item, { children: /* @__PURE__ */ c(
|
|
6563
6563
|
"div",
|
|
6564
6564
|
{
|
|
6565
6565
|
className: r.dispatchLogItem,
|
|
6566
|
-
onClick: () => O(
|
|
6566
|
+
onClick: () => O(y.id),
|
|
6567
6567
|
children: [
|
|
6568
6568
|
/* @__PURE__ */ c("div", { className: r.dispatchLogHeader, children: [
|
|
6569
6569
|
/* @__PURE__ */ n(Xt, { color: F.color, children: F.text }),
|
|
6570
|
-
|
|
6570
|
+
y.target_count > 0 && /* @__PURE__ */ c("span", { className: r.dispatchLogTargets, children: [
|
|
6571
6571
|
"→ ",
|
|
6572
|
-
|
|
6572
|
+
y.target_count,
|
|
6573
6573
|
" 个目标"
|
|
6574
6574
|
] }),
|
|
6575
|
-
|
|
6576
|
-
|
|
6577
|
-
|
|
6575
|
+
y.sender_name && /* @__PURE__ */ n("span", { className: r.dispatchLogSender, children: y.sender_name }),
|
|
6576
|
+
y.llm_duration_ms != null && /* @__PURE__ */ c("span", { className: r.dispatchLogDuration, children: [
|
|
6577
|
+
y.llm_duration_ms,
|
|
6578
6578
|
"ms"
|
|
6579
6579
|
] }),
|
|
6580
|
-
/* @__PURE__ */ n("span", { className: r.dispatchLogTime, children:
|
|
6580
|
+
/* @__PURE__ */ n("span", { className: r.dispatchLogTime, children: y.create_time })
|
|
6581
6581
|
] }),
|
|
6582
|
-
|
|
6582
|
+
y.message_summary && /* @__PURE__ */ n("div", { className: r.dispatchLogSummary, children: y.message_summary })
|
|
6583
6583
|
]
|
|
6584
6584
|
}
|
|
6585
|
-
) },
|
|
6585
|
+
) }, y.id);
|
|
6586
6586
|
}) }),
|
|
6587
6587
|
/* @__PURE__ */ n(
|
|
6588
6588
|
pn,
|
|
@@ -6592,7 +6592,7 @@ function wy({
|
|
|
6592
6592
|
onCancel: () => g(null),
|
|
6593
6593
|
footer: null,
|
|
6594
6594
|
styles: { body: { maxHeight: "60vh", overflow: "auto" } },
|
|
6595
|
-
children: U ? /* @__PURE__ */ n("div", { style: { textAlign: "center", padding: 40 }, children: /* @__PURE__ */ n(Lt, {}) }) : T ? /* @__PURE__ */ n(
|
|
6595
|
+
children: U ? /* @__PURE__ */ n("div", { style: { textAlign: "center", padding: 40 }, children: /* @__PURE__ */ n(Lt, {}) }) : T ? /* @__PURE__ */ n(Ik, { detail: T }) : null
|
|
6596
6596
|
}
|
|
6597
6597
|
)
|
|
6598
6598
|
]
|
|
@@ -6625,13 +6625,13 @@ function wy({
|
|
|
6625
6625
|
children: [
|
|
6626
6626
|
/* @__PURE__ */ n("span", { className: r.observerIcon, children: B ? "🔍" : "✓" }),
|
|
6627
6627
|
/* @__PURE__ */ n("span", { className: r.observerTitle, children: "观察者" }),
|
|
6628
|
-
/* @__PURE__ */ n("div", { className: r.observerSteps, children: ea.map((
|
|
6628
|
+
/* @__PURE__ */ n("div", { className: r.observerSteps, children: ea.map((y, F) => /* @__PURE__ */ n(
|
|
6629
6629
|
"span",
|
|
6630
6630
|
{
|
|
6631
6631
|
className: `${r.observerStep} ${F < x ? r.observerStepDone : F === x ? B ? r.observerStepActive : r.observerStepDone : r.observerStepPending}`,
|
|
6632
|
-
children:
|
|
6632
|
+
children: Sk[y]
|
|
6633
6633
|
},
|
|
6634
|
-
|
|
6634
|
+
y
|
|
6635
6635
|
)) }),
|
|
6636
6636
|
d.thoughtChunk ? /* @__PURE__ */ n(
|
|
6637
6637
|
"span",
|
|
@@ -6641,7 +6641,7 @@ function wy({
|
|
|
6641
6641
|
children: d.thoughtChunk.length > 80 ? d.thoughtChunk.slice(0, 80) + "…" : d.thoughtChunk
|
|
6642
6642
|
}
|
|
6643
6643
|
) : se ? /* @__PURE__ */ n("span", { className: r.observerThought, children: se }) : null,
|
|
6644
|
-
f && f.length > 0 && R ? /* @__PURE__ */ n("span", { className: r.observerTargets, children: "→ " + f.map((
|
|
6644
|
+
f && f.length > 0 && R ? /* @__PURE__ */ n("span", { className: r.observerTargets, children: "→ " + f.map((y) => y.target).join(", ") }) : null,
|
|
6645
6645
|
v,
|
|
6646
6646
|
Y,
|
|
6647
6647
|
D
|
|
@@ -6651,7 +6651,7 @@ function wy({
|
|
|
6651
6651
|
q
|
|
6652
6652
|
] });
|
|
6653
6653
|
}
|
|
6654
|
-
function
|
|
6654
|
+
function Ik({
|
|
6655
6655
|
detail: e
|
|
6656
6656
|
}) {
|
|
6657
6657
|
var t, s;
|
|
@@ -6698,7 +6698,7 @@ const ps = et.memo(function({
|
|
|
6698
6698
|
hasMore: d,
|
|
6699
6699
|
onLoadMore: _,
|
|
6700
6700
|
execEntries: p,
|
|
6701
|
-
execListOpen:
|
|
6701
|
+
execListOpen: k,
|
|
6702
6702
|
onToggleExecList: h,
|
|
6703
6703
|
onCancelExecution: l,
|
|
6704
6704
|
onCancelExecutionQueue: w,
|
|
@@ -6717,11 +6717,11 @@ const ps = et.memo(function({
|
|
|
6717
6717
|
forceExpandAll: Y = null,
|
|
6718
6718
|
onToggleExpandAll: q
|
|
6719
6719
|
}) {
|
|
6720
|
-
const B = fe(null), x = fe(null), Q = fe(null), se = fe(null), f = fe(!1), R = fe(!1),
|
|
6720
|
+
const B = fe(null), x = fe(null), Q = fe(null), se = fe(null), f = fe(!1), R = fe(!1), y = fe(null), [F, Z] = I(!1), [ue, ie] = I(!1), J = s[s.length - 1], m = J ? `${J.id}:${J.content.length}` : "0", L = j(($) => {
|
|
6721
6721
|
const ee = B.current;
|
|
6722
6722
|
ee && (!$ && !(ee.scrollHeight - ee.scrollTop - ee.clientHeight <= 96) || (se.current != null && cancelAnimationFrame(se.current), se.current = requestAnimationFrame(() => {
|
|
6723
|
-
var
|
|
6724
|
-
(
|
|
6723
|
+
var b;
|
|
6724
|
+
(b = Q.current) == null || b.scrollIntoView({ behavior: "instant" }), se.current = requestAnimationFrame(() => {
|
|
6725
6725
|
var V;
|
|
6726
6726
|
se.current = null, (V = Q.current) == null || V.scrollIntoView({ behavior: "instant" });
|
|
6727
6727
|
});
|
|
@@ -6731,8 +6731,8 @@ const ps = et.memo(function({
|
|
|
6731
6731
|
if (!$) return;
|
|
6732
6732
|
const ee = $.scrollHeight - $.scrollTop - $.clientHeight;
|
|
6733
6733
|
ie(ee > 120);
|
|
6734
|
-
const
|
|
6735
|
-
|
|
6734
|
+
const b = ee > 120;
|
|
6735
|
+
b !== R.current && (R.current = b, E.getState().setUserScrolled(t, b)), y.current = {
|
|
6736
6736
|
distFromBottom: ee,
|
|
6737
6737
|
width: $.clientWidth
|
|
6738
6738
|
};
|
|
@@ -6774,12 +6774,12 @@ const ps = et.memo(function({
|
|
|
6774
6774
|
if (!$)
|
|
6775
6775
|
return;
|
|
6776
6776
|
f.current = !0;
|
|
6777
|
-
const ee = $.scrollHeight,
|
|
6777
|
+
const ee = $.scrollHeight, b = $.scrollTop;
|
|
6778
6778
|
try {
|
|
6779
6779
|
await _(), requestAnimationFrame(() => {
|
|
6780
6780
|
requestAnimationFrame(() => {
|
|
6781
6781
|
const V = B.current;
|
|
6782
|
-
V && (V.scrollTop =
|
|
6782
|
+
V && (V.scrollTop = b + (V.scrollHeight - ee));
|
|
6783
6783
|
});
|
|
6784
6784
|
});
|
|
6785
6785
|
} finally {
|
|
@@ -6792,13 +6792,13 @@ const ps = et.memo(function({
|
|
|
6792
6792
|
const $ = x.current;
|
|
6793
6793
|
if (!$)
|
|
6794
6794
|
return;
|
|
6795
|
-
const ee = B.current,
|
|
6795
|
+
const ee = B.current, b = new IntersectionObserver(
|
|
6796
6796
|
([V]) => {
|
|
6797
6797
|
V.isIntersecting && le();
|
|
6798
6798
|
},
|
|
6799
6799
|
{ root: ee, threshold: 0.1 }
|
|
6800
6800
|
);
|
|
6801
|
-
return
|
|
6801
|
+
return b.observe($), () => b.disconnect();
|
|
6802
6802
|
}, [d, F, le]), oe(() => {
|
|
6803
6803
|
if (!a)
|
|
6804
6804
|
return;
|
|
@@ -6807,14 +6807,14 @@ const ps = et.memo(function({
|
|
|
6807
6807
|
return;
|
|
6808
6808
|
const ee = () => {
|
|
6809
6809
|
const V = B.current;
|
|
6810
|
-
V && (
|
|
6810
|
+
V && (y.current = {
|
|
6811
6811
|
distFromBottom: V.scrollHeight - V.scrollTop - V.clientHeight,
|
|
6812
6812
|
width: V.clientWidth
|
|
6813
6813
|
});
|
|
6814
6814
|
};
|
|
6815
6815
|
ee();
|
|
6816
|
-
const
|
|
6817
|
-
const V = B.current, Ce =
|
|
6816
|
+
const b = new ResizeObserver(() => {
|
|
6817
|
+
const V = B.current, Ce = y.current;
|
|
6818
6818
|
if (!V || !Ce)
|
|
6819
6819
|
return;
|
|
6820
6820
|
if (V.clientWidth === Ce.width) {
|
|
@@ -6823,20 +6823,20 @@ const ps = et.memo(function({
|
|
|
6823
6823
|
}
|
|
6824
6824
|
const pe = Ce.distFromBottom;
|
|
6825
6825
|
requestAnimationFrame(() => {
|
|
6826
|
-
const
|
|
6827
|
-
if (!
|
|
6826
|
+
const ye = B.current;
|
|
6827
|
+
if (!ye)
|
|
6828
6828
|
return;
|
|
6829
6829
|
const Le = Math.max(
|
|
6830
6830
|
0,
|
|
6831
|
-
|
|
6831
|
+
ye.scrollHeight - ye.clientHeight
|
|
6832
6832
|
);
|
|
6833
|
-
(!R.current || pe < 120) && (
|
|
6834
|
-
distFromBottom:
|
|
6835
|
-
width:
|
|
6833
|
+
(!R.current || pe < 120) && (ye.scrollTop = Math.max(0, Le - pe)), y.current = {
|
|
6834
|
+
distFromBottom: ye.scrollHeight - ye.scrollTop - ye.clientHeight,
|
|
6835
|
+
width: ye.clientWidth
|
|
6836
6836
|
};
|
|
6837
6837
|
});
|
|
6838
6838
|
});
|
|
6839
|
-
return
|
|
6839
|
+
return b.observe($), () => b.disconnect();
|
|
6840
6840
|
}, [a, v]);
|
|
6841
6841
|
const ge = ($) => {
|
|
6842
6842
|
var ee;
|
|
@@ -6874,7 +6874,7 @@ const ps = et.memo(function({
|
|
|
6874
6874
|
"加载中..."
|
|
6875
6875
|
] }),
|
|
6876
6876
|
a && !o && s.length === 0 ? /* @__PURE__ */ c("div", { className: r.emptyChat, children: [
|
|
6877
|
-
/* @__PURE__ */ n("div", { className: r.emptyChatIcon, children: /* @__PURE__ */ n(
|
|
6877
|
+
/* @__PURE__ */ n("div", { className: r.emptyChatIcon, children: /* @__PURE__ */ n(ba, {}) }),
|
|
6878
6878
|
/* @__PURE__ */ n("div", { className: r.emptyChatTitle, children: t === "team" ? "开始和团队对话" : "还没有消息" }),
|
|
6879
6879
|
/* @__PURE__ */ n("div", { className: r.emptyChatText, children: t === "team" ? "在下方输入框用 @ 提及成员,Agent 会接手执行;也可以直接描述需求,由默认助理分派。" : "在下方输入框 @ 成员开始协作,或在「任务」标签页创建任务。" }),
|
|
6880
6880
|
X.length > 0 ? /* @__PURE__ */ n("div", { className: r.emptyChatRoster, children: X.map(($) => {
|
|
@@ -6885,7 +6885,7 @@ const ps = et.memo(function({
|
|
|
6885
6885
|
{
|
|
6886
6886
|
className: r.emptyChatAvatar,
|
|
6887
6887
|
style: { background: vt(ee) },
|
|
6888
|
-
children:
|
|
6888
|
+
children: bt(ee)
|
|
6889
6889
|
}
|
|
6890
6890
|
),
|
|
6891
6891
|
/* @__PURE__ */ n("span", { className: r.emptyChatMemberName, children: ee }),
|
|
@@ -6907,9 +6907,9 @@ const ps = et.memo(function({
|
|
|
6907
6907
|
const ee = lr(
|
|
6908
6908
|
$,
|
|
6909
6909
|
U
|
|
6910
|
-
),
|
|
6910
|
+
), b = ee != null ? U[ee] : void 0, V = (b == null ? void 0 : b.stepName) === "排队中", Ce = ee != null && $.content !== "已取消" && !V || dr($, s) && ur($, U), pe = $.sender_type === "AGENT" ? G.get($.id) : void 0;
|
|
6911
6911
|
return /* @__PURE__ */ n("div", { id: `chat-msg-${$.id}`, children: /* @__PURE__ */ n(
|
|
6912
|
-
|
|
6912
|
+
Ck,
|
|
6913
6913
|
{
|
|
6914
6914
|
msg: $,
|
|
6915
6915
|
formatTime: mr,
|
|
@@ -6965,7 +6965,7 @@ const ps = et.memo(function({
|
|
|
6965
6965
|
}
|
|
6966
6966
|
),
|
|
6967
6967
|
/* @__PURE__ */ n(
|
|
6968
|
-
|
|
6968
|
+
wk,
|
|
6969
6969
|
{
|
|
6970
6970
|
forceExpandAll: Y === !0,
|
|
6971
6971
|
onToggleExpandAll: q
|
|
@@ -6975,7 +6975,7 @@ const ps = et.memo(function({
|
|
|
6975
6975
|
jf,
|
|
6976
6976
|
{
|
|
6977
6977
|
entries: p,
|
|
6978
|
-
open:
|
|
6978
|
+
open: k,
|
|
6979
6979
|
onToggle: h,
|
|
6980
6980
|
onCancelQueue: w
|
|
6981
6981
|
}
|
|
@@ -6983,11 +6983,11 @@ const ps = et.memo(function({
|
|
|
6983
6983
|
O
|
|
6984
6984
|
] });
|
|
6985
6985
|
});
|
|
6986
|
-
function
|
|
6986
|
+
function Ak(e, t, s, a, o) {
|
|
6987
6987
|
const i = fe(-1), d = fe(""), _ = j(() => {
|
|
6988
6988
|
const w = _r;
|
|
6989
6989
|
return e.filter((S) => w(S, t, s, a)).map((S) => S.content).reverse();
|
|
6990
|
-
}, [e, t, s, a, o]), p = j(() => i.current !== -1, []),
|
|
6990
|
+
}, [e, t, s, a, o]), p = j(() => i.current !== -1, []), k = j(
|
|
6991
6991
|
(w) => {
|
|
6992
6992
|
const S = _();
|
|
6993
6993
|
return S.length === 0 ? null : (i.current === -1 ? (d.current = w, i.current = 0) : i.current = Math.min(
|
|
@@ -7005,9 +7005,9 @@ function Ay(e, t, s, a, o) {
|
|
|
7005
7005
|
}, [_]), l = j(() => {
|
|
7006
7006
|
i.current = -1, d.current = "";
|
|
7007
7007
|
}, []);
|
|
7008
|
-
return { navigateUp:
|
|
7008
|
+
return { navigateUp: k, navigateDown: h, resetHistory: l, isNavigating: p };
|
|
7009
7009
|
}
|
|
7010
|
-
const na = 40,
|
|
7010
|
+
const na = 40, xk = 480, Bk = 640, Lk = 0.6, qk = et.forwardRef(function({
|
|
7011
7011
|
quotedMessage: t,
|
|
7012
7012
|
onClearQuote: s,
|
|
7013
7013
|
kind: a = "team",
|
|
@@ -7015,12 +7015,12 @@ const na = 40, xy = 480, By = 640, Ly = 0.6, qy = et.forwardRef(function({
|
|
|
7015
7015
|
forceExpandAll: i = null,
|
|
7016
7016
|
onToggleExpandAll: d
|
|
7017
7017
|
}, _) {
|
|
7018
|
-
const p = os(),
|
|
7018
|
+
const p = os(), k = E((u) => u.members), h = E((u) => u.skills), l = E((u) => u.currentProject), w = E((u) => u.currentUser), S = E((u) => u.messages), T = E(
|
|
7019
7019
|
(u) => u.markPendingTeamChatContent
|
|
7020
7020
|
), g = E((u) => u.sendTeamMessage), U = E((u) => u.loadMembers), A = E((u) => u.clearTeamMessages), M = E((u) => u.sendTaskChatMessage), W = E((u) => u.activeTaskChat), P = E((u) => u.taskMessages), O = he(
|
|
7021
|
-
() => ss(
|
|
7022
|
-
[w,
|
|
7023
|
-
), N = a === "task" ? P : S, { navigateUp: v, navigateDown: D, resetHistory: Y, isNavigating: q } =
|
|
7021
|
+
() => ss(k, w) ?? null,
|
|
7022
|
+
[w, k]
|
|
7023
|
+
), N = a === "task" ? P : S, { navigateUp: v, navigateDown: D, resetHistory: Y, isNavigating: q } = Ak(N, O, w, k, a), [B, x] = I(""), [Q, se] = I(!1), f = fe(!1), R = fe(0), [y, F] = I({ show: !1, query: "", cursor: 0, selectedIndex: 0 }), [Z, ue] = I(!1), [ie, J] = I(!1), [m, L] = I("dispatch");
|
|
7024
7024
|
oe(() => {
|
|
7025
7025
|
const u = l == null ? void 0 : l.id;
|
|
7026
7026
|
if (!u) return;
|
|
@@ -7049,7 +7049,7 @@ const na = 40, xy = 480, By = 640, Ly = 0.6, qy = et.forwardRef(function({
|
|
|
7049
7049
|
}
|
|
7050
7050
|
},
|
|
7051
7051
|
[l == null ? void 0 : l.id, m]
|
|
7052
|
-
), [ce, le] = I([]), [ge, G] = I(!1), [K, X] = I(!1), [$, ee] = I(!1), [
|
|
7052
|
+
), [ce, le] = I([]), [ge, G] = I(!1), [K, X] = I(!1), [$, ee] = I(!1), [b, V] = I(!1), [Ce, pe] = I(!1), [ye, Le] = I([]), [Re, Fe] = I(!1), [tt, Je] = I(!1), ze = fe(null), Tt = fe(null), dt = fe(null), ht = fe(null), we = fe(null), [Oe, ft] = I(null), Ke = fe(null), [gt, at] = I(!1), nt = fe(null);
|
|
7053
7053
|
Wo(_, () => ({
|
|
7054
7054
|
setInput: (u) => {
|
|
7055
7055
|
x(u), requestAnimationFrame(() => {
|
|
@@ -7083,9 +7083,9 @@ const na = 40, xy = 480, By = 640, Ly = 0.6, qy = et.forwardRef(function({
|
|
|
7083
7083
|
}, [ut, o]);
|
|
7084
7084
|
const en = j((u) => {
|
|
7085
7085
|
var _e, Ae;
|
|
7086
|
-
const H = ((Ae = (_e = we.current) == null ? void 0 : _e.parentElement) == null ? void 0 : Ae.clientHeight) ?? 0, re = H > 0 ? Math.round(H *
|
|
7086
|
+
const H = ((Ae = (_e = we.current) == null ? void 0 : _e.parentElement) == null ? void 0 : Ae.clientHeight) ?? 0, re = H > 0 ? Math.round(H * Lk) : xk, te = Math.max(
|
|
7087
7087
|
na,
|
|
7088
|
-
Math.min(
|
|
7088
|
+
Math.min(Bk, re)
|
|
7089
7089
|
);
|
|
7090
7090
|
return Math.min(Math.max(u, na), te);
|
|
7091
7091
|
}, []), fn = j(
|
|
@@ -7134,27 +7134,27 @@ const na = 40, xy = 480, By = 640, Ly = 0.6, qy = et.forwardRef(function({
|
|
|
7134
7134
|
};
|
|
7135
7135
|
return document.addEventListener("mousedown", u), () => document.removeEventListener("mousedown", u);
|
|
7136
7136
|
}, [Re]), oe(() => {
|
|
7137
|
-
if (
|
|
7137
|
+
if (y.show && Tt.current) {
|
|
7138
7138
|
const u = Tt.current.querySelector(
|
|
7139
|
-
`[data-mention-index="${
|
|
7139
|
+
`[data-mention-index="${y.selectedIndex}"]`
|
|
7140
7140
|
);
|
|
7141
7141
|
u == null || u.scrollIntoView({ block: "nearest" });
|
|
7142
7142
|
}
|
|
7143
|
-
}, [
|
|
7144
|
-
const ot = he(() =>
|
|
7143
|
+
}, [y.selectedIndex, y.show]);
|
|
7144
|
+
const ot = he(() => y.show ? k.filter((u) => {
|
|
7145
7145
|
var te, _e;
|
|
7146
|
-
if (!
|
|
7146
|
+
if (!y.query) return !0;
|
|
7147
7147
|
const H = u.display_name.toLowerCase(), re = ((_e = (te = u.agent_info) == null ? void 0 : te.name) == null ? void 0 : _e.toLowerCase()) ?? "";
|
|
7148
|
-
return H.includes(
|
|
7149
|
-
}) : [], [
|
|
7148
|
+
return H.includes(y.query) || re.includes(y.query);
|
|
7149
|
+
}) : [], [y.show, y.query, k]), yt = he(() => y.show ? h.filter((u) => y.query ? u.name.toLowerCase().includes(y.query) : !0) : [], [y.show, y.query, h]), Mt = j(
|
|
7150
7150
|
(u, H, re) => {
|
|
7151
7151
|
var te;
|
|
7152
7152
|
x((_e) => {
|
|
7153
|
-
const Ae = _e.slice(0,
|
|
7153
|
+
const Ae = _e.slice(0, y.cursor), He = _e.slice(y.cursor);
|
|
7154
7154
|
return Ae.replace(/@[^@\s]*$/, `@${re} `) + He;
|
|
7155
7155
|
}), F({ show: !1, query: "", cursor: 0, selectedIndex: 0 }), (te = ze.current) == null || te.focus();
|
|
7156
7156
|
},
|
|
7157
|
-
[
|
|
7157
|
+
[y.cursor]
|
|
7158
7158
|
), tn = fe(!1), gn = j(
|
|
7159
7159
|
(u) => {
|
|
7160
7160
|
const H = u.target.value, re = u.target.selectionStart ?? 0;
|
|
@@ -7181,7 +7181,7 @@ const na = 40, xy = 480, By = 640, Ly = 0.6, qy = et.forwardRef(function({
|
|
|
7181
7181
|
}
|
|
7182
7182
|
}
|
|
7183
7183
|
re.length > 0 && (u.preventDefault(), le((_e) => [..._e, ...re]));
|
|
7184
|
-
}, []),
|
|
7184
|
+
}, []), yn = j((u) => {
|
|
7185
7185
|
le((H) => H.filter((re, te) => te !== u));
|
|
7186
7186
|
}, []), Pt = j(async () => {
|
|
7187
7187
|
var hs;
|
|
@@ -7218,12 +7218,12 @@ const na = 40, xy = 480, By = 640, Ly = 0.6, qy = et.forwardRef(function({
|
|
|
7218
7218
|
}
|
|
7219
7219
|
return;
|
|
7220
7220
|
}
|
|
7221
|
-
const _e = u.match(/@(.+?)($|\s)/), Ae = (_e == null ? void 0 : _e[1]) ?? "", He =
|
|
7221
|
+
const _e = u.match(/@(.+?)($|\s)/), Ae = (_e == null ? void 0 : _e[1]) ?? "", He = k.find(
|
|
7222
7222
|
(qe) => {
|
|
7223
7223
|
var nn;
|
|
7224
7224
|
return qe.member_type === "AGENT" && (((nn = qe.agent_info) == null ? void 0 : nn.name) === Ae || qe.display_name === Ae);
|
|
7225
7225
|
}
|
|
7226
|
-
), We =
|
|
7226
|
+
), We = k.find(
|
|
7227
7227
|
(qe) => qe.member_type === "HUMAN" && qe.display_name === Ae
|
|
7228
7228
|
), Dt = h.find((qe) => qe.name === Ae);
|
|
7229
7229
|
T(H), x(""), le([]), Y(), s();
|
|
@@ -7259,7 +7259,7 @@ const na = 40, xy = 480, By = 640, Ly = 0.6, qy = et.forwardRef(function({
|
|
|
7259
7259
|
B,
|
|
7260
7260
|
l,
|
|
7261
7261
|
t,
|
|
7262
|
-
|
|
7262
|
+
k,
|
|
7263
7263
|
h,
|
|
7264
7264
|
T,
|
|
7265
7265
|
g,
|
|
@@ -7272,10 +7272,10 @@ const na = 40, xy = 480, By = 640, Ly = 0.6, qy = et.forwardRef(function({
|
|
|
7272
7272
|
]), qn = (u) => f.current || u.nativeEvent.isComposing === !0 || u.keyCode === 229 || Date.now() - R.current < 80, Rn = j(
|
|
7273
7273
|
(u) => {
|
|
7274
7274
|
var H;
|
|
7275
|
-
if (
|
|
7275
|
+
if (y.show) {
|
|
7276
7276
|
const re = [
|
|
7277
7277
|
...ot,
|
|
7278
|
-
...
|
|
7278
|
+
...yt
|
|
7279
7279
|
];
|
|
7280
7280
|
if (u.key === "ArrowDown")
|
|
7281
7281
|
u.preventDefault(), F((te) => ({
|
|
@@ -7292,7 +7292,7 @@ const na = 40, xy = 480, By = 640, Ly = 0.6, qy = et.forwardRef(function({
|
|
|
7292
7292
|
}));
|
|
7293
7293
|
else if (u.key === "Enter") {
|
|
7294
7294
|
u.preventDefault();
|
|
7295
|
-
const te = re[
|
|
7295
|
+
const te = re[y.selectedIndex];
|
|
7296
7296
|
if (te) {
|
|
7297
7297
|
const _e = ot.includes(te), Ae = _e ? te.member_type === "AGENT" ? ((H = te.agent_info) == null ? void 0 : H.name) ?? te.display_name : te.display_name : te.name, He = te.ref_id ?? String(te.id);
|
|
7298
7298
|
Mt(
|
|
@@ -7319,10 +7319,10 @@ const na = 40, xy = 480, By = 640, Ly = 0.6, qy = et.forwardRef(function({
|
|
|
7319
7319
|
}
|
|
7320
7320
|
},
|
|
7321
7321
|
[
|
|
7322
|
-
|
|
7323
|
-
|
|
7322
|
+
y.show,
|
|
7323
|
+
y.selectedIndex,
|
|
7324
7324
|
ot,
|
|
7325
|
-
|
|
7325
|
+
yt,
|
|
7326
7326
|
Mt,
|
|
7327
7327
|
Pt,
|
|
7328
7328
|
B,
|
|
@@ -7610,7 +7610,7 @@ const na = 40, xy = 480, By = 640, Ly = 0.6, qy = et.forwardRef(function({
|
|
|
7610
7610
|
{
|
|
7611
7611
|
className: r.modeDropdownItem,
|
|
7612
7612
|
onClick: async () => {
|
|
7613
|
-
if (l && !
|
|
7613
|
+
if (l && !b && await jn({
|
|
7614
7614
|
title: "深度重置",
|
|
7615
7615
|
content: "确定要深度重置吗?将清理所有消息、上下文并重建 Agent 运行时。"
|
|
7616
7616
|
})) {
|
|
@@ -7627,7 +7627,7 @@ const na = 40, xy = 480, By = 640, Ly = 0.6, qy = et.forwardRef(function({
|
|
|
7627
7627
|
},
|
|
7628
7628
|
children: [
|
|
7629
7629
|
/* @__PURE__ */ n("span", { className: r.cmdName, children: "/reset" }),
|
|
7630
|
-
/* @__PURE__ */ n("span", { className: r.cmdDesc, children:
|
|
7630
|
+
/* @__PURE__ */ n("span", { className: r.cmdDesc, children: b ? "重置中..." : "深度重置Agent状态" })
|
|
7631
7631
|
]
|
|
7632
7632
|
}
|
|
7633
7633
|
),
|
|
@@ -7642,7 +7642,7 @@ const na = 40, xy = 480, By = 640, Ly = 0.6, qy = et.forwardRef(function({
|
|
|
7642
7642
|
})) {
|
|
7643
7643
|
pe(!0), J(!1);
|
|
7644
7644
|
try {
|
|
7645
|
-
const u = await
|
|
7645
|
+
const u = await yr(l.id);
|
|
7646
7646
|
ae(
|
|
7647
7647
|
(u == null ? void 0 : u.message) || "技能已刷新",
|
|
7648
7648
|
(u == null ? void 0 : u.ok) === !1 ? "warning" : "success"
|
|
@@ -7753,7 +7753,7 @@ const na = 40, xy = 480, By = 640, Ly = 0.6, qy = et.forwardRef(function({
|
|
|
7753
7753
|
if (l) {
|
|
7754
7754
|
Je(!0), Fe(!1);
|
|
7755
7755
|
try {
|
|
7756
|
-
const u = await
|
|
7756
|
+
const u = await bs(
|
|
7757
7757
|
l.id,
|
|
7758
7758
|
null
|
|
7759
7759
|
);
|
|
@@ -7776,7 +7776,7 @@ const na = 40, xy = 480, By = 640, Ly = 0.6, qy = et.forwardRef(function({
|
|
|
7776
7776
|
]
|
|
7777
7777
|
}
|
|
7778
7778
|
),
|
|
7779
|
-
|
|
7779
|
+
ye.map((u) => {
|
|
7780
7780
|
const H = (l == null ? void 0 : l.llm_code) === u.service;
|
|
7781
7781
|
return /* @__PURE__ */ c(
|
|
7782
7782
|
"div",
|
|
@@ -7789,7 +7789,7 @@ const na = 40, xy = 480, By = 640, Ly = 0.6, qy = et.forwardRef(function({
|
|
|
7789
7789
|
}
|
|
7790
7790
|
Je(!0), Fe(!1);
|
|
7791
7791
|
try {
|
|
7792
|
-
const re = await
|
|
7792
|
+
const re = await bs(
|
|
7793
7793
|
l.id,
|
|
7794
7794
|
u.service
|
|
7795
7795
|
);
|
|
@@ -7863,7 +7863,7 @@ const na = 40, xy = 480, By = 640, Ly = 0.6, qy = et.forwardRef(function({
|
|
|
7863
7863
|
{
|
|
7864
7864
|
type: "button",
|
|
7865
7865
|
className: r.imagePreviewRemove,
|
|
7866
|
-
onClick: () =>
|
|
7866
|
+
onClick: () => yn(H),
|
|
7867
7867
|
children: "×"
|
|
7868
7868
|
}
|
|
7869
7869
|
)
|
|
@@ -7890,7 +7890,7 @@ const na = 40, xy = 480, By = 640, Ly = 0.6, qy = et.forwardRef(function({
|
|
|
7890
7890
|
rows: 1
|
|
7891
7891
|
}
|
|
7892
7892
|
),
|
|
7893
|
-
|
|
7893
|
+
y.show && (ot.length > 0 || yt.length > 0) && /* @__PURE__ */ c(Se, { children: [
|
|
7894
7894
|
/* @__PURE__ */ n(
|
|
7895
7895
|
"div",
|
|
7896
7896
|
{
|
|
@@ -7908,7 +7908,7 @@ const na = 40, xy = 480, By = 640, Ly = 0.6, qy = et.forwardRef(function({
|
|
|
7908
7908
|
/* @__PURE__ */ n("div", { className: r.mentionLabel, children: "团队成员" }),
|
|
7909
7909
|
ot.map((u, H) => {
|
|
7910
7910
|
var te;
|
|
7911
|
-
const re =
|
|
7911
|
+
const re = y.selectedIndex === H;
|
|
7912
7912
|
return /* @__PURE__ */ c(
|
|
7913
7913
|
"div",
|
|
7914
7914
|
{
|
|
@@ -7959,10 +7959,10 @@ const na = 40, xy = 480, By = 640, Ly = 0.6, qy = et.forwardRef(function({
|
|
|
7959
7959
|
);
|
|
7960
7960
|
})
|
|
7961
7961
|
] }),
|
|
7962
|
-
|
|
7962
|
+
yt.length > 0 && /* @__PURE__ */ c(Se, { children: [
|
|
7963
7963
|
/* @__PURE__ */ n("div", { className: r.mentionLabel, children: "技能" }),
|
|
7964
|
-
|
|
7965
|
-
const re = ot.length + H, te =
|
|
7964
|
+
yt.map((u, H) => {
|
|
7965
|
+
const re = ot.length + H, te = y.selectedIndex === re;
|
|
7966
7966
|
return /* @__PURE__ */ c(
|
|
7967
7967
|
"div",
|
|
7968
7968
|
{
|
|
@@ -7995,7 +7995,7 @@ const na = 40, xy = 480, By = 640, Ly = 0.6, qy = et.forwardRef(function({
|
|
|
7995
7995
|
] })
|
|
7996
7996
|
] })
|
|
7997
7997
|
] });
|
|
7998
|
-
}), fo = et.memo(
|
|
7998
|
+
}), fo = et.memo(qk);
|
|
7999
7999
|
function sa(e) {
|
|
8000
8000
|
if (!e) return "";
|
|
8001
8001
|
try {
|
|
@@ -8005,7 +8005,7 @@ function sa(e) {
|
|
|
8005
8005
|
return e || "";
|
|
8006
8006
|
}
|
|
8007
8007
|
}
|
|
8008
|
-
function
|
|
8008
|
+
function Rk({
|
|
8009
8009
|
instruction: e,
|
|
8010
8010
|
fromMember: t,
|
|
8011
8011
|
toMember: s
|
|
@@ -8022,7 +8022,7 @@ function Ry({
|
|
|
8022
8022
|
role: "button",
|
|
8023
8023
|
tabIndex: 0,
|
|
8024
8024
|
onKeyDown: (p) => {
|
|
8025
|
-
(p.key === "Enter" || p.key === " ") && (p.preventDefault(), o((
|
|
8025
|
+
(p.key === "Enter" || p.key === " ") && (p.preventDefault(), o((k) => !k));
|
|
8026
8026
|
},
|
|
8027
8027
|
children: [
|
|
8028
8028
|
/* @__PURE__ */ n("span", { className: z.taskContextChevron, children: a ? "▶" : "▼" }),
|
|
@@ -8044,7 +8044,7 @@ function Ry({
|
|
|
8044
8044
|
!a && e && /* @__PURE__ */ n("div", { className: z.taskContextInstruction, children: e })
|
|
8045
8045
|
] });
|
|
8046
8046
|
}
|
|
8047
|
-
function $
|
|
8047
|
+
function $k({
|
|
8048
8048
|
onClose: e,
|
|
8049
8049
|
onTaskCompleted: t
|
|
8050
8050
|
}) {
|
|
@@ -8056,7 +8056,7 @@ function $y({
|
|
|
8056
8056
|
cancelExecutionQueue: d,
|
|
8057
8057
|
chatScrollBottomTick: _,
|
|
8058
8058
|
projectSwitchSeq: p,
|
|
8059
|
-
hideToolCalls:
|
|
8059
|
+
hideToolCalls: k,
|
|
8060
8060
|
activeTaskChat: h,
|
|
8061
8061
|
taskMessages: l,
|
|
8062
8062
|
taskHasMoreMessages: w,
|
|
@@ -8175,7 +8175,7 @@ function $y({
|
|
|
8175
8175
|
)
|
|
8176
8176
|
] }),
|
|
8177
8177
|
/* @__PURE__ */ n(
|
|
8178
|
-
|
|
8178
|
+
Rk,
|
|
8179
8179
|
{
|
|
8180
8180
|
instruction: (M == null ? void 0 : M.instruction) ?? null,
|
|
8181
8181
|
fromMember: (M == null ? void 0 : M.fromMember) ?? null,
|
|
@@ -8212,12 +8212,12 @@ function $y({
|
|
|
8212
8212
|
scrollBottomTick: _.task,
|
|
8213
8213
|
anchorKey: `${p}:task:${h.taskId}`,
|
|
8214
8214
|
footer: q,
|
|
8215
|
-
hideToolCalls:
|
|
8215
|
+
hideToolCalls: k
|
|
8216
8216
|
}
|
|
8217
8217
|
)
|
|
8218
8218
|
] }) : null;
|
|
8219
8219
|
}
|
|
8220
|
-
function
|
|
8220
|
+
function Mk(e) {
|
|
8221
8221
|
const t = (s) => s == null ? null : String(s);
|
|
8222
8222
|
return {
|
|
8223
8223
|
// 雪花 ID 严格 string, 严禁 Number(): 会触发 JS Number.MAX_SAFE_INTEGER 精度丢失。
|
|
@@ -8278,17 +8278,17 @@ const aa = {
|
|
|
8278
8278
|
tagClass: z.taskTagCancelled,
|
|
8279
8279
|
dotClass: z.taskStatusCancelled
|
|
8280
8280
|
}
|
|
8281
|
-
},
|
|
8281
|
+
}, Pk = [
|
|
8282
8282
|
{ key: "all", label: "全部" },
|
|
8283
8283
|
{ key: "running", label: "执行中" },
|
|
8284
8284
|
{ key: "pending", label: "待处理" },
|
|
8285
8285
|
{ key: "done", label: "已完成" },
|
|
8286
8286
|
{ key: "mine", label: "@我" }
|
|
8287
8287
|
];
|
|
8288
|
-
function
|
|
8288
|
+
function Dk(e) {
|
|
8289
8289
|
return rs(e) && Ya(e.status);
|
|
8290
8290
|
}
|
|
8291
|
-
function
|
|
8291
|
+
function Ek(e) {
|
|
8292
8292
|
if (!e) return "-";
|
|
8293
8293
|
try {
|
|
8294
8294
|
const t = new Date(e), s = String(t.getMonth() + 1).padStart(2, "0"), a = String(t.getDate()).padStart(2, "0"), o = String(t.getHours()).padStart(2, "0"), i = String(t.getMinutes()).padStart(2, "0");
|
|
@@ -8297,8 +8297,8 @@ function Ey(e) {
|
|
|
8297
8297
|
return e;
|
|
8298
8298
|
}
|
|
8299
8299
|
}
|
|
8300
|
-
function
|
|
8301
|
-
const e = E((f) => f.currentProject), t = E((f) => f.openTaskChat), s = E((f) => f.closeTaskChat), a = E((f) => f.activeTaskChat), o = E((f) => f.currentUser), [i, d] = I([]), [_, p] = I(!1), [
|
|
8300
|
+
function Fk() {
|
|
8301
|
+
const e = E((f) => f.currentProject), t = E((f) => f.openTaskChat), s = E((f) => f.closeTaskChat), a = E((f) => f.activeTaskChat), o = E((f) => f.currentUser), [i, d] = I([]), [_, p] = I(!1), [k, h] = I(null), [l, w] = I("all"), [S, T] = I("flat"), [g, U] = I(/* @__PURE__ */ new Set()), A = j(async () => {
|
|
8302
8302
|
if (e) {
|
|
8303
8303
|
p(!0), h(null);
|
|
8304
8304
|
try {
|
|
@@ -8313,9 +8313,9 @@ function Fy() {
|
|
|
8313
8313
|
);
|
|
8314
8314
|
if (!f.ok)
|
|
8315
8315
|
throw new Error(`HTTP ${f.status}`);
|
|
8316
|
-
const R = await f.json(),
|
|
8316
|
+
const R = await f.json(), y = Array.isArray(R.data) ? R.data : [];
|
|
8317
8317
|
d(
|
|
8318
|
-
|
|
8318
|
+
y.map((F) => Mk(F))
|
|
8319
8319
|
);
|
|
8320
8320
|
} catch (f) {
|
|
8321
8321
|
h((f == null ? void 0 : f.message) || "加载失败");
|
|
@@ -8374,34 +8374,34 @@ function Fy() {
|
|
|
8374
8374
|
f.set(F.id, { ...F, children: [], depth: 0 });
|
|
8375
8375
|
for (const F of f.values())
|
|
8376
8376
|
F.parentTaskId != null && f.has(F.parentTaskId) ? f.get(F.parentTaskId).children.push(F) : R.push(F);
|
|
8377
|
-
function
|
|
8377
|
+
function y(F, Z) {
|
|
8378
8378
|
for (const ue of F)
|
|
8379
|
-
ue.depth = Z,
|
|
8379
|
+
ue.depth = Z, y(ue.children, Z + 1);
|
|
8380
8380
|
}
|
|
8381
|
-
return
|
|
8381
|
+
return y(R, 0), R;
|
|
8382
8382
|
}, [v]), q = he(() => {
|
|
8383
8383
|
if (S !== "tree") return [];
|
|
8384
8384
|
const f = [];
|
|
8385
|
-
function R(
|
|
8386
|
-
for (const F of
|
|
8385
|
+
function R(y) {
|
|
8386
|
+
for (const F of y)
|
|
8387
8387
|
f.push(F), g.has(F.id) && F.children.length > 0 && R(F.children);
|
|
8388
8388
|
}
|
|
8389
8389
|
return R(Y), f;
|
|
8390
8390
|
}, [S, Y, g]), B = j((f) => {
|
|
8391
8391
|
U((R) => {
|
|
8392
|
-
const
|
|
8393
|
-
return
|
|
8392
|
+
const y = new Set(R);
|
|
8393
|
+
return y.has(f) ? y.delete(f) : y.add(f), y;
|
|
8394
8394
|
});
|
|
8395
8395
|
}, []), x = S === "tree" ? q : v, Q = S === "tree";
|
|
8396
8396
|
if (!e)
|
|
8397
8397
|
return /* @__PURE__ */ n("div", { className: z.taskPanel, children: /* @__PURE__ */ n("div", { className: z.taskEmpty, children: "请先选择项目" }) });
|
|
8398
8398
|
if (_ && i.length === 0)
|
|
8399
8399
|
return /* @__PURE__ */ n("div", { className: z.taskPanel, children: /* @__PURE__ */ n("div", { className: z.taskLoading, children: "加载中..." }) });
|
|
8400
|
-
if (
|
|
8400
|
+
if (k && i.length === 0)
|
|
8401
8401
|
return /* @__PURE__ */ n("div", { className: z.taskPanel, children: /* @__PURE__ */ c("div", { className: z.taskError, children: [
|
|
8402
8402
|
/* @__PURE__ */ c("span", { children: [
|
|
8403
8403
|
"加载失败: ",
|
|
8404
|
-
|
|
8404
|
+
k
|
|
8405
8405
|
] }),
|
|
8406
8406
|
/* @__PURE__ */ n("button", { className: z.refreshBtn, onClick: A, children: "重试" })
|
|
8407
8407
|
] }) });
|
|
@@ -8447,7 +8447,7 @@ function Fy() {
|
|
|
8447
8447
|
}
|
|
8448
8448
|
)
|
|
8449
8449
|
] }),
|
|
8450
|
-
|
|
8450
|
+
Pk.map((f) => /* @__PURE__ */ c(
|
|
8451
8451
|
"span",
|
|
8452
8452
|
{
|
|
8453
8453
|
className: `${z.filterChip} ${l === f.key ? z.filterChipActive : ""}`,
|
|
@@ -8469,12 +8469,12 @@ function Fy() {
|
|
|
8469
8469
|
{
|
|
8470
8470
|
className: `${z.taskList} ${se ? "" : z.taskListFull}`,
|
|
8471
8471
|
children: v.length === 0 ? /* @__PURE__ */ n("div", { className: z.taskEmpty, children: i.length === 0 ? "暂无任务" : "无匹配任务" }) : x.map((f) => {
|
|
8472
|
-
const R = Q && f.depth !== void 0,
|
|
8472
|
+
const R = Q && f.depth !== void 0, y = R ? f.depth : 0, F = R && f.children.length > 0, Z = R && g.has(f.id), ue = aa[f.status] || aa[0], ie = Ka(f), J = Qa(f), m = (a == null ? void 0 : a.taskId) === f.id;
|
|
8473
8473
|
return /* @__PURE__ */ c(
|
|
8474
8474
|
"div",
|
|
8475
8475
|
{
|
|
8476
8476
|
className: `${z.taskCard} ${se ? z.taskCardCompact : z.taskCardFull} ${m ? z.taskCardSelected : ""} ${Q ? z.taskCardTree : ""}`,
|
|
8477
|
-
style: Q ? { paddingLeft: 12 +
|
|
8477
|
+
style: Q ? { paddingLeft: 12 + y * 20 } : void 0,
|
|
8478
8478
|
onClick: () => M(f),
|
|
8479
8479
|
children: [
|
|
8480
8480
|
F && /* @__PURE__ */ n(
|
|
@@ -8518,8 +8518,8 @@ function Fy() {
|
|
|
8518
8518
|
] })
|
|
8519
8519
|
] })
|
|
8520
8520
|
] }),
|
|
8521
|
-
/* @__PURE__ */ n("span", { className: z.taskTime, children:
|
|
8522
|
-
|
|
8521
|
+
/* @__PURE__ */ n("span", { className: z.taskTime, children: Ek(f.createTime) }),
|
|
8522
|
+
Dk(f) ? /* @__PURE__ */ n(
|
|
8523
8523
|
"button",
|
|
8524
8524
|
{
|
|
8525
8525
|
type: "button",
|
|
@@ -8567,7 +8567,7 @@ function Fy() {
|
|
|
8567
8567
|
{
|
|
8568
8568
|
className: `${z.taskDetailPane} ${se ? z.taskDetailPaneOpen : ""}`,
|
|
8569
8569
|
children: se ? /* @__PURE__ */ n(
|
|
8570
|
-
$
|
|
8570
|
+
$k,
|
|
8571
8571
|
{
|
|
8572
8572
|
onClose: s,
|
|
8573
8573
|
onTaskCompleted: A
|
|
@@ -8591,7 +8591,7 @@ function Zt(e) {
|
|
|
8591
8591
|
const s = t.toString();
|
|
8592
8592
|
return s ? `?${s}` : "";
|
|
8593
8593
|
}
|
|
8594
|
-
async function
|
|
8594
|
+
async function Ok(e, t = "群聊产出") {
|
|
8595
8595
|
const s = await Be(
|
|
8596
8596
|
`${_t}/scenario-instances/${e}/workspace/tree${Zt({ subdir: t })}`,
|
|
8597
8597
|
st
|
|
@@ -8605,7 +8605,7 @@ async function oa(e, t) {
|
|
|
8605
8605
|
);
|
|
8606
8606
|
return pt(s, "读取文件失败");
|
|
8607
8607
|
}
|
|
8608
|
-
async function
|
|
8608
|
+
async function Hk(e, t, s) {
|
|
8609
8609
|
const a = await Be(
|
|
8610
8610
|
`${_t}/scenario-instances/${e}/workspace/file${Zt({ file_path: t })}`,
|
|
8611
8611
|
{
|
|
@@ -8620,21 +8620,21 @@ async function Hy(e, t, s) {
|
|
|
8620
8620
|
);
|
|
8621
8621
|
pt(a, "保存文件失败");
|
|
8622
8622
|
}
|
|
8623
|
-
async function
|
|
8623
|
+
async function Wk(e, t = 50) {
|
|
8624
8624
|
const s = await Be(
|
|
8625
8625
|
`${_t}/scenario-instances/${e}/workspace/git/log${Zt({ limit: t })}`,
|
|
8626
8626
|
st
|
|
8627
8627
|
);
|
|
8628
8628
|
return pt(s, "读取 git log 失败");
|
|
8629
8629
|
}
|
|
8630
|
-
async function
|
|
8630
|
+
async function Gk(e) {
|
|
8631
8631
|
const t = await Be(
|
|
8632
8632
|
`${_t}/scenario-instances/${e}/workspace/git/status`,
|
|
8633
8633
|
st
|
|
8634
8634
|
);
|
|
8635
8635
|
return pt(t, "读取 git status 失败");
|
|
8636
8636
|
}
|
|
8637
|
-
async function
|
|
8637
|
+
async function jk(e, t, s) {
|
|
8638
8638
|
const a = await Be(
|
|
8639
8639
|
`${_t}/scenario-instances/${e}/workspace/git/commit`,
|
|
8640
8640
|
{
|
|
@@ -8649,21 +8649,21 @@ async function jy(e, t, s) {
|
|
|
8649
8649
|
);
|
|
8650
8650
|
return pt(a, "提交失败");
|
|
8651
8651
|
}
|
|
8652
|
-
async function
|
|
8652
|
+
async function Uk(e, t) {
|
|
8653
8653
|
const s = await Be(
|
|
8654
8654
|
`${_t}/scenario-instances/${e}/workspace/git/commit/${t}/changes`,
|
|
8655
8655
|
st
|
|
8656
8656
|
);
|
|
8657
8657
|
return pt(s, "读取 commit 变更失败");
|
|
8658
8658
|
}
|
|
8659
|
-
async function
|
|
8659
|
+
async function zk(e, t, s, a) {
|
|
8660
8660
|
const o = await Be(
|
|
8661
8661
|
`${_t}/scenario-instances/${e}/workspace/git/diff${Zt({ from: t, to: s, path: a })}`,
|
|
8662
8662
|
st
|
|
8663
8663
|
);
|
|
8664
8664
|
return pt(o, "读取 diff 失败");
|
|
8665
8665
|
}
|
|
8666
|
-
async function
|
|
8666
|
+
async function Vk(e, t, s) {
|
|
8667
8667
|
const a = await Be(
|
|
8668
8668
|
`${_t}/scenario-instances/${e}/workspace/git/commit/${t}/file${Zt({ path: s })}`,
|
|
8669
8669
|
st
|
|
@@ -8673,27 +8673,27 @@ async function Vy(e, t, s) {
|
|
|
8673
8673
|
"读取文件快照失败"
|
|
8674
8674
|
);
|
|
8675
8675
|
}
|
|
8676
|
-
const
|
|
8677
|
-
panel:
|
|
8678
|
-
toolbar:
|
|
8679
|
-
viewSwitch:
|
|
8680
|
-
viewBtn:
|
|
8681
|
-
viewBtnActive:
|
|
8682
|
-
body:
|
|
8683
|
-
leftPane:
|
|
8684
|
-
rightPane:
|
|
8685
|
-
tree:
|
|
8686
|
-
treeNode:
|
|
8687
|
-
statusDot:
|
|
8688
|
-
commitList:
|
|
8689
|
-
commitRow:
|
|
8690
|
-
commitRowActive:
|
|
8691
|
-
commitSubject:
|
|
8692
|
-
commitMeta:
|
|
8693
|
-
diffBox:
|
|
8694
|
-
editorBox:
|
|
8695
|
-
empty:
|
|
8696
|
-
hashTag:
|
|
8676
|
+
const Jk = "_panel_1qb8d_3", Kk = "_toolbar_1qb8d_13", Qk = "_viewSwitch_1qb8d_22", Yk = "_viewBtn_1qb8d_27", Xk = "_viewBtnActive_1qb8d_36", Zk = "_body_1qb8d_42", eb = "_leftPane_1qb8d_48", tb = "_rightPane_1qb8d_55", nb = "_tree_1qb8d_61", sb = "_treeNode_1qb8d_65", ab = "_statusDot_1qb8d_82", ob = "_commitList_1qb8d_120", rb = "_commitRow_1qb8d_124", ib = "_commitRowActive_1qb8d_134", cb = "_commitSubject_1qb8d_138", lb = "_commitMeta_1qb8d_143", db = "_diffBox_1qb8d_149", ub = "_editorBox_1qb8d_161", mb = "_empty_1qb8d_171", pb = "_hashTag_1qb8d_177", Ie = {
|
|
8677
|
+
panel: Jk,
|
|
8678
|
+
toolbar: Kk,
|
|
8679
|
+
viewSwitch: Qk,
|
|
8680
|
+
viewBtn: Yk,
|
|
8681
|
+
viewBtnActive: Xk,
|
|
8682
|
+
body: Zk,
|
|
8683
|
+
leftPane: eb,
|
|
8684
|
+
rightPane: tb,
|
|
8685
|
+
tree: nb,
|
|
8686
|
+
treeNode: sb,
|
|
8687
|
+
statusDot: ab,
|
|
8688
|
+
commitList: ob,
|
|
8689
|
+
commitRow: rb,
|
|
8690
|
+
commitRowActive: ib,
|
|
8691
|
+
commitSubject: cb,
|
|
8692
|
+
commitMeta: lb,
|
|
8693
|
+
diffBox: db,
|
|
8694
|
+
editorBox: ub,
|
|
8695
|
+
empty: mb,
|
|
8696
|
+
hashTag: pb
|
|
8697
8697
|
}, go = {
|
|
8698
8698
|
A: { color: "#52c41a", label: "新增" },
|
|
8699
8699
|
D: { color: "#f5222d", label: "删除" },
|
|
@@ -8706,20 +8706,20 @@ function Zn(e) {
|
|
|
8706
8706
|
var t;
|
|
8707
8707
|
return ((t = go[e.charAt(0)]) == null ? void 0 : t.color) ?? "#999";
|
|
8708
8708
|
}
|
|
8709
|
-
function
|
|
8709
|
+
function _b(e) {
|
|
8710
8710
|
var t;
|
|
8711
8711
|
return ((t = go[e.charAt(0)]) == null ? void 0 : t.label) ?? e;
|
|
8712
8712
|
}
|
|
8713
|
-
function
|
|
8714
|
-
const e = E((
|
|
8713
|
+
function hb() {
|
|
8714
|
+
const e = E((b) => b.currentProject), t = e == null ? void 0 : e.id, [s, a] = I("files"), [o, i] = I(!1), [d, _] = I([]), [p, k] = I(null), [h, l] = I(""), [w, S] = I([]), [T, g] = I(null), [U, A] = I([]), [M, W] = I(
|
|
8715
8715
|
null
|
|
8716
8716
|
), [P, O] = I(""), [N, v] = I(""), [D, Y] = I([]), [q, B] = I(
|
|
8717
8717
|
/* @__PURE__ */ new Set()
|
|
8718
|
-
), [x, Q] = I(""), [se, f] = I(null), [R,
|
|
8718
|
+
), [x, Q] = I(""), [se, f] = I(null), [R, y] = I(""), [F, Z] = I(""), [ue, ie] = I(!1), J = j(async () => {
|
|
8719
8719
|
if (t)
|
|
8720
8720
|
try {
|
|
8721
|
-
const
|
|
8722
|
-
_(
|
|
8721
|
+
const b = await Ok(t, "群聊产出");
|
|
8722
|
+
_(b);
|
|
8723
8723
|
} catch {
|
|
8724
8724
|
_([]);
|
|
8725
8725
|
}
|
|
@@ -8727,8 +8727,8 @@ function hk() {
|
|
|
8727
8727
|
if (t)
|
|
8728
8728
|
try {
|
|
8729
8729
|
i(!0);
|
|
8730
|
-
const
|
|
8731
|
-
S(
|
|
8730
|
+
const b = await Wk(t, 50);
|
|
8731
|
+
S(b);
|
|
8732
8732
|
} catch {
|
|
8733
8733
|
Pe.error("加载 git log 失败");
|
|
8734
8734
|
} finally {
|
|
@@ -8737,8 +8737,8 @@ function hk() {
|
|
|
8737
8737
|
}, [t]), L = j(async () => {
|
|
8738
8738
|
if (t)
|
|
8739
8739
|
try {
|
|
8740
|
-
const
|
|
8741
|
-
Y(
|
|
8740
|
+
const b = await Gk(t);
|
|
8741
|
+
Y(b.entries || []);
|
|
8742
8742
|
} catch {
|
|
8743
8743
|
Y([]);
|
|
8744
8744
|
}
|
|
@@ -8747,33 +8747,33 @@ function hk() {
|
|
|
8747
8747
|
J(), m(), L();
|
|
8748
8748
|
}, [J, m, L]);
|
|
8749
8749
|
const ne = j(
|
|
8750
|
-
async (
|
|
8750
|
+
async (b) => {
|
|
8751
8751
|
if (t)
|
|
8752
8752
|
try {
|
|
8753
|
-
const V = await oa(t,
|
|
8754
|
-
l(V.content || ""),
|
|
8753
|
+
const V = await oa(t, b);
|
|
8754
|
+
l(V.content || ""), k(b);
|
|
8755
8755
|
} catch {
|
|
8756
|
-
Pe.error("读取文件失败: " +
|
|
8756
|
+
Pe.error("读取文件失败: " + b);
|
|
8757
8757
|
}
|
|
8758
8758
|
},
|
|
8759
8759
|
[t]
|
|
8760
8760
|
), ce = he(
|
|
8761
|
-
() => d.map((
|
|
8761
|
+
() => d.map((b) => {
|
|
8762
8762
|
var V;
|
|
8763
8763
|
return {
|
|
8764
|
-
key:
|
|
8765
|
-
title:
|
|
8766
|
-
isLeaf:
|
|
8767
|
-
children: (V =
|
|
8764
|
+
key: b.path,
|
|
8765
|
+
title: b.name,
|
|
8766
|
+
isLeaf: b.isLeaf,
|
|
8767
|
+
children: (V = b.children) == null ? void 0 : V.map((Ce) => {
|
|
8768
8768
|
var pe;
|
|
8769
8769
|
return {
|
|
8770
8770
|
key: Ce.path,
|
|
8771
8771
|
title: Ce.name,
|
|
8772
8772
|
isLeaf: Ce.isLeaf,
|
|
8773
|
-
children: (pe = Ce.children) == null ? void 0 : pe.map((
|
|
8774
|
-
key:
|
|
8775
|
-
title:
|
|
8776
|
-
isLeaf:
|
|
8773
|
+
children: (pe = Ce.children) == null ? void 0 : pe.map((ye) => ({
|
|
8774
|
+
key: ye.path,
|
|
8775
|
+
title: ye.name,
|
|
8776
|
+
isLeaf: ye.isLeaf
|
|
8777
8777
|
}))
|
|
8778
8778
|
};
|
|
8779
8779
|
})
|
|
@@ -8781,11 +8781,11 @@ function hk() {
|
|
|
8781
8781
|
}),
|
|
8782
8782
|
[d]
|
|
8783
8783
|
), le = j(
|
|
8784
|
-
async (
|
|
8784
|
+
async (b) => {
|
|
8785
8785
|
if (t)
|
|
8786
8786
|
try {
|
|
8787
|
-
const V = await
|
|
8788
|
-
A(V), g(
|
|
8787
|
+
const V = await Uk(t, b);
|
|
8788
|
+
A(V), g(b), W(V.length > 0 ? V[0].file : null);
|
|
8789
8789
|
} catch {
|
|
8790
8790
|
Pe.error("加载 commit 变更失败");
|
|
8791
8791
|
}
|
|
@@ -8795,68 +8795,68 @@ function hk() {
|
|
|
8795
8795
|
oe(() => {
|
|
8796
8796
|
t && T && M && (async () => {
|
|
8797
8797
|
try {
|
|
8798
|
-
const
|
|
8798
|
+
const b = await Vk(
|
|
8799
8799
|
t,
|
|
8800
8800
|
T,
|
|
8801
8801
|
M
|
|
8802
8802
|
);
|
|
8803
|
-
O(
|
|
8803
|
+
O(b.content || "");
|
|
8804
8804
|
} catch {
|
|
8805
8805
|
O("// 读取失败");
|
|
8806
8806
|
}
|
|
8807
8807
|
try {
|
|
8808
|
-
const
|
|
8808
|
+
const b = await zk(
|
|
8809
8809
|
t,
|
|
8810
8810
|
`${T}^`,
|
|
8811
8811
|
T,
|
|
8812
8812
|
M
|
|
8813
8813
|
);
|
|
8814
|
-
v(
|
|
8814
|
+
v(b.diff || "");
|
|
8815
8815
|
} catch {
|
|
8816
8816
|
v("");
|
|
8817
8817
|
}
|
|
8818
8818
|
})();
|
|
8819
8819
|
}, [t, T, M]);
|
|
8820
8820
|
const ge = he(
|
|
8821
|
-
() => D.filter((
|
|
8821
|
+
() => D.filter((b) => b.status === "??").map((b) => b.file),
|
|
8822
8822
|
[D]
|
|
8823
8823
|
), G = he(() => {
|
|
8824
|
-
const
|
|
8824
|
+
const b = {};
|
|
8825
8825
|
for (const Ce of ge) {
|
|
8826
8826
|
const pe = Ce.split("/");
|
|
8827
|
-
let
|
|
8827
|
+
let ye = b, Le = "";
|
|
8828
8828
|
for (let Re = 0; Re < pe.length; Re++) {
|
|
8829
8829
|
const Fe = pe[Re];
|
|
8830
8830
|
Le = Le ? `${Le}/${Fe}` : Fe;
|
|
8831
8831
|
const tt = Re === pe.length - 1;
|
|
8832
|
-
if (
|
|
8832
|
+
if (ye[Fe] || (ye[Fe] = {
|
|
8833
8833
|
key: Le,
|
|
8834
8834
|
title: Fe,
|
|
8835
8835
|
path: Le,
|
|
8836
8836
|
isLeaf: tt,
|
|
8837
8837
|
children: tt ? void 0 : {}
|
|
8838
8838
|
}), !tt) {
|
|
8839
|
-
const Je =
|
|
8840
|
-
Je.children || (Je.children = {}),
|
|
8839
|
+
const Je = ye[Fe];
|
|
8840
|
+
Je.children || (Je.children = {}), ye = Je.children;
|
|
8841
8841
|
}
|
|
8842
8842
|
}
|
|
8843
8843
|
}
|
|
8844
8844
|
const V = (Ce) => Object.values(Ce).map((pe) => (pe.children && !Array.isArray(pe.children) && (pe.children = V(pe.children)), pe));
|
|
8845
|
-
return V(
|
|
8845
|
+
return V(b);
|
|
8846
8846
|
}, [ge]);
|
|
8847
8847
|
j(
|
|
8848
|
-
(
|
|
8848
|
+
(b) => {
|
|
8849
8849
|
for (const V of q)
|
|
8850
|
-
if ((V ===
|
|
8850
|
+
if ((V === b || V.startsWith(b + "/") || b.startsWith(V + "/")) && V === b)
|
|
8851
8851
|
return !0;
|
|
8852
|
-
return q.has(
|
|
8852
|
+
return q.has(b);
|
|
8853
8853
|
},
|
|
8854
8854
|
[q]
|
|
8855
8855
|
);
|
|
8856
|
-
const K = (
|
|
8856
|
+
const K = (b) => {
|
|
8857
8857
|
B((V) => {
|
|
8858
8858
|
const Ce = new Set(V);
|
|
8859
|
-
return Ce.has(
|
|
8859
|
+
return Ce.has(b) ? Ce.delete(b) : Ce.add(b), Ce;
|
|
8860
8860
|
});
|
|
8861
8861
|
}, X = async () => {
|
|
8862
8862
|
if (t) {
|
|
@@ -8866,12 +8866,12 @@ function hk() {
|
|
|
8866
8866
|
}
|
|
8867
8867
|
try {
|
|
8868
8868
|
i(!0);
|
|
8869
|
-
const
|
|
8869
|
+
const b = await jk(
|
|
8870
8870
|
t,
|
|
8871
8871
|
Array.from(q),
|
|
8872
8872
|
x || "chore: workspace commit"
|
|
8873
8873
|
);
|
|
8874
|
-
Pe.success(`已提交 ${
|
|
8874
|
+
Pe.success(`已提交 ${b.committed} 个文件`), Q(""), B(/* @__PURE__ */ new Set()), await L(), await m();
|
|
8875
8875
|
} catch {
|
|
8876
8876
|
Pe.error("提交失败");
|
|
8877
8877
|
} finally {
|
|
@@ -8881,7 +8881,7 @@ function hk() {
|
|
|
8881
8881
|
}, $ = async () => {
|
|
8882
8882
|
if (t && se)
|
|
8883
8883
|
try {
|
|
8884
|
-
ie(!0), await
|
|
8884
|
+
ie(!0), await Hk(
|
|
8885
8885
|
t,
|
|
8886
8886
|
se,
|
|
8887
8887
|
R
|
|
@@ -8891,11 +8891,11 @@ function hk() {
|
|
|
8891
8891
|
} finally {
|
|
8892
8892
|
ie(!1);
|
|
8893
8893
|
}
|
|
8894
|
-
}, ee = async (
|
|
8894
|
+
}, ee = async (b) => {
|
|
8895
8895
|
if (t)
|
|
8896
8896
|
try {
|
|
8897
|
-
const V = await oa(t,
|
|
8898
|
-
f(
|
|
8897
|
+
const V = await oa(t, b);
|
|
8898
|
+
f(b), y(V.content || ""), Z(V.content || "");
|
|
8899
8899
|
} catch {
|
|
8900
8900
|
Pe.error("打开失败");
|
|
8901
8901
|
}
|
|
@@ -8938,77 +8938,77 @@ function hk() {
|
|
|
8938
8938
|
{
|
|
8939
8939
|
treeData: ce,
|
|
8940
8940
|
defaultExpandAll: !0,
|
|
8941
|
-
onSelect: (
|
|
8942
|
-
|
|
8941
|
+
onSelect: (b) => {
|
|
8942
|
+
b[0] && ne(b[0]);
|
|
8943
8943
|
}
|
|
8944
8944
|
}
|
|
8945
8945
|
) }),
|
|
8946
8946
|
/* @__PURE__ */ n("div", { className: Ie.rightPane, children: p ? /* @__PURE__ */ c(Se, { children: [
|
|
8947
8947
|
/* @__PURE__ */ n(Vt, { style: { marginBottom: 8 }, children: /* @__PURE__ */ n("span", { style: { fontWeight: 500 }, children: p }) }),
|
|
8948
8948
|
/* @__PURE__ */ n("pre", { className: Ie.diffBox, children: h })
|
|
8949
|
-
] }) : /* @__PURE__ */ n(
|
|
8949
|
+
] }) : /* @__PURE__ */ n(ks, { description: "选择左侧文件查看内容" }) })
|
|
8950
8950
|
] }),
|
|
8951
8951
|
s === "commits" && /* @__PURE__ */ c(Se, { children: [
|
|
8952
|
-
/* @__PURE__ */ n("div", { className: Ie.leftPane, children: /* @__PURE__ */ n(Lt, { spinning: o, children: w.length === 0 ? /* @__PURE__ */ n("div", { className: Ie.empty, children: "暂无 commit" }) : /* @__PURE__ */ n("div", { className: Ie.commitList, children: w.map((
|
|
8952
|
+
/* @__PURE__ */ n("div", { className: Ie.leftPane, children: /* @__PURE__ */ n(Lt, { spinning: o, children: w.length === 0 ? /* @__PURE__ */ n("div", { className: Ie.empty, children: "暂无 commit" }) : /* @__PURE__ */ n("div", { className: Ie.commitList, children: w.map((b) => {
|
|
8953
8953
|
var V;
|
|
8954
8954
|
return /* @__PURE__ */ c(
|
|
8955
8955
|
"div",
|
|
8956
8956
|
{
|
|
8957
|
-
className: `${Ie.commitRow} ${T ===
|
|
8958
|
-
onClick: () => le(
|
|
8957
|
+
className: `${Ie.commitRow} ${T === b.hash ? Ie.commitRowActive : ""}`,
|
|
8958
|
+
onClick: () => le(b.hash),
|
|
8959
8959
|
children: [
|
|
8960
|
-
/* @__PURE__ */ n("div", { className: Ie.commitSubject, children:
|
|
8960
|
+
/* @__PURE__ */ n("div", { className: Ie.commitSubject, children: b.subject }),
|
|
8961
8961
|
/* @__PURE__ */ c("div", { className: Ie.commitMeta, children: [
|
|
8962
|
-
/* @__PURE__ */ n("span", { className: Ie.hashTag, children:
|
|
8962
|
+
/* @__PURE__ */ n("span", { className: Ie.hashTag, children: b.hash.slice(0, 7) }),
|
|
8963
8963
|
" · ",
|
|
8964
|
-
|
|
8964
|
+
b.author,
|
|
8965
8965
|
" · ",
|
|
8966
|
-
(V =
|
|
8966
|
+
(V = b.date) == null ? void 0 : V.slice(0, 16)
|
|
8967
8967
|
] })
|
|
8968
8968
|
]
|
|
8969
8969
|
},
|
|
8970
|
-
|
|
8970
|
+
b.hash
|
|
8971
8971
|
);
|
|
8972
8972
|
}) }) }) }),
|
|
8973
8973
|
/* @__PURE__ */ n("div", { className: Ie.rightPane, children: T ? /* @__PURE__ */ c(Se, { children: [
|
|
8974
|
-
/* @__PURE__ */ n(Vt, { style: { marginBottom: 12 }, wrap: !0, children: U.map((
|
|
8974
|
+
/* @__PURE__ */ n(Vt, { style: { marginBottom: 12 }, wrap: !0, children: U.map((b) => /* @__PURE__ */ c(
|
|
8975
8975
|
Xt,
|
|
8976
8976
|
{
|
|
8977
|
-
color: (Zn(
|
|
8978
|
-
onClick: () => W(
|
|
8977
|
+
color: (Zn(b.status) === "#999", void 0),
|
|
8978
|
+
onClick: () => W(b.file),
|
|
8979
8979
|
style: {
|
|
8980
8980
|
cursor: "pointer",
|
|
8981
|
-
borderColor: M ===
|
|
8981
|
+
borderColor: M === b.file ? "#1677ff" : void 0
|
|
8982
8982
|
},
|
|
8983
8983
|
children: [
|
|
8984
8984
|
/* @__PURE__ */ n(
|
|
8985
8985
|
"span",
|
|
8986
8986
|
{
|
|
8987
8987
|
className: Ie.statusDot,
|
|
8988
|
-
style: { background: Zn(
|
|
8988
|
+
style: { background: Zn(b.status) }
|
|
8989
8989
|
}
|
|
8990
8990
|
),
|
|
8991
8991
|
" ",
|
|
8992
|
-
|
|
8992
|
+
_b(b.status),
|
|
8993
8993
|
" ",
|
|
8994
|
-
|
|
8994
|
+
b.file
|
|
8995
8995
|
]
|
|
8996
8996
|
},
|
|
8997
|
-
|
|
8997
|
+
b.file
|
|
8998
8998
|
)) }),
|
|
8999
8999
|
N ? /* @__PURE__ */ n("pre", { className: Ie.diffBox, children: N }) : /* @__PURE__ */ n("div", { className: Ie.empty, children: "无 diff" })
|
|
9000
|
-
] }) : /* @__PURE__ */ n(
|
|
9000
|
+
] }) : /* @__PURE__ */ n(ks, { description: "选择左侧 commit 查看变更" }) })
|
|
9001
9001
|
] }),
|
|
9002
9002
|
s === "untracked" && /* @__PURE__ */ c(Se, { children: [
|
|
9003
|
-
/* @__PURE__ */ n("div", { className: Ie.leftPane, children: ge.length === 0 ? /* @__PURE__ */ n("div", { className: Ie.empty, children: "没有未跟踪的文件" }) : /* @__PURE__ */ n("div", { className: Ie.tree, children: G.map((
|
|
9004
|
-
|
|
9003
|
+
/* @__PURE__ */ n("div", { className: Ie.leftPane, children: ge.length === 0 ? /* @__PURE__ */ n("div", { className: Ie.empty, children: "没有未跟踪的文件" }) : /* @__PURE__ */ n("div", { className: Ie.tree, children: G.map((b) => /* @__PURE__ */ n(
|
|
9004
|
+
yo,
|
|
9005
9005
|
{
|
|
9006
|
-
node:
|
|
9006
|
+
node: b,
|
|
9007
9007
|
selected: q,
|
|
9008
9008
|
onToggle: K,
|
|
9009
9009
|
onEdit: ee
|
|
9010
9010
|
},
|
|
9011
|
-
|
|
9011
|
+
b.key
|
|
9012
9012
|
)) }) }),
|
|
9013
9013
|
/* @__PURE__ */ n("div", { className: Ie.rightPane, children: se ? /* @__PURE__ */ c(Se, { children: [
|
|
9014
9014
|
/* @__PURE__ */ c(Vt, { style: { marginBottom: 8 }, children: [
|
|
@@ -9030,7 +9030,7 @@ function hk() {
|
|
|
9030
9030
|
{
|
|
9031
9031
|
size: "small",
|
|
9032
9032
|
onClick: () => {
|
|
9033
|
-
f(null),
|
|
9033
|
+
f(null), y("");
|
|
9034
9034
|
},
|
|
9035
9035
|
children: "关闭"
|
|
9036
9036
|
}
|
|
@@ -9041,7 +9041,7 @@ function hk() {
|
|
|
9041
9041
|
{
|
|
9042
9042
|
className: Ie.editorBox,
|
|
9043
9043
|
value: R,
|
|
9044
|
-
onChange: (
|
|
9044
|
+
onChange: (b) => y(b.target.value)
|
|
9045
9045
|
}
|
|
9046
9046
|
)
|
|
9047
9047
|
] }) : /* @__PURE__ */ c(Se, { children: [
|
|
@@ -9055,7 +9055,7 @@ function hk() {
|
|
|
9055
9055
|
{
|
|
9056
9056
|
placeholder: "提交说明(可选)",
|
|
9057
9057
|
value: x,
|
|
9058
|
-
onChange: (
|
|
9058
|
+
onChange: (b) => Q(b.target.value),
|
|
9059
9059
|
rows: 2,
|
|
9060
9060
|
style: { marginBottom: 12 }
|
|
9061
9061
|
}
|
|
@@ -9075,7 +9075,7 @@ function hk() {
|
|
|
9075
9075
|
] })
|
|
9076
9076
|
] });
|
|
9077
9077
|
}
|
|
9078
|
-
function
|
|
9078
|
+
function yo({
|
|
9079
9079
|
node: e,
|
|
9080
9080
|
selected: t,
|
|
9081
9081
|
onToggle: s,
|
|
@@ -9090,7 +9090,7 @@ function bo({
|
|
|
9090
9090
|
o && /* @__PURE__ */ n(Nt, { size: "small", type: "link", onClick: () => a(e.path), children: "编辑" })
|
|
9091
9091
|
] }),
|
|
9092
9092
|
e.children && e.children.length > 0 && /* @__PURE__ */ n("div", { style: { marginLeft: 18 }, children: e.children.map((d) => /* @__PURE__ */ n(
|
|
9093
|
-
|
|
9093
|
+
yo,
|
|
9094
9094
|
{
|
|
9095
9095
|
node: d,
|
|
9096
9096
|
selected: t,
|
|
@@ -9101,36 +9101,36 @@ function bo({
|
|
|
9101
9101
|
)) })
|
|
9102
9102
|
] });
|
|
9103
9103
|
}
|
|
9104
|
-
const
|
|
9105
|
-
overlay:
|
|
9106
|
-
modal:
|
|
9107
|
-
header:
|
|
9108
|
-
headerInfo:
|
|
9109
|
-
avatar:
|
|
9110
|
-
headerName:
|
|
9111
|
-
headerType:
|
|
9112
|
-
closeBtn:
|
|
9113
|
-
body:
|
|
9114
|
-
menu:
|
|
9115
|
-
menuItem:
|
|
9116
|
-
menuItemActive:
|
|
9117
|
-
menuIcon:
|
|
9118
|
-
menuSkillName:
|
|
9119
|
-
menuEmpty:
|
|
9120
|
-
content:
|
|
9121
|
-
sectionTitle:
|
|
9122
|
-
emptyContent:
|
|
9123
|
-
basicInfo: $
|
|
9124
|
-
infoTable:
|
|
9125
|
-
infoRow:
|
|
9126
|
-
infoLabel:
|
|
9127
|
-
infoValue:
|
|
9128
|
-
skillDetail:
|
|
9129
|
-
skillMeta:
|
|
9130
|
-
skillCategory:
|
|
9131
|
-
skillContent:
|
|
9104
|
+
const fb = "_overlay_1x2ku_2", gb = "_modal_1x2ku_13", yb = "_header_1x2ku_27", kb = "_headerInfo_1x2ku_36", bb = "_avatar_1x2ku_42", vb = "_headerName_1x2ku_54", Nb = "_headerType_1x2ku_60", Tb = "_closeBtn_1x2ku_66", Cb = "_body_1x2ku_87", Sb = "_menu_1x2ku_94", wb = "_menuItem_1x2ku_103", Ib = "_menuItemActive_1x2ku_118", Ab = "_menuIcon_1x2ku_128", xb = "_menuSkillName_1x2ku_133", Bb = "_menuEmpty_1x2ku_139", Lb = "_content_1x2ku_147", qb = "_sectionTitle_1x2ku_153", Rb = "_emptyContent_1x2ku_160", $b = "_basicInfo_1x2ku_167", Mb = "_infoTable_1x2ku_171", Pb = "_infoRow_1x2ku_177", Db = "_infoLabel_1x2ku_187", Eb = "_infoValue_1x2ku_196", Fb = "_skillDetail_1x2ku_203", Ob = "_skillMeta_1x2ku_207", Hb = "_skillCategory_1x2ku_214", Wb = "_skillContent_1x2ku_227", me = {
|
|
9105
|
+
overlay: fb,
|
|
9106
|
+
modal: gb,
|
|
9107
|
+
header: yb,
|
|
9108
|
+
headerInfo: kb,
|
|
9109
|
+
avatar: bb,
|
|
9110
|
+
headerName: vb,
|
|
9111
|
+
headerType: Nb,
|
|
9112
|
+
closeBtn: Tb,
|
|
9113
|
+
body: Cb,
|
|
9114
|
+
menu: Sb,
|
|
9115
|
+
menuItem: wb,
|
|
9116
|
+
menuItemActive: Ib,
|
|
9117
|
+
menuIcon: Ab,
|
|
9118
|
+
menuSkillName: xb,
|
|
9119
|
+
menuEmpty: Bb,
|
|
9120
|
+
content: Lb,
|
|
9121
|
+
sectionTitle: qb,
|
|
9122
|
+
emptyContent: Rb,
|
|
9123
|
+
basicInfo: $b,
|
|
9124
|
+
infoTable: Mb,
|
|
9125
|
+
infoRow: Pb,
|
|
9126
|
+
infoLabel: Db,
|
|
9127
|
+
infoValue: Eb,
|
|
9128
|
+
skillDetail: Fb,
|
|
9129
|
+
skillMeta: Ob,
|
|
9130
|
+
skillCategory: Hb,
|
|
9131
|
+
skillContent: Wb
|
|
9132
9132
|
};
|
|
9133
|
-
function
|
|
9133
|
+
function Gb(e) {
|
|
9134
9134
|
var a;
|
|
9135
9135
|
const t = (a = e.agent_info) == null ? void 0 : a._agenthub_raw, s = t == null ? void 0 : t.skills;
|
|
9136
9136
|
return Array.isArray(s) ? s.map((o) => {
|
|
@@ -9144,7 +9144,7 @@ function Gk(e) {
|
|
|
9144
9144
|
return "";
|
|
9145
9145
|
}).filter(Boolean) : [];
|
|
9146
9146
|
}
|
|
9147
|
-
function
|
|
9147
|
+
function jb({
|
|
9148
9148
|
member: e,
|
|
9149
9149
|
skills: t,
|
|
9150
9150
|
allSkills: s,
|
|
@@ -9153,7 +9153,7 @@ function jk({
|
|
|
9153
9153
|
var h, l;
|
|
9154
9154
|
const o = he(() => {
|
|
9155
9155
|
var U, A;
|
|
9156
|
-
const w =
|
|
9156
|
+
const w = Gb(e);
|
|
9157
9157
|
if (w.length > 0 && s.length > 0) {
|
|
9158
9158
|
const M = new Set(w.map((P) => P.toLowerCase())), W = s.filter((P) => {
|
|
9159
9159
|
var D;
|
|
@@ -9184,10 +9184,10 @@ function jk({
|
|
|
9184
9184
|
...o.map((w) => ({ type: "skill", skill: w }))
|
|
9185
9185
|
],
|
|
9186
9186
|
[o]
|
|
9187
|
-
), [d, _] = I(0), p = i[d],
|
|
9187
|
+
), [d, _] = I(0), p = i[d], k = (w) => {
|
|
9188
9188
|
w.key === "Escape" && a();
|
|
9189
9189
|
};
|
|
9190
|
-
return /* @__PURE__ */ n("div", { className: me.overlay, onClick: a, onKeyDown:
|
|
9190
|
+
return /* @__PURE__ */ n("div", { className: me.overlay, onClick: a, onKeyDown: k, children: /* @__PURE__ */ c(
|
|
9191
9191
|
"div",
|
|
9192
9192
|
{
|
|
9193
9193
|
className: me.modal,
|
|
@@ -9249,8 +9249,8 @@ function jk({
|
|
|
9249
9249
|
)),
|
|
9250
9250
|
o.length === 0 && /* @__PURE__ */ n("div", { className: me.menuEmpty, children: "暂无绑定技能" })
|
|
9251
9251
|
] }),
|
|
9252
|
-
/* @__PURE__ */ n("div", { className: me.content, children: (p == null ? void 0 : p.type) === "basic" ? /* @__PURE__ */ n(
|
|
9253
|
-
|
|
9252
|
+
/* @__PURE__ */ n("div", { className: me.content, children: (p == null ? void 0 : p.type) === "basic" ? /* @__PURE__ */ n(Ub, { member: e }) : (p == null ? void 0 : p.type) === "skill" ? /* @__PURE__ */ n(
|
|
9253
|
+
zb,
|
|
9254
9254
|
{
|
|
9255
9255
|
skill: p.skill
|
|
9256
9256
|
}
|
|
@@ -9260,7 +9260,7 @@ function jk({
|
|
|
9260
9260
|
}
|
|
9261
9261
|
) });
|
|
9262
9262
|
}
|
|
9263
|
-
function
|
|
9263
|
+
function Ub({ member: e }) {
|
|
9264
9264
|
const t = e.agent_info;
|
|
9265
9265
|
return /* @__PURE__ */ c("div", { className: me.basicInfo, children: [
|
|
9266
9266
|
/* @__PURE__ */ n("h3", { className: me.sectionTitle, children: "基本信息" }),
|
|
@@ -9296,7 +9296,7 @@ function Uk({ member: e }) {
|
|
|
9296
9296
|
] })
|
|
9297
9297
|
] });
|
|
9298
9298
|
}
|
|
9299
|
-
function
|
|
9299
|
+
function zb({ skill: e }) {
|
|
9300
9300
|
const t = (e.description || e.prompt_template || "").trim();
|
|
9301
9301
|
return /* @__PURE__ */ c("div", { className: me.skillDetail, children: [
|
|
9302
9302
|
/* @__PURE__ */ n("h3", { className: me.sectionTitle, children: e.name }),
|
|
@@ -9304,14 +9304,14 @@ function zk({ skill: e }) {
|
|
|
9304
9304
|
t ? /* @__PURE__ */ n("div", { className: me.skillContent, children: /* @__PURE__ */ n(ct, { remarkPlugins: [lt], children: t }) }) : /* @__PURE__ */ n("div", { className: me.emptyContent, children: "暂无技能内容" })
|
|
9305
9305
|
] });
|
|
9306
9306
|
}
|
|
9307
|
-
const
|
|
9308
|
-
drawerBody:
|
|
9309
|
-
chatArea:
|
|
9310
|
-
channelView:
|
|
9311
|
-
loadingWrap:
|
|
9312
|
-
inputWrap:
|
|
9313
|
-
inputInner:
|
|
9314
|
-
textarea:
|
|
9307
|
+
const Vb = "_drawerBody_fpfqr_1", Jb = "_chatArea_fpfqr_9", Kb = "_channelView_fpfqr_17", Qb = "_loadingWrap_fpfqr_25", Yb = "_inputWrap_fpfqr_34", Xb = "_inputInner_fpfqr_42", Zb = "_textarea_fpfqr_48", ev = "_sendBtn_fpfqr_67", tv = "_mentionOverlay_fpfqr_93", nv = "_mentionDropdown_fpfqr_102", sv = "_mentionLabel_fpfqr_117", av = "_mentionItem_fpfqr_127", ov = "_mentionItemSelected_fpfqr_141", Ye = {
|
|
9308
|
+
drawerBody: Vb,
|
|
9309
|
+
chatArea: Jb,
|
|
9310
|
+
channelView: Kb,
|
|
9311
|
+
loadingWrap: Qb,
|
|
9312
|
+
inputWrap: Yb,
|
|
9313
|
+
inputInner: Xb,
|
|
9314
|
+
textarea: Zb,
|
|
9315
9315
|
sendBtn: ev,
|
|
9316
9316
|
mentionOverlay: tv,
|
|
9317
9317
|
mentionDropdown: nv,
|
|
@@ -9323,7 +9323,7 @@ function rv({
|
|
|
9323
9323
|
open: e,
|
|
9324
9324
|
onClose: t
|
|
9325
9325
|
}) {
|
|
9326
|
-
const s = E((m) => m.token), a = E((m) => m.currentUser), o = os(), [i, d] = I(!1), [_, p] = I(""), [
|
|
9326
|
+
const s = E((m) => m.token), a = E((m) => m.currentUser), o = os(), [i, d] = I(!1), [_, p] = I(""), [k, h] = I([]), [l, w] = I([]), [S, T] = I(!1), [g, U] = I(!1), [A, M] = I(""), [W, P] = I(!1), [O, N] = I({ show: !1, query: "", cursor: 0, selectedIndex: 0 }), v = fe(null), D = fe(""), Y = fe(null), q = fe(0), B = fe(!1), x = fe(null), Q = fe(null);
|
|
9327
9327
|
oe(() => {
|
|
9328
9328
|
if (!e) return;
|
|
9329
9329
|
B.current = !1;
|
|
@@ -9335,7 +9335,7 @@ function rv({
|
|
|
9335
9335
|
if (m) return;
|
|
9336
9336
|
const ce = ve(ne.scenario_instance_id);
|
|
9337
9337
|
if (D.current = ce, p(ce), await qr(ce, s), m) return;
|
|
9338
|
-
const le = await
|
|
9338
|
+
const le = await br(ce);
|
|
9339
9339
|
if (m) return;
|
|
9340
9340
|
const ge = le.map((X) => ({
|
|
9341
9341
|
...X,
|
|
@@ -9392,7 +9392,7 @@ function rv({
|
|
|
9392
9392
|
if (!(g || !_)) {
|
|
9393
9393
|
U(!0);
|
|
9394
9394
|
try {
|
|
9395
|
-
const m =
|
|
9395
|
+
const m = k[0], L = m == null ? void 0 : m.id, ne = await vs(_, 50, L), ce = Array.isArray(ne) ? ne : [];
|
|
9396
9396
|
h((le) => [...ce, ...le]), T(ce.length >= 50);
|
|
9397
9397
|
} catch (m) {
|
|
9398
9398
|
console.error("[SelfSupportDrawer] loadMore error:", m);
|
|
@@ -9400,7 +9400,7 @@ function rv({
|
|
|
9400
9400
|
U(!1);
|
|
9401
9401
|
}
|
|
9402
9402
|
}
|
|
9403
|
-
}, [g, _,
|
|
9403
|
+
}, [g, _, k]), y = he(() => O.show ? l.filter((m) => {
|
|
9404
9404
|
var ce, le;
|
|
9405
9405
|
if (!O.query) return !0;
|
|
9406
9406
|
const L = m.display_name.toLowerCase(), ne = ((le = (ce = m.agent_info) == null ? void 0 : ce.name) == null ? void 0 : le.toLowerCase()) ?? "";
|
|
@@ -9450,7 +9450,7 @@ function rv({
|
|
|
9450
9450
|
ref_id: le.ref_id
|
|
9451
9451
|
} : ge = { content: m, message_type: "TEXT" }, P(!0), M(""), N({ show: !1, query: "", cursor: 0, selectedIndex: 0 });
|
|
9452
9452
|
try {
|
|
9453
|
-
const G = await
|
|
9453
|
+
const G = await kr(_, ge, s);
|
|
9454
9454
|
G && h((K) => [...K, G]);
|
|
9455
9455
|
} catch (G) {
|
|
9456
9456
|
console.error("[SelfSupportDrawer] send error:", G), M(m);
|
|
@@ -9459,13 +9459,13 @@ function rv({
|
|
|
9459
9459
|
}
|
|
9460
9460
|
}, [A, _, W, s, l]), ie = j(
|
|
9461
9461
|
(m) => {
|
|
9462
|
-
if (O.show &&
|
|
9462
|
+
if (O.show && y.length > 0)
|
|
9463
9463
|
if (m.key === "ArrowDown")
|
|
9464
9464
|
m.preventDefault(), N((L) => ({
|
|
9465
9465
|
...L,
|
|
9466
9466
|
selectedIndex: Math.min(
|
|
9467
9467
|
L.selectedIndex + 1,
|
|
9468
|
-
|
|
9468
|
+
y.length - 1
|
|
9469
9469
|
)
|
|
9470
9470
|
}));
|
|
9471
9471
|
else if (m.key === "ArrowUp")
|
|
@@ -9475,12 +9475,12 @@ function rv({
|
|
|
9475
9475
|
}));
|
|
9476
9476
|
else if (m.key === "Enter") {
|
|
9477
9477
|
m.preventDefault();
|
|
9478
|
-
const L =
|
|
9478
|
+
const L = y[O.selectedIndex];
|
|
9479
9479
|
L && F(L);
|
|
9480
9480
|
} else m.key === "Escape" && (m.preventDefault(), N({ show: !1, query: "", cursor: 0, selectedIndex: 0 }));
|
|
9481
9481
|
else Fa(m, o.sendKey) && !m.nativeEvent.isComposing && (m.preventDefault(), ue());
|
|
9482
9482
|
},
|
|
9483
|
-
[O,
|
|
9483
|
+
[O, y, F, ue, o.sendKey]
|
|
9484
9484
|
), J = j(() => {
|
|
9485
9485
|
f(), D.current = "", h([]), w([]), M(""), N({ show: !1, query: "", cursor: 0, selectedIndex: 0 }), p(""), t();
|
|
9486
9486
|
}, [f, t]);
|
|
@@ -9505,7 +9505,7 @@ function rv({
|
|
|
9505
9505
|
ps,
|
|
9506
9506
|
{
|
|
9507
9507
|
kind: "team",
|
|
9508
|
-
messages:
|
|
9508
|
+
messages: k,
|
|
9509
9509
|
visible: !0,
|
|
9510
9510
|
tabLoading: !1,
|
|
9511
9511
|
loadingMore: g,
|
|
@@ -9526,7 +9526,7 @@ function rv({
|
|
|
9526
9526
|
onQuote: () => {
|
|
9527
9527
|
},
|
|
9528
9528
|
footer: /* @__PURE__ */ c("div", { className: Ye.inputWrap, children: [
|
|
9529
|
-
O.show &&
|
|
9529
|
+
O.show && y.length > 0 && /* @__PURE__ */ c(Se, { children: [
|
|
9530
9530
|
/* @__PURE__ */ n(
|
|
9531
9531
|
"div",
|
|
9532
9532
|
{
|
|
@@ -9546,7 +9546,7 @@ function rv({
|
|
|
9546
9546
|
ref: Q,
|
|
9547
9547
|
children: [
|
|
9548
9548
|
/* @__PURE__ */ n("div", { className: Ye.mentionLabel, children: "团队成员" }),
|
|
9549
|
-
|
|
9549
|
+
y.map((m, L) => {
|
|
9550
9550
|
const ne = O.selectedIndex === L;
|
|
9551
9551
|
return /* @__PURE__ */ c(
|
|
9552
9552
|
"div",
|
|
@@ -9606,7 +9606,7 @@ function rv({
|
|
|
9606
9606
|
)
|
|
9607
9607
|
] })
|
|
9608
9608
|
] }),
|
|
9609
|
-
scrollBottomTick:
|
|
9609
|
+
scrollBottomTick: k.length,
|
|
9610
9610
|
anchorKey: _,
|
|
9611
9611
|
hideToolCalls: !1
|
|
9612
9612
|
}
|
|
@@ -9614,7 +9614,7 @@ function rv({
|
|
|
9614
9614
|
}
|
|
9615
9615
|
);
|
|
9616
9616
|
}
|
|
9617
|
-
const iv = "_layout_1ae41_1", cv = "_banner_1ae41_8", lv = "_bannerLeft_1ae41_20", dv = "_logo_1ae41_26", uv = "_bannerRight_1ae41_33", mv = "_bannerCenter_1ae41_47", pv = "_bannerTipLine_1ae41_61", _v = "_bannerNoticeLine_1ae41_73", hv = "_bannerNoticeClickable_1ae41_79", fv = "_bannerTipText_1ae41_83", gv = "_announcementModalWrap_1ae41_90",
|
|
9617
|
+
const iv = "_layout_1ae41_1", cv = "_banner_1ae41_8", lv = "_bannerLeft_1ae41_20", dv = "_logo_1ae41_26", uv = "_bannerRight_1ae41_33", mv = "_bannerCenter_1ae41_47", pv = "_bannerTipLine_1ae41_61", _v = "_bannerNoticeLine_1ae41_73", hv = "_bannerNoticeClickable_1ae41_79", fv = "_bannerTipText_1ae41_83", gv = "_announcementModalWrap_1ae41_90", yv = "_announcementModalHeader_1ae41_97", kv = "_announcementModalTitle_1ae41_106", bv = "_announcementModalIcon_1ae41_115", vv = "_announcementModalClose_1ae41_120", Nv = "_announcementModalBody_1ae41_141", Tv = "_announcementList_1ae41_148", Cv = "_announcementListItem_1ae41_157", Sv = "_announcementListItemActive_1ae41_175", wv = "_announcementDetail_1ae41_184", Iv = "_announcementDetailTitle_1ae41_195", Av = "_announcementDetailContent_1ae41_204", xv = "_announcementDetailMeta_1ae41_215", Bv = "_announcementDetailEmpty_1ae41_226", Lv = "_popupNoticeModalWrap_1ae41_238", qv = "_popupNoticeHeader_1ae41_245", Rv = "_popupNoticeHeaderTitle_1ae41_254", $v = "_popupNoticeHeaderIcon_1ae41_263", Mv = "_popupNoticeCounter_1ae41_268", Pv = "_popupNoticeBody_1ae41_275", Dv = "_popupNoticeTitle_1ae41_285", Ev = "_popupNoticeContent_1ae41_295", Fv = "_popupNoticeFooter_1ae41_304", Ov = "_popupNoticeBtn_1ae41_312", Hv = "_popupNoticeBtnConfirm_1ae41_335", Wv = "_bannerQuoteLine_1ae41_357", Gv = "_bannerTipLabel_1ae41_367", jv = "_quoteAuthor_1ae41_386", Uv = "_iconGroup_1ae41_425", zv = "_wsIndicator_1ae41_484", Vv = "_wsConnecting_1ae41_494", Jv = "_wsDisconnected_1ae41_499", Kv = "_wsConnected_1ae41_504", Qv = "_wsDot_1ae41_509", Yv = "_wsLabel_1ae41_539", Xv = "_headerUser_1ae41_543", Zv = "_headerUsername_1ae41_557", eN = "_mainArea_1ae41_567", tN = "_sidebar_1ae41_574", nN = "_sidebarResizeHandle_1ae41_585", sN = "_sidebarCollapseFab_1ae41_595", aN = "_sidebarExpandFab_1ae41_625", oN = "_todoPanel_1ae41_783", rN = "_todoPanelHidden_1ae41_793", iN = "_centerPanel_1ae41_799", cN = "_modeToggleBtn_1ae41_809", lN = "_modeToggleLabel_1ae41_824", dN = "_modeToggleBtnActive_1ae41_836", uN = "_smartWorkbenchArea_1ae41_850", Gt = {
|
|
9618
9618
|
layout: iv,
|
|
9619
9619
|
banner: cv,
|
|
9620
9620
|
bannerLeft: lv,
|
|
@@ -9626,9 +9626,9 @@ const iv = "_layout_1ae41_1", cv = "_banner_1ae41_8", lv = "_bannerLeft_1ae41_20
|
|
|
9626
9626
|
bannerNoticeClickable: hv,
|
|
9627
9627
|
bannerTipText: fv,
|
|
9628
9628
|
announcementModalWrap: gv,
|
|
9629
|
-
announcementModalHeader:
|
|
9630
|
-
announcementModalTitle:
|
|
9631
|
-
announcementModalIcon:
|
|
9629
|
+
announcementModalHeader: yv,
|
|
9630
|
+
announcementModalTitle: kv,
|
|
9631
|
+
announcementModalIcon: bv,
|
|
9632
9632
|
announcementModalClose: vv,
|
|
9633
9633
|
announcementModalBody: Nv,
|
|
9634
9634
|
announcementList: Tv,
|
|
@@ -9727,8 +9727,8 @@ function gN({
|
|
|
9727
9727
|
return;
|
|
9728
9728
|
}
|
|
9729
9729
|
let p = !1;
|
|
9730
|
-
return pN(e).then((
|
|
9731
|
-
p || (a(ia(
|
|
9730
|
+
return pN(e).then((k) => {
|
|
9731
|
+
p || (a(ia(k == null ? void 0 : k.direct) ? k.direct : null), i(((k == null ? void 0 : k.indirect) || []).filter(ia)));
|
|
9732
9732
|
}).catch(() => {
|
|
9733
9733
|
p || (a(null), i([]));
|
|
9734
9734
|
}), () => {
|
|
@@ -9750,10 +9750,10 @@ function gN({
|
|
|
9750
9750
|
}
|
|
9751
9751
|
) }) : /* @__PURE__ */ n("span", { className: r.foneRelatedInline, title: Cn, children: /* @__PURE__ */ n("span", { className: r.foneRelatedItem, children: Cn }) });
|
|
9752
9752
|
}
|
|
9753
|
-
const
|
|
9754
|
-
loadingWrap:
|
|
9755
|
-
body:
|
|
9756
|
-
kpiRow:
|
|
9753
|
+
const yN = "_loadingWrap_1q7ab_6", kN = "_body_1q7ab_13", bN = "_kpiRow_1q7ab_24", vN = "_kpiItem_1q7ab_36", NN = "_kpiBlue_1q7ab_66", TN = "_kpiPurple_1q7ab_67", CN = "_kpiCyan_1q7ab_68", SN = "_kpiGreen_1q7ab_69", wN = "_kpiOrange_1q7ab_70", IN = "_kpiPink_1q7ab_71", AN = "_kpiIcon_1q7ab_73", xN = "_kpiValue_1q7ab_80", BN = "_kpiLabel_1q7ab_88", LN = "_section_1q7ab_95", qN = "_sectionTitle_1q7ab_102", RN = "_sectionExtra_1q7ab_126", $N = "_subTitle_1q7ab_133", MN = "_emptyText_1q7ab_140", PN = "_engineGrid_1q7ab_150", DN = "_engineItem_1q7ab_162", EN = "_engineWarn_1q7ab_172", FN = "_engineLabel_1q7ab_177", ON = "_engineValue_1q7ab_182", HN = "_engineSub_1q7ab_194", WN = "_tokenBarTrack_1q7ab_201", GN = "_tokenBarPrompt_1q7ab_209", jN = "_tokenBarCompletion_1q7ab_213", UN = "_tokenBarReasoning_1q7ab_217", zN = "_tokenLegend_1q7ab_221", VN = "_tokenLegendItem_1q7ab_230", JN = "_tokenDot_1q7ab_236", KN = "_dotPrompt_1q7ab_243", QN = "_dotCompletion_1q7ab_244", YN = "_dotReasoning_1q7ab_245", XN = "_barList_1q7ab_248", ZN = "_barItem_1q7ab_254", eT = "_barHead_1q7ab_260", tT = "_barName_1q7ab_268", nT = "_barMeta_1q7ab_277", sT = "_barFailTag_1q7ab_285", aT = "_barTrack_1q7ab_291", oT = "_barFill_1q7ab_299", rT = "_barFillTool_1q7ab_304", iT = "_barFailFill_1q7ab_309", cT = "_errorChips_1q7ab_314", lT = "_errorChip_1q7ab_314", dT = "_metricGrid_1q7ab_337", uT = "_metricItem_1q7ab_349", mT = "_metricLabel_1q7ab_358", pT = "_metricValue_1q7ab_363", _T = "_memberStrip_1q7ab_371", hT = "_onlineNum_1q7ab_391", fT = "_memberDivider_1q7ab_395", gT = "_taskSummaryRow_1q7ab_402", yT = "_taskSummaryItem_1q7ab_409", kT = "_taskSummaryValue_1q7ab_416", bT = "_valueWarn_1q7ab_423", vT = "_taskSummaryLabel_1q7ab_427", NT = "_statusList_1q7ab_434", TT = "_statusItem_1q7ab_440", CT = "_statusDot_1q7ab_447", ST = "_statusPending_1q7ab_454", wT = "_statusRunning_1q7ab_455", IT = "_statusSuspended_1q7ab_456", AT = "_statusDone_1q7ab_457", xT = "_statusFailed_1q7ab_458", BT = "_statusCancelled_1q7ab_459", LT = "_statusQueued_1q7ab_460", qT = "_statusLabel_1q7ab_462", RT = "_statusCount_1q7ab_467", $T = "_recentTableWrap_1q7ab_474", MT = "_recentTable_1q7ab_474", PT = "_cellTime_1q7ab_518", DT = "_cellAgent_1q7ab_522", ET = "_cellNum_1q7ab_530", FT = "_cellRemark_1q7ab_534", OT = "_recentStatusDot_1q7ab_538", HT = "_hint_1q7ab_548", WT = "_hourlyChart_1q7ab_556", GT = "_hourlyBarWrap_1q7ab_564", jT = "_hourlyBarTrack_1q7ab_574", UT = "_hourlyBarFill_1q7ab_582", zT = "_hourlyBarLabel_1q7ab_594", VT = "_hourlyBarTooltip_1q7ab_601", JT = "_memberContribList_1q7ab_617", KT = "_memberContribItem_1q7ab_623", QT = "_memberContribAvatar_1q7ab_629", YT = "_memberContribInfo_1q7ab_641", XT = "_memberContribName_1q7ab_649", ZT = "_humanTag_1q7ab_672", eC = "_agentTag_1q7ab_678", tC = "_systemTag_1q7ab_684", nC = "_memberContribTrack_1q7ab_690", sC = "_memberContribFill_1q7ab_697", aC = "_memberContribCount_1q7ab_704", oC = "_typeDistBarTrack_1q7ab_715", rC = "_typeDistBarFill_1q7ab_723", iC = "_typeDistLegend_1q7ab_727", cC = "_typeDistLegendItem_1q7ab_737", lC = "_typeDistDot_1q7ab_743", dC = "_activeTaskList_1q7ab_751", uC = "_activeTaskItem_1q7ab_757", mC = "_activeTaskMeta_1q7ab_766", pC = "_activeTaskName_1q7ab_774", _C = "_activeTaskTime_1q7ab_783", hC = "_statusTag_1q7ab_789", C = {
|
|
9754
|
+
loadingWrap: yN,
|
|
9755
|
+
body: kN,
|
|
9756
|
+
kpiRow: bN,
|
|
9757
9757
|
kpiItem: vN,
|
|
9758
9758
|
kpiBlue: NN,
|
|
9759
9759
|
kpiPurple: TN,
|
|
@@ -9805,9 +9805,9 @@ const bN = "_loadingWrap_1q7ab_6", yN = "_body_1q7ab_13", kN = "_kpiRow_1q7ab_24
|
|
|
9805
9805
|
onlineNum: hT,
|
|
9806
9806
|
memberDivider: fT,
|
|
9807
9807
|
taskSummaryRow: gT,
|
|
9808
|
-
taskSummaryItem:
|
|
9809
|
-
taskSummaryValue:
|
|
9810
|
-
valueWarn:
|
|
9808
|
+
taskSummaryItem: yT,
|
|
9809
|
+
taskSummaryValue: kT,
|
|
9810
|
+
valueWarn: bT,
|
|
9811
9811
|
taskSummaryLabel: vT,
|
|
9812
9812
|
statusList: NT,
|
|
9813
9813
|
statusItem: TT,
|
|
@@ -9866,7 +9866,7 @@ const bN = "_loadingWrap_1q7ab_6", yN = "_body_1q7ab_13", kN = "_kpiRow_1q7ab_24
|
|
|
9866
9866
|
strokeWidth: 1.5,
|
|
9867
9867
|
strokeLinecap: "round",
|
|
9868
9868
|
strokeLinejoin: "round"
|
|
9869
|
-
}, fC = () => /* @__PURE__ */ n("svg", { ..._s, children: /* @__PURE__ */ n("path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" }) }), gC = () => /* @__PURE__ */ n("svg", { ..._s, children: /* @__PURE__ */ n("path", { d: "M13 2L3 14h9l-1 8 10-12h-9l1-8z" }) }),
|
|
9869
|
+
}, fC = () => /* @__PURE__ */ n("svg", { ..._s, children: /* @__PURE__ */ n("path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" }) }), gC = () => /* @__PURE__ */ n("svg", { ..._s, children: /* @__PURE__ */ n("path", { d: "M13 2L3 14h9l-1 8 10-12h-9l1-8z" }) }), yC = () => /* @__PURE__ */ c("svg", { ..._s, children: [
|
|
9870
9870
|
/* @__PURE__ */ n("rect", { x: "4", y: "4", width: "16", height: "12", rx: "3" }),
|
|
9871
9871
|
/* @__PURE__ */ n("circle", { cx: "9", cy: "10", r: "1.5" }),
|
|
9872
9872
|
/* @__PURE__ */ n("circle", { cx: "15", cy: "10", r: "1.5" }),
|
|
@@ -9909,7 +9909,7 @@ const bN = "_loadingWrap_1q7ab_6", yN = "_body_1q7ab_13", kN = "_kpiRow_1q7ab_24
|
|
|
9909
9909
|
tool: "#06b6d4",
|
|
9910
9910
|
other: "#94a3b8"
|
|
9911
9911
|
};
|
|
9912
|
-
function
|
|
9912
|
+
function kC(e) {
|
|
9913
9913
|
return {
|
|
9914
9914
|
id: Number(e.id),
|
|
9915
9915
|
name: String(e.name ?? ""),
|
|
@@ -9944,13 +9944,13 @@ function xe(e) {
|
|
|
9944
9944
|
const t = Number(e ?? 0);
|
|
9945
9945
|
return isNaN(t) ? 0 : t;
|
|
9946
9946
|
}
|
|
9947
|
-
function
|
|
9947
|
+
function bC({
|
|
9948
9948
|
project: e,
|
|
9949
9949
|
messages: t,
|
|
9950
9950
|
members: s
|
|
9951
9951
|
}) {
|
|
9952
9952
|
var ie, J;
|
|
9953
|
-
const [a, o] = I([]), [i, d] = I(!1), [_, p] = I(null),
|
|
9953
|
+
const [a, o] = I([]), [i, d] = I(!1), [_, p] = I(null), k = j(async () => {
|
|
9954
9954
|
if (e) {
|
|
9955
9955
|
d(!0);
|
|
9956
9956
|
try {
|
|
@@ -9961,7 +9961,7 @@ function kC({
|
|
|
9961
9961
|
if (m.status === 401 && Ts(), !m.ok) throw new Error(`HTTP ${m.status}`);
|
|
9962
9962
|
const L = await m.json(), ne = Array.isArray(L.data) ? L.data : [];
|
|
9963
9963
|
o(
|
|
9964
|
-
ne.map((ce) =>
|
|
9964
|
+
ne.map((ce) => kC(ce))
|
|
9965
9965
|
);
|
|
9966
9966
|
} catch (m) {
|
|
9967
9967
|
Ee(m) || (console.error("[Observation] 加载任务统计失败:", m), o([]));
|
|
@@ -9984,8 +9984,8 @@ function kC({
|
|
|
9984
9984
|
}
|
|
9985
9985
|
}, [e]);
|
|
9986
9986
|
oe(() => {
|
|
9987
|
-
e && (
|
|
9988
|
-
}, [e,
|
|
9987
|
+
e && (k(), h());
|
|
9988
|
+
}, [e, k, h]);
|
|
9989
9989
|
const l = he(() => {
|
|
9990
9990
|
var dt, ht;
|
|
9991
9991
|
const m = t.length, L = t.filter(
|
|
@@ -10007,7 +10007,7 @@ function kC({
|
|
|
10007
10007
|
!isNaN(Ke) && !isNaN(gt) && gt > Ke && ($ += (gt - Ke) / 1e3, ee++);
|
|
10008
10008
|
}
|
|
10009
10009
|
}
|
|
10010
|
-
const
|
|
10010
|
+
const b = ee > 0 ? $ / ee : 0, V = a.length, Ce = {
|
|
10011
10011
|
0: 0,
|
|
10012
10012
|
1: 0,
|
|
10013
10013
|
2: 0,
|
|
@@ -10016,9 +10016,9 @@ function kC({
|
|
|
10016
10016
|
5: 0,
|
|
10017
10017
|
6: 0
|
|
10018
10018
|
};
|
|
10019
|
-
let pe = 0,
|
|
10019
|
+
let pe = 0, ye = 0, Le = 0, Re = 0;
|
|
10020
10020
|
for (const we of a) {
|
|
10021
|
-
Ce[we.status] = (Ce[we.status] || 0) + 1, we.status === 3 && pe++, we.status === 4 &&
|
|
10021
|
+
Ce[we.status] = (Ce[we.status] || 0) + 1, we.status === 3 && pe++, we.status === 4 && ye++;
|
|
10022
10022
|
const Oe = ua(we.consumedTime);
|
|
10023
10023
|
Oe > 0 && (Le += Oe, Re++);
|
|
10024
10024
|
}
|
|
@@ -10038,12 +10038,12 @@ function kC({
|
|
|
10038
10038
|
humanCount: G,
|
|
10039
10039
|
agentCount: K,
|
|
10040
10040
|
onlineCount: X,
|
|
10041
|
-
avgLatencySeconds:
|
|
10041
|
+
avgLatencySeconds: b,
|
|
10042
10042
|
latencySamples: ee,
|
|
10043
10043
|
taskTotal: V,
|
|
10044
10044
|
taskStatusCounts: Ce,
|
|
10045
10045
|
taskDoneCount: pe,
|
|
10046
|
-
taskFailedCount:
|
|
10046
|
+
taskFailedCount: ye,
|
|
10047
10047
|
taskCompletionRate: Fe,
|
|
10048
10048
|
taskAvgDurationMs: tt,
|
|
10049
10049
|
chatDurationMs: Tt,
|
|
@@ -10095,7 +10095,7 @@ function kC({
|
|
|
10095
10095
|
})), q = Y.reduce((m, L) => Math.max(m, L.total), 0), B = ((T == null ? void 0 : T.errorDist) ?? []).map((m) => ({
|
|
10096
10096
|
errorType: String(m.errorType ?? "UNKNOWN"),
|
|
10097
10097
|
cnt: xe(m.cnt)
|
|
10098
|
-
})), x = (T == null ? void 0 : T.recent) ?? [], Q = (ie = _ == null ? void 0 : _.tools) == null ? void 0 : ie.overview, se = xe(Q == null ? void 0 : Q.totalCalls), f = xe(Q == null ? void 0 : Q.successCalls), R = xe(Q == null ? void 0 : Q.failCalls),
|
|
10098
|
+
})), x = (T == null ? void 0 : T.recent) ?? [], Q = (ie = _ == null ? void 0 : _.tools) == null ? void 0 : ie.overview, se = xe(Q == null ? void 0 : Q.totalCalls), f = xe(Q == null ? void 0 : Q.successCalls), R = xe(Q == null ? void 0 : Q.failCalls), y = se > 0 ? f / se * 100 : 0, F = (((J = _ == null ? void 0 : _.tools) == null ? void 0 : J.toolDist) ?? []).map((m) => ({
|
|
10099
10099
|
toolName: String(m.toolName ?? ""),
|
|
10100
10100
|
callCount: xe(m.callCount),
|
|
10101
10101
|
successCount: xe(m.successCount),
|
|
@@ -10110,7 +10110,7 @@ function kC({
|
|
|
10110
10110
|
},
|
|
10111
10111
|
{
|
|
10112
10112
|
tone: "purple",
|
|
10113
|
-
icon: /* @__PURE__ */ n(
|
|
10113
|
+
icon: /* @__PURE__ */ n(yC, {}),
|
|
10114
10114
|
value: l.totalMessages > 0 ? `${Math.round(
|
|
10115
10115
|
l.agentMessages / l.totalMessages * 100
|
|
10116
10116
|
)}%` : "0%",
|
|
@@ -10164,7 +10164,7 @@ function kC({
|
|
|
10164
10164
|
children: [
|
|
10165
10165
|
/* @__PURE__ */ c("div", { className: C.engineGrid, children: [
|
|
10166
10166
|
/* @__PURE__ */ n(
|
|
10167
|
-
|
|
10167
|
+
kt,
|
|
10168
10168
|
{
|
|
10169
10169
|
label: "LLM 调用",
|
|
10170
10170
|
value: g ? U.toLocaleString() : "—",
|
|
@@ -10173,7 +10173,7 @@ function kC({
|
|
|
10173
10173
|
}
|
|
10174
10174
|
),
|
|
10175
10175
|
/* @__PURE__ */ n(
|
|
10176
|
-
|
|
10176
|
+
kt,
|
|
10177
10177
|
{
|
|
10178
10178
|
label: "调用成功率",
|
|
10179
10179
|
value: g ? `${v.toFixed(1)}%` : "—",
|
|
@@ -10182,7 +10182,7 @@ function kC({
|
|
|
10182
10182
|
}
|
|
10183
10183
|
),
|
|
10184
10184
|
/* @__PURE__ */ n(
|
|
10185
|
-
|
|
10185
|
+
kt,
|
|
10186
10186
|
{
|
|
10187
10187
|
label: "平均 Turn 耗时",
|
|
10188
10188
|
value: Xe(g == null ? void 0 : g.avgDurationMs),
|
|
@@ -10190,7 +10190,7 @@ function kC({
|
|
|
10190
10190
|
}
|
|
10191
10191
|
),
|
|
10192
10192
|
/* @__PURE__ */ n(
|
|
10193
|
-
|
|
10193
|
+
kt,
|
|
10194
10194
|
{
|
|
10195
10195
|
label: "平均首 Token",
|
|
10196
10196
|
value: Xe(g == null ? void 0 : g.avgFirstTokenMs),
|
|
@@ -10198,7 +10198,7 @@ function kC({
|
|
|
10198
10198
|
}
|
|
10199
10199
|
),
|
|
10200
10200
|
/* @__PURE__ */ n(
|
|
10201
|
-
|
|
10201
|
+
kt,
|
|
10202
10202
|
{
|
|
10203
10203
|
label: "纯 LLM 耗时",
|
|
10204
10204
|
value: Xe(g == null ? void 0 : g.avgLlmDurationMs),
|
|
@@ -10206,7 +10206,7 @@ function kC({
|
|
|
10206
10206
|
}
|
|
10207
10207
|
),
|
|
10208
10208
|
/* @__PURE__ */ n(
|
|
10209
|
-
|
|
10209
|
+
kt,
|
|
10210
10210
|
{
|
|
10211
10211
|
label: "限流排队等待",
|
|
10212
10212
|
value: Xe(g == null ? void 0 : g.avgRateLimitWaitMs),
|
|
@@ -10215,7 +10215,7 @@ function kC({
|
|
|
10215
10215
|
}
|
|
10216
10216
|
),
|
|
10217
10217
|
/* @__PURE__ */ n(
|
|
10218
|
-
|
|
10218
|
+
kt,
|
|
10219
10219
|
{
|
|
10220
10220
|
label: "平均 ReAct 步数",
|
|
10221
10221
|
value: g ? xe(g.avgLlmSteps).toFixed(1) : "—",
|
|
@@ -10224,7 +10224,7 @@ function kC({
|
|
|
10224
10224
|
}
|
|
10225
10225
|
),
|
|
10226
10226
|
/* @__PURE__ */ n(
|
|
10227
|
-
|
|
10227
|
+
kt,
|
|
10228
10228
|
{
|
|
10229
10229
|
label: "思考 Token 占比",
|
|
10230
10230
|
value: P > 0 ? `${D.toFixed(0)}%` : "—",
|
|
@@ -10351,8 +10351,8 @@ function kC({
|
|
|
10351
10351
|
/* @__PURE__ */ n(
|
|
10352
10352
|
"div",
|
|
10353
10353
|
{
|
|
10354
|
-
className: `${C.taskSummaryValue} ${Q &&
|
|
10355
|
-
children: Q ? `${
|
|
10354
|
+
className: `${C.taskSummaryValue} ${Q && y < 95 && R > 0 ? C.valueWarn : ""}`,
|
|
10355
|
+
children: Q ? `${y.toFixed(1)}%` : "—"
|
|
10356
10356
|
}
|
|
10357
10357
|
),
|
|
10358
10358
|
/* @__PURE__ */ c("div", { className: C.taskSummaryLabel, children: [
|
|
@@ -10426,7 +10426,7 @@ function kC({
|
|
|
10426
10426
|
background: vt(m.name),
|
|
10427
10427
|
color: "#fff"
|
|
10428
10428
|
},
|
|
10429
|
-
children:
|
|
10429
|
+
children: bt(m.name)
|
|
10430
10430
|
}
|
|
10431
10431
|
),
|
|
10432
10432
|
/* @__PURE__ */ c("div", { className: C.memberContribInfo, children: [
|
|
@@ -10710,7 +10710,7 @@ function mt({ label: e, value: t }) {
|
|
|
10710
10710
|
/* @__PURE__ */ n("div", { className: C.metricValue, children: t })
|
|
10711
10711
|
] });
|
|
10712
10712
|
}
|
|
10713
|
-
function
|
|
10713
|
+
function kt({
|
|
10714
10714
|
label: e,
|
|
10715
10715
|
value: t,
|
|
10716
10716
|
sub: s,
|
|
@@ -10738,11 +10738,11 @@ function TC({
|
|
|
10738
10738
|
mute: !1,
|
|
10739
10739
|
pin: !0,
|
|
10740
10740
|
taskRemind: !0
|
|
10741
|
-
}), [
|
|
10741
|
+
}), [k, h] = I(!1), l = (T) => {
|
|
10742
10742
|
p((g) => ({ ...g, [T]: !g[T] }));
|
|
10743
10743
|
}, w = j(
|
|
10744
10744
|
async (T) => {
|
|
10745
|
-
if (!
|
|
10745
|
+
if (!k && await jn({ content: `确定将「${T.display_name}」移出群聊?` })) {
|
|
10746
10746
|
h(!0);
|
|
10747
10747
|
try {
|
|
10748
10748
|
await d(T.id), ae(`已将「${T.display_name}」移出群聊`, "success");
|
|
@@ -10756,7 +10756,7 @@ function TC({
|
|
|
10756
10756
|
}
|
|
10757
10757
|
}
|
|
10758
10758
|
},
|
|
10759
|
-
[d,
|
|
10759
|
+
[d, k]
|
|
10760
10760
|
), S = he(() => {
|
|
10761
10761
|
const T = (g) => g.is_default ? 0 : g.member_type === "HUMAN" ? 1 : 2;
|
|
10762
10762
|
return [...o].sort((g, U) => T(g) - T(U));
|
|
@@ -10793,7 +10793,7 @@ function TC({
|
|
|
10793
10793
|
style: {
|
|
10794
10794
|
background: vt(T.display_name || T.ref_id)
|
|
10795
10795
|
},
|
|
10796
|
-
children:
|
|
10796
|
+
children: bt(T.display_name || T.ref_id)
|
|
10797
10797
|
}
|
|
10798
10798
|
),
|
|
10799
10799
|
/* @__PURE__ */ c("div", { className: r.memberInfo, children: [
|
|
@@ -10819,7 +10819,7 @@ function TC({
|
|
|
10819
10819
|
onClick: (P) => {
|
|
10820
10820
|
P.stopPropagation(), w(T);
|
|
10821
10821
|
},
|
|
10822
|
-
disabled:
|
|
10822
|
+
disabled: k,
|
|
10823
10823
|
title: "移出群聊",
|
|
10824
10824
|
children: "×"
|
|
10825
10825
|
}
|
|
@@ -10910,7 +10910,7 @@ function XC({
|
|
|
10910
10910
|
onOpenTeamModal: d,
|
|
10911
10911
|
todoPanelVisible: _ = !1,
|
|
10912
10912
|
onToggleTodoPanel: p,
|
|
10913
|
-
todoCount:
|
|
10913
|
+
todoCount: k = 0
|
|
10914
10914
|
}) {
|
|
10915
10915
|
const { chatPanelWidth: h } = os(), {
|
|
10916
10916
|
currentProject: l,
|
|
@@ -10946,7 +10946,7 @@ function XC({
|
|
|
10946
10946
|
selectedFilePath: u.selectedFilePath,
|
|
10947
10947
|
fileClickVersion: u.fileClickVersion
|
|
10948
10948
|
}))
|
|
10949
|
-
), [q, B] = I("team"), [x, Q] = I(!1), [se, f] = I(!1), [R,
|
|
10949
|
+
), [q, B] = I("team"), [x, Q] = I(!1), [se, f] = I(!1), [R, y] = I(null), F = E((u) => u.skills), Z = E((u) => u.allSkills), ue = E((u) => u.loadAllSkills);
|
|
10950
10950
|
oe(() => {
|
|
10951
10951
|
R && ue();
|
|
10952
10952
|
}, [R, ue]);
|
|
@@ -10955,9 +10955,9 @@ function XC({
|
|
|
10955
10955
|
i ? i(u) : B(u);
|
|
10956
10956
|
},
|
|
10957
10957
|
[i]
|
|
10958
|
-
), [m, L] = I(!1), [ne, ce] = I(!1), le = E((u) => u.wsState), [ge, G] = I(!1), [K, X] = I(null), [$, ee] = I(null),
|
|
10958
|
+
), [m, L] = I(!1), [ne, ce] = I(!1), le = E((u) => u.wsState), [ge, G] = I(!1), [K, X] = I(null), [$, ee] = I(null), b = fe(null), V = E((u) => u.token), Ce = E((u) => u.forkScenarioInstance), [pe, ye] = I(!1), [Le, Re] = I(!1);
|
|
10959
10959
|
oe(() => {
|
|
10960
|
-
!e || !l || !s || t != null && Number(l.id) !== t || (
|
|
10960
|
+
!e || !l || !s || t != null && Number(l.id) !== t || (ye(!0), s());
|
|
10961
10961
|
}, [
|
|
10962
10962
|
e,
|
|
10963
10963
|
t,
|
|
@@ -11060,11 +11060,11 @@ function XC({
|
|
|
11060
11060
|
}
|
|
11061
11061
|
const u = E.getState().token;
|
|
11062
11062
|
Kt(".z_team/.meta/data.json", l.id, u), J("content");
|
|
11063
|
-
}, [ie, l, J]), ot = j(() => X(null), []),
|
|
11063
|
+
}, [ie, l, J]), ot = j(() => X(null), []), yt = j(() => {
|
|
11064
11064
|
ee((u) => u !== !0);
|
|
11065
11065
|
}, []), Mt = j((u) => {
|
|
11066
11066
|
var H;
|
|
11067
|
-
(H =
|
|
11067
|
+
(H = b.current) == null || H.setInput(u.content ?? "");
|
|
11068
11068
|
}, []), tn = j(
|
|
11069
11069
|
async (u) => {
|
|
11070
11070
|
if (!(!l || !u.id))
|
|
@@ -11084,10 +11084,10 @@ function XC({
|
|
|
11084
11084
|
document.getElementById("quick-chat-header-actions")
|
|
11085
11085
|
);
|
|
11086
11086
|
}, [a]);
|
|
11087
|
-
const
|
|
11087
|
+
const yn = /* @__PURE__ */ n(
|
|
11088
11088
|
un,
|
|
11089
11089
|
{
|
|
11090
|
-
title: _ ? "收起个人待办" :
|
|
11090
|
+
title: _ ? "收起个人待办" : k > 0 ? `个人待办(${k})` : "个人待办",
|
|
11091
11091
|
placement: "bottomRight",
|
|
11092
11092
|
children: /* @__PURE__ */ c(
|
|
11093
11093
|
"button",
|
|
@@ -11097,11 +11097,11 @@ function XC({
|
|
|
11097
11097
|
onClick: p,
|
|
11098
11098
|
children: [
|
|
11099
11099
|
/* @__PURE__ */ n(Lo, {}),
|
|
11100
|
-
|
|
11100
|
+
k > 0 ? /* @__PURE__ */ n(
|
|
11101
11101
|
"span",
|
|
11102
11102
|
{
|
|
11103
11103
|
className: `${r.headerActionBadge} ${r.headerActionBadgeFloat}`,
|
|
11104
|
-
children:
|
|
11104
|
+
children: k > 99 ? "99+" : k
|
|
11105
11105
|
}
|
|
11106
11106
|
) : null
|
|
11107
11107
|
]
|
|
@@ -11113,7 +11113,7 @@ function XC({
|
|
|
11113
11113
|
{
|
|
11114
11114
|
type: "button",
|
|
11115
11115
|
className: `${r.headerActionBtn} ${r.headerActionBtnIcon}`,
|
|
11116
|
-
onClick: () =>
|
|
11116
|
+
onClick: () => ye(!0),
|
|
11117
11117
|
children: /* @__PURE__ */ n(
|
|
11118
11118
|
pa,
|
|
11119
11119
|
{
|
|
@@ -11161,7 +11161,7 @@ function XC({
|
|
|
11161
11161
|
re(
|
|
11162
11162
|
"settings",
|
|
11163
11163
|
"群组设置",
|
|
11164
|
-
/* @__PURE__ */ n(
|
|
11164
|
+
/* @__PURE__ */ n(ya, {}),
|
|
11165
11165
|
() => Q(!0)
|
|
11166
11166
|
)
|
|
11167
11167
|
];
|
|
@@ -11176,12 +11176,12 @@ function XC({
|
|
|
11176
11176
|
() => /* @__PURE__ */ n(
|
|
11177
11177
|
fo,
|
|
11178
11178
|
{
|
|
11179
|
-
ref:
|
|
11179
|
+
ref: b,
|
|
11180
11180
|
quotedMessage: K,
|
|
11181
11181
|
onClearQuote: ot,
|
|
11182
11182
|
disabled: ft,
|
|
11183
11183
|
forceExpandAll: $,
|
|
11184
|
-
onToggleExpandAll:
|
|
11184
|
+
onToggleExpandAll: yt
|
|
11185
11185
|
}
|
|
11186
11186
|
),
|
|
11187
11187
|
[
|
|
@@ -11189,7 +11189,7 @@ function XC({
|
|
|
11189
11189
|
ot,
|
|
11190
11190
|
ft,
|
|
11191
11191
|
$,
|
|
11192
|
-
|
|
11192
|
+
yt
|
|
11193
11193
|
]
|
|
11194
11194
|
);
|
|
11195
11195
|
return oe(() => {
|
|
@@ -11304,7 +11304,7 @@ function XC({
|
|
|
11304
11304
|
}
|
|
11305
11305
|
),
|
|
11306
11306
|
Pt,
|
|
11307
|
-
|
|
11307
|
+
yn,
|
|
11308
11308
|
/* @__PURE__ */ n("div", { className: r.moreActionsWrap, children: qn })
|
|
11309
11309
|
] })
|
|
11310
11310
|
] }),
|
|
@@ -11316,18 +11316,18 @@ function XC({
|
|
|
11316
11316
|
onOpenTeamModal: () => {
|
|
11317
11317
|
Q(!1), d == null || d();
|
|
11318
11318
|
},
|
|
11319
|
-
onMemberClick: (u) =>
|
|
11319
|
+
onMemberClick: (u) => y(u)
|
|
11320
11320
|
}
|
|
11321
11321
|
),
|
|
11322
11322
|
a && gn ? wa(
|
|
11323
11323
|
/* @__PURE__ */ c(Se, { children: [
|
|
11324
11324
|
Pt,
|
|
11325
|
-
|
|
11325
|
+
yn
|
|
11326
11326
|
] }),
|
|
11327
11327
|
gn
|
|
11328
11328
|
) : null,
|
|
11329
|
-
ie === "tasks" ? /* @__PURE__ */ n("div", { className: r.contentTabPanel, children: /* @__PURE__ */ n(
|
|
11330
|
-
|
|
11329
|
+
ie === "tasks" ? /* @__PURE__ */ n("div", { className: r.contentTabPanel, children: /* @__PURE__ */ n(Fk, {}) }) : ie === "files" ? /* @__PURE__ */ n("div", { className: r.contentTabPanel, children: /* @__PURE__ */ n(hb, {}) }) : ie === "content" ? /* @__PURE__ */ n("div", { className: r.contentTabPanel, children: /* @__PURE__ */ n(id, {}) }) : ie === "observation" ? /* @__PURE__ */ n("div", { className: r.contentTabPanel, children: /* @__PURE__ */ n(
|
|
11330
|
+
bC,
|
|
11331
11331
|
{
|
|
11332
11332
|
project: l,
|
|
11333
11333
|
messages: S,
|
|
@@ -11364,12 +11364,12 @@ function XC({
|
|
|
11364
11364
|
}
|
|
11365
11365
|
) }),
|
|
11366
11366
|
R && /* @__PURE__ */ n(
|
|
11367
|
-
|
|
11367
|
+
jb,
|
|
11368
11368
|
{
|
|
11369
11369
|
member: R,
|
|
11370
11370
|
skills: F,
|
|
11371
11371
|
allSkills: Z,
|
|
11372
|
-
onClose: () =>
|
|
11372
|
+
onClose: () => y(null)
|
|
11373
11373
|
}
|
|
11374
11374
|
),
|
|
11375
11375
|
/* @__PURE__ */ n(
|
|
@@ -11383,7 +11383,7 @@ function XC({
|
|
|
11383
11383
|
Wr,
|
|
11384
11384
|
{
|
|
11385
11385
|
open: pe,
|
|
11386
|
-
onClose: () =>
|
|
11386
|
+
onClose: () => ye(!1),
|
|
11387
11387
|
onContentLoaded: Re,
|
|
11388
11388
|
bindKey: l ? `${l.workspace_path}_${l.id}` : "",
|
|
11389
11389
|
defaultTitle: (l == null ? void 0 : l.name) || (l == null ? void 0 : l.scenario_name) || "复盘笔记",
|
|
@@ -11398,19 +11398,19 @@ function XC({
|
|
|
11398
11398
|
function CC(e) {
|
|
11399
11399
|
const t = /* @__PURE__ */ new Map();
|
|
11400
11400
|
let s = null;
|
|
11401
|
-
const a = (p,
|
|
11401
|
+
const a = (p, k) => `${k}:${p}`, o = () => {
|
|
11402
11402
|
if (s = null, t.size !== 0) {
|
|
11403
|
-
for (const { payload: p, channel:
|
|
11404
|
-
e(p,
|
|
11403
|
+
for (const { payload: p, channel: k } of t.values())
|
|
11404
|
+
e(p, k);
|
|
11405
11405
|
t.clear();
|
|
11406
11406
|
}
|
|
11407
11407
|
};
|
|
11408
|
-
return { schedule: (p,
|
|
11409
|
-
t.set(a(p, h), { payload:
|
|
11408
|
+
return { schedule: (p, k, h) => {
|
|
11409
|
+
t.set(a(p, h), { payload: k, channel: h }), s == null && (s = requestAnimationFrame(o));
|
|
11410
11410
|
}, flushNow: (p) => {
|
|
11411
11411
|
if (s != null && (cancelAnimationFrame(s), s = null), p != null) {
|
|
11412
|
-
for (const
|
|
11413
|
-
const h = a(p,
|
|
11412
|
+
for (const k of ["team", "task"]) {
|
|
11413
|
+
const h = a(p, k), l = t.get(h);
|
|
11414
11414
|
t.delete(h), l && e(l.payload, l.channel);
|
|
11415
11415
|
}
|
|
11416
11416
|
return;
|
|
@@ -11431,12 +11431,12 @@ function SC(e) {
|
|
|
11431
11431
|
}
|
|
11432
11432
|
};
|
|
11433
11433
|
return { schedule: (_) => {
|
|
11434
|
-
const p = ve(_.executionId),
|
|
11435
|
-
t.set(p,
|
|
11434
|
+
const p = ve(_.executionId), k = t.get(p);
|
|
11435
|
+
t.set(p, k ? { ...k, ..._ } : _), s == null && (s = requestAnimationFrame(a));
|
|
11436
11436
|
}, flushNow: (_) => {
|
|
11437
11437
|
if (s != null && (cancelAnimationFrame(s), s = null), _ != null) {
|
|
11438
|
-
const p = ve(_),
|
|
11439
|
-
t.delete(p),
|
|
11438
|
+
const p = ve(_), k = t.get(p);
|
|
11439
|
+
t.delete(p), k && e(k);
|
|
11440
11440
|
return;
|
|
11441
11441
|
}
|
|
11442
11442
|
a();
|
|
@@ -11461,7 +11461,7 @@ function ZC(e) {
|
|
|
11461
11461
|
applyExecutionCancelled: d,
|
|
11462
11462
|
addMessage: _,
|
|
11463
11463
|
addTaskMessage: p,
|
|
11464
|
-
deleteMessage:
|
|
11464
|
+
deleteMessage: k,
|
|
11465
11465
|
updateMessageReadStatus: h,
|
|
11466
11466
|
loadFileTree: l
|
|
11467
11467
|
} = e, w = SC(a), S = CC((N, v) => {
|
|
@@ -11704,7 +11704,7 @@ function ZC(e) {
|
|
|
11704
11704
|
return;
|
|
11705
11705
|
}
|
|
11706
11706
|
if (N.type === "message_deleted") {
|
|
11707
|
-
ls(ve(v.message_id)),
|
|
11707
|
+
ls(ve(v.message_id)), k(ve(v.message_id));
|
|
11708
11708
|
return;
|
|
11709
11709
|
}
|
|
11710
11710
|
if (N.type === "file_tree_changed") {
|
|
@@ -11729,29 +11729,29 @@ export {
|
|
|
11729
11729
|
XC as C,
|
|
11730
11730
|
rv as S,
|
|
11731
11731
|
JC as U,
|
|
11732
|
-
|
|
11733
|
-
|
|
11732
|
+
GC as a,
|
|
11733
|
+
FC as b,
|
|
11734
11734
|
jn as c,
|
|
11735
|
-
|
|
11736
|
-
|
|
11737
|
-
|
|
11738
|
-
|
|
11739
|
-
|
|
11735
|
+
WC as d,
|
|
11736
|
+
OC as e,
|
|
11737
|
+
Rr as f,
|
|
11738
|
+
jC as g,
|
|
11739
|
+
Ur as h,
|
|
11740
11740
|
Fa as i,
|
|
11741
|
-
|
|
11742
|
-
|
|
11743
|
-
|
|
11744
|
-
|
|
11741
|
+
ZC as j,
|
|
11742
|
+
Ht as k,
|
|
11743
|
+
UC as l,
|
|
11744
|
+
zC as m,
|
|
11745
11745
|
QC as n,
|
|
11746
|
-
|
|
11747
|
-
|
|
11748
|
-
|
|
11746
|
+
pg as o,
|
|
11747
|
+
VC as p,
|
|
11748
|
+
r as q,
|
|
11749
11749
|
YC as r,
|
|
11750
11750
|
KC as s,
|
|
11751
11751
|
HC as t,
|
|
11752
11752
|
os as u,
|
|
11753
|
-
|
|
11754
|
-
|
|
11753
|
+
Ka as v,
|
|
11754
|
+
Da as w,
|
|
11755
11755
|
Te as x,
|
|
11756
11756
|
Gt as y
|
|
11757
11757
|
};
|