@yuku123/z-team-component 0.2.130 → 0.2.131
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/{ChangeLogView-AY7dKChQ.js → ChangeLogView-SwacGpsw.js} +1 -1
- package/dist/{ComponentDoc-DTpTBK1V.js → ComponentDoc-Dh5YhLCI.js} +1018 -1048
- package/dist/{InvitationManagementPage-YzQVnNWz.js → InvitationManagementPage-CjEcLOGB.js} +1 -1
- package/dist/{OnboardingPage-ClH-s7zs.js → OnboardingPage-DvNt71kX.js} +2 -2
- package/dist/{ScheduledTasks-DhcmGmhu.js → ScheduledTasks-COgb4MZJ.js} +6 -6
- package/dist/SystemShell-CSXcsiNp.js +752 -0
- package/dist/{admin-logs-2gdJxEwA.js → admin-logs-CExsxQ5h.js} +5 -5
- package/dist/{api-BHYf7Uyx.js → api-C9kTgVc2.js} +1 -1
- package/dist/{api---aB1ADx.js → api-DXw93E7c.js} +1 -1
- package/dist/{createWorkspaceWsHandler-BC4HmdFu.js → createWorkspaceWsHandler-BwDUTYXH.js} +319 -319
- package/dist/{index-CqOsWy6H.js → index-9rfSVSTh.js} +9 -9
- package/dist/{index-lucAUJAv.js → index-B2Dfbi8J.js} +2 -2
- package/dist/{index-Chzml7fB.js → index-B3uLo8-F.js} +3 -3
- package/dist/{index-CnIbuXF9.js → index-BNPq7yBg.js} +2 -2
- package/dist/{index--HSE1tzT.js → index-BTJ83JLl.js} +11 -11
- package/dist/{index-9coNts0T.js → index-BkzBYfhO.js} +8489 -8453
- package/dist/{index-BkbSCWQ7.js → index-BoY7L8C4.js} +42 -37
- package/dist/index-Bs9odXxd.js +1214 -0
- package/dist/{index-mwKbvNPB.js → index-CF3xDZ7q.js} +4 -4
- package/dist/{index-CnRAUDUi.js → index-COobH4Vi.js} +1 -1
- package/dist/{index-Opx4qrhX.js → index-CU6jFFl5.js} +3 -3
- package/dist/{index-DA0MCrVH.js → index-CXEYA7rt.js} +2 -2
- package/dist/{index-Zr09eAzk.js → index-CZCKpsry.js} +2 -2
- package/dist/{index-CnyMTIyv.js → index-Ceu-yckM.js} +70 -70
- package/dist/{index-baUMWaRm.js → index-Ci6_CBwE.js} +3 -3
- package/dist/{index-CTqU8nrB.js → index-CntZHojY.js} +2 -2
- package/dist/{index-DqiBrPAv.js → index-D2DFKRUf.js} +1 -1
- package/dist/{index-DfpB0BR9.js → index-DLK7DuCr.js} +3 -3
- package/dist/{index-Ci31buz9.js → index-DM6XeWFk.js} +4059 -4043
- package/dist/{index-fJnhCAB9.js → index-DMfYPIkB.js} +2 -2
- package/dist/{index-Ca08VoFz.js → index-DZ0fYNO9.js} +20 -20
- package/dist/{index-Cui8SX9p.js → index-D_J1ZCy8.js} +3 -3
- package/dist/{index-Ccvhn50s.js → index-DmV6xR7C.js} +9 -9
- package/dist/{index-CROBbbCB.js → index-ftuPuj0s.js} +9 -9
- package/dist/{index-DHubhPeT.js → index-mEgmHNRO.js} +1 -1
- package/dist/{index--L2wU6OV.js → index-t2nMJUPu.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{instance-ITIB5e5v.js → instance-DD3kbAUh.js} +1 -1
- package/dist/{menuPermission-Dw1EJWIf.js → menuPermission-v0881tid.js} +3 -3
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-DzRmAa6S.js → send-default-agent-team-message-Cug0T_7J.js} +1 -1
- package/dist/{sso-user-497FBkoQ.js → sso-user-CnVXqYR7.js} +1 -1
- package/dist/{training-B4IByvWW.js → training-BS23m-yy.js} +1 -1
- package/dist/useSidebarResize--Avuabb1.js +46 -0
- package/dist/{webide-DwQqqS-I.js → webide-BPJ1IpZq.js} +3 -3
- package/dist/z-team-component.css +1 -1
- package/package.json +1 -1
- package/dist/SystemShell-Cz7S4YnT.js +0 -718
- package/dist/index-4apTfQuo.js +0 -2213
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as t, jsxs as r, Fragment as Te } from "react/jsx-runtime";
|
|
2
|
-
import { ShareAltOutlined as Za, EditOutlined as eo, EyeOutlined as vi, FileTextOutlined as Gn, CloseOutlined as Ni, MinusCircleOutlined as Ti, PlusOutlined as Ci, ToolOutlined as un, DownOutlined as sn, RightOutlined as an, ThunderboltOutlined as to, CloseCircleOutlined as no, CheckOutlined as en, LoadingOutlined as Si, SettingOutlined as so, StopOutlined as Nn, CopyOutlined as Tn, LinkOutlined as Cn, PhoneOutlined as na, ProfileOutlined as Vn, RollbackOutlined as wi, CheckCircleOutlined as ao, RobotOutlined as Zn, CommentOutlined as oo, DatabaseOutlined as Ii, ExpandAltOutlined as io, HistoryOutlined as Ai, CheckCircleFilled as xi, SendOutlined as ro, ExportOutlined as Li, ImportOutlined as Bi, CodeOutlined as Ri, BulbOutlined as Pi, RedoOutlined as $i, ForkOutlined as
|
|
2
|
+
import { ShareAltOutlined as Za, EditOutlined as eo, EyeOutlined as vi, FileTextOutlined as Gn, CloseOutlined as Ni, MinusCircleOutlined as Ti, PlusOutlined as Ci, ToolOutlined as un, DownOutlined as sn, RightOutlined as an, ThunderboltOutlined as to, CloseCircleOutlined as no, CheckOutlined as en, LoadingOutlined as Si, SettingOutlined as so, StopOutlined as Nn, CopyOutlined as Tn, LinkOutlined as Cn, PhoneOutlined as na, ProfileOutlined as Vn, RollbackOutlined as wi, CheckCircleOutlined as ao, RobotOutlined as Zn, CommentOutlined as oo, DatabaseOutlined as Ii, ExpandAltOutlined as io, HistoryOutlined as Ai, CheckCircleFilled as xi, SendOutlined as ro, ExportOutlined as Li, ImportOutlined as Bi, CodeOutlined as Ri, BulbOutlined as Pi, RedoOutlined as $i, ForkOutlined as Di, SyncOutlined as es, FileImageOutlined as Ei, QuestionCircleOutlined as Mi, MoreOutlined as Oi, ClockCircleOutlined as sa } from "@ant-design/icons";
|
|
3
3
|
import { message as ze, Drawer as bs, Spin as dt, Input as An, Button as rt, Segmented as Fi, Modal as mn, AutoComplete as Hi, Typography as Ut, Checkbox as ls, Space as on, Radio as aa, Skeleton as Mn, Popover as lo, Timeline as oa, Tag as ct, Tooltip as zn, Tree as qi, Empty as rn, Dropdown as ji, Progress as Gi, Collapse as ia } from "antd";
|
|
4
4
|
import it, { useState as C, useRef as Ne, useEffect as ie, useCallback as j, useMemo as be, useContext as Wi, createContext as Ui, useLayoutEffect as co, memo as uo, useImperativeHandle as Vi } from "react";
|
|
5
5
|
import { createPortal as mo } from "react-dom";
|
|
6
|
-
import { a as ye,
|
|
7
|
-
import { d as Lr, e as Br, j as Rr, r as Pr, g as $r, h as
|
|
6
|
+
import { a as ye, aD as hn, f as xe, b as Ke, B as Pe, D as Ze, a5 as zi, u as F, n as Wt, aE as ho, ax as po, w as Q, aB as Ji, aF as vs, aG as Jn, t as Ie, aH as Ki, aI as Qi, aJ as Yi, ap as qe, aK as Xi, aL as go, aM as _o, aN as Ns, aO as Zi, aP as fo, aQ as ko, aR as yo, aS as bo, aT as cs, aU as Ts, aV as er, aW as tr, aX as nr, aY as sr, aZ as ar, a_ as or, a$ as Bt, b0 as Rt, b1 as ir, b2 as rr, b3 as lr, e as ln, b4 as cr, b5 as dr, b6 as ur, b7 as mr, b8 as hr, b9 as pr, ba as gr, bb as _r, bc as fr, bd as kr, be as Cs, bf as yr, bg as br, z as vr, bh as Nr, bi as ra, bj as vo, T as Ss, bk as St, bl as la, s as Tr, bm as Cr, bn as Sr, bo as ca, ao as da, bp as wr, bq as Ir, br as Ar, bs as ua, bt as xr } from "./ComponentDoc-Dh5YhLCI.js";
|
|
7
|
+
import { d as Lr, e as Br, j as Rr, r as Pr, g as $r, h as Dr } from "./instance-DD3kbAUh.js";
|
|
8
8
|
import gt from "react-markdown";
|
|
9
9
|
import In from "rehype-highlight";
|
|
10
10
|
import _t from "remark-gfm";
|
|
11
|
-
import { i as
|
|
11
|
+
import { i as Er, u as Mr, e as Or, j as Fr, k as Hr, t as qr } from "./admin-logs-CExsxQ5h.js";
|
|
12
12
|
import je from "handlebars";
|
|
13
13
|
async function jr(e) {
|
|
14
14
|
try {
|
|
@@ -120,7 +120,7 @@ async function $S(e, n = "") {
|
|
|
120
120
|
});
|
|
121
121
|
return Ze(a, "删除专栏失败");
|
|
122
122
|
}
|
|
123
|
-
async function
|
|
123
|
+
async function DS(e, n, s = "") {
|
|
124
124
|
const a = await ye(
|
|
125
125
|
`${Pe}/learning/columns/${e}/articles${s ? `?token=${encodeURIComponent(s)}` : ""}`,
|
|
126
126
|
{
|
|
@@ -132,7 +132,7 @@ async function ES(e, n, s = "") {
|
|
|
132
132
|
);
|
|
133
133
|
return Ze(a, "创建文章失败");
|
|
134
134
|
}
|
|
135
|
-
async function
|
|
135
|
+
async function ES(e, n, s = "") {
|
|
136
136
|
const a = await ye(
|
|
137
137
|
`${Pe}/learning/articles/${e}${s ? `?token=${encodeURIComponent(s)}` : ""}`,
|
|
138
138
|
{
|
|
@@ -400,16 +400,16 @@ function sl({
|
|
|
400
400
|
token: l,
|
|
401
401
|
onContentLoaded: u
|
|
402
402
|
}) {
|
|
403
|
-
const [h, m] = C(!1), [k, p] = C(null), [c, N] = C("edit"), [A, S] = C(""), [y, W] = C(""), [R, $] = C(!1), [J, M] = C("idle"), [
|
|
403
|
+
const [h, m] = C(!1), [k, p] = C(null), [c, N] = C("edit"), [A, S] = C(""), [y, W] = C(""), [R, $] = C(!1), [J, M] = C("idle"), [D, w] = C(!1), v = Ne(null), E = Ne(null), ne = Ne(""), I = Ne("");
|
|
404
404
|
ie(() => {
|
|
405
|
-
!e || !s || (m(!0), $(!1), M("idle"),
|
|
406
|
-
p(f), S(f.title), W(f.content ?? ""),
|
|
405
|
+
!e || !s || (m(!0), $(!1), M("idle"), Er(s, a, i || "", l).then((f) => {
|
|
406
|
+
p(f), S(f.title), W(f.content ?? ""), E.current = f.id, ne.current = f.content ?? "", I.current = f.title, u == null || u(!!(f.content && f.content.trim()));
|
|
407
407
|
}).catch(() => {
|
|
408
408
|
p(null);
|
|
409
409
|
}).finally(() => m(!1)));
|
|
410
410
|
}, [e, s, a, i, l]);
|
|
411
411
|
const O = j(() => {
|
|
412
|
-
const f =
|
|
412
|
+
const f = E.current;
|
|
413
413
|
f != null && (M("saving"), Mr(
|
|
414
414
|
f,
|
|
415
415
|
{ title: I.current, content: ne.current },
|
|
@@ -473,7 +473,7 @@ function sl({
|
|
|
473
473
|
{
|
|
474
474
|
size: "small",
|
|
475
475
|
icon: /* @__PURE__ */ t(Za, {}),
|
|
476
|
-
loading:
|
|
476
|
+
loading: D,
|
|
477
477
|
onClick: x,
|
|
478
478
|
children: "分享"
|
|
479
479
|
}
|
|
@@ -888,7 +888,7 @@ function Il({
|
|
|
888
888
|
] })
|
|
889
889
|
] }) : /* @__PURE__ */ t(_a, { content: e, filePath: n });
|
|
890
890
|
}
|
|
891
|
-
const Al = "_renderTabs_mosi5_1", xl = "_tabBar_mosi5_8", Ll = "_tab_mosi5_8", Bl = "_active_mosi5_38", Rl = "_tabTitle_mosi5_46", Pl = "_closeBtn_mosi5_52", $l = "_tabContent_mosi5_66",
|
|
891
|
+
const Al = "_renderTabs_mosi5_1", xl = "_tabBar_mosi5_8", Ll = "_tab_mosi5_8", Bl = "_active_mosi5_38", Rl = "_tabTitle_mosi5_46", Pl = "_closeBtn_mosi5_52", $l = "_tabContent_mosi5_66", Dl = "_tabPane_mosi5_72", El = "_loading_mosi5_78", Ml = "_error_mosi5_79", Ol = "_htmlContent_mosi5_92", Fl = "_codeContent_mosi5_98", Hl = "_webideIframe_mosi5_111", ql = "_iframeContent_mosi5_119", tt = {
|
|
892
892
|
renderTabs: Al,
|
|
893
893
|
tabBar: xl,
|
|
894
894
|
tab: Ll,
|
|
@@ -896,8 +896,8 @@ const Al = "_renderTabs_mosi5_1", xl = "_tabBar_mosi5_8", Ll = "_tab_mosi5_8", B
|
|
|
896
896
|
tabTitle: Rl,
|
|
897
897
|
closeBtn: Pl,
|
|
898
898
|
tabContent: $l,
|
|
899
|
-
tabPane:
|
|
900
|
-
loading:
|
|
899
|
+
tabPane: Dl,
|
|
900
|
+
loading: El,
|
|
901
901
|
error: Ml,
|
|
902
902
|
htmlContent: Ol,
|
|
903
903
|
codeContent: Fl,
|
|
@@ -1452,7 +1452,7 @@ function Po({
|
|
|
1452
1452
|
}
|
|
1453
1453
|
);
|
|
1454
1454
|
}
|
|
1455
|
-
const lc = "_sidebarInner_1jis5_1", cc = "_timeDropdownOverlay_1jis5_57", dc = "_participantWrap_1jis5_101", uc = "_participantPanel_1jis5_110", mc = "_participantPanelLeft_1jis5_127", hc = "_participantPanelRight_1jis5_136", pc = "_participantSearchWrap_1jis5_143", gc = "_participantSearchBox_1jis5_148", _c = "_participantSearchInput_1jis5_152", fc = "_participantSearchIcon_1jis5_173", kc = "_participantSearchSpinner_1jis5_188", yc = "_participantList_1jis5_203", bc = "_participantListSearching_1jis5_211", vc = "_participantColHeader_1jis5_217", Nc = "_participantClearAll_1jis5_228", Tc = "_participantItem_1jis5_242", Cc = "_participantItemChecked_1jis5_257", Sc = "_participantItemName_1jis5_265", wc = "_participantItemAccount_1jis5_280", Ic = "_participantItemCheck_1jis5_257", Ac = "_participantSelectedItem_1jis5_298", xc = "_participantRemoveBtn_1jis5_312", Lc = "_participantEmpty_1jis5_338", Bc = "_fileSection_1jis5_387", Rc = "_navDivider_1jis5_394", Pc = "_listQueryBar_1jis5_403", $c = "_listQuerySpinner_1jis5_418",
|
|
1455
|
+
const lc = "_sidebarInner_1jis5_1", cc = "_timeDropdownOverlay_1jis5_57", dc = "_participantWrap_1jis5_101", uc = "_participantPanel_1jis5_110", mc = "_participantPanelLeft_1jis5_127", hc = "_participantPanelRight_1jis5_136", pc = "_participantSearchWrap_1jis5_143", gc = "_participantSearchBox_1jis5_148", _c = "_participantSearchInput_1jis5_152", fc = "_participantSearchIcon_1jis5_173", kc = "_participantSearchSpinner_1jis5_188", yc = "_participantList_1jis5_203", bc = "_participantListSearching_1jis5_211", vc = "_participantColHeader_1jis5_217", Nc = "_participantClearAll_1jis5_228", Tc = "_participantItem_1jis5_242", Cc = "_participantItemChecked_1jis5_257", Sc = "_participantItemName_1jis5_265", wc = "_participantItemAccount_1jis5_280", Ic = "_participantItemCheck_1jis5_257", Ac = "_participantSelectedItem_1jis5_298", xc = "_participantRemoveBtn_1jis5_312", Lc = "_participantEmpty_1jis5_338", Bc = "_fileSection_1jis5_387", Rc = "_navDivider_1jis5_394", Pc = "_listQueryBar_1jis5_403", $c = "_listQuerySpinner_1jis5_418", Dc = "_listQueryingContent_1jis5_429", Ec = "_fileItem_1jis5_435", Mc = "_moreBtn_1jis5_453", Oc = "_fileItemActive_1jis5_457", Fc = "_fileItemArchived_1jis5_462", Hc = "_fileItemIcon_1jis5_470", qc = "_iconStatusActive_1jis5_480", jc = "_iconStatusClosed_1jis5_484", Gc = "_iconStatusIdle_1jis5_488", Wc = "_fileItemName_1jis5_492", Uc = "_fileItemBadge_1jis5_499", Vc = "_forkBadge_1jis5_509", zc = "_treeArrow_1jis5_520", Jc = "_treeChildren_1jis5_555", Kc = "_emptyHint_1jis5_559", Qc = "_localLaneBlock_1jis5_566", Yc = "_localLaneHeader_1jis5_572", Xc = "_localLaneIcon_1jis5_581", Zc = "_localLaneTitle_1jis5_586", ed = "_localLaneBadge_1jis5_590", td = "_localLaneBadgeOn_1jis5_601", nd = "_localLaneNewBtn_1jis5_606", sd = "_contextMenu_1jis5_692", ad = "_contextMenuItem_1jis5_703", od = "_contextMenuItemDisabled_1jis5_718", id = "_contextMenuIcon_1jis5_728", rd = "_dialogOverlay_1jis5_736", ld = "_dialogBox_1jis5_746", cd = "_dialogTitle_1jis5_754", dd = "_dialogInput_1jis5_761", ud = "_dialogActions_1jis5_777", md = "_btnCancel_1jis5_784", hd = "_btnConfirm_1jis5_798", pd = "_skillPickerOverlay_1jis5_813", gd = "_skillPickerBox_1jis5_823", _d = "_skillPickerHeader_1jis5_835", fd = "_skillPickerTitle_1jis5_843", kd = "_skillPickerCount_1jis5_849", yd = "_skillPickerList_1jis5_854", bd = "_skillPickerGroup_1jis5_860", vd = "_skillPickerGroupLabel_1jis5_864", Nd = "_skillPickerItem_1jis5_873", Td = "_skillPickerItemActive_1jis5_886", Cd = "_skillPickerCheckbox_1jis5_890", Sd = "_skillPickerItemInfo_1jis5_898", wd = "_skillPickerItemName_1jis5_906", Id = "_skillPickerItemDesc_1jis5_915", Ad = "_skillPickerActions_1jis5_923", xd = "_groupHeader_1jis5_972", Ld = "_sectionHeader_1jis5_992", Bd = "_sectionIcon_1jis5_998", Rd = "_groupCount_1jis5_1003", Pd = "_groupGearBtn_1jis5_1008", $d = "_groupLabel_1jis5_1014", Dd = "_collapseColumnBtn_1jis5_1067", Ed = "_tagList_1jis5_1111", Md = "_iconBtn_1jis5_1119", Od = "_iconBtnReset_1jis5_1212", Fd = "_iconBtnResetActive_1jis5_1226", Hd = "_filterPopover_1jis5_1299", qd = "_filterSection_1jis5_1307", jd = "_filterSectionTitle_1jis5_1313", Gd = "_filterSectionRow_1jis5_1319", Wd = "_filterTimeOptions_1jis5_1325", Ud = "_filterTimeOption_1jis5_1325", Vd = "_filterTimeOptionActive_1jis5_1348", zd = "_iconChip_1jis5_1355", Jd = "_iconChipWithLabel_1jis5_1374", Kd = "_iconChipLabel_1jis5_1382", Qd = "_iconChipActive_1jis5_1400", Yd = "_iconChipSort_1jis5_1411", Xd = "_iconChipOrder_1jis5_1417", Zd = "_iconChipArrow_1jis5_1442", eu = "_refreshIconLoading_1jis5_1460", ue = {
|
|
1456
1456
|
sidebarInner: lc,
|
|
1457
1457
|
timeDropdownOverlay: cc,
|
|
1458
1458
|
participantWrap: dc,
|
|
@@ -1480,8 +1480,8 @@ const lc = "_sidebarInner_1jis5_1", cc = "_timeDropdownOverlay_1jis5_57", dc = "
|
|
|
1480
1480
|
navDivider: Rc,
|
|
1481
1481
|
listQueryBar: Pc,
|
|
1482
1482
|
listQuerySpinner: $c,
|
|
1483
|
-
listQueryingContent:
|
|
1484
|
-
fileItem:
|
|
1483
|
+
listQueryingContent: Dc,
|
|
1484
|
+
fileItem: Ec,
|
|
1485
1485
|
moreBtn: Mc,
|
|
1486
1486
|
fileItemActive: Oc,
|
|
1487
1487
|
fileItemArchived: Fc,
|
|
@@ -1534,8 +1534,8 @@ const lc = "_sidebarInner_1jis5_1", cc = "_timeDropdownOverlay_1jis5_57", dc = "
|
|
|
1534
1534
|
groupCount: Rd,
|
|
1535
1535
|
groupGearBtn: Pd,
|
|
1536
1536
|
groupLabel: $d,
|
|
1537
|
-
collapseColumnBtn:
|
|
1538
|
-
tagList:
|
|
1537
|
+
collapseColumnBtn: Dd,
|
|
1538
|
+
tagList: Ed,
|
|
1539
1539
|
iconBtn: Md,
|
|
1540
1540
|
iconBtnReset: Od,
|
|
1541
1541
|
iconBtnResetActive: Fd,
|
|
@@ -2089,7 +2089,7 @@ function ou(e) {
|
|
|
2089
2089
|
const { openDialog: n, openSkillPicker: s } = e, a = F((g) => g.currentUser), i = F((g) => g.currentProject), l = F((g) => g.isLocal), u = F((g) => g.deleteScenarioInstance), h = F((g) => g.forkScenarioInstance), m = F((g) => g.updateScenarioInstance), k = F((g) => g.deleteFile), p = F((g) => g.uploadFile), c = F((g) => g.uploadFolder), N = F((g) => g.downloadFile), A = F((g) => g.refreshAgentSkills), S = F((g) => g.refreshAllAgentSkills), y = F((g) => g.syncFromProduction), W = be(
|
|
2090
2090
|
() => po(a),
|
|
2091
2091
|
[a]
|
|
2092
|
-
), [R, $] = C(null), [J, M] = C({ x: 0, y: 0 }), [
|
|
2092
|
+
), [R, $] = C(null), [J, M] = C({ x: 0, y: 0 }), [D, w] = C(!1), v = Ne(null), E = Ne(null);
|
|
2093
2093
|
ie(() => {
|
|
2094
2094
|
if (!R) return;
|
|
2095
2095
|
const g = () => $(null), H = (f) => {
|
|
@@ -2106,7 +2106,7 @@ function ou(e) {
|
|
|
2106
2106
|
w(!1);
|
|
2107
2107
|
return;
|
|
2108
2108
|
}
|
|
2109
|
-
const g =
|
|
2109
|
+
const g = E.current;
|
|
2110
2110
|
if (!g) return;
|
|
2111
2111
|
const { width: H, height: f } = g.getBoundingClientRect(), G = 8;
|
|
2112
2112
|
let re = R.initialX, _e = R.initialY;
|
|
@@ -2330,12 +2330,12 @@ function ou(e) {
|
|
|
2330
2330
|
}, he = R && /* @__PURE__ */ t(
|
|
2331
2331
|
"div",
|
|
2332
2332
|
{
|
|
2333
|
-
ref:
|
|
2333
|
+
ref: E,
|
|
2334
2334
|
className: ue.contextMenu,
|
|
2335
2335
|
style: {
|
|
2336
2336
|
left: J.x,
|
|
2337
2337
|
top: J.y,
|
|
2338
|
-
visibility:
|
|
2338
|
+
visibility: D ? "visible" : "hidden"
|
|
2339
2339
|
},
|
|
2340
2340
|
onClick: (g) => g.stopPropagation(),
|
|
2341
2341
|
children: Y().map((g) => /* @__PURE__ */ r(
|
|
@@ -2413,22 +2413,22 @@ function fu(e) {
|
|
|
2413
2413
|
(A, S, y, W, R) => {
|
|
2414
2414
|
const $ = Array.isArray(A) ? A : [], J = R ?? 16;
|
|
2415
2415
|
return $.map((M) => {
|
|
2416
|
-
const
|
|
2416
|
+
const D = y ? `${y}/${M.name}` : M.name, w = W ? `${W.id}/${D}` : D, v = W ? `${W.id}/${D}` : D, E = h.has(w), ne = J + S * 20;
|
|
2417
2417
|
return /* @__PURE__ */ r("div", { children: [
|
|
2418
2418
|
/* @__PURE__ */ r(
|
|
2419
2419
|
"div",
|
|
2420
2420
|
{
|
|
2421
|
-
className: `${ue.fileItem} ${a ===
|
|
2421
|
+
className: `${ue.fileItem} ${a === D ? ue.fileItemActive : ""}`,
|
|
2422
2422
|
style: { paddingLeft: ne },
|
|
2423
2423
|
onClick: () => {
|
|
2424
|
-
M.is_dir ? c(w,
|
|
2424
|
+
M.is_dir ? c(w, D) : i(D);
|
|
2425
2425
|
},
|
|
2426
2426
|
onContextMenu: (I) => e(I, M.is_dir ? "dir" : "file", {
|
|
2427
2427
|
...M,
|
|
2428
|
-
path:
|
|
2428
|
+
path: D
|
|
2429
2429
|
}),
|
|
2430
2430
|
children: [
|
|
2431
|
-
M.is_dir && /* @__PURE__ */ t("span", { className: ue.treeArrow, children: Se.chevron(
|
|
2431
|
+
M.is_dir && /* @__PURE__ */ t("span", { className: ue.treeArrow, children: Se.chevron(E) }),
|
|
2432
2432
|
/* @__PURE__ */ t("span", { className: ue.fileItemIcon, children: M.is_dir ? Se.folder : Se.file }),
|
|
2433
2433
|
/* @__PURE__ */ t("span", { className: ue.fileItemName, children: M.name }),
|
|
2434
2434
|
M.created_by_agent && /* @__PURE__ */ t("span", { className: ue.fileItemBadge, children: "AI" }),
|
|
@@ -2442,7 +2442,7 @@ function fu(e) {
|
|
|
2442
2442
|
M.is_dir ? "dir" : "file",
|
|
2443
2443
|
{
|
|
2444
2444
|
...M,
|
|
2445
|
-
path:
|
|
2445
|
+
path: D
|
|
2446
2446
|
},
|
|
2447
2447
|
!0
|
|
2448
2448
|
);
|
|
@@ -2453,10 +2453,10 @@ function fu(e) {
|
|
|
2453
2453
|
]
|
|
2454
2454
|
}
|
|
2455
2455
|
),
|
|
2456
|
-
M.is_dir &&
|
|
2456
|
+
M.is_dir && E && /* @__PURE__ */ t("div", { children: l[v] && l[v].length > 0 ? N(
|
|
2457
2457
|
l[v],
|
|
2458
2458
|
S + 1,
|
|
2459
|
-
|
|
2459
|
+
D,
|
|
2460
2460
|
W,
|
|
2461
2461
|
R
|
|
2462
2462
|
) : l[v] ? /* @__PURE__ */ t(
|
|
@@ -2474,7 +2474,7 @@ function fu(e) {
|
|
|
2474
2474
|
children: "加载中..."
|
|
2475
2475
|
}
|
|
2476
2476
|
) })
|
|
2477
|
-
] },
|
|
2477
|
+
] }, D);
|
|
2478
2478
|
});
|
|
2479
2479
|
},
|
|
2480
2480
|
[
|
|
@@ -2514,7 +2514,7 @@ function bu() {
|
|
|
2514
2514
|
}, [e == null ? void 0 : e.id, i]), ie(() => {
|
|
2515
2515
|
W && k();
|
|
2516
2516
|
}, [W, k]);
|
|
2517
|
-
const
|
|
2517
|
+
const D = j(() => {
|
|
2518
2518
|
i("", !0);
|
|
2519
2519
|
}, [i]), w = j(
|
|
2520
2520
|
(I) => {
|
|
@@ -2532,7 +2532,7 @@ function bu() {
|
|
|
2532
2532
|
h,
|
|
2533
2533
|
m
|
|
2534
2534
|
]
|
|
2535
|
-
), v = S && S.type === "rename-project" ? "输入新项目名称" : S && S.type === "rename-file" ? "输入新文件名" : S && S.type === "new-file" ? "输入文件名" : "输入文件夹名",
|
|
2535
|
+
), v = S && S.type === "rename-project" ? "输入新项目名称" : S && S.type === "rename-file" ? "输入新文件名" : S && S.type === "new-file" ? "输入文件名" : "输入文件夹名", E = S && S.type === "rename-project" ? "重命名项目" : S && S.type === "rename-file" ? "重命名" : S && S.type === "new-file" ? "新建文件" : "新建文件夹", ne = S && S.type === "rename-file" && S.target || S && S.type === "rename-project" && S.target ? S.target.name : "";
|
|
2536
2536
|
return /* @__PURE__ */ r("div", { className: ot.root, children: [
|
|
2537
2537
|
/* @__PURE__ */ r("aside", { className: ot.treePane, children: [
|
|
2538
2538
|
/* @__PURE__ */ r("div", { className: ot.treeHeader, children: [
|
|
@@ -2558,7 +2558,7 @@ function bu() {
|
|
|
2558
2558
|
className: ot.treeRefreshBtn,
|
|
2559
2559
|
title: "刷新文件树",
|
|
2560
2560
|
disabled: !e,
|
|
2561
|
-
onClick:
|
|
2561
|
+
onClick: D,
|
|
2562
2562
|
children: Se.refresh
|
|
2563
2563
|
}
|
|
2564
2564
|
)
|
|
@@ -2574,7 +2574,7 @@ function bu() {
|
|
|
2574
2574
|
S && /* @__PURE__ */ t(
|
|
2575
2575
|
nu,
|
|
2576
2576
|
{
|
|
2577
|
-
title:
|
|
2577
|
+
title: E,
|
|
2578
2578
|
placeholder: v,
|
|
2579
2579
|
defaultValue: ne,
|
|
2580
2580
|
onSubmit: w,
|
|
@@ -2618,13 +2618,13 @@ function $o(e) {
|
|
|
2618
2618
|
return n ? { label: n, type: "" } : null;
|
|
2619
2619
|
}
|
|
2620
2620
|
}
|
|
2621
|
-
function
|
|
2621
|
+
function Do(e) {
|
|
2622
2622
|
const n = $o(xn(e, "from"));
|
|
2623
2623
|
if (n) return n;
|
|
2624
2624
|
const s = (e.createUser ?? e.create_user ?? "").trim();
|
|
2625
2625
|
return s ? { label: `👤 ${s}`, type: "human" } : null;
|
|
2626
2626
|
}
|
|
2627
|
-
function
|
|
2627
|
+
function Eo(e) {
|
|
2628
2628
|
return $o(xn(e, "to"));
|
|
2629
2629
|
}
|
|
2630
2630
|
function As(e) {
|
|
@@ -2639,7 +2639,7 @@ function As(e) {
|
|
|
2639
2639
|
}
|
|
2640
2640
|
function va(e, n) {
|
|
2641
2641
|
if (!n) return !1;
|
|
2642
|
-
const s =
|
|
2642
|
+
const s = Do(e), a = Eo(e), i = [xn(e, "from"), xn(e, "to")].filter(Boolean).join(" ");
|
|
2643
2643
|
return !!(s != null && s.label.includes(n) || a != null && a.label.includes(n) || i.includes(n));
|
|
2644
2644
|
}
|
|
2645
2645
|
function Tu(e) {
|
|
@@ -2660,7 +2660,7 @@ function Cu(e) {
|
|
|
2660
2660
|
}
|
|
2661
2661
|
return Oo(n) && !s ? ["retry"] : [];
|
|
2662
2662
|
}
|
|
2663
|
-
const Su = "_panel_h5gk4_1", wu = "_panelEmbedded_h5gk4_10", Iu = "_tabBar_h5gk4_18", Au = "_instanceRow_h5gk4_30", xu = "_instanceLabel_h5gk4_36", Lu = "_instanceTitleInline_h5gk4_46", Bu = "_foneRelatedInline_h5gk4_63", Ru = "_foneRelatedItem_h5gk4_75", Pu = "_tabs_h5gk4_89", $u = "_tab_h5gk4_18", Eu = "_tabActive_h5gk4_113", Du = "_tabObservation_h5gk4_119", Mu = "_chatToolbar_h5gk4_130", Ou = "_messages_h5gk4_143", Fu = "_scrollTopBtn_h5gk4_159", Hu = "_scrollTopBtnVisible_h5gk4_180", qu = "_loadingMore_h5gk4_198", ju = "_emptyChat_h5gk4_206", Gu = "_emptyChatIcon_h5gk4_217", Wu = "_emptyChatTitle_h5gk4_229", Uu = "_emptyChatText_h5gk4_234", Vu = "_emptyChatRoster_h5gk4_240", zu = "_emptyChatMember_h5gk4_248", Ju = "_emptyChatAvatar_h5gk4_257", Ku = "_emptyChatMemberName_h5gk4_269", Qu = "_emptyChatMemberRole_h5gk4_274", Yu = "_emptyMessages_h5gk4_280", Xu = "_msgOwn_h5gk4_289", Zu = "_msgOwnBubbleWrap_h5gk4_296", em = "_msgOwnBubble_h5gk4_296", tm = "_msgOther_h5gk4_319", nm = "_msgHumanBubble_h5gk4_326", sm = "_msgAgentAvatar_h5gk4_340", am = "_msgAgentName_h5gk4_354", om = "_msgAgentBody_h5gk4_361", im = "_taskBootstrapBody_h5gk4_370", rm = "_msgAgent_h5gk4_340", lm = "_msgAgentBubble_h5gk4_382", cm = "_msgOtherBubbleWrap_h5gk4_399", dm = "_msgAgentBubbleWrap_h5gk4_404", um = "_msgTurnTimeline_h5gk4_410", mm = "_msgSystem_h5gk4_419", hm = "_msgMeta_h5gk4_431", pm = "_msgTime_h5gk4_440", gm = "_modeBar_h5gk4_447", _m = "_toolToggleBtn_h5gk4_456", fm = "_toolToggleBtnActive_h5gk4_478", km = "_modeDropdown_h5gk4_487", ym = "_toolCollapsedSummary_h5gk4_493", bm = "_modeDropdownTrigger_h5gk4_504", vm = "_modeDropdownTriggerDisabled_h5gk4_523", Nm = "_modeIcon_h5gk4_531", Tm = "_modeIconSvg_h5gk4_538", Cm = "_modeArrow_h5gk4_545", Sm = "_modeDropdownMenu_h5gk4_551", wm = "_modeDropdownItem_h5gk4_564", Im = "_modeCheck_h5gk4_578", Am = "_modeDropdownItemActive_h5gk4_584", xm = "_cmdName_h5gk4_590", Lm = "_cmdDesc_h5gk4_596", Bm = "_inputArea_h5gk4_605", Rm = "_resizeHandle_h5gk4_626", Pm = "_resizeHandleActive_h5gk4_651", $m = "_input_h5gk4_605", Em = "_inputRoomy_h5gk4_680", Dm = "_composerInput_h5gk4_685", Mm = "_mentionOverlay_h5gk4_702", Om = "_mentionDropdown_h5gk4_707", Fm = "_mentionItem_h5gk4_721", Hm = "_mentionItemSelected_h5gk4_731", qm = "_mentionLabel_h5gk4_733", jm = "_observerBar_h5gk4_744", Gm = "_observerBarWorking_h5gk4_761", Wm = "_observerBarIdle_h5gk4_766", Um = "_observerIcon_h5gk4_771", Vm = "_observerTitle_h5gk4_776", zm = "_observerSteps_h5gk4_781", Jm = "_observerStep_h5gk4_781", Km = "_observerStepDone_h5gk4_797", Qm = "_observerStepActive_h5gk4_802", Ym = "_observerPulse_h5gk4_1", Xm = "_observerStepPending_h5gk4_807", Zm = "_observerThought_h5gk4_812", eh = "_observerTargets_h5gk4_822", th = "_statusBarWrap_h5gk4_839", nh = "_statusBar_h5gk4_839", sh = "_execArrow_h5gk4_863", ah = "_execList_h5gk4_870", oh = "_execItem_h5gk4_876", ih = "_execItemAvatar_h5gk4_886", rh = "_execItemAvatarSvg_h5gk4_893", lh = "_execItemName_h5gk4_905", ch = "_execItemStep_h5gk4_911", dh = "_execItemPreview_h5gk4_916", uh = "_execItemPending_h5gk4_926", mh = "_execStopBtn_h5gk4_936", hh = "_execIndicator_h5gk4_949", ph = "_execDot_h5gk4_955", gh = "_dotPulse_h5gk4_1", _h = "_reasoningBlock_h5gk4_973", fh = "_reasoningSummary_h5gk4_980", kh = "_reasoningContent_h5gk4_1002", yh = "_toolCallBlock_h5gk4_1015", bh = "_toolCallHeader_h5gk4_1023", vh = "_toolCallBody_h5gk4_1057", Nh = "_memoryCompressBlock_h5gk4_1078", Th = "_toolResultBlock_h5gk4_1090", Ch = "_toolResultHeader_h5gk4_1098", Sh = "_toolResultBody_h5gk4_1132", wh = "_toolGroupBlock_h5gk4_1155", Ih = "_toolGroupSummary_h5gk4_1162", Ah = "_toolGroupSummaryLive_h5gk4_1172", xh = "_toolGroupSummaryDone_h5gk4_1176", Lh = "_toolGroupSummaryFailed_h5gk4_1180", Bh = "_toolGroupStepCount_h5gk4_1184", Rh = "_toolGroupReasoning_h5gk4_1206", Ph = "_toolGroupReasoningLabel_h5gk4_1214", $h = "_toolGroupBody_h5gk4_1221", Eh = "_msgContent_h5gk4_1232", Dh = "_loadingBubble_h5gk4_1250", Mh = "_typingIndicator_h5gk4_1259", Oh = "_queuedLabel_h5gk4_1267", Fh = "_turnSummaryBubble_h5gk4_1273", Hh = "_turnSummaryInline_h5gk4_1283", qh = "_turnSummaryRefBtn_h5gk4_1294", jh = "_turnSummaryBody_h5gk4_1309", Gh = "_loadingDot_h5gk4_1323", Wh = "_loadingPulse_h5gk4_1", Uh = "_msgActions_h5gk4_1342", Vh = "_msgActionsPinned_h5gk4_1355", zh = "_msgActionsOther_h5gk4_1360", Jh = "_msgContentWrap_h5gk4_1371", Kh = "_msgContentCollapsed_h5gk4_1375", Qh = "_msgContentFade_h5gk4_1380", Yh = "_msgExpandBtn_h5gk4_1397", Xh = "_msgActionBtn_h5gk4_1412", Zh = "_msgActionBtnPromote_h5gk4_1434", ep = "_msgActionBtnStop_h5gk4_1443", tp = "_quoteBar_h5gk4_1453", np = "_quoteBarSender_h5gk4_1466", sp = "_quoteBarContent_h5gk4_1472", ap = "_quoteBarClose_h5gk4_1480", op = "_todoList_h5gk4_1551", ip = "_todoEmpty_h5gk4_1557", rp = "_todoRefreshBtn_h5gk4_1569", lp = "_todoCard_h5gk4_1581", cp = "_todoCardHeader_h5gk4_1592", dp = "_todoStatusDot_h5gk4_1598", up = "_todoStatusPending_h5gk4_1604", mp = "_todoStatusRunning_h5gk4_1605", hp = "_pulse_h5gk4_1", pp = "_todoStatusDone_h5gk4_1606", gp = "_todoStatusFailed_h5gk4_1607", _p = "_todoStatusCancelled_h5gk4_1608", fp = "_todoStatusSuspended_h5gk4_1609", kp = "_todoName_h5gk4_1611", yp = "_todoTag_h5gk4_1621", bp = "_todoTagPending_h5gk4_1628", vp = "_todoTagRunning_h5gk4_1629", Np = "_todoTagDone_h5gk4_1630", Tp = "_todoTagFailed_h5gk4_1631", Cp = "_todoCardMeta_h5gk4_1633", Sp = "_todoFrom_h5gk4_1643", wp = "_todoTime_h5gk4_1648", Ip = "_todoPanel_h5gk4_1652", Ap = "_tabTask_h5gk4_1661", xp = "_tabTaskName_h5gk4_1667", Lp = "_tabTaskClose_h5gk4_1673", Bp = "_taskChatPanel_h5gk4_1687", Rp = "_taskChatHeader_h5gk4_1695", Pp = "_taskChatIcon_h5gk4_1704", $p = "_taskChatTitle_h5gk4_1707", Ep = "_taskChatId_h5gk4_1715", Dp = "_taskProgressCard_h5gk4_1722", Mp = "_taskProgressHeader_h5gk4_1735", Op = "_taskProgressIcon_h5gk4_1741", Fp = "_taskProgressLabel_h5gk4_1744", Hp = "_taskProgressStatus_h5gk4_1749", qp = "_taskProgressText_h5gk4_1757", jp = "_taskProgressHint_h5gk4_1762", Gp = "_taskTag_h5gk4_1770", Wp = "_taskTagPending_h5gk4_1790", Up = "_taskTagRunning_h5gk4_1799", Vp = "_taskTagDone_h5gk4_1808", zp = "_taskTagFailed_h5gk4_1817", Jp = "_taskTagSuspended_h5gk4_1826", Kp = "_taskTagQuestion_h5gk4_1836", Qp = "_taskTagCancelled_h5gk4_1847", Yp = "_taskTagActions_h5gk4_1859", Xp = "_taskTagContinueBtn_h5gk4_1868", Zp = "_taskTagResetBtn_h5gk4_1869", eg = "_taskTagCompleteBtn_h5gk4_1870", tg = "_taskTagSuspendBtn_h5gk4_1871", ng = "_taskTagCancelBtn_h5gk4_1872", sg = "_contentTabPanel_h5gk4_1945", ag = "_todoListWrap_h5gk4_1955", og = "_todoHeader_h5gk4_1963", ig = "_todoHeaderTitle_h5gk4_1972", rg = "_todoSearchInput_h5gk4_1979", lg = "_todoScrollArea_h5gk4_1984", cg = "_todoGroup_h5gk4_1991", dg = "_todoGroupHeader_h5gk4_1995", ug = "_todoGroupTitle_h5gk4_2015", mg = "_todoGroupCount_h5gk4_2023", hg = "_todoScrollSentinel_h5gk4_2034", pg = "_todoLoadHint_h5gk4_2039", gg = "_thinkingPlaceholder_h5gk4_2047", _g = "_thinkingInline_h5gk4_2065", fg = "_taskTicker_h5gk4_2084", kg = "_taskTickerHeader_h5gk4_2094", yg = "_taskTickerLiveDot_h5gk4_2105", bg = "_taskTickerLivePulse_h5gk4_1", vg = "_taskTickerCount_h5gk4_2117", Ng = "_taskTickerBody_h5gk4_2126", Tg = "_taskTickerEmpty_h5gk4_2139", Cg = "_taskTickerPulse_h5gk4_2146", Sg = "_taskTickerPulseDot_h5gk4_1", wg = "_taskTickerItem_h5gk4_2157", Ig = "_taskTickerFadeIn_h5gk4_1", Ag = "_taskTickerItemLatest_h5gk4_2168", xg = "_taskTickerPop_h5gk4_1", Lg = "_taskTickerTime_h5gk4_2181", Bg = "_taskTickerSender_h5gk4_2186", Rg = "_taskTickerText_h5gk4_2192", Pg = "_taskTickerTerminal_h5gk4_2197", $g = "_humanAssistPanel_h5gk4_2205", Eg = "_humanAssistHeader_h5gk4_2216", Dg = "_humanAssistBadge_h5gk4_2223", Mg = "_humanAssistTitle_h5gk4_2231", Og = "_humanAssistAssignee_h5gk4_2236", Fg = "_humanAssistDesc_h5gk4_2240", Hg = "_humanAssistSubmit_h5gk4_2246", qg = "_humanAssistReadonlyHint_h5gk4_2249", jg = "_humanAssistLoadingShell_h5gk4_2255", Gg = "_humanAssistSkeletonField_h5gk4_2259", Wg = "_humanAssistSkeletonTextarea_h5gk4_2263", Ug = "_humanAssistSkeletonPulse_h5gk4_1", Vg = "_quoteBlock_h5gk4_2281", zg = "_quoteSender_h5gk4_2298", Jg = "_quotePreview_h5gk4_2307", Kg = "_msgHeaderRow_h5gk4_2317", Qg = "_msgAgentNameInline_h5gk4_2326", Yg = "_quoteInline_h5gk4_2333", Xg = "_quoteInlineSender_h5gk4_2350", Zg = "_quoteInlinePreview_h5gk4_2359", e_ = "_msgObserved_h5gk4_2368", t_ = "_cardFormBlock_h5gk4_2375", n_ = "_cardFormTitle_h5gk4_2382", s_ = "_cardFormDesc_h5gk4_2387", a_ = "_cardFormField_h5gk4_2392", o_ = "_cardFormRadio_h5gk4_2401", i_ = "_cardFormSubmit_h5gk4_2412", r_ = "_cardFormFieldLabel_h5gk4_2427", l_ = "_cardFormReadonlyOption_h5gk4_2435", c_ = "_cardFormReadonlyOptionSelected_h5gk4_2446", d_ = "_cardFormReadonlyRadio_h5gk4_2452", u_ = "_cardFormReadonlyLabel_h5gk4_2459", m_ = "_cardFormReadonlyValue_h5gk4_2463", h_ = "_cardFormReadonlyFooter_h5gk4_2473", p_ = "_taskLifecycleCard_h5gk4_2482", g_ = "_taskLifecycleHeader_h5gk4_2495", __ = "_taskLifecycleIcon_h5gk4_2509", f_ = "_taskLifecycleTitle_h5gk4_2514", k_ = "_taskLifecycleToggle_h5gk4_2519", y_ = "_taskLifecycleSummary_h5gk4_2526", b_ = "_taskLifecycleBody_h5gk4_2534", v_ = "_imagePreviewBar_h5gk4_2578", N_ = "_imagePreviewItem_h5gk4_2586", T_ = "_imagePreviewRemove_h5gk4_2602", C_ = "_imageUploadBtn_h5gk4_2629", S_ = "_sendBtn_h5gk4_2655", w_ = "_sendBtnIcon_h5gk4_2679", I_ = "_msgImages_h5gk4_2706", A_ = "_msgImageThumb_h5gk4_2713", x_ = "_imagePreviewOverlay_h5gk4_2735", L_ = "_imagePreviewFull_h5gk4_2749", B_ = "_todoGearBtn_h5gk4_2757", R_ = "_todoGearBtnActive_h5gk4_2786", P_ = "_todoGearBtnDanger_h5gk4_2791", $_ = "_noteBtnHasContent_h5gk4_2804", E_ = "_closeBtnActive_h5gk4_2815", D_ = "_closedBanner_h5gk4_2825", M_ = "_todoBadge_h5gk4_2838", O_ = "_todoHeaderActions_h5gk4_2858", F_ = "_moreActionsWrap_h5gk4_2868", H_ = "_forkPopoverAnchor_h5gk4_2887", q_ = "_headerActionBtn_h5gk4_2894", j_ = "_headerActionBtnActive_h5gk4_2920", G_ = "_headerActionBtnPrimary_h5gk4_2926", W_ = "_headerActionBtnClosed_h5gk4_2939", U_ = "_headerActionBadge_h5gk4_2951", V_ = "_settingsDrawer_h5gk4_2967", z_ = "_settingsDrawerClosed_h5gk4_2983", J_ = "_drawerHeader_h5gk4_2988", K_ = "_drawerBackBtn_h5gk4_2997", Q_ = "_drawerTitle_h5gk4_3017", Y_ = "_drawerBody_h5gk4_3023", X_ = "_drawerSection_h5gk4_3028", Z_ = "_drawerSectionTitle_h5gk4_3034", ef = "_drawerSectionBody_h5gk4_3042", tf = "_memberItem_h5gk4_3047", nf = "_memberAvatar_h5gk4_3058", sf = "_memberInfo_h5gk4_3070", af = "_memberName_h5gk4_3074", of = "_memberRoleTag_h5gk4_3082", rf = "_memberRoleAgent_h5gk4_3089", lf = "_memberRoleHuman_h5gk4_3093", cf = "_memberRoleOwner_h5gk4_3097", df = "_memberStatus_h5gk4_3101", uf = "_memberStatusOnline_h5gk4_3108", mf = "_memberStatusOffline_h5gk4_3111", hf = "_memberStatusDot_h5gk4_3114", pf = "_memberRemoveBtn_h5gk4_3128", gf = "_settingRow_h5gk4_3159", _f = "_settingLabel_h5gk4_3170", ff = "_settingDesc_h5gk4_3175", kf = "_settingValue_h5gk4_3180", yf = "_toggleSwitch_h5gk4_3191", bf = "_toggleSwitchOn_h5gk4_3203", vf = "_addMemberBtn_h5gk4_3223", Nf = "_addMemberIcon_h5gk4_3243", Tf = "_observerHistoryBtn_h5gk4_3250", Cf = "_observerTriggerBtn_h5gk4_3272", Sf = "_dispatchLogItem_h5gk4_3290", wf = "_dispatchLogHeader_h5gk4_3301", If = "_dispatchLogTargets_h5gk4_3309", Af = "_dispatchLogSender_h5gk4_3314", xf = "_dispatchLogDuration_h5gk4_3318", Lf = "_dispatchLogTime_h5gk4_3323", Bf = "_dispatchLogSummary_h5gk4_3329", Rf = "_dispatchLogDetail_h5gk4_3340", Pf = "_dispatchLogSection_h5gk4_3346", $f = "_dispatchLogSectionTitle_h5gk4_3351", Ef = "_dispatchLogSectionBody_h5gk4_3358", Df = "_dispatchLogPre_h5gk4_3364", Mf = "_readStatus_h5gk4_3380", Of = "_readStatusOwn_h5gk4_3387", Ff = "_readStatusToggle_h5gk4_3391", Hf = "_readStatusPopover_h5gk4_3405", qf = "_readStatusSection_h5gk4_3415", jf = "_readStatusSectionTitle_h5gk4_3421", Gf = "_readStatusSectionList_h5gk4_3429", Wf = "_readStatusMemberName_h5gk4_3435", Uf = "_closeFeedbackPopover_h5gk4_3444", Vf = "_closeWarningTip_h5gk4_3451", zf = "_closeFeedbackLabel_h5gk4_3461", Jf = "_closeFeedbackTags_h5gk4_3467", Kf = "_closeTagPositive_h5gk4_3480", Qf = "_closeTagNegative_h5gk4_3481", Yf = "_closeTagNeutral_h5gk4_3482", Xf = "_closeFeedbackInput_h5gk4_3559", Zf = "_closeFeedbackActions_h5gk4_3563", ek = "_learningProgressSection_h5gk4_3571", tk = "_learningProgressHeader_h5gk4_3578", nk = "_learningProgressTitle_h5gk4_3585", sk = "_learningProgressRate_h5gk4_3591", ak = "_learningStats_h5gk4_3597", ok = "_learningStatItem_h5gk4_3603", ik = "_learningStatNum_h5gk4_3609", rk = "_learningStatLabel_h5gk4_3615", lk = "_learningStatClickable_h5gk4_3620", ck = "_learningRecordsList_h5gk4_3630", dk = "_learningRecordHeader_h5gk4_3634", uk = "_learningRecordTitle_h5gk4_3641", mk = "_learningRecordBody_h5gk4_3649", hk = "_learningRecordField_h5gk4_3653", pk = "_learningRecordFieldLabel_h5gk4_3661", gk = "_learningRecordFieldValue_h5gk4_3669", _k = "_learningRecordMeta_h5gk4_3676", fk = "_learningPipelineSection_h5gk4_3687", kk = "_learningPipelineTitle_h5gk4_3692", yk = "_learningPipelineItem_h5gk4_3698", bk = "_learningPipelineHeader_h5gk4_3705", vk = "_learningPipelineArrow_h5gk4_3712", Nk = "_learningPipelineGroup_h5gk4_3717", Tk = "_learningPipelineGroupHeader_h5gk4_3720", Ck = "_learningPipelineGroupCount_h5gk4_3728", Sk = "_learningPipelineGroupHint_h5gk4_3733", wk = "_learningPipelineSummary_h5gk4_3742", Ik = "_learningPipelineConfidence_h5gk4_3750", Ak = "_learningPipelineBody_h5gk4_3755", xk = "_learningPipelineMeta_h5gk4_3761", Lk = "_learningPipelineActions_h5gk4_3770", Bk = "_learningPipelineTitleClickable_h5gk4_3775", Rk = "_learningPipelineRaw_h5gk4_3788", Pk = "_learningPipelineRawLabel_h5gk4_3795", $k = "_learningPipelineRawContent_h5gk4_3801", Ek = "_observerHistoryBtnActive_h5gk4_3812", o = {
|
|
2663
|
+
const Su = "_panel_h5gk4_1", wu = "_panelEmbedded_h5gk4_10", Iu = "_tabBar_h5gk4_18", Au = "_instanceRow_h5gk4_30", xu = "_instanceLabel_h5gk4_36", Lu = "_instanceTitleInline_h5gk4_46", Bu = "_foneRelatedInline_h5gk4_63", Ru = "_foneRelatedItem_h5gk4_75", Pu = "_tabs_h5gk4_89", $u = "_tab_h5gk4_18", Du = "_tabActive_h5gk4_113", Eu = "_tabObservation_h5gk4_119", Mu = "_chatToolbar_h5gk4_130", Ou = "_messages_h5gk4_143", Fu = "_scrollTopBtn_h5gk4_159", Hu = "_scrollTopBtnVisible_h5gk4_180", qu = "_loadingMore_h5gk4_198", ju = "_emptyChat_h5gk4_206", Gu = "_emptyChatIcon_h5gk4_217", Wu = "_emptyChatTitle_h5gk4_229", Uu = "_emptyChatText_h5gk4_234", Vu = "_emptyChatRoster_h5gk4_240", zu = "_emptyChatMember_h5gk4_248", Ju = "_emptyChatAvatar_h5gk4_257", Ku = "_emptyChatMemberName_h5gk4_269", Qu = "_emptyChatMemberRole_h5gk4_274", Yu = "_emptyMessages_h5gk4_280", Xu = "_msgOwn_h5gk4_289", Zu = "_msgOwnBubbleWrap_h5gk4_296", em = "_msgOwnBubble_h5gk4_296", tm = "_msgOther_h5gk4_319", nm = "_msgHumanBubble_h5gk4_326", sm = "_msgAgentAvatar_h5gk4_340", am = "_msgAgentName_h5gk4_354", om = "_msgAgentBody_h5gk4_361", im = "_taskBootstrapBody_h5gk4_370", rm = "_msgAgent_h5gk4_340", lm = "_msgAgentBubble_h5gk4_382", cm = "_msgOtherBubbleWrap_h5gk4_399", dm = "_msgAgentBubbleWrap_h5gk4_404", um = "_msgTurnTimeline_h5gk4_410", mm = "_msgSystem_h5gk4_419", hm = "_msgMeta_h5gk4_431", pm = "_msgTime_h5gk4_440", gm = "_modeBar_h5gk4_447", _m = "_toolToggleBtn_h5gk4_456", fm = "_toolToggleBtnActive_h5gk4_478", km = "_modeDropdown_h5gk4_487", ym = "_toolCollapsedSummary_h5gk4_493", bm = "_modeDropdownTrigger_h5gk4_504", vm = "_modeDropdownTriggerDisabled_h5gk4_523", Nm = "_modeIcon_h5gk4_531", Tm = "_modeIconSvg_h5gk4_538", Cm = "_modeArrow_h5gk4_545", Sm = "_modeDropdownMenu_h5gk4_551", wm = "_modeDropdownItem_h5gk4_564", Im = "_modeCheck_h5gk4_578", Am = "_modeDropdownItemActive_h5gk4_584", xm = "_cmdName_h5gk4_590", Lm = "_cmdDesc_h5gk4_596", Bm = "_inputArea_h5gk4_605", Rm = "_resizeHandle_h5gk4_626", Pm = "_resizeHandleActive_h5gk4_651", $m = "_input_h5gk4_605", Dm = "_inputRoomy_h5gk4_680", Em = "_composerInput_h5gk4_685", Mm = "_mentionOverlay_h5gk4_702", Om = "_mentionDropdown_h5gk4_707", Fm = "_mentionItem_h5gk4_721", Hm = "_mentionItemSelected_h5gk4_731", qm = "_mentionLabel_h5gk4_733", jm = "_observerBar_h5gk4_744", Gm = "_observerBarWorking_h5gk4_761", Wm = "_observerBarIdle_h5gk4_766", Um = "_observerIcon_h5gk4_771", Vm = "_observerTitle_h5gk4_776", zm = "_observerSteps_h5gk4_781", Jm = "_observerStep_h5gk4_781", Km = "_observerStepDone_h5gk4_797", Qm = "_observerStepActive_h5gk4_802", Ym = "_observerPulse_h5gk4_1", Xm = "_observerStepPending_h5gk4_807", Zm = "_observerThought_h5gk4_812", eh = "_observerTargets_h5gk4_822", th = "_statusBarWrap_h5gk4_839", nh = "_statusBar_h5gk4_839", sh = "_execArrow_h5gk4_863", ah = "_execList_h5gk4_870", oh = "_execItem_h5gk4_876", ih = "_execItemAvatar_h5gk4_886", rh = "_execItemAvatarSvg_h5gk4_893", lh = "_execItemName_h5gk4_905", ch = "_execItemStep_h5gk4_911", dh = "_execItemPreview_h5gk4_916", uh = "_execItemPending_h5gk4_926", mh = "_execStopBtn_h5gk4_936", hh = "_execIndicator_h5gk4_949", ph = "_execDot_h5gk4_955", gh = "_dotPulse_h5gk4_1", _h = "_reasoningBlock_h5gk4_973", fh = "_reasoningSummary_h5gk4_980", kh = "_reasoningContent_h5gk4_1002", yh = "_toolCallBlock_h5gk4_1015", bh = "_toolCallHeader_h5gk4_1023", vh = "_toolCallBody_h5gk4_1057", Nh = "_memoryCompressBlock_h5gk4_1078", Th = "_toolResultBlock_h5gk4_1090", Ch = "_toolResultHeader_h5gk4_1098", Sh = "_toolResultBody_h5gk4_1132", wh = "_toolGroupBlock_h5gk4_1155", Ih = "_toolGroupSummary_h5gk4_1162", Ah = "_toolGroupSummaryLive_h5gk4_1172", xh = "_toolGroupSummaryDone_h5gk4_1176", Lh = "_toolGroupSummaryFailed_h5gk4_1180", Bh = "_toolGroupStepCount_h5gk4_1184", Rh = "_toolGroupReasoning_h5gk4_1206", Ph = "_toolGroupReasoningLabel_h5gk4_1214", $h = "_toolGroupBody_h5gk4_1221", Dh = "_msgContent_h5gk4_1232", Eh = "_loadingBubble_h5gk4_1250", Mh = "_typingIndicator_h5gk4_1259", Oh = "_queuedLabel_h5gk4_1267", Fh = "_turnSummaryBubble_h5gk4_1273", Hh = "_turnSummaryInline_h5gk4_1283", qh = "_turnSummaryRefBtn_h5gk4_1294", jh = "_turnSummaryBody_h5gk4_1309", Gh = "_loadingDot_h5gk4_1323", Wh = "_loadingPulse_h5gk4_1", Uh = "_msgActions_h5gk4_1342", Vh = "_msgActionsPinned_h5gk4_1355", zh = "_msgActionsOther_h5gk4_1360", Jh = "_msgContentWrap_h5gk4_1371", Kh = "_msgContentCollapsed_h5gk4_1375", Qh = "_msgContentFade_h5gk4_1380", Yh = "_msgExpandBtn_h5gk4_1397", Xh = "_msgActionBtn_h5gk4_1412", Zh = "_msgActionBtnPromote_h5gk4_1434", ep = "_msgActionBtnStop_h5gk4_1443", tp = "_quoteBar_h5gk4_1453", np = "_quoteBarSender_h5gk4_1466", sp = "_quoteBarContent_h5gk4_1472", ap = "_quoteBarClose_h5gk4_1480", op = "_todoList_h5gk4_1551", ip = "_todoEmpty_h5gk4_1557", rp = "_todoRefreshBtn_h5gk4_1569", lp = "_todoCard_h5gk4_1581", cp = "_todoCardHeader_h5gk4_1592", dp = "_todoStatusDot_h5gk4_1598", up = "_todoStatusPending_h5gk4_1604", mp = "_todoStatusRunning_h5gk4_1605", hp = "_pulse_h5gk4_1", pp = "_todoStatusDone_h5gk4_1606", gp = "_todoStatusFailed_h5gk4_1607", _p = "_todoStatusCancelled_h5gk4_1608", fp = "_todoStatusSuspended_h5gk4_1609", kp = "_todoName_h5gk4_1611", yp = "_todoTag_h5gk4_1621", bp = "_todoTagPending_h5gk4_1628", vp = "_todoTagRunning_h5gk4_1629", Np = "_todoTagDone_h5gk4_1630", Tp = "_todoTagFailed_h5gk4_1631", Cp = "_todoCardMeta_h5gk4_1633", Sp = "_todoFrom_h5gk4_1643", wp = "_todoTime_h5gk4_1648", Ip = "_todoPanel_h5gk4_1652", Ap = "_tabTask_h5gk4_1661", xp = "_tabTaskName_h5gk4_1667", Lp = "_tabTaskClose_h5gk4_1673", Bp = "_taskChatPanel_h5gk4_1687", Rp = "_taskChatHeader_h5gk4_1695", Pp = "_taskChatIcon_h5gk4_1704", $p = "_taskChatTitle_h5gk4_1707", Dp = "_taskChatId_h5gk4_1715", Ep = "_taskProgressCard_h5gk4_1722", Mp = "_taskProgressHeader_h5gk4_1735", Op = "_taskProgressIcon_h5gk4_1741", Fp = "_taskProgressLabel_h5gk4_1744", Hp = "_taskProgressStatus_h5gk4_1749", qp = "_taskProgressText_h5gk4_1757", jp = "_taskProgressHint_h5gk4_1762", Gp = "_taskTag_h5gk4_1770", Wp = "_taskTagPending_h5gk4_1790", Up = "_taskTagRunning_h5gk4_1799", Vp = "_taskTagDone_h5gk4_1808", zp = "_taskTagFailed_h5gk4_1817", Jp = "_taskTagSuspended_h5gk4_1826", Kp = "_taskTagQuestion_h5gk4_1836", Qp = "_taskTagCancelled_h5gk4_1847", Yp = "_taskTagActions_h5gk4_1859", Xp = "_taskTagContinueBtn_h5gk4_1868", Zp = "_taskTagResetBtn_h5gk4_1869", eg = "_taskTagCompleteBtn_h5gk4_1870", tg = "_taskTagSuspendBtn_h5gk4_1871", ng = "_taskTagCancelBtn_h5gk4_1872", sg = "_contentTabPanel_h5gk4_1945", ag = "_todoListWrap_h5gk4_1955", og = "_todoHeader_h5gk4_1963", ig = "_todoHeaderTitle_h5gk4_1972", rg = "_todoSearchInput_h5gk4_1979", lg = "_todoScrollArea_h5gk4_1984", cg = "_todoGroup_h5gk4_1991", dg = "_todoGroupHeader_h5gk4_1995", ug = "_todoGroupTitle_h5gk4_2015", mg = "_todoGroupCount_h5gk4_2023", hg = "_todoScrollSentinel_h5gk4_2034", pg = "_todoLoadHint_h5gk4_2039", gg = "_thinkingPlaceholder_h5gk4_2047", _g = "_thinkingInline_h5gk4_2065", fg = "_taskTicker_h5gk4_2084", kg = "_taskTickerHeader_h5gk4_2094", yg = "_taskTickerLiveDot_h5gk4_2105", bg = "_taskTickerLivePulse_h5gk4_1", vg = "_taskTickerCount_h5gk4_2117", Ng = "_taskTickerBody_h5gk4_2126", Tg = "_taskTickerEmpty_h5gk4_2139", Cg = "_taskTickerPulse_h5gk4_2146", Sg = "_taskTickerPulseDot_h5gk4_1", wg = "_taskTickerItem_h5gk4_2157", Ig = "_taskTickerFadeIn_h5gk4_1", Ag = "_taskTickerItemLatest_h5gk4_2168", xg = "_taskTickerPop_h5gk4_1", Lg = "_taskTickerTime_h5gk4_2181", Bg = "_taskTickerSender_h5gk4_2186", Rg = "_taskTickerText_h5gk4_2192", Pg = "_taskTickerTerminal_h5gk4_2197", $g = "_humanAssistPanel_h5gk4_2205", Dg = "_humanAssistHeader_h5gk4_2216", Eg = "_humanAssistBadge_h5gk4_2223", Mg = "_humanAssistTitle_h5gk4_2231", Og = "_humanAssistAssignee_h5gk4_2236", Fg = "_humanAssistDesc_h5gk4_2240", Hg = "_humanAssistSubmit_h5gk4_2246", qg = "_humanAssistReadonlyHint_h5gk4_2249", jg = "_humanAssistLoadingShell_h5gk4_2255", Gg = "_humanAssistSkeletonField_h5gk4_2259", Wg = "_humanAssistSkeletonTextarea_h5gk4_2263", Ug = "_humanAssistSkeletonPulse_h5gk4_1", Vg = "_quoteBlock_h5gk4_2281", zg = "_quoteSender_h5gk4_2298", Jg = "_quotePreview_h5gk4_2307", Kg = "_msgHeaderRow_h5gk4_2317", Qg = "_msgAgentNameInline_h5gk4_2326", Yg = "_quoteInline_h5gk4_2333", Xg = "_quoteInlineSender_h5gk4_2350", Zg = "_quoteInlinePreview_h5gk4_2359", e_ = "_msgObserved_h5gk4_2368", t_ = "_cardFormBlock_h5gk4_2375", n_ = "_cardFormTitle_h5gk4_2382", s_ = "_cardFormDesc_h5gk4_2387", a_ = "_cardFormField_h5gk4_2392", o_ = "_cardFormRadio_h5gk4_2401", i_ = "_cardFormSubmit_h5gk4_2412", r_ = "_cardFormFieldLabel_h5gk4_2427", l_ = "_cardFormReadonlyOption_h5gk4_2435", c_ = "_cardFormReadonlyOptionSelected_h5gk4_2446", d_ = "_cardFormReadonlyRadio_h5gk4_2452", u_ = "_cardFormReadonlyLabel_h5gk4_2459", m_ = "_cardFormReadonlyValue_h5gk4_2463", h_ = "_cardFormReadonlyFooter_h5gk4_2473", p_ = "_taskLifecycleCard_h5gk4_2482", g_ = "_taskLifecycleHeader_h5gk4_2495", __ = "_taskLifecycleIcon_h5gk4_2509", f_ = "_taskLifecycleTitle_h5gk4_2514", k_ = "_taskLifecycleToggle_h5gk4_2519", y_ = "_taskLifecycleSummary_h5gk4_2526", b_ = "_taskLifecycleBody_h5gk4_2534", v_ = "_imagePreviewBar_h5gk4_2578", N_ = "_imagePreviewItem_h5gk4_2586", T_ = "_imagePreviewRemove_h5gk4_2602", C_ = "_imageUploadBtn_h5gk4_2629", S_ = "_sendBtn_h5gk4_2655", w_ = "_sendBtnIcon_h5gk4_2679", I_ = "_msgImages_h5gk4_2706", A_ = "_msgImageThumb_h5gk4_2713", x_ = "_imagePreviewOverlay_h5gk4_2735", L_ = "_imagePreviewFull_h5gk4_2749", B_ = "_todoGearBtn_h5gk4_2757", R_ = "_todoGearBtnActive_h5gk4_2786", P_ = "_todoGearBtnDanger_h5gk4_2791", $_ = "_noteBtnHasContent_h5gk4_2804", D_ = "_closeBtnActive_h5gk4_2815", E_ = "_closedBanner_h5gk4_2825", M_ = "_todoBadge_h5gk4_2838", O_ = "_todoHeaderActions_h5gk4_2858", F_ = "_moreActionsWrap_h5gk4_2868", H_ = "_forkPopoverAnchor_h5gk4_2887", q_ = "_headerActionBtn_h5gk4_2894", j_ = "_headerActionBtnActive_h5gk4_2920", G_ = "_headerActionBtnPrimary_h5gk4_2926", W_ = "_headerActionBtnClosed_h5gk4_2939", U_ = "_headerActionBadge_h5gk4_2951", V_ = "_settingsDrawer_h5gk4_2967", z_ = "_settingsDrawerClosed_h5gk4_2983", J_ = "_drawerHeader_h5gk4_2988", K_ = "_drawerBackBtn_h5gk4_2997", Q_ = "_drawerTitle_h5gk4_3017", Y_ = "_drawerBody_h5gk4_3023", X_ = "_drawerSection_h5gk4_3028", Z_ = "_drawerSectionTitle_h5gk4_3034", ef = "_drawerSectionBody_h5gk4_3042", tf = "_memberItem_h5gk4_3047", nf = "_memberAvatar_h5gk4_3058", sf = "_memberInfo_h5gk4_3070", af = "_memberName_h5gk4_3074", of = "_memberRoleTag_h5gk4_3082", rf = "_memberRoleAgent_h5gk4_3089", lf = "_memberRoleHuman_h5gk4_3093", cf = "_memberRoleOwner_h5gk4_3097", df = "_memberStatus_h5gk4_3101", uf = "_memberStatusOnline_h5gk4_3108", mf = "_memberStatusOffline_h5gk4_3111", hf = "_memberStatusDot_h5gk4_3114", pf = "_memberRemoveBtn_h5gk4_3128", gf = "_settingRow_h5gk4_3159", _f = "_settingLabel_h5gk4_3170", ff = "_settingDesc_h5gk4_3175", kf = "_settingValue_h5gk4_3180", yf = "_toggleSwitch_h5gk4_3191", bf = "_toggleSwitchOn_h5gk4_3203", vf = "_addMemberBtn_h5gk4_3223", Nf = "_addMemberIcon_h5gk4_3243", Tf = "_observerHistoryBtn_h5gk4_3250", Cf = "_observerTriggerBtn_h5gk4_3272", Sf = "_dispatchLogItem_h5gk4_3290", wf = "_dispatchLogHeader_h5gk4_3301", If = "_dispatchLogTargets_h5gk4_3309", Af = "_dispatchLogSender_h5gk4_3314", xf = "_dispatchLogDuration_h5gk4_3318", Lf = "_dispatchLogTime_h5gk4_3323", Bf = "_dispatchLogSummary_h5gk4_3329", Rf = "_dispatchLogDetail_h5gk4_3340", Pf = "_dispatchLogSection_h5gk4_3346", $f = "_dispatchLogSectionTitle_h5gk4_3351", Df = "_dispatchLogSectionBody_h5gk4_3358", Ef = "_dispatchLogPre_h5gk4_3364", Mf = "_readStatus_h5gk4_3380", Of = "_readStatusOwn_h5gk4_3387", Ff = "_readStatusToggle_h5gk4_3391", Hf = "_readStatusPopover_h5gk4_3405", qf = "_readStatusSection_h5gk4_3415", jf = "_readStatusSectionTitle_h5gk4_3421", Gf = "_readStatusSectionList_h5gk4_3429", Wf = "_readStatusMemberName_h5gk4_3435", Uf = "_closeFeedbackPopover_h5gk4_3444", Vf = "_closeWarningTip_h5gk4_3451", zf = "_closeFeedbackLabel_h5gk4_3461", Jf = "_closeFeedbackTags_h5gk4_3467", Kf = "_closeTagPositive_h5gk4_3480", Qf = "_closeTagNegative_h5gk4_3481", Yf = "_closeTagNeutral_h5gk4_3482", Xf = "_closeFeedbackInput_h5gk4_3559", Zf = "_closeFeedbackActions_h5gk4_3563", ek = "_learningProgressSection_h5gk4_3571", tk = "_learningProgressHeader_h5gk4_3578", nk = "_learningProgressTitle_h5gk4_3585", sk = "_learningProgressRate_h5gk4_3591", ak = "_learningStats_h5gk4_3597", ok = "_learningStatItem_h5gk4_3603", ik = "_learningStatNum_h5gk4_3609", rk = "_learningStatLabel_h5gk4_3615", lk = "_learningStatClickable_h5gk4_3620", ck = "_learningRecordsList_h5gk4_3630", dk = "_learningRecordHeader_h5gk4_3634", uk = "_learningRecordTitle_h5gk4_3641", mk = "_learningRecordBody_h5gk4_3649", hk = "_learningRecordField_h5gk4_3653", pk = "_learningRecordFieldLabel_h5gk4_3661", gk = "_learningRecordFieldValue_h5gk4_3669", _k = "_learningRecordMeta_h5gk4_3676", fk = "_learningPipelineSection_h5gk4_3687", kk = "_learningPipelineTitle_h5gk4_3692", yk = "_learningPipelineItem_h5gk4_3698", bk = "_learningPipelineHeader_h5gk4_3705", vk = "_learningPipelineArrow_h5gk4_3712", Nk = "_learningPipelineGroup_h5gk4_3717", Tk = "_learningPipelineGroupHeader_h5gk4_3720", Ck = "_learningPipelineGroupCount_h5gk4_3728", Sk = "_learningPipelineGroupHint_h5gk4_3733", wk = "_learningPipelineSummary_h5gk4_3742", Ik = "_learningPipelineConfidence_h5gk4_3750", Ak = "_learningPipelineBody_h5gk4_3755", xk = "_learningPipelineMeta_h5gk4_3761", Lk = "_learningPipelineActions_h5gk4_3770", Bk = "_learningPipelineTitleClickable_h5gk4_3775", Rk = "_learningPipelineRaw_h5gk4_3788", Pk = "_learningPipelineRawLabel_h5gk4_3795", $k = "_learningPipelineRawContent_h5gk4_3801", Dk = "_observerHistoryBtnActive_h5gk4_3812", o = {
|
|
2664
2664
|
panel: Su,
|
|
2665
2665
|
panelEmbedded: wu,
|
|
2666
2666
|
tabBar: Iu,
|
|
@@ -2671,8 +2671,8 @@ const Su = "_panel_h5gk4_1", wu = "_panelEmbedded_h5gk4_10", Iu = "_tabBar_h5gk4
|
|
|
2671
2671
|
foneRelatedItem: Ru,
|
|
2672
2672
|
tabs: Pu,
|
|
2673
2673
|
tab: $u,
|
|
2674
|
-
tabActive:
|
|
2675
|
-
tabObservation:
|
|
2674
|
+
tabActive: Du,
|
|
2675
|
+
tabObservation: Eu,
|
|
2676
2676
|
chatToolbar: Mu,
|
|
2677
2677
|
messages: Ou,
|
|
2678
2678
|
scrollTopBtn: Fu,
|
|
@@ -2725,8 +2725,8 @@ const Su = "_panel_h5gk4_1", wu = "_panelEmbedded_h5gk4_10", Iu = "_tabBar_h5gk4
|
|
|
2725
2725
|
resizeHandle: Rm,
|
|
2726
2726
|
resizeHandleActive: Pm,
|
|
2727
2727
|
input: $m,
|
|
2728
|
-
inputRoomy:
|
|
2729
|
-
composerInput:
|
|
2728
|
+
inputRoomy: Dm,
|
|
2729
|
+
composerInput: Em,
|
|
2730
2730
|
mentionOverlay: Mm,
|
|
2731
2731
|
mentionDropdown: Om,
|
|
2732
2732
|
mentionItem: Fm,
|
|
@@ -2779,8 +2779,8 @@ const Su = "_panel_h5gk4_1", wu = "_panelEmbedded_h5gk4_10", Iu = "_tabBar_h5gk4
|
|
|
2779
2779
|
toolGroupReasoning: Rh,
|
|
2780
2780
|
toolGroupReasoningLabel: Ph,
|
|
2781
2781
|
toolGroupBody: $h,
|
|
2782
|
-
msgContent:
|
|
2783
|
-
loadingBubble:
|
|
2782
|
+
msgContent: Dh,
|
|
2783
|
+
loadingBubble: Eh,
|
|
2784
2784
|
typingIndicator: Mh,
|
|
2785
2785
|
queuedLabel: Oh,
|
|
2786
2786
|
turnSummaryBubble: Fh,
|
|
@@ -2833,8 +2833,8 @@ const Su = "_panel_h5gk4_1", wu = "_panelEmbedded_h5gk4_10", Iu = "_tabBar_h5gk4
|
|
|
2833
2833
|
taskChatHeader: Rp,
|
|
2834
2834
|
taskChatIcon: Pp,
|
|
2835
2835
|
taskChatTitle: $p,
|
|
2836
|
-
taskChatId:
|
|
2837
|
-
taskProgressCard:
|
|
2836
|
+
taskChatId: Dp,
|
|
2837
|
+
taskProgressCard: Ep,
|
|
2838
2838
|
taskProgressHeader: Mp,
|
|
2839
2839
|
taskProgressIcon: Op,
|
|
2840
2840
|
taskProgressLabel: Fp,
|
|
@@ -2887,8 +2887,8 @@ const Su = "_panel_h5gk4_1", wu = "_panelEmbedded_h5gk4_10", Iu = "_tabBar_h5gk4
|
|
|
2887
2887
|
taskTickerText: Rg,
|
|
2888
2888
|
taskTickerTerminal: Pg,
|
|
2889
2889
|
humanAssistPanel: $g,
|
|
2890
|
-
humanAssistHeader:
|
|
2891
|
-
humanAssistBadge:
|
|
2890
|
+
humanAssistHeader: Dg,
|
|
2891
|
+
humanAssistBadge: Eg,
|
|
2892
2892
|
humanAssistTitle: Mg,
|
|
2893
2893
|
humanAssistAssignee: Og,
|
|
2894
2894
|
humanAssistDesc: Fg,
|
|
@@ -2941,8 +2941,8 @@ const Su = "_panel_h5gk4_1", wu = "_panelEmbedded_h5gk4_10", Iu = "_tabBar_h5gk4
|
|
|
2941
2941
|
todoGearBtnActive: R_,
|
|
2942
2942
|
todoGearBtnDanger: P_,
|
|
2943
2943
|
noteBtnHasContent: $_,
|
|
2944
|
-
closeBtnActive:
|
|
2945
|
-
closedBanner:
|
|
2944
|
+
closeBtnActive: D_,
|
|
2945
|
+
closedBanner: E_,
|
|
2946
2946
|
todoBadge: M_,
|
|
2947
2947
|
todoHeaderActions: O_,
|
|
2948
2948
|
moreActionsWrap: F_,
|
|
@@ -2994,8 +2994,8 @@ const Su = "_panel_h5gk4_1", wu = "_panelEmbedded_h5gk4_10", Iu = "_tabBar_h5gk4
|
|
|
2994
2994
|
dispatchLogDetail: Rf,
|
|
2995
2995
|
dispatchLogSection: Pf,
|
|
2996
2996
|
dispatchLogSectionTitle: $f,
|
|
2997
|
-
dispatchLogSectionBody:
|
|
2998
|
-
dispatchLogPre:
|
|
2997
|
+
dispatchLogSectionBody: Df,
|
|
2998
|
+
dispatchLogPre: Ef,
|
|
2999
2999
|
readStatus: Mf,
|
|
3000
3000
|
readStatusOwn: Of,
|
|
3001
3001
|
readStatusToggle: Ff,
|
|
@@ -3048,9 +3048,9 @@ const Su = "_panel_h5gk4_1", wu = "_panelEmbedded_h5gk4_10", Iu = "_tabBar_h5gk4
|
|
|
3048
3048
|
learningPipelineRaw: Rk,
|
|
3049
3049
|
learningPipelineRawLabel: Pk,
|
|
3050
3050
|
learningPipelineRawContent: $k,
|
|
3051
|
-
observerHistoryBtnActive:
|
|
3051
|
+
observerHistoryBtnActive: Dk
|
|
3052
3052
|
};
|
|
3053
|
-
function
|
|
3053
|
+
function Ek(e) {
|
|
3054
3054
|
return e ? e.includes("<svg") ? /* @__PURE__ */ t(
|
|
3055
3055
|
"span",
|
|
3056
3056
|
{
|
|
@@ -3078,7 +3078,7 @@ function Mk({
|
|
|
3078
3078
|
/* @__PURE__ */ t("span", { className: o.execArrow, children: n ? "▲" : "▼" })
|
|
3079
3079
|
] }),
|
|
3080
3080
|
n && /* @__PURE__ */ t("div", { className: o.execList, children: e.map((i) => /* @__PURE__ */ r("div", { className: o.execItem, children: [
|
|
3081
|
-
/* @__PURE__ */ t("span", { className: o.execItemAvatar, children:
|
|
3081
|
+
/* @__PURE__ */ t("span", { className: o.execItemAvatar, children: Ek(i.agentAvatar) }),
|
|
3082
3082
|
/* @__PURE__ */ t("span", { className: o.execItemName, children: i.agentName }),
|
|
3083
3083
|
/* @__PURE__ */ t("span", { className: o.execItemStep, children: i.stepName }),
|
|
3084
3084
|
(i.thoughtOutput || i.output) && /* @__PURE__ */ r(
|
|
@@ -3837,7 +3837,7 @@ function $y({
|
|
|
3837
3837
|
] });
|
|
3838
3838
|
}
|
|
3839
3839
|
const { Text: Ra } = Ut;
|
|
3840
|
-
function
|
|
3840
|
+
function Dy({
|
|
3841
3841
|
field: e,
|
|
3842
3842
|
value: n,
|
|
3843
3843
|
onChange: s,
|
|
@@ -3872,7 +3872,7 @@ function Ey({
|
|
|
3872
3872
|
] });
|
|
3873
3873
|
}
|
|
3874
3874
|
const { Text: Pa } = Ut;
|
|
3875
|
-
function
|
|
3875
|
+
function Ey({
|
|
3876
3876
|
field: e,
|
|
3877
3877
|
value: n = "",
|
|
3878
3878
|
onChange: s,
|
|
@@ -3905,7 +3905,7 @@ function zo({
|
|
|
3905
3905
|
}) {
|
|
3906
3906
|
if (e.type === "single_choice")
|
|
3907
3907
|
return /* @__PURE__ */ t(
|
|
3908
|
-
|
|
3908
|
+
Dy,
|
|
3909
3909
|
{
|
|
3910
3910
|
field: e,
|
|
3911
3911
|
value: typeof n == "string" ? n : void 0,
|
|
@@ -3938,7 +3938,7 @@ function zo({
|
|
|
3938
3938
|
);
|
|
3939
3939
|
}
|
|
3940
3940
|
return e.type === "text_input" ? /* @__PURE__ */ t(
|
|
3941
|
-
|
|
3941
|
+
Ey,
|
|
3942
3942
|
{
|
|
3943
3943
|
field: e,
|
|
3944
3944
|
value: typeof n == "string" ? n : "",
|
|
@@ -4021,8 +4021,8 @@ function Sn({
|
|
|
4021
4021
|
const w = Fy(l.fields);
|
|
4022
4022
|
if (l.value && gs(l.value))
|
|
4023
4023
|
for (const v of l.fields) {
|
|
4024
|
-
const
|
|
4025
|
-
|
|
4024
|
+
const E = l.value[v.name];
|
|
4025
|
+
E !== void 0 && (w[v.name] = Rs(v, E));
|
|
4026
4026
|
}
|
|
4027
4027
|
for (const v of l.fields)
|
|
4028
4028
|
v.type === "git_addresses" && (w[v.name] = Hy(v, w[v.name]));
|
|
@@ -4042,7 +4042,7 @@ function Sn({
|
|
|
4042
4042
|
} : null : null;
|
|
4043
4043
|
}, [l, A, N, p]), R = j(
|
|
4044
4044
|
(w, v) => {
|
|
4045
|
-
h((
|
|
4045
|
+
h((E) => ({ ...E, [w]: v }));
|
|
4046
4046
|
},
|
|
4047
4047
|
[]
|
|
4048
4048
|
), $ = j(async () => {
|
|
@@ -4054,19 +4054,19 @@ function Sn({
|
|
|
4054
4054
|
ze.warning(w);
|
|
4055
4055
|
return;
|
|
4056
4056
|
}
|
|
4057
|
-
const v = l.blockId || s,
|
|
4057
|
+
const v = l.blockId || s, E = qy(l.fields, u);
|
|
4058
4058
|
k(!0);
|
|
4059
4059
|
try {
|
|
4060
4060
|
const O = await ws(
|
|
4061
4061
|
e,
|
|
4062
4062
|
n,
|
|
4063
4063
|
v,
|
|
4064
|
-
|
|
4064
|
+
E
|
|
4065
4065
|
);
|
|
4066
4066
|
Bs(n), O && F.getState().addMessage(Jn(O));
|
|
4067
4067
|
const x = l.fields.find((Y) => Y.type === "git_addresses");
|
|
4068
4068
|
if ((ne = l.taskId) != null && ne.trim() && x) {
|
|
4069
|
-
const Y =
|
|
4069
|
+
const Y = E[x.name];
|
|
4070
4070
|
Array.isArray(Y) && Y.length > 0 && await oc({
|
|
4071
4071
|
taskId: l.taskId.trim(),
|
|
4072
4072
|
taskType: ((I = l.taskType) == null ? void 0 : I.trim()) || "design_proposal",
|
|
@@ -4074,7 +4074,7 @@ function Sn({
|
|
|
4074
4074
|
});
|
|
4075
4075
|
}
|
|
4076
4076
|
c({
|
|
4077
|
-
value:
|
|
4077
|
+
value: E,
|
|
4078
4078
|
submittedAt: "刚刚"
|
|
4079
4079
|
}), ze.success("已提交");
|
|
4080
4080
|
} catch (O) {
|
|
@@ -4088,7 +4088,7 @@ function Sn({
|
|
|
4088
4088
|
const w = a.trim();
|
|
4089
4089
|
return !w || w.startsWith("{") || w.startsWith("```") || _s(w) || /\[\[CARD_FORM:/i.test(w) ? /* @__PURE__ */ t(Oy, {}) : /* @__PURE__ */ t("div", { className: we.cardShell, children: /* @__PURE__ */ t(jt, { type: "secondary", children: "卡片表单数据无效" }) });
|
|
4090
4090
|
}
|
|
4091
|
-
const J = l.status === "expired" || l.status === "cancelled" || A, M = l.submitLabel || "确认",
|
|
4091
|
+
const J = l.status === "expired" || l.status === "cancelled" || A, M = l.submitLabel || "确认", D = A && gs(y);
|
|
4092
4092
|
return /* @__PURE__ */ r("div", { className: we.cardShell, children: [
|
|
4093
4093
|
/* @__PURE__ */ t("div", { className: we.cardTitle, children: l.title }),
|
|
4094
4094
|
l.description ? /* @__PURE__ */ t("div", { className: we.cardDescription, children: l.description }) : null,
|
|
@@ -4105,7 +4105,7 @@ function Sn({
|
|
|
4105
4105
|
}
|
|
4106
4106
|
) }, w.name)),
|
|
4107
4107
|
J ? null : /* @__PURE__ */ t("div", { className: we.submitRow, children: /* @__PURE__ */ t(rt, { type: "primary", loading: m, onClick: $, children: M }) }),
|
|
4108
|
-
|
|
4108
|
+
D && W ? /* @__PURE__ */ r("div", { className: we.submittedMeta, children: [
|
|
4109
4109
|
W.name ? `${W.name} ` : "",
|
|
4110
4110
|
"已于 ",
|
|
4111
4111
|
W.at,
|
|
@@ -4312,20 +4312,20 @@ function Kn({
|
|
|
4312
4312
|
const [u, h] = C(!1), [, m] = C(0);
|
|
4313
4313
|
ie(() => {
|
|
4314
4314
|
if (!s || !i) return;
|
|
4315
|
-
const
|
|
4316
|
-
return () => window.clearInterval(
|
|
4315
|
+
const D = window.setInterval(() => m((w) => w + 1), 1e3);
|
|
4316
|
+
return () => window.clearInterval(D);
|
|
4317
4317
|
}, [s, i]);
|
|
4318
4318
|
const k = e.name || "tool", p = Ib(e.input), c = Cb(k, e.input), N = c != null, A = (c == null ? void 0 : c.oldText) ?? "", S = (c == null ? void 0 : c.newText) ?? "", y = be(
|
|
4319
4319
|
() => N ? Sb(A, S) : null,
|
|
4320
4320
|
[N, A, S]
|
|
4321
|
-
), W = y ? y.filter((
|
|
4321
|
+
), W = y ? y.filter((D) => D.type === "add").length : 0, R = y ? y.filter((D) => D.type === "del").length : 0, $ = s && i ? Math.max(1, Math.round((Date.now() - i) / 1e3)) : null, J = n ? l ? /* @__PURE__ */ t(no, { className: Ae.toolIconFailed }) : /* @__PURE__ */ t(en, { className: Ae.toolIconDone }) : s ? /* @__PURE__ */ t(Si, { className: Ae.toolIconRunning }) : /* @__PURE__ */ t("span", { className: Ae.toolIconNoResult, children: "—" }), M = typeof e.input == "string" ? e.input : e.input != null ? JSON.stringify(e.input, null, 2) : "(无入参)";
|
|
4322
4322
|
return /* @__PURE__ */ r("div", { className: Ae.toolItem, children: [
|
|
4323
4323
|
/* @__PURE__ */ r(
|
|
4324
4324
|
"button",
|
|
4325
4325
|
{
|
|
4326
4326
|
type: "button",
|
|
4327
4327
|
className: Ae.toolHeader,
|
|
4328
|
-
onClick: () => h((
|
|
4328
|
+
onClick: () => h((D) => !D),
|
|
4329
4329
|
children: [
|
|
4330
4330
|
/* @__PURE__ */ t(un, { className: Ae.toolIcon }),
|
|
4331
4331
|
/* @__PURE__ */ t("span", { className: Ae.toolName, children: k }),
|
|
@@ -4517,7 +4517,7 @@ function $b(e) {
|
|
|
4517
4517
|
function Ko(e) {
|
|
4518
4518
|
return Ls(e.fields);
|
|
4519
4519
|
}
|
|
4520
|
-
function
|
|
4520
|
+
function Db(e) {
|
|
4521
4521
|
return e === fo ? "已提交" : e === ko ? "已取消" : e === yo ? "已失败" : null;
|
|
4522
4522
|
}
|
|
4523
4523
|
function Un(e) {
|
|
@@ -4532,7 +4532,7 @@ function Un(e) {
|
|
|
4532
4532
|
));
|
|
4533
4533
|
return s;
|
|
4534
4534
|
}
|
|
4535
|
-
function
|
|
4535
|
+
function Eb(e) {
|
|
4536
4536
|
return Object.values(e).some((n) => Array.isArray(n) ? n.length > 0 : typeof n == "string" && n.trim() !== "");
|
|
4537
4537
|
}
|
|
4538
4538
|
function Qo(e) {
|
|
@@ -4542,12 +4542,12 @@ function Qo(e) {
|
|
|
4542
4542
|
const n = e.humanTaskStatus;
|
|
4543
4543
|
return n === fo || n === ko || n === yo || ((s = e.cardForm) == null ? void 0 : s.status) === "submitted";
|
|
4544
4544
|
}
|
|
4545
|
-
function
|
|
4545
|
+
function Da(e, n) {
|
|
4546
4546
|
return !(e != null && e.humanTaskId) || !n ? !1 : Xi(go(e)) ? !0 : !(Qo(e) || e.pending === !1);
|
|
4547
4547
|
}
|
|
4548
4548
|
async function Mb(e, n) {
|
|
4549
4549
|
const s = _o(e) ?? e, a = Un(s);
|
|
4550
|
-
if (!Qo(s) ||
|
|
4550
|
+
if (!Qo(s) || Eb(a))
|
|
4551
4551
|
return s;
|
|
4552
4552
|
try {
|
|
4553
4553
|
const i = await Ns(s.humanTaskId ?? n);
|
|
@@ -4578,10 +4578,10 @@ const Ob = ({
|
|
|
4578
4578
|
), u = F((ee) => ee.addMessage), h = F((ee) => ee.bumpHumanAssistRevision), m = F((ee) => ee.requestChatScrollBottom), k = F((ee) => ee.taskActivitySettled[e]), [p, c] = C(
|
|
4579
4579
|
a != null && a.humanTaskId ? a : null
|
|
4580
4580
|
), [N, A] = C(
|
|
4581
|
-
() => !
|
|
4581
|
+
() => !Da(a, !0)
|
|
4582
4582
|
), [S, y] = C(
|
|
4583
4583
|
() => a != null && a.humanTaskId ? Un(a) : {}
|
|
4584
|
-
), [W, R] = C(!1), [$, J] = C(!1), M = Ne(!!(a != null && a.humanTaskId)),
|
|
4584
|
+
), [W, R] = C(!1), [$, J] = C(!1), M = Ne(!!(a != null && a.humanTaskId)), D = Ne(l), w = i ? Ie(i.id) : "", v = j(async () => {
|
|
4585
4585
|
A(!0);
|
|
4586
4586
|
try {
|
|
4587
4587
|
const ee = await Mb(
|
|
@@ -4595,9 +4595,9 @@ const Ob = ({
|
|
|
4595
4595
|
}
|
|
4596
4596
|
}, [e]);
|
|
4597
4597
|
ie(() => {
|
|
4598
|
-
if (
|
|
4598
|
+
if (Da(
|
|
4599
4599
|
a,
|
|
4600
|
-
l ===
|
|
4600
|
+
l === D.current
|
|
4601
4601
|
)) {
|
|
4602
4602
|
c(a), y(Un(a)), A(!1);
|
|
4603
4603
|
return;
|
|
@@ -4606,10 +4606,10 @@ const Ob = ({
|
|
|
4606
4606
|
}, [v, l, a]), ie(() => {
|
|
4607
4607
|
N || !p || M.current || (M.current = !0, m(s, !1));
|
|
4608
4608
|
}, [N, p, s, m]);
|
|
4609
|
-
const
|
|
4610
|
-
() =>
|
|
4611
|
-
[
|
|
4612
|
-
), I = (
|
|
4609
|
+
const E = p == null ? void 0 : p.cardForm, ne = be(
|
|
4610
|
+
() => E ? Ko(E) : [],
|
|
4611
|
+
[E]
|
|
4612
|
+
), I = (E == null ? void 0 : E.blockId) || (E == null ? void 0 : E.block_id) || "", O = Db(p == null ? void 0 : p.humanTaskStatus), x = $ || O !== null || (E == null ? void 0 : E.status) === "submitted", Y = (p == null ? void 0 : p.canSubmit) === !0, he = !!(p != null && p.humanTaskId) && !!E && ne.length > 0, g = j(
|
|
4613
4613
|
(ee, d) => {
|
|
4614
4614
|
y((P) => ({ ...P, [ee]: d }));
|
|
4615
4615
|
},
|
|
@@ -4684,7 +4684,7 @@ const Ob = ({
|
|
|
4684
4684
|
] }),
|
|
4685
4685
|
/* @__PURE__ */ t(ns, { type: "secondary", className: o.humanAssistReadonlyHint, children: O ?? "已处理" })
|
|
4686
4686
|
] }) : ss(e, k);
|
|
4687
|
-
const f = ((Le = p == null ? void 0 : p.assignee) == null ? void 0 : Le.name) || "被指派人", G = (
|
|
4687
|
+
const f = ((Le = p == null ? void 0 : p.assignee) == null ? void 0 : Le.name) || "被指派人", G = (E == null ? void 0 : E.title) || `待办 #${p == null ? void 0 : p.humanTaskId}`, re = (E == null ? void 0 : E.description) || (p == null ? void 0 : p.instruction) || "", _e = (E == null ? void 0 : E.submitLabel) || "提交并完成";
|
|
4688
4688
|
return /* @__PURE__ */ r("div", { className: o.humanAssistPanel, children: [
|
|
4689
4689
|
/* @__PURE__ */ r("div", { className: o.humanAssistHeader, children: [
|
|
4690
4690
|
/* @__PURE__ */ t("span", { className: o.humanAssistBadge, children: "人类待办" }),
|
|
@@ -4740,7 +4740,7 @@ const Ob = ({
|
|
|
4740
4740
|
}
|
|
4741
4741
|
) : /* @__PURE__ */ t(ns, { type: "secondary", className: o.humanAssistReadonlyHint, children: O ?? (x ? "已提交" : "待处理") })
|
|
4742
4742
|
] });
|
|
4743
|
-
}, Fb = it.memo(Ob), Hb = "_taskPanel_1p5df_1", qb = "_taskSplitLayout_1p5df_8", jb = "_taskListPane_1p5df_15", Gb = "_taskListPaneFull_1p5df_25", Wb = "_taskListPaneNarrow_1p5df_33", Ub = "_taskDetailPane_1p5df_41", Vb = "_taskDetailPaneOpen_1p5df_55", zb = "_taskDetailPanel_1p5df_62", Jb = "_taskDetailClose_1p5df_71", Kb = "_taskHeaderSpacer_1p5df_95", Qb = "_taskHeaderActions_1p5df_99", Yb = "_taskHeader_1p5df_95", Xb = "_taskHeaderFull_1p5df_117", Zb = "_taskHeaderTitle_1p5df_124", ev = "_taskListFull_1p5df_131", tv = "_headerActions_1p5df_135", nv = "_refreshBtn_1p5df_147", sv = "_filterChip_1p5df_167", av = "_filterChipActive_1p5df_189", ov = "_filterCount_1p5df_201", iv = "_taskList_1p5df_15", rv = "_taskEmpty_1p5df_222", lv = "_taskCardFull_1p5df_233", cv = "_taskCardCompact_1p5df_240", dv = "_taskCard_1p5df_233", uv = "_taskCardSelected_1p5df_265", mv = "_taskStatus_1p5df_271", hv = "_taskStatusPending_1p5df_278", pv = "_taskStatusRunning_1p5df_282", gv = "_taskStatusDone_1p5df_287", _v = "_taskStatusFailed_1p5df_291", fv = "_taskStatusSuspended_1p5df_295", kv = "_taskInfo_1p5df_309", yv = "_taskName_1p5df_314", bv = "_taskMeta_1p5df_333", vv = "_taskMembers_1p5df_343", Nv = "_taskMemberItem_1p5df_358", Tv = "_taskMemberLabel_1p5df_365", Cv = "_taskMemberValue_1p5df_371", Sv = "_taskMemberAgent_1p5df_379", wv = "_taskTag_1p5df_384", Iv = "_taskTagPending_1p5df_392", Av = "_taskTagRunning_1p5df_397", xv = "_taskTagDone_1p5df_402", Lv = "_taskTagFailed_1p5df_407", Bv = "_taskTagSuspended_1p5df_412", Rv = "_taskTime_1p5df_417", Pv = "_completeBtn_1p5df_424", $v = "_taskDetailFooter_1p5df_441",
|
|
4743
|
+
}, Fb = it.memo(Ob), Hb = "_taskPanel_1p5df_1", qb = "_taskSplitLayout_1p5df_8", jb = "_taskListPane_1p5df_15", Gb = "_taskListPaneFull_1p5df_25", Wb = "_taskListPaneNarrow_1p5df_33", Ub = "_taskDetailPane_1p5df_41", Vb = "_taskDetailPaneOpen_1p5df_55", zb = "_taskDetailPanel_1p5df_62", Jb = "_taskDetailClose_1p5df_71", Kb = "_taskHeaderSpacer_1p5df_95", Qb = "_taskHeaderActions_1p5df_99", Yb = "_taskHeader_1p5df_95", Xb = "_taskHeaderFull_1p5df_117", Zb = "_taskHeaderTitle_1p5df_124", ev = "_taskListFull_1p5df_131", tv = "_headerActions_1p5df_135", nv = "_refreshBtn_1p5df_147", sv = "_filterChip_1p5df_167", av = "_filterChipActive_1p5df_189", ov = "_filterCount_1p5df_201", iv = "_taskList_1p5df_15", rv = "_taskEmpty_1p5df_222", lv = "_taskCardFull_1p5df_233", cv = "_taskCardCompact_1p5df_240", dv = "_taskCard_1p5df_233", uv = "_taskCardSelected_1p5df_265", mv = "_taskStatus_1p5df_271", hv = "_taskStatusPending_1p5df_278", pv = "_taskStatusRunning_1p5df_282", gv = "_taskStatusDone_1p5df_287", _v = "_taskStatusFailed_1p5df_291", fv = "_taskStatusSuspended_1p5df_295", kv = "_taskInfo_1p5df_309", yv = "_taskName_1p5df_314", bv = "_taskMeta_1p5df_333", vv = "_taskMembers_1p5df_343", Nv = "_taskMemberItem_1p5df_358", Tv = "_taskMemberLabel_1p5df_365", Cv = "_taskMemberValue_1p5df_371", Sv = "_taskMemberAgent_1p5df_379", wv = "_taskTag_1p5df_384", Iv = "_taskTagPending_1p5df_392", Av = "_taskTagRunning_1p5df_397", xv = "_taskTagDone_1p5df_402", Lv = "_taskTagFailed_1p5df_407", Bv = "_taskTagSuspended_1p5df_412", Rv = "_taskTime_1p5df_417", Pv = "_completeBtn_1p5df_424", $v = "_taskDetailFooter_1p5df_441", Dv = "_taskCompleteBtn_1p5df_468", Ev = "_taskContinueBtn_1p5df_490", Mv = "_taskResetBtn_1p5df_512", Ov = "_taskSuspendBtn_1p5df_540", Fv = "_taskCancelBtn_1p5df_541", Hv = "_taskSessionLocked_1p5df_568", qv = "_taskTagCancelled_1p5df_577", jv = "_taskStatusCancelled_1p5df_582", Gv = "_taskLoading_1p5df_586", Wv = "_taskError_1p5df_595", Uv = "_taskContextBar_1p5df_641", Vv = "_taskContextInstruction_1p5df_651", zv = "_taskContextMeta_1p5df_659", Jv = "_taskContextFrom_1p5df_667", Kv = "_taskContextTo_1p5df_671", Qv = "_taskContextArrow_1p5df_675", Yv = "_taskContextToggle_1p5df_680", Xv = "_taskContextChevron_1p5df_693", Zv = "_taskContextPreview_1p5df_701", e1 = "_viewToggle_1p5df_712", t1 = "_viewToggleBtn_1p5df_721", n1 = "_viewToggleBtnActive_1p5df_746", s1 = "_treeExpandBtn_1p5df_758", a1 = "_treeExpandSpacer_1p5df_781", z = {
|
|
4744
4744
|
taskPanel: Hb,
|
|
4745
4745
|
taskSplitLayout: qb,
|
|
4746
4746
|
taskListPane: jb,
|
|
@@ -4790,8 +4790,8 @@ const Ob = ({
|
|
|
4790
4790
|
taskTime: Rv,
|
|
4791
4791
|
completeBtn: Pv,
|
|
4792
4792
|
taskDetailFooter: $v,
|
|
4793
|
-
taskCompleteBtn:
|
|
4794
|
-
taskContinueBtn:
|
|
4793
|
+
taskCompleteBtn: Dv,
|
|
4794
|
+
taskContinueBtn: Ev,
|
|
4795
4795
|
taskResetBtn: Mv,
|
|
4796
4796
|
taskSuspendBtn: Ov,
|
|
4797
4797
|
taskCancelBtn: Fv,
|
|
@@ -4814,7 +4814,7 @@ const Ob = ({
|
|
|
4814
4814
|
viewToggleBtnActive: n1,
|
|
4815
4815
|
treeExpandBtn: s1,
|
|
4816
4816
|
treeExpandSpacer: a1
|
|
4817
|
-
},
|
|
4817
|
+
}, Ea = [
|
|
4818
4818
|
"continue",
|
|
4819
4819
|
"reset",
|
|
4820
4820
|
"complete",
|
|
@@ -4831,17 +4831,17 @@ function Yo({
|
|
|
4831
4831
|
const [i, l] = C(null), u = F(
|
|
4832
4832
|
(M) => M.applyTaskExecutionSettled
|
|
4833
4833
|
), h = be(
|
|
4834
|
-
() => Cu(e).slice().sort((M,
|
|
4834
|
+
() => Cu(e).slice().sort((M, D) => Ea.indexOf(M) - Ea.indexOf(D)),
|
|
4835
4835
|
[e]
|
|
4836
4836
|
), m = j(
|
|
4837
|
-
async (M,
|
|
4837
|
+
async (M, D, w, v) => {
|
|
4838
4838
|
if (!i) {
|
|
4839
4839
|
l(M);
|
|
4840
4840
|
try {
|
|
4841
|
-
await
|
|
4842
|
-
} catch (
|
|
4841
|
+
await D(), Q(v), s == null || s({ status: w }), M === "cancel" ? u(e.id, "cancelled") : M === "suspend" ? u(e.id, "suspended") : M === "complete" && u(e.id, "complete"), (M === "complete" || M === "suspend" || M === "cancel") && await (a == null ? void 0 : a());
|
|
4842
|
+
} catch (E) {
|
|
4843
4843
|
Q(
|
|
4844
|
-
|
|
4844
|
+
E instanceof Error ? E.message : `${M} 操作失败`,
|
|
4845
4845
|
"error"
|
|
4846
4846
|
);
|
|
4847
4847
|
} finally {
|
|
@@ -5130,16 +5130,16 @@ function Ma({
|
|
|
5130
5130
|
const J = Ps(a, i);
|
|
5131
5131
|
p.current = !0, k(J), h(!0), Q("已提交");
|
|
5132
5132
|
try {
|
|
5133
|
-
const
|
|
5133
|
+
const D = await ws(
|
|
5134
5134
|
n,
|
|
5135
5135
|
s,
|
|
5136
5136
|
$,
|
|
5137
5137
|
J
|
|
5138
5138
|
);
|
|
5139
|
-
Bs(s),
|
|
5140
|
-
} catch (
|
|
5141
|
-
if (h(!1), k(null), !qe(
|
|
5142
|
-
const w =
|
|
5139
|
+
Bs(s), D && F.getState().addMessage(Jn(D));
|
|
5140
|
+
} catch (D) {
|
|
5141
|
+
if (h(!1), k(null), !qe(D)) {
|
|
5142
|
+
const w = D;
|
|
5143
5143
|
Q(w.userMessage || w.message || "提交失败", "error");
|
|
5144
5144
|
}
|
|
5145
5145
|
} finally {
|
|
@@ -5147,32 +5147,32 @@ function Ma({
|
|
|
5147
5147
|
}
|
|
5148
5148
|
}, y = (R, $) => {
|
|
5149
5149
|
const J = R.type === "single_choice" || R.type === "multi_choice" ? R.options || [] : [], M = N == null ? void 0 : N[R.name];
|
|
5150
|
-
return $ ? /* @__PURE__ */ t("div", { children: J.map((
|
|
5151
|
-
const w = M != null && (
|
|
5150
|
+
return $ ? /* @__PURE__ */ t("div", { children: J.map((D) => {
|
|
5151
|
+
const w = M != null && (D.id === M || D.label === M);
|
|
5152
5152
|
return /* @__PURE__ */ r(
|
|
5153
5153
|
"div",
|
|
5154
5154
|
{
|
|
5155
5155
|
className: o.cardFormReadonlyOption + (w ? " " + o.cardFormReadonlyOptionSelected : ""),
|
|
5156
5156
|
children: [
|
|
5157
5157
|
/* @__PURE__ */ t("span", { className: o.cardFormReadonlyRadio, children: w ? "●" : "○" }),
|
|
5158
|
-
/* @__PURE__ */ t("span", { className: o.cardFormReadonlyLabel, children:
|
|
5158
|
+
/* @__PURE__ */ t("span", { className: o.cardFormReadonlyLabel, children: D.label })
|
|
5159
5159
|
]
|
|
5160
5160
|
},
|
|
5161
|
-
|
|
5161
|
+
D.id
|
|
5162
5162
|
);
|
|
5163
|
-
}) }) : /* @__PURE__ */ t("div", { children: J.map((
|
|
5163
|
+
}) }) : /* @__PURE__ */ t("div", { children: J.map((D) => /* @__PURE__ */ r("label", { className: o.cardFormRadio, children: [
|
|
5164
5164
|
/* @__PURE__ */ t(
|
|
5165
5165
|
"input",
|
|
5166
5166
|
{
|
|
5167
5167
|
type: "radio",
|
|
5168
5168
|
name: R.name,
|
|
5169
|
-
value:
|
|
5170
|
-
checked: i[R.name] ===
|
|
5171
|
-
onChange: () => A(R.name,
|
|
5169
|
+
value: D.id,
|
|
5170
|
+
checked: i[R.name] === D.id,
|
|
5171
|
+
onChange: () => A(R.name, D.id)
|
|
5172
5172
|
}
|
|
5173
5173
|
),
|
|
5174
|
-
|
|
5175
|
-
] },
|
|
5174
|
+
D.label
|
|
5175
|
+
] }, D.id)) });
|
|
5176
5176
|
};
|
|
5177
5177
|
if (u || c) {
|
|
5178
5178
|
const R = ((W = e.submittedBy) == null ? void 0 : W.name) || "用户";
|
|
@@ -5641,17 +5641,17 @@ const f1 = it.memo(
|
|
|
5641
5641
|
hasStructuredBlocks: !1,
|
|
5642
5642
|
plain: ((B = U[0]) == null ? void 0 : B.text) ?? n.content
|
|
5643
5643
|
};
|
|
5644
|
-
}, [n.id, n.content, n.sender_type]),
|
|
5644
|
+
}, [n.id, n.content, n.sender_type]), D = be(
|
|
5645
5645
|
() => or(n, i),
|
|
5646
5646
|
[n, i]
|
|
5647
|
-
), w = n.sender_type === "AGENT", v = w,
|
|
5647
|
+
), w = n.sender_type === "AGENT", v = w, E = F((U) => U.openAgentProfile), ne = F((U) => U.humanAssistCards), I = (() => {
|
|
5648
5648
|
if (!w) return null;
|
|
5649
5649
|
const U = i.find(
|
|
5650
5650
|
(se) => se.member_type === "AGENT" && se.id === n.sender_id
|
|
5651
5651
|
);
|
|
5652
5652
|
if (U != null && U.agent_info) return U.agent_info;
|
|
5653
5653
|
const K = i.find(
|
|
5654
|
-
(se) => se.member_type === "AGENT" && se.display_name ===
|
|
5654
|
+
(se) => se.member_type === "AGENT" && se.display_name === D
|
|
5655
5655
|
);
|
|
5656
5656
|
return (K == null ? void 0 : K.agent_info) ?? null;
|
|
5657
5657
|
})();
|
|
@@ -5713,16 +5713,16 @@ const f1 = it.memo(
|
|
|
5713
5713
|
{
|
|
5714
5714
|
className: o.msgAgentAvatar,
|
|
5715
5715
|
style: {
|
|
5716
|
-
background: Rt(
|
|
5716
|
+
background: Rt(D),
|
|
5717
5717
|
cursor: I ? "pointer" : "default"
|
|
5718
5718
|
},
|
|
5719
|
-
onClick: () => I &&
|
|
5720
|
-
children: Bt(
|
|
5719
|
+
onClick: () => I && E(I),
|
|
5720
|
+
children: Bt(D)
|
|
5721
5721
|
}
|
|
5722
5722
|
),
|
|
5723
5723
|
/* @__PURE__ */ r("div", { children: [
|
|
5724
5724
|
/* @__PURE__ */ r("div", { className: o.msgHeaderRow, children: [
|
|
5725
|
-
/* @__PURE__ */ t("span", { className: o.msgAgentNameInline, children:
|
|
5725
|
+
/* @__PURE__ */ t("span", { className: o.msgAgentNameInline, children: D }),
|
|
5726
5726
|
/* @__PURE__ */ t("span", { className: o.msgTime, children: s(n.created_at) }),
|
|
5727
5727
|
/* @__PURE__ */ t(
|
|
5728
5728
|
Hn,
|
|
@@ -5881,16 +5881,16 @@ const f1 = it.memo(
|
|
|
5881
5881
|
{
|
|
5882
5882
|
className: o.msgAgentAvatar,
|
|
5883
5883
|
style: {
|
|
5884
|
-
background: Rt(
|
|
5884
|
+
background: Rt(D),
|
|
5885
5885
|
cursor: I ? "pointer" : "default"
|
|
5886
5886
|
},
|
|
5887
|
-
onClick: () => I &&
|
|
5888
|
-
children: Bt(
|
|
5887
|
+
onClick: () => I && E(I),
|
|
5888
|
+
children: Bt(D)
|
|
5889
5889
|
}
|
|
5890
5890
|
),
|
|
5891
5891
|
/* @__PURE__ */ r("div", { children: [
|
|
5892
5892
|
/* @__PURE__ */ r("div", { className: o.msgHeaderRow, children: [
|
|
5893
|
-
/* @__PURE__ */ t("span", { className: o.msgAgentNameInline, children:
|
|
5893
|
+
/* @__PURE__ */ t("span", { className: o.msgAgentNameInline, children: D }),
|
|
5894
5894
|
/* @__PURE__ */ t("span", { className: o.msgTime, children: s(n.created_at) }),
|
|
5895
5895
|
/* @__PURE__ */ t(
|
|
5896
5896
|
Hn,
|
|
@@ -6025,15 +6025,15 @@ const f1 = it.memo(
|
|
|
6025
6025
|
{
|
|
6026
6026
|
className: o.msgAgentAvatar,
|
|
6027
6027
|
style: {
|
|
6028
|
-
background: Rt(
|
|
6028
|
+
background: Rt(D),
|
|
6029
6029
|
cursor: I ? "pointer" : "default"
|
|
6030
6030
|
},
|
|
6031
|
-
onClick: () => I &&
|
|
6032
|
-
children: Bt(
|
|
6031
|
+
onClick: () => I && E(I),
|
|
6032
|
+
children: Bt(D)
|
|
6033
6033
|
}
|
|
6034
6034
|
),
|
|
6035
6035
|
/* @__PURE__ */ r("div", { children: [
|
|
6036
|
-
/* @__PURE__ */ t("div", { className: o.msgAgentName, children:
|
|
6036
|
+
/* @__PURE__ */ t("div", { className: o.msgAgentName, children: D }),
|
|
6037
6037
|
/* @__PURE__ */ t(g1, { msg: n, formatTime: s })
|
|
6038
6038
|
] }),
|
|
6039
6039
|
/* @__PURE__ */ t("div", { className: o.msgActionsOther, children: /* @__PURE__ */ r(
|
|
@@ -6100,17 +6100,17 @@ const f1 = it.memo(
|
|
|
6100
6100
|
{
|
|
6101
6101
|
className: o.msgAgentAvatar,
|
|
6102
6102
|
style: {
|
|
6103
|
-
background: Rt(
|
|
6103
|
+
background: Rt(D),
|
|
6104
6104
|
cursor: I ? "pointer" : "default"
|
|
6105
6105
|
},
|
|
6106
|
-
onClick: () => I &&
|
|
6107
|
-
children: Bt(
|
|
6106
|
+
onClick: () => I && E(I),
|
|
6107
|
+
children: Bt(D)
|
|
6108
6108
|
}
|
|
6109
6109
|
),
|
|
6110
6110
|
/* @__PURE__ */ r("div", { children: [
|
|
6111
6111
|
/* @__PURE__ */ r("div", { className: o.msgHeaderRow, children: [
|
|
6112
|
-
w && /* @__PURE__ */ t("span", { className: o.msgAgentNameInline, children:
|
|
6113
|
-
!w &&
|
|
6112
|
+
w && /* @__PURE__ */ t("span", { className: o.msgAgentNameInline, children: D }),
|
|
6113
|
+
!w && D ? /* @__PURE__ */ t("span", { children: D }) : null,
|
|
6114
6114
|
/* @__PURE__ */ t("span", { className: o.msgTime, children: s(n.created_at) }),
|
|
6115
6115
|
/* @__PURE__ */ t(
|
|
6116
6116
|
Hn,
|
|
@@ -6526,11 +6526,11 @@ const f1 = it.memo(
|
|
|
6526
6526
|
{
|
|
6527
6527
|
className: o.msgAgentAvatar,
|
|
6528
6528
|
style: {
|
|
6529
|
-
background: Rt(
|
|
6529
|
+
background: Rt(D),
|
|
6530
6530
|
cursor: I ? "pointer" : "default"
|
|
6531
6531
|
},
|
|
6532
|
-
onClick: () => I &&
|
|
6533
|
-
children: Bt(
|
|
6532
|
+
onClick: () => I && E(I),
|
|
6533
|
+
children: Bt(D)
|
|
6534
6534
|
}
|
|
6535
6535
|
),
|
|
6536
6536
|
/* @__PURE__ */ r(
|
|
@@ -6539,8 +6539,8 @@ const f1 = it.memo(
|
|
|
6539
6539
|
className: a ? o.msgOwnBubbleWrap : n.sender_type === "AGENT" ? o.msgAgentBubbleWrap : o.msgOtherBubbleWrap,
|
|
6540
6540
|
children: [
|
|
6541
6541
|
/* @__PURE__ */ r("div", { className: o.msgHeaderRow, children: [
|
|
6542
|
-
w && /* @__PURE__ */ t("span", { className: o.msgAgentNameInline, children:
|
|
6543
|
-
!w &&
|
|
6542
|
+
w && /* @__PURE__ */ t("span", { className: o.msgAgentNameInline, children: D }),
|
|
6543
|
+
!w && D ? /* @__PURE__ */ t("span", { children: D }) : null,
|
|
6544
6544
|
/* @__PURE__ */ t("span", { className: o.msgTime, children: s(n.created_at) }),
|
|
6545
6545
|
/* @__PURE__ */ t(
|
|
6546
6546
|
Hn,
|
|
@@ -6736,7 +6736,7 @@ function y1({
|
|
|
6736
6736
|
c(!1);
|
|
6737
6737
|
}
|
|
6738
6738
|
}
|
|
6739
|
-
}, [a == null ? void 0 : a.id]),
|
|
6739
|
+
}, [a == null ? void 0 : a.id]), D = j(
|
|
6740
6740
|
async (f) => {
|
|
6741
6741
|
if (a != null && a.id) {
|
|
6742
6742
|
R(!0), y(null);
|
|
@@ -6781,7 +6781,7 @@ function y1({
|
|
|
6781
6781
|
$ ? "观察中..." : "主动观察"
|
|
6782
6782
|
]
|
|
6783
6783
|
}
|
|
6784
|
-
),
|
|
6784
|
+
), E = /* @__PURE__ */ t(
|
|
6785
6785
|
zn,
|
|
6786
6786
|
{
|
|
6787
6787
|
title: e === !0 ? "收起全部消息" : "展开全部消息",
|
|
@@ -6828,7 +6828,7 @@ function y1({
|
|
|
6828
6828
|
"div",
|
|
6829
6829
|
{
|
|
6830
6830
|
className: o.dispatchLogItem,
|
|
6831
|
-
onClick: () =>
|
|
6831
|
+
onClick: () => D(f.id),
|
|
6832
6832
|
children: [
|
|
6833
6833
|
/* @__PURE__ */ r("div", { className: o.dispatchLogHeader, children: [
|
|
6834
6834
|
/* @__PURE__ */ t(ct, { color: G.color, children: G.text }),
|
|
@@ -6875,7 +6875,7 @@ function y1({
|
|
|
6875
6875
|
/* @__PURE__ */ t("span", { className: o.observerTitle, children: "观察者就绪" }),
|
|
6876
6876
|
v,
|
|
6877
6877
|
ne,
|
|
6878
|
-
|
|
6878
|
+
E
|
|
6879
6879
|
]
|
|
6880
6880
|
}
|
|
6881
6881
|
),
|
|
@@ -6909,7 +6909,7 @@ function y1({
|
|
|
6909
6909
|
g && g.length > 0 && H ? /* @__PURE__ */ t("span", { className: o.observerTargets, children: "→ " + g.map((f) => f.target).join(", ") }) : null,
|
|
6910
6910
|
v,
|
|
6911
6911
|
ne,
|
|
6912
|
-
|
|
6912
|
+
E
|
|
6913
6913
|
]
|
|
6914
6914
|
}
|
|
6915
6915
|
),
|
|
@@ -6954,7 +6954,7 @@ function ja(e) {
|
|
|
6954
6954
|
return e;
|
|
6955
6955
|
}
|
|
6956
6956
|
}
|
|
6957
|
-
const
|
|
6957
|
+
const Ds = it.memo(function({
|
|
6958
6958
|
kind: n,
|
|
6959
6959
|
messages: s,
|
|
6960
6960
|
visible: a,
|
|
@@ -6975,10 +6975,10 @@ const Es = it.memo(function({
|
|
|
6975
6975
|
onEditDraft: $,
|
|
6976
6976
|
onWithdraw: J,
|
|
6977
6977
|
footer: M,
|
|
6978
|
-
scrollBottomTick:
|
|
6978
|
+
scrollBottomTick: D = 0,
|
|
6979
6979
|
anchorKey: w = 0,
|
|
6980
6980
|
hideToolCalls: v = !1,
|
|
6981
|
-
forceExpandAll:
|
|
6981
|
+
forceExpandAll: E = null,
|
|
6982
6982
|
onToggleExpandAll: ne
|
|
6983
6983
|
}) {
|
|
6984
6984
|
const I = Ne(null), O = Ne(null), x = Ne(null), Y = Ne(null), he = Ne(!1), g = Ne(!1), H = Ne(null), [f, G] = C(!1), [re, _e] = C(!1), Le = s[s.length - 1], ee = Le ? `${Le.id}:${Le.content.length}` : "0", d = j((B) => {
|
|
@@ -7016,7 +7016,7 @@ const Es = it.memo(function({
|
|
|
7016
7016
|
window.clearTimeout(B), Y.current != null && (cancelAnimationFrame(Y.current), Y.current = null);
|
|
7017
7017
|
};
|
|
7018
7018
|
}, [a, w, d]), ie(() => {
|
|
7019
|
-
if (!a ||
|
|
7019
|
+
if (!a || D <= 0)
|
|
7020
7020
|
return;
|
|
7021
7021
|
G(!1), g.current = !1, d(!0);
|
|
7022
7022
|
const B = window.setTimeout(() => {
|
|
@@ -7025,7 +7025,7 @@ const Es = it.memo(function({
|
|
|
7025
7025
|
return () => {
|
|
7026
7026
|
window.clearTimeout(B);
|
|
7027
7027
|
};
|
|
7028
|
-
}, [
|
|
7028
|
+
}, [D, a, d]), ie(() => {
|
|
7029
7029
|
if (a && !g.current)
|
|
7030
7030
|
return d(!1), () => {
|
|
7031
7031
|
Y.current != null && (cancelAnimationFrame(Y.current), Y.current = null);
|
|
@@ -7196,7 +7196,7 @@ const Es = it.memo(function({
|
|
|
7196
7196
|
attachedSummary: ge,
|
|
7197
7197
|
allMessages: s,
|
|
7198
7198
|
hideToolCalls: v,
|
|
7199
|
-
forceExpandAll:
|
|
7199
|
+
forceExpandAll: E,
|
|
7200
7200
|
channelKind: n
|
|
7201
7201
|
}
|
|
7202
7202
|
) }, B.id);
|
|
@@ -7230,7 +7230,7 @@ const Es = it.memo(function({
|
|
|
7230
7230
|
/* @__PURE__ */ t(
|
|
7231
7231
|
y1,
|
|
7232
7232
|
{
|
|
7233
|
-
forceExpandAll:
|
|
7233
|
+
forceExpandAll: E === !0,
|
|
7234
7234
|
onToggleExpandAll: ne
|
|
7235
7235
|
}
|
|
7236
7236
|
),
|
|
@@ -7280,10 +7280,10 @@ const Ga = 40, N1 = 480, T1 = 640, C1 = 0.6, S1 = it.forwardRef(function({
|
|
|
7280
7280
|
}, h) {
|
|
7281
7281
|
const m = Is(), k = F((_) => _.members), p = F((_) => _.skills), c = F((_) => _.currentProject), N = F((_) => _.currentUser), A = F((_) => _.messages), S = F(
|
|
7282
7282
|
(_) => _.markPendingTeamChatContent
|
|
7283
|
-
), y = F((_) => _.sendTeamMessage), W = F((_) => _.loadMembers), R = F((_) => _.clearTeamMessages), $ = F((_) => _.sendTaskChatMessage), J = F((_) => _.activeTaskChat), M = F((_) => _.taskMessages),
|
|
7283
|
+
), y = F((_) => _.sendTeamMessage), W = F((_) => _.loadMembers), R = F((_) => _.clearTeamMessages), $ = F((_) => _.sendTaskChatMessage), J = F((_) => _.activeTaskChat), M = F((_) => _.taskMessages), D = be(
|
|
7284
7284
|
() => Cs(k, N) ?? null,
|
|
7285
7285
|
[N, k]
|
|
7286
|
-
), w = a === "task" ? M : A, { navigateUp: v, navigateDown:
|
|
7286
|
+
), w = a === "task" ? M : A, { navigateUp: v, navigateDown: E, resetHistory: ne, isNavigating: I } = v1(w, D, N, k, a), [O, x] = C(""), [Y, he] = C(!1), g = Ne(!1), H = Ne(0), [f, G] = C({ show: !1, query: "", cursor: 0, selectedIndex: 0 }), [re, _e] = C(!1), [Le, ee] = C(!1), [d, P] = C("dispatch");
|
|
7287
7287
|
ie(() => {
|
|
7288
7288
|
const _ = c == null ? void 0 : c.id;
|
|
7289
7289
|
if (!_) return;
|
|
@@ -7345,8 +7345,8 @@ const Ga = 40, N1 = 480, T1 = 640, C1 = 0.6, S1 = it.forwardRef(function({
|
|
|
7345
7345
|
return de.observe(_), () => de.disconnect();
|
|
7346
7346
|
}, [Pt, i]);
|
|
7347
7347
|
const gn = j((_) => {
|
|
7348
|
-
var Ce,
|
|
7349
|
-
const ae = ((
|
|
7348
|
+
var Ce, Ee;
|
|
7349
|
+
const ae = ((Ee = (Ce = Be.current) == null ? void 0 : Ce.parentElement) == null ? void 0 : Ee.clientHeight) ?? 0, de = ae > 0 ? Math.round(ae * C1) : N1, le = Math.max(
|
|
7350
7350
|
Ga,
|
|
7351
7351
|
Math.min(T1, de)
|
|
7352
7352
|
);
|
|
@@ -7359,13 +7359,13 @@ const Ga = 40, N1 = 480, T1 = 640, C1 = 0.6, S1 = it.forwardRef(function({
|
|
|
7359
7359
|
const de = _.clientY, le = ae.offsetHeight, Ce = (nt) => {
|
|
7360
7360
|
const vt = gn(le + (de - nt.clientY));
|
|
7361
7361
|
yt.current = vt, kt(vt);
|
|
7362
|
-
},
|
|
7362
|
+
}, Ee = () => {
|
|
7363
7363
|
document.removeEventListener("mousemove", Ce), document.removeEventListener("mouseup", Ve), document.body.style.cursor = "", document.body.style.userSelect = "", At.current = null;
|
|
7364
7364
|
};
|
|
7365
7365
|
function Ve() {
|
|
7366
|
-
|
|
7366
|
+
Ee(), Rn(!1);
|
|
7367
7367
|
}
|
|
7368
|
-
document.addEventListener("mousemove", Ce), document.addEventListener("mouseup", Ve), At.current =
|
|
7368
|
+
document.addEventListener("mousemove", Ce), document.addEventListener("mouseup", Ve), At.current = Ee, document.body.style.cursor = "row-resize", document.body.style.userSelect = "none", Rn(!0);
|
|
7369
7369
|
},
|
|
7370
7370
|
[gn]
|
|
7371
7371
|
), Pn = j(() => {
|
|
@@ -7409,12 +7409,12 @@ const Ga = 40, N1 = 480, T1 = 640, C1 = 0.6, S1 = it.forwardRef(function({
|
|
|
7409
7409
|
if (!f.query) return !0;
|
|
7410
7410
|
const ae = _.display_name.toLowerCase(), de = ((Ce = (le = _.agent_info) == null ? void 0 : le.name) == null ? void 0 : Ce.toLowerCase()) ?? "";
|
|
7411
7411
|
return ae.includes(f.query) || de.includes(f.query);
|
|
7412
|
-
}) : [], [f.show, f.query, k]), $t = be(() => f.show ? p.filter((_) => f.query ? _.name.toLowerCase().includes(f.query) : !0) : [], [f.show, f.query, p]),
|
|
7412
|
+
}) : [], [f.show, f.query, k]), $t = be(() => f.show ? p.filter((_) => f.query ? _.name.toLowerCase().includes(f.query) : !0) : [], [f.show, f.query, p]), Dt = j(
|
|
7413
7413
|
(_, ae, de) => {
|
|
7414
7414
|
var le;
|
|
7415
7415
|
x((Ce) => {
|
|
7416
|
-
const
|
|
7417
|
-
return
|
|
7416
|
+
const Ee = Ce.slice(0, f.cursor), Ve = Ce.slice(f.cursor);
|
|
7417
|
+
return Ee.replace(/@[^@\s]*$/, `@${de} `) + Ve;
|
|
7418
7418
|
}), G({ show: !1, query: "", cursor: 0, selectedIndex: 0 }), (le = Ye.current) == null || le.focus();
|
|
7419
7419
|
},
|
|
7420
7420
|
[f.cursor]
|
|
@@ -7437,16 +7437,16 @@ const Ga = 40, N1 = 480, T1 = 640, C1 = 0.6, S1 = it.forwardRef(function({
|
|
|
7437
7437
|
if (!ae) return;
|
|
7438
7438
|
const de = [];
|
|
7439
7439
|
for (let Ce = 0; Ce < ae.length; Ce++) {
|
|
7440
|
-
const
|
|
7441
|
-
if (
|
|
7442
|
-
const Ve =
|
|
7440
|
+
const Ee = ae[Ce];
|
|
7441
|
+
if (Ee.type.startsWith("image/")) {
|
|
7442
|
+
const Ve = Ee.getAsFile();
|
|
7443
7443
|
Ve && de.push(Ve);
|
|
7444
7444
|
}
|
|
7445
7445
|
}
|
|
7446
7446
|
de.length > 0 && (_.preventDefault(), ve((Ce) => [...Ce, ...de]));
|
|
7447
7447
|
}, []), Xn = j((_) => {
|
|
7448
7448
|
ve((ae) => ae.filter((de, le) => le !== _));
|
|
7449
|
-
}, []),
|
|
7449
|
+
}, []), Et = j(async () => {
|
|
7450
7450
|
var yn;
|
|
7451
7451
|
const _ = O.trim();
|
|
7452
7452
|
if (!_ && Z.length === 0 || !c) return;
|
|
@@ -7481,14 +7481,14 @@ const Ga = 40, N1 = 480, T1 = 640, C1 = 0.6, S1 = it.forwardRef(function({
|
|
|
7481
7481
|
}
|
|
7482
7482
|
return;
|
|
7483
7483
|
}
|
|
7484
|
-
const Ce = _.match(/@(.+?)($|\s)/),
|
|
7484
|
+
const Ce = _.match(/@(.+?)($|\s)/), Ee = (Ce == null ? void 0 : Ce[1]) ?? "", Ve = k.find(
|
|
7485
7485
|
(Oe) => {
|
|
7486
7486
|
var xt;
|
|
7487
|
-
return Oe.member_type === "AGENT" && (((xt = Oe.agent_info) == null ? void 0 : xt.name) ===
|
|
7487
|
+
return Oe.member_type === "AGENT" && (((xt = Oe.agent_info) == null ? void 0 : xt.name) === Ee || Oe.display_name === Ee);
|
|
7488
7488
|
}
|
|
7489
7489
|
), nt = k.find(
|
|
7490
|
-
(Oe) => Oe.member_type === "HUMAN" && Oe.display_name ===
|
|
7491
|
-
), vt = p.find((Oe) => Oe.name ===
|
|
7490
|
+
(Oe) => Oe.member_type === "HUMAN" && Oe.display_name === Ee
|
|
7491
|
+
), vt = p.find((Oe) => Oe.name === Ee);
|
|
7492
7492
|
S(ae), x(""), ve([]), ne(), s();
|
|
7493
7493
|
try {
|
|
7494
7494
|
const Oe = {
|
|
@@ -7557,16 +7557,16 @@ const Ga = 40, N1 = 480, T1 = 640, C1 = 0.6, S1 = it.forwardRef(function({
|
|
|
7557
7557
|
_.preventDefault();
|
|
7558
7558
|
const le = de[f.selectedIndex];
|
|
7559
7559
|
if (le) {
|
|
7560
|
-
const Ce = mt.includes(le),
|
|
7561
|
-
|
|
7560
|
+
const Ce = mt.includes(le), Ee = Ce ? le.member_type === "AGENT" ? ((ae = le.agent_info) == null ? void 0 : ae.name) ?? le.display_name : le.display_name : le.name, Ve = le.ref_id ?? String(le.id);
|
|
7561
|
+
Dt(
|
|
7562
7562
|
Ce ? le.member_type === "AGENT" ? "agent" : "human" : "skill",
|
|
7563
7563
|
Ve,
|
|
7564
|
-
|
|
7564
|
+
Ee
|
|
7565
7565
|
);
|
|
7566
7566
|
}
|
|
7567
7567
|
} else _.key === "Escape" && (_.preventDefault(), G({ show: !1, query: "", cursor: 0, selectedIndex: 0 }));
|
|
7568
7568
|
} else if (Co(_, m.sendKey) && !$n(_))
|
|
7569
|
-
_.preventDefault(), ne(),
|
|
7569
|
+
_.preventDefault(), ne(), Et();
|
|
7570
7570
|
else if (_.key === "ArrowUp") {
|
|
7571
7571
|
const de = _.currentTarget, le = de.selectionStart === 0 && de.selectionEnd === 0;
|
|
7572
7572
|
if (I() || le) {
|
|
@@ -7576,8 +7576,8 @@ const Ga = 40, N1 = 480, T1 = 640, C1 = 0.6, S1 = it.forwardRef(function({
|
|
|
7576
7576
|
} else if (_.key === "ArrowDown") {
|
|
7577
7577
|
const de = _.currentTarget, le = O.length, Ce = de.selectionStart === le && de.selectionEnd === le;
|
|
7578
7578
|
if (I() || Ce) {
|
|
7579
|
-
const
|
|
7580
|
-
|
|
7579
|
+
const Ee = E();
|
|
7580
|
+
Ee !== null && (_.preventDefault(), x(Ee));
|
|
7581
7581
|
}
|
|
7582
7582
|
}
|
|
7583
7583
|
},
|
|
@@ -7586,12 +7586,12 @@ const Ga = 40, N1 = 480, T1 = 640, C1 = 0.6, S1 = it.forwardRef(function({
|
|
|
7586
7586
|
f.selectedIndex,
|
|
7587
7587
|
mt,
|
|
7588
7588
|
$t,
|
|
7589
|
-
Et,
|
|
7590
7589
|
Dt,
|
|
7590
|
+
Et,
|
|
7591
7591
|
O,
|
|
7592
7592
|
Y,
|
|
7593
7593
|
v,
|
|
7594
|
-
|
|
7594
|
+
E,
|
|
7595
7595
|
ne,
|
|
7596
7596
|
I,
|
|
7597
7597
|
m.sendKey
|
|
@@ -8109,7 +8109,7 @@ const Ga = 40, N1 = 480, T1 = 640, C1 = 0.6, S1 = it.forwardRef(function({
|
|
|
8109
8109
|
{
|
|
8110
8110
|
type: "button",
|
|
8111
8111
|
className: o.sendBtn,
|
|
8112
|
-
onClick: () => void
|
|
8112
|
+
onClick: () => void Et(),
|
|
8113
8113
|
disabled: !O.trim() && Z.length === 0 || U,
|
|
8114
8114
|
title: "发送(Enter)",
|
|
8115
8115
|
children: [
|
|
@@ -8178,9 +8178,9 @@ const Ga = 40, N1 = 480, T1 = 640, C1 = 0.6, S1 = it.forwardRef(function({
|
|
|
8178
8178
|
"data-mention-index": ae,
|
|
8179
8179
|
className: `${o.mentionItem} ${de ? o.mentionItemSelected : ""}`,
|
|
8180
8180
|
onClick: () => {
|
|
8181
|
-
var
|
|
8182
|
-
const Ce = _.member_type === "AGENT" ? ((
|
|
8183
|
-
|
|
8181
|
+
var Ee;
|
|
8182
|
+
const Ce = _.member_type === "AGENT" ? ((Ee = _.agent_info) == null ? void 0 : Ee.name) ?? _.display_name : _.display_name;
|
|
8183
|
+
Dt(
|
|
8184
8184
|
_.member_type === "AGENT" ? "agent" : "human",
|
|
8185
8185
|
_.ref_id,
|
|
8186
8186
|
Ce
|
|
@@ -8231,7 +8231,7 @@ const Ga = 40, N1 = 480, T1 = 640, C1 = 0.6, S1 = it.forwardRef(function({
|
|
|
8231
8231
|
{
|
|
8232
8232
|
"data-mention-index": de,
|
|
8233
8233
|
className: `${o.mentionItem} ${le ? o.mentionItemSelected : ""}`,
|
|
8234
|
-
onClick: () =>
|
|
8234
|
+
onClick: () => Dt("skill", _.id, _.name),
|
|
8235
8235
|
onMouseEnter: () => G((Ce) => ({
|
|
8236
8236
|
...Ce,
|
|
8237
8237
|
selectedIndex: de
|
|
@@ -8339,7 +8339,7 @@ function I1({
|
|
|
8339
8339
|
taskHasMoreMessages: O.taskHasMoreMessages,
|
|
8340
8340
|
loadTaskMessages: O.loadTaskMessages
|
|
8341
8341
|
}))
|
|
8342
|
-
), [S, y] = C(!1), [W, R] = C(null), [$, J] = C(null), M = j(() => R(null), []),
|
|
8342
|
+
), [S, y] = C(!1), [W, R] = C(null), [$, J] = C(null), M = j(() => R(null), []), D = be(
|
|
8343
8343
|
() => Cs(a, s) ?? null,
|
|
8344
8344
|
[s, a]
|
|
8345
8345
|
);
|
|
@@ -8372,7 +8372,7 @@ function I1({
|
|
|
8372
8372
|
)
|
|
8373
8373
|
);
|
|
8374
8374
|
return vo(O);
|
|
8375
|
-
}, [p, i]),
|
|
8375
|
+
}, [p, i]), E = j(
|
|
8376
8376
|
async (O) => {
|
|
8377
8377
|
try {
|
|
8378
8378
|
await l(O);
|
|
@@ -8446,7 +8446,7 @@ function I1({
|
|
|
8446
8446
|
}
|
|
8447
8447
|
),
|
|
8448
8448
|
/* @__PURE__ */ t(
|
|
8449
|
-
|
|
8449
|
+
Ds,
|
|
8450
8450
|
{
|
|
8451
8451
|
kind: "task",
|
|
8452
8452
|
messages: c,
|
|
@@ -8465,9 +8465,9 @@ function I1({
|
|
|
8465
8465
|
execEntries: v,
|
|
8466
8466
|
execListOpen: S,
|
|
8467
8467
|
onToggleExecList: () => y((O) => !O),
|
|
8468
|
-
onCancelExecution:
|
|
8468
|
+
onCancelExecution: E,
|
|
8469
8469
|
onCancelExecutionQueue: ne,
|
|
8470
|
-
currentMember:
|
|
8470
|
+
currentMember: D,
|
|
8471
8471
|
currentUser: s,
|
|
8472
8472
|
members: a,
|
|
8473
8473
|
runningExecutions: i,
|
|
@@ -8616,7 +8616,7 @@ function R1() {
|
|
|
8616
8616
|
}
|
|
8617
8617
|
},
|
|
8618
8618
|
[R]
|
|
8619
|
-
),
|
|
8619
|
+
), D = j(
|
|
8620
8620
|
async (g) => {
|
|
8621
8621
|
try {
|
|
8622
8622
|
await bo(g.id), Q("已触发执行"), await R();
|
|
@@ -8625,7 +8625,7 @@ function R1() {
|
|
|
8625
8625
|
}
|
|
8626
8626
|
},
|
|
8627
8627
|
[R]
|
|
8628
|
-
), w = (i == null ? void 0 : i.username) || "", v = be(() => l.filter((g) => c === "all" ? !0 : c === "running" ? g.status === 1 : c === "pending" ? g.status === 0 : c === "done" ? g.status === 3 : c === "mine" ? va(g, w) : !0), [l, c, w]),
|
|
8628
|
+
), w = (i == null ? void 0 : i.username) || "", v = be(() => l.filter((g) => c === "all" ? !0 : c === "running" ? g.status === 1 : c === "pending" ? g.status === 0 : c === "done" ? g.status === 3 : c === "mine" ? va(g, w) : !0), [l, c, w]), E = be(() => ({
|
|
8629
8629
|
all: l.length,
|
|
8630
8630
|
running: l.filter((H) => H.status === 1).length,
|
|
8631
8631
|
pending: l.filter((H) => H.status === 0).length,
|
|
@@ -8717,7 +8717,7 @@ function R1() {
|
|
|
8717
8717
|
onClick: () => N(g.key),
|
|
8718
8718
|
children: [
|
|
8719
8719
|
g.label,
|
|
8720
|
-
/* @__PURE__ */ t("span", { className: z.filterCount, children:
|
|
8720
|
+
/* @__PURE__ */ t("span", { className: z.filterCount, children: E[g.key] })
|
|
8721
8721
|
]
|
|
8722
8722
|
},
|
|
8723
8723
|
g.key
|
|
@@ -8732,7 +8732,7 @@ function R1() {
|
|
|
8732
8732
|
{
|
|
8733
8733
|
className: `${z.taskList} ${he ? "" : z.taskListFull}`,
|
|
8734
8734
|
children: v.length === 0 ? /* @__PURE__ */ t("div", { className: z.taskEmpty, children: l.length === 0 ? "暂无任务" : "无匹配任务" }) : x.map((g) => {
|
|
8735
|
-
const H = Y && g.depth !== void 0, f = H ? g.depth : 0, G = H && g.children.length > 0, re = H && y.has(g.id), _e = Ua[g.status] || Ua[0], Le =
|
|
8735
|
+
const H = Y && g.depth !== void 0, f = H ? g.depth : 0, G = H && g.children.length > 0, re = H && y.has(g.id), _e = Ua[g.status] || Ua[0], Le = Do(g), ee = Eo(g), d = (a == null ? void 0 : a.taskId) === g.id;
|
|
8736
8736
|
return /* @__PURE__ */ r(
|
|
8737
8737
|
"div",
|
|
8738
8738
|
{
|
|
@@ -8799,7 +8799,7 @@ function R1() {
|
|
|
8799
8799
|
type: "button",
|
|
8800
8800
|
className: z.completeBtn,
|
|
8801
8801
|
onClick: (P) => {
|
|
8802
|
-
P.stopPropagation(),
|
|
8802
|
+
P.stopPropagation(), D(g);
|
|
8803
8803
|
},
|
|
8804
8804
|
children: "执行"
|
|
8805
8805
|
}
|
|
@@ -8883,14 +8883,14 @@ async function $1(e, n, s) {
|
|
|
8883
8883
|
);
|
|
8884
8884
|
St(a, "保存文件失败");
|
|
8885
8885
|
}
|
|
8886
|
-
async function
|
|
8886
|
+
async function D1(e, n = 50) {
|
|
8887
8887
|
const s = await ye(
|
|
8888
8888
|
`${wt}/scenario-instances/${e}/workspace/git/log${pn({ limit: n })}`,
|
|
8889
8889
|
ut
|
|
8890
8890
|
);
|
|
8891
8891
|
return St(s, "读取 git log 失败");
|
|
8892
8892
|
}
|
|
8893
|
-
async function
|
|
8893
|
+
async function E1(e) {
|
|
8894
8894
|
const n = await ye(
|
|
8895
8895
|
`${wt}/scenario-instances/${e}/workspace/git/status`,
|
|
8896
8896
|
ut
|
|
@@ -8976,7 +8976,7 @@ function rN(e) {
|
|
|
8976
8976
|
function lN() {
|
|
8977
8977
|
const e = F((L) => L.currentProject), n = e == null ? void 0 : e.id, [s, a] = C("files"), [i, l] = C(!1), [u, h] = C([]), [m, k] = C(null), [p, c] = C(""), [N, A] = C([]), [S, y] = C(null), [W, R] = C([]), [$, J] = C(
|
|
8978
8978
|
null
|
|
8979
|
-
), [M,
|
|
8979
|
+
), [M, D] = C(""), [w, v] = C(""), [E, ne] = C([]), [I, O] = C(
|
|
8980
8980
|
/* @__PURE__ */ new Set()
|
|
8981
8981
|
), [x, Y] = C(""), [he, g] = C(null), [H, f] = C(""), [G, re] = C(""), [_e, Le] = C(!1), ee = j(async () => {
|
|
8982
8982
|
if (n)
|
|
@@ -8990,7 +8990,7 @@ function lN() {
|
|
|
8990
8990
|
if (n)
|
|
8991
8991
|
try {
|
|
8992
8992
|
l(!0);
|
|
8993
|
-
const L = await
|
|
8993
|
+
const L = await D1(n, 50);
|
|
8994
8994
|
A(L);
|
|
8995
8995
|
} catch {
|
|
8996
8996
|
ze.error("加载 git log 失败");
|
|
@@ -9000,7 +9000,7 @@ function lN() {
|
|
|
9000
9000
|
}, [n]), P = j(async () => {
|
|
9001
9001
|
if (n)
|
|
9002
9002
|
try {
|
|
9003
|
-
const L = await
|
|
9003
|
+
const L = await E1(n);
|
|
9004
9004
|
ne(L.entries || []);
|
|
9005
9005
|
} catch {
|
|
9006
9006
|
ne([]);
|
|
@@ -9063,9 +9063,9 @@ function lN() {
|
|
|
9063
9063
|
S,
|
|
9064
9064
|
$
|
|
9065
9065
|
);
|
|
9066
|
-
|
|
9066
|
+
D(L.content || "");
|
|
9067
9067
|
} catch {
|
|
9068
|
-
|
|
9068
|
+
D("// 读取失败");
|
|
9069
9069
|
}
|
|
9070
9070
|
try {
|
|
9071
9071
|
const L = await F1(
|
|
@@ -9081,8 +9081,8 @@ function lN() {
|
|
|
9081
9081
|
})();
|
|
9082
9082
|
}, [n, S, $]);
|
|
9083
9083
|
const U = be(
|
|
9084
|
-
() =>
|
|
9085
|
-
[
|
|
9084
|
+
() => E.filter((L) => L.status === "??").map((L) => L.file),
|
|
9085
|
+
[E]
|
|
9086
9086
|
), K = be(() => {
|
|
9087
9087
|
const L = {};
|
|
9088
9088
|
for (const ge of U) {
|
|
@@ -9364,7 +9364,7 @@ function si({
|
|
|
9364
9364
|
)) })
|
|
9365
9365
|
] });
|
|
9366
9366
|
}
|
|
9367
|
-
const cN = "_overlay_1x2ku_2", dN = "_modal_1x2ku_13", uN = "_header_1x2ku_27", mN = "_headerInfo_1x2ku_36", hN = "_avatar_1x2ku_42", pN = "_headerName_1x2ku_54", gN = "_headerType_1x2ku_60", _N = "_closeBtn_1x2ku_66", fN = "_body_1x2ku_87", kN = "_menu_1x2ku_94", yN = "_menuItem_1x2ku_103", bN = "_menuItemActive_1x2ku_118", vN = "_menuIcon_1x2ku_128", NN = "_menuSkillName_1x2ku_133", TN = "_menuEmpty_1x2ku_139", CN = "_content_1x2ku_147", SN = "_sectionTitle_1x2ku_153", wN = "_emptyContent_1x2ku_160", IN = "_basicInfo_1x2ku_167", AN = "_infoTable_1x2ku_171", xN = "_infoRow_1x2ku_177", LN = "_infoLabel_1x2ku_187", BN = "_infoValue_1x2ku_196", RN = "_skillDetail_1x2ku_203", PN = "_skillMeta_1x2ku_207", $N = "_skillCategory_1x2ku_214",
|
|
9367
|
+
const cN = "_overlay_1x2ku_2", dN = "_modal_1x2ku_13", uN = "_header_1x2ku_27", mN = "_headerInfo_1x2ku_36", hN = "_avatar_1x2ku_42", pN = "_headerName_1x2ku_54", gN = "_headerType_1x2ku_60", _N = "_closeBtn_1x2ku_66", fN = "_body_1x2ku_87", kN = "_menu_1x2ku_94", yN = "_menuItem_1x2ku_103", bN = "_menuItemActive_1x2ku_118", vN = "_menuIcon_1x2ku_128", NN = "_menuSkillName_1x2ku_133", TN = "_menuEmpty_1x2ku_139", CN = "_content_1x2ku_147", SN = "_sectionTitle_1x2ku_153", wN = "_emptyContent_1x2ku_160", IN = "_basicInfo_1x2ku_167", AN = "_infoTable_1x2ku_171", xN = "_infoRow_1x2ku_177", LN = "_infoLabel_1x2ku_187", BN = "_infoValue_1x2ku_196", RN = "_skillDetail_1x2ku_203", PN = "_skillMeta_1x2ku_207", $N = "_skillCategory_1x2ku_214", DN = "_skillContent_1x2ku_227", fe = {
|
|
9368
9368
|
overlay: cN,
|
|
9369
9369
|
modal: dN,
|
|
9370
9370
|
header: uN,
|
|
@@ -9391,9 +9391,9 @@ const cN = "_overlay_1x2ku_2", dN = "_modal_1x2ku_13", uN = "_header_1x2ku_27",
|
|
|
9391
9391
|
skillDetail: RN,
|
|
9392
9392
|
skillMeta: PN,
|
|
9393
9393
|
skillCategory: $N,
|
|
9394
|
-
skillContent:
|
|
9394
|
+
skillContent: DN
|
|
9395
9395
|
};
|
|
9396
|
-
function
|
|
9396
|
+
function EN(e) {
|
|
9397
9397
|
var a;
|
|
9398
9398
|
const n = (a = e.agent_info) == null ? void 0 : a._agenthub_raw, s = n == null ? void 0 : n.skills;
|
|
9399
9399
|
return Array.isArray(s) ? s.map((i) => {
|
|
@@ -9416,12 +9416,12 @@ function MN({
|
|
|
9416
9416
|
var p, c;
|
|
9417
9417
|
const i = be(() => {
|
|
9418
9418
|
var W, R;
|
|
9419
|
-
const N =
|
|
9419
|
+
const N = EN(e);
|
|
9420
9420
|
if (N.length > 0 && s.length > 0) {
|
|
9421
9421
|
const $ = new Set(N.map((M) => M.toLowerCase())), J = s.filter((M) => {
|
|
9422
|
-
var
|
|
9423
|
-
const
|
|
9424
|
-
return $.has(
|
|
9422
|
+
var E;
|
|
9423
|
+
const D = (M.id ?? "").toLowerCase(), w = (M.name ?? "").toLowerCase(), v = (E = M._agenthub_raw) == null ? void 0 : E.code;
|
|
9424
|
+
return $.has(D) || $.has(w) || (v ? $.has(v.toLowerCase()) : !1);
|
|
9425
9425
|
});
|
|
9426
9426
|
if (J.length > 0) return J;
|
|
9427
9427
|
}
|
|
@@ -9436,8 +9436,8 @@ function MN({
|
|
|
9436
9436
|
if (N.length > 0 && n.length > 0) {
|
|
9437
9437
|
const $ = new Set(N.map((J) => J.toLowerCase()));
|
|
9438
9438
|
return n.filter((J) => {
|
|
9439
|
-
const M = (J.name ?? "").toLowerCase(),
|
|
9440
|
-
return $.has(M) || $.has(
|
|
9439
|
+
const M = (J.name ?? "").toLowerCase(), D = (J.id ?? "").toLowerCase();
|
|
9440
|
+
return $.has(M) || $.has(D);
|
|
9441
9441
|
});
|
|
9442
9442
|
}
|
|
9443
9443
|
return n;
|
|
@@ -9586,7 +9586,7 @@ function ZN({
|
|
|
9586
9586
|
open: e,
|
|
9587
9587
|
onClose: n
|
|
9588
9588
|
}) {
|
|
9589
|
-
const s = F((d) => d.token), a = F((d) => d.currentUser), i = Is(), [l, u] = C(!1), [h, m] = C(""), [k, p] = C([]), [c, N] = C([]), [A, S] = C(!1), [y, W] = C(!1), [R, $] = C(""), [J, M] = C(!1), [
|
|
9589
|
+
const s = F((d) => d.token), a = F((d) => d.currentUser), i = Is(), [l, u] = C(!1), [h, m] = C(""), [k, p] = C([]), [c, N] = C([]), [A, S] = C(!1), [y, W] = C(!1), [R, $] = C(""), [J, M] = C(!1), [D, w] = C({ show: !1, query: "", cursor: 0, selectedIndex: 0 }), v = Ne(null), E = Ne(""), ne = Ne(null), I = Ne(0), O = Ne(!1), x = Ne(null), Y = Ne(null);
|
|
9590
9590
|
ie(() => {
|
|
9591
9591
|
if (!e) return;
|
|
9592
9592
|
O.current = !1;
|
|
@@ -9597,7 +9597,7 @@ function ZN({
|
|
|
9597
9597
|
const ce = await Br(s);
|
|
9598
9598
|
if (d) return;
|
|
9599
9599
|
const Z = Ie(ce.scenario_instance_id);
|
|
9600
|
-
if (
|
|
9600
|
+
if (E.current = Z, m(Z), await Rr(Z, s), d) return;
|
|
9601
9601
|
const ve = await Cr(Z);
|
|
9602
9602
|
if (d) return;
|
|
9603
9603
|
const U = ve.map((B) => ({
|
|
@@ -9615,7 +9615,7 @@ function ZN({
|
|
|
9615
9615
|
d || u(!1);
|
|
9616
9616
|
}
|
|
9617
9617
|
})(), () => {
|
|
9618
|
-
d = !0, g(),
|
|
9618
|
+
d = !0, g(), E.current = "";
|
|
9619
9619
|
};
|
|
9620
9620
|
}, [e, s]);
|
|
9621
9621
|
const he = j(
|
|
@@ -9638,13 +9638,13 @@ function ZN({
|
|
|
9638
9638
|
}, ce.onerror = () => {
|
|
9639
9639
|
console.warn("[SelfSupport WS] error");
|
|
9640
9640
|
}, ce.onclose = () => {
|
|
9641
|
-
if (v.current = null, O.current ||
|
|
9641
|
+
if (v.current = null, O.current || E.current === "") return;
|
|
9642
9642
|
I.current += 1;
|
|
9643
9643
|
const Z = Math.min(3e3 * I.current, 3e4);
|
|
9644
9644
|
console.warn(
|
|
9645
9645
|
`[SelfSupport WS] closed, reconnect #${I.current} in ${Z}ms`
|
|
9646
9646
|
), ne.current = setTimeout(() => {
|
|
9647
|
-
ne.current = null, !O.current && ln(
|
|
9647
|
+
ne.current = null, !O.current && ln(E.current) && he(E.current);
|
|
9648
9648
|
}, Z);
|
|
9649
9649
|
};
|
|
9650
9650
|
},
|
|
@@ -9663,21 +9663,21 @@ function ZN({
|
|
|
9663
9663
|
W(!1);
|
|
9664
9664
|
}
|
|
9665
9665
|
}
|
|
9666
|
-
}, [y, h, k]), f = be(() =>
|
|
9666
|
+
}, [y, h, k]), f = be(() => D.show ? c.filter((d) => {
|
|
9667
9667
|
var Z, ve;
|
|
9668
|
-
if (!
|
|
9668
|
+
if (!D.query) return !0;
|
|
9669
9669
|
const P = d.display_name.toLowerCase(), ce = ((ve = (Z = d.agent_info) == null ? void 0 : Z.name) == null ? void 0 : ve.toLowerCase()) ?? "";
|
|
9670
|
-
return P.includes(
|
|
9671
|
-
}) : [], [
|
|
9670
|
+
return P.includes(D.query) || ce.includes(D.query);
|
|
9671
|
+
}) : [], [D.show, D.query, c]), G = j(
|
|
9672
9672
|
(d) => {
|
|
9673
9673
|
var ce, Z;
|
|
9674
9674
|
const P = d.member_type === "AGENT" ? ((ce = d.agent_info) == null ? void 0 : ce.name) ?? d.display_name : d.display_name;
|
|
9675
9675
|
$((ve) => {
|
|
9676
|
-
const U = ve.slice(0,
|
|
9676
|
+
const U = ve.slice(0, D.cursor), K = ve.slice(D.cursor);
|
|
9677
9677
|
return U.replace(/@[^@\s]*$/, `@${P} `) + K;
|
|
9678
9678
|
}), w({ show: !1, query: "", cursor: 0, selectedIndex: 0 }), (Z = x.current) == null || Z.focus();
|
|
9679
9679
|
},
|
|
9680
|
-
[
|
|
9680
|
+
[D.cursor]
|
|
9681
9681
|
), re = j(
|
|
9682
9682
|
(d) => {
|
|
9683
9683
|
const P = d.target.value, ce = d.target.selectionStart ?? 0;
|
|
@@ -9722,7 +9722,7 @@ function ZN({
|
|
|
9722
9722
|
}
|
|
9723
9723
|
}, [R, h, J, s, c]), Le = j(
|
|
9724
9724
|
(d) => {
|
|
9725
|
-
if (
|
|
9725
|
+
if (D.show && f.length > 0)
|
|
9726
9726
|
if (d.key === "ArrowDown")
|
|
9727
9727
|
d.preventDefault(), w((P) => ({
|
|
9728
9728
|
...P,
|
|
@@ -9738,23 +9738,23 @@ function ZN({
|
|
|
9738
9738
|
}));
|
|
9739
9739
|
else if (d.key === "Enter") {
|
|
9740
9740
|
d.preventDefault();
|
|
9741
|
-
const P = f[
|
|
9741
|
+
const P = f[D.selectedIndex];
|
|
9742
9742
|
P && G(P);
|
|
9743
9743
|
} else d.key === "Escape" && (d.preventDefault(), w({ show: !1, query: "", cursor: 0, selectedIndex: 0 }));
|
|
9744
9744
|
else Co(d, i.sendKey) && !d.nativeEvent.isComposing && (d.preventDefault(), _e());
|
|
9745
9745
|
},
|
|
9746
|
-
[
|
|
9746
|
+
[D, f, G, _e, i.sendKey]
|
|
9747
9747
|
), ee = j(() => {
|
|
9748
|
-
g(),
|
|
9748
|
+
g(), E.current = "", p([]), N([]), $(""), w({ show: !1, query: "", cursor: 0, selectedIndex: 0 }), m(""), n();
|
|
9749
9749
|
}, [g, n]);
|
|
9750
9750
|
return ie(() => {
|
|
9751
|
-
if (
|
|
9751
|
+
if (D.show && Y.current) {
|
|
9752
9752
|
const d = Y.current.querySelector(
|
|
9753
|
-
`[data-mention-index="${
|
|
9753
|
+
`[data-mention-index="${D.selectedIndex}"]`
|
|
9754
9754
|
);
|
|
9755
9755
|
d == null || d.scrollIntoView({ block: "nearest" });
|
|
9756
9756
|
}
|
|
9757
|
-
}, [
|
|
9757
|
+
}, [D.selectedIndex, D.show]), /* @__PURE__ */ t(
|
|
9758
9758
|
bs,
|
|
9759
9759
|
{
|
|
9760
9760
|
title: "Z-OPC 自身答疑",
|
|
@@ -9765,7 +9765,7 @@ function ZN({
|
|
|
9765
9765
|
destroyOnHidden: !0,
|
|
9766
9766
|
styles: { body: { padding: 0 } },
|
|
9767
9767
|
children: /* @__PURE__ */ t("div", { className: st.drawerBody, children: l ? /* @__PURE__ */ t("div", { className: st.loadingWrap, children: /* @__PURE__ */ t(dt, { description: "正在加载答疑群组..." }) }) : /* @__PURE__ */ t("div", { className: st.chatArea, children: /* @__PURE__ */ t("div", { className: st.channelView, children: /* @__PURE__ */ t(
|
|
9768
|
-
|
|
9768
|
+
Ds,
|
|
9769
9769
|
{
|
|
9770
9770
|
kind: "team",
|
|
9771
9771
|
messages: k,
|
|
@@ -9789,7 +9789,7 @@ function ZN({
|
|
|
9789
9789
|
onQuote: () => {
|
|
9790
9790
|
},
|
|
9791
9791
|
footer: /* @__PURE__ */ r("div", { className: st.inputWrap, children: [
|
|
9792
|
-
|
|
9792
|
+
D.show && f.length > 0 && /* @__PURE__ */ r(Te, { children: [
|
|
9793
9793
|
/* @__PURE__ */ t(
|
|
9794
9794
|
"div",
|
|
9795
9795
|
{
|
|
@@ -9810,7 +9810,7 @@ function ZN({
|
|
|
9810
9810
|
children: [
|
|
9811
9811
|
/* @__PURE__ */ t("div", { className: st.mentionLabel, children: "团队成员" }),
|
|
9812
9812
|
f.map((d, P) => {
|
|
9813
|
-
const ce =
|
|
9813
|
+
const ce = D.selectedIndex === P;
|
|
9814
9814
|
return /* @__PURE__ */ r(
|
|
9815
9815
|
"div",
|
|
9816
9816
|
{
|
|
@@ -10011,7 +10011,7 @@ function aT({
|
|
|
10011
10011
|
}
|
|
10012
10012
|
) }) : /* @__PURE__ */ t("span", { className: o.foneRelatedInline, title: jn, children: /* @__PURE__ */ t("span", { className: o.foneRelatedItem, children: jn }) });
|
|
10013
10013
|
}
|
|
10014
|
-
const oT = "_loadingWrap_1q7ab_6", iT = "_body_1q7ab_13", rT = "_kpiRow_1q7ab_24", lT = "_kpiItem_1q7ab_36", cT = "_kpiBlue_1q7ab_66", dT = "_kpiPurple_1q7ab_67", uT = "_kpiCyan_1q7ab_68", mT = "_kpiGreen_1q7ab_69", hT = "_kpiOrange_1q7ab_70", pT = "_kpiPink_1q7ab_71", gT = "_kpiIcon_1q7ab_73", _T = "_kpiValue_1q7ab_80", fT = "_kpiLabel_1q7ab_88", kT = "_section_1q7ab_95", yT = "_sectionTitle_1q7ab_102", bT = "_sectionExtra_1q7ab_126", vT = "_subTitle_1q7ab_133", NT = "_emptyText_1q7ab_140", TT = "_engineGrid_1q7ab_150", CT = "_engineItem_1q7ab_162", ST = "_engineWarn_1q7ab_172", wT = "_engineLabel_1q7ab_177", IT = "_engineValue_1q7ab_182", AT = "_engineSub_1q7ab_194", xT = "_tokenBarTrack_1q7ab_201", LT = "_tokenBarPrompt_1q7ab_209", BT = "_tokenBarCompletion_1q7ab_213", RT = "_tokenBarReasoning_1q7ab_217", PT = "_tokenLegend_1q7ab_221", $T = "_tokenLegendItem_1q7ab_230",
|
|
10014
|
+
const oT = "_loadingWrap_1q7ab_6", iT = "_body_1q7ab_13", rT = "_kpiRow_1q7ab_24", lT = "_kpiItem_1q7ab_36", cT = "_kpiBlue_1q7ab_66", dT = "_kpiPurple_1q7ab_67", uT = "_kpiCyan_1q7ab_68", mT = "_kpiGreen_1q7ab_69", hT = "_kpiOrange_1q7ab_70", pT = "_kpiPink_1q7ab_71", gT = "_kpiIcon_1q7ab_73", _T = "_kpiValue_1q7ab_80", fT = "_kpiLabel_1q7ab_88", kT = "_section_1q7ab_95", yT = "_sectionTitle_1q7ab_102", bT = "_sectionExtra_1q7ab_126", vT = "_subTitle_1q7ab_133", NT = "_emptyText_1q7ab_140", TT = "_engineGrid_1q7ab_150", CT = "_engineItem_1q7ab_162", ST = "_engineWarn_1q7ab_172", wT = "_engineLabel_1q7ab_177", IT = "_engineValue_1q7ab_182", AT = "_engineSub_1q7ab_194", xT = "_tokenBarTrack_1q7ab_201", LT = "_tokenBarPrompt_1q7ab_209", BT = "_tokenBarCompletion_1q7ab_213", RT = "_tokenBarReasoning_1q7ab_217", PT = "_tokenLegend_1q7ab_221", $T = "_tokenLegendItem_1q7ab_230", DT = "_tokenDot_1q7ab_236", ET = "_dotPrompt_1q7ab_243", MT = "_dotCompletion_1q7ab_244", OT = "_dotReasoning_1q7ab_245", FT = "_barList_1q7ab_248", HT = "_barItem_1q7ab_254", qT = "_barHead_1q7ab_260", jT = "_barName_1q7ab_268", GT = "_barMeta_1q7ab_277", WT = "_barFailTag_1q7ab_285", UT = "_barTrack_1q7ab_291", VT = "_barFill_1q7ab_299", zT = "_barFillTool_1q7ab_304", JT = "_barFailFill_1q7ab_309", KT = "_errorChips_1q7ab_314", QT = "_errorChip_1q7ab_314", YT = "_metricGrid_1q7ab_337", XT = "_metricItem_1q7ab_349", ZT = "_metricLabel_1q7ab_358", eC = "_metricValue_1q7ab_363", tC = "_memberStrip_1q7ab_371", nC = "_onlineNum_1q7ab_391", sC = "_memberDivider_1q7ab_395", aC = "_taskSummaryRow_1q7ab_402", oC = "_taskSummaryItem_1q7ab_409", iC = "_taskSummaryValue_1q7ab_416", rC = "_valueWarn_1q7ab_423", lC = "_taskSummaryLabel_1q7ab_427", cC = "_statusList_1q7ab_434", dC = "_statusItem_1q7ab_440", uC = "_statusDot_1q7ab_447", mC = "_statusPending_1q7ab_454", hC = "_statusRunning_1q7ab_455", pC = "_statusSuspended_1q7ab_456", gC = "_statusDone_1q7ab_457", _C = "_statusFailed_1q7ab_458", fC = "_statusCancelled_1q7ab_459", kC = "_statusQueued_1q7ab_460", yC = "_statusLabel_1q7ab_462", bC = "_statusCount_1q7ab_467", vC = "_recentTableWrap_1q7ab_474", NC = "_recentTable_1q7ab_474", TC = "_cellTime_1q7ab_518", CC = "_cellAgent_1q7ab_522", SC = "_cellNum_1q7ab_530", wC = "_cellRemark_1q7ab_534", IC = "_recentStatusDot_1q7ab_538", AC = "_hint_1q7ab_548", xC = "_hourlyChart_1q7ab_556", LC = "_hourlyBarWrap_1q7ab_564", BC = "_hourlyBarTrack_1q7ab_574", RC = "_hourlyBarFill_1q7ab_582", PC = "_hourlyBarLabel_1q7ab_594", $C = "_hourlyBarTooltip_1q7ab_601", DC = "_memberContribList_1q7ab_617", EC = "_memberContribItem_1q7ab_623", MC = "_memberContribAvatar_1q7ab_629", OC = "_memberContribInfo_1q7ab_641", FC = "_memberContribName_1q7ab_649", HC = "_humanTag_1q7ab_672", qC = "_agentTag_1q7ab_678", jC = "_systemTag_1q7ab_684", GC = "_memberContribTrack_1q7ab_690", WC = "_memberContribFill_1q7ab_697", UC = "_memberContribCount_1q7ab_704", VC = "_typeDistBarTrack_1q7ab_715", zC = "_typeDistBarFill_1q7ab_723", JC = "_typeDistLegend_1q7ab_727", KC = "_typeDistLegendItem_1q7ab_737", QC = "_typeDistDot_1q7ab_743", YC = "_activeTaskList_1q7ab_751", XC = "_activeTaskItem_1q7ab_757", ZC = "_activeTaskMeta_1q7ab_766", eS = "_activeTaskName_1q7ab_774", tS = "_activeTaskTime_1q7ab_783", nS = "_statusTag_1q7ab_789", T = {
|
|
10015
10015
|
loadingWrap: oT,
|
|
10016
10016
|
body: iT,
|
|
10017
10017
|
kpiRow: rT,
|
|
@@ -10042,8 +10042,8 @@ const oT = "_loadingWrap_1q7ab_6", iT = "_body_1q7ab_13", rT = "_kpiRow_1q7ab_24
|
|
|
10042
10042
|
tokenBarReasoning: RT,
|
|
10043
10043
|
tokenLegend: PT,
|
|
10044
10044
|
tokenLegendItem: $T,
|
|
10045
|
-
tokenDot:
|
|
10046
|
-
dotPrompt:
|
|
10045
|
+
tokenDot: DT,
|
|
10046
|
+
dotPrompt: ET,
|
|
10047
10047
|
dotCompletion: MT,
|
|
10048
10048
|
dotReasoning: OT,
|
|
10049
10049
|
barList: FT,
|
|
@@ -10096,8 +10096,8 @@ const oT = "_loadingWrap_1q7ab_6", iT = "_body_1q7ab_13", rT = "_kpiRow_1q7ab_24
|
|
|
10096
10096
|
hourlyBarFill: RC,
|
|
10097
10097
|
hourlyBarLabel: PC,
|
|
10098
10098
|
hourlyBarTooltip: $C,
|
|
10099
|
-
memberContribList:
|
|
10100
|
-
memberContribItem:
|
|
10099
|
+
memberContribList: DC,
|
|
10100
|
+
memberContribItem: EC,
|
|
10101
10101
|
memberContribAvatar: MC,
|
|
10102
10102
|
memberContribInfo: OC,
|
|
10103
10103
|
memberContribName: FC,
|
|
@@ -10118,7 +10118,7 @@ const oT = "_loadingWrap_1q7ab_6", iT = "_body_1q7ab_13", rT = "_kpiRow_1q7ab_24
|
|
|
10118
10118
|
activeTaskName: eS,
|
|
10119
10119
|
activeTaskTime: tS,
|
|
10120
10120
|
statusTag: nS
|
|
10121
|
-
},
|
|
10121
|
+
}, Es = {
|
|
10122
10122
|
width: 14,
|
|
10123
10123
|
height: 14,
|
|
10124
10124
|
viewBox: "0 0 24 24",
|
|
@@ -10127,7 +10127,7 @@ const oT = "_loadingWrap_1q7ab_6", iT = "_body_1q7ab_13", rT = "_kpiRow_1q7ab_24
|
|
|
10127
10127
|
strokeWidth: 1.5,
|
|
10128
10128
|
strokeLinecap: "round",
|
|
10129
10129
|
strokeLinejoin: "round"
|
|
10130
|
-
}, sS = () => /* @__PURE__ */ t("svg", { ...
|
|
10130
|
+
}, sS = () => /* @__PURE__ */ t("svg", { ...Es, children: /* @__PURE__ */ t("path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" }) }), aS = () => /* @__PURE__ */ t("svg", { ...Es, children: /* @__PURE__ */ t("path", { d: "M13 2L3 14h9l-1 8 10-12h-9l1-8z" }) }), oS = () => /* @__PURE__ */ r("svg", { ...Es, children: [
|
|
10131
10131
|
/* @__PURE__ */ t("rect", { x: "4", y: "4", width: "16", height: "12", rx: "3" }),
|
|
10132
10132
|
/* @__PURE__ */ t("circle", { cx: "9", cy: "10", r: "1.5" }),
|
|
10133
10133
|
/* @__PURE__ */ t("circle", { cx: "15", cy: "10", r: "1.5" }),
|
|
@@ -10201,7 +10201,7 @@ function Ot(e) {
|
|
|
10201
10201
|
function wn(e) {
|
|
10202
10202
|
return e ? e.length >= 16 ? e.slice(5) : e : "—";
|
|
10203
10203
|
}
|
|
10204
|
-
function
|
|
10204
|
+
function De(e) {
|
|
10205
10205
|
const n = Number(e ?? 0);
|
|
10206
10206
|
return isNaN(n) ? 0 : n;
|
|
10207
10207
|
}
|
|
@@ -10346,21 +10346,21 @@ function rS({
|
|
|
10346
10346
|
return { memberContributions: P, typeCount: ce, hourlyTrend: U, maxHourly: K };
|
|
10347
10347
|
}, [n]), A = be(() => a.filter((d) => d.status === 1 || d.status === 2 || d.status === 6).sort(
|
|
10348
10348
|
(d, P) => new Date(P.createTime).getTime() - new Date(d.createTime).getTime()
|
|
10349
|
-
).slice(0, 10), [a]), S = h == null ? void 0 : h.llm, y = S == null ? void 0 : S.summary, W =
|
|
10349
|
+
).slice(0, 10), [a]), S = h == null ? void 0 : h.llm, y = S == null ? void 0 : S.summary, W = De(y == null ? void 0 : y.totalCalls), R = De(y == null ? void 0 : y.successCalls), $ = De(y == null ? void 0 : y.failCalls), J = De(y == null ? void 0 : y.promptTokens), M = De(y == null ? void 0 : y.completionTokens), D = De(y == null ? void 0 : y.reasoningTokens), w = J + M + D, v = W > 0 ? R / W * 100 : 0, E = M > 0 ? D / (M || 1) * 100 : 0, ne = ((S == null ? void 0 : S.agentDist) ?? []).map((d) => ({
|
|
10350
10350
|
...d,
|
|
10351
|
-
total:
|
|
10352
|
-
failed:
|
|
10353
|
-
avgDurationMs:
|
|
10354
|
-
promptTokens:
|
|
10355
|
-
completionTokens:
|
|
10351
|
+
total: De(d.total),
|
|
10352
|
+
failed: De(d.failed),
|
|
10353
|
+
avgDurationMs: De(d.avgDurationMs),
|
|
10354
|
+
promptTokens: De(d.promptTokens),
|
|
10355
|
+
completionTokens: De(d.completionTokens)
|
|
10356
10356
|
})), I = ne.reduce((d, P) => Math.max(d, P.total), 0), O = ((S == null ? void 0 : S.errorDist) ?? []).map((d) => ({
|
|
10357
10357
|
errorType: String(d.errorType ?? "UNKNOWN"),
|
|
10358
|
-
cnt:
|
|
10359
|
-
})), x = (S == null ? void 0 : S.recent) ?? [], Y = (Le = h == null ? void 0 : h.tools) == null ? void 0 : Le.overview, he =
|
|
10358
|
+
cnt: De(d.cnt)
|
|
10359
|
+
})), x = (S == null ? void 0 : S.recent) ?? [], Y = (Le = h == null ? void 0 : h.tools) == null ? void 0 : Le.overview, he = De(Y == null ? void 0 : Y.totalCalls), g = De(Y == null ? void 0 : Y.successCalls), H = De(Y == null ? void 0 : Y.failCalls), f = he > 0 ? g / he * 100 : 0, G = (((ee = h == null ? void 0 : h.tools) == null ? void 0 : ee.toolDist) ?? []).map((d) => ({
|
|
10360
10360
|
toolName: String(d.toolName ?? ""),
|
|
10361
|
-
callCount:
|
|
10362
|
-
successCount:
|
|
10363
|
-
avgDurationMs:
|
|
10361
|
+
callCount: De(d.callCount),
|
|
10362
|
+
successCount: De(d.successCount),
|
|
10363
|
+
avgDurationMs: De(d.avgDurationMs)
|
|
10364
10364
|
})), re = G.reduce((d, P) => Math.max(d, P.callCount), 0), _e = be(
|
|
10365
10365
|
() => [
|
|
10366
10366
|
{
|
|
@@ -10472,24 +10472,24 @@ function rS({
|
|
|
10472
10472
|
label: "限流排队等待",
|
|
10473
10473
|
value: at(y == null ? void 0 : y.avgRateLimitWaitMs),
|
|
10474
10474
|
sub: `最长 ${at(y == null ? void 0 : y.maxRateLimitWaitMs)}`,
|
|
10475
|
-
tone:
|
|
10475
|
+
tone: De(y == null ? void 0 : y.maxRateLimitWaitMs) > 5e3 ? "warn" : void 0
|
|
10476
10476
|
}
|
|
10477
10477
|
),
|
|
10478
10478
|
/* @__PURE__ */ t(
|
|
10479
10479
|
Lt,
|
|
10480
10480
|
{
|
|
10481
10481
|
label: "平均 ReAct 步数",
|
|
10482
|
-
value: y ?
|
|
10483
|
-
sub: `步数撞顶 ${
|
|
10484
|
-
tone:
|
|
10482
|
+
value: y ? De(y.avgLlmSteps).toFixed(1) : "—",
|
|
10483
|
+
sub: `步数撞顶 ${De(y == null ? void 0 : y.stepCeilingHits)} 次`,
|
|
10484
|
+
tone: De(y == null ? void 0 : y.stepCeilingHits) > 0 ? "warn" : void 0
|
|
10485
10485
|
}
|
|
10486
10486
|
),
|
|
10487
10487
|
/* @__PURE__ */ t(
|
|
10488
10488
|
Lt,
|
|
10489
10489
|
{
|
|
10490
10490
|
label: "思考 Token 占比",
|
|
10491
|
-
value: M > 0 ? `${
|
|
10492
|
-
sub: `思考 ${Ot(
|
|
10491
|
+
value: M > 0 ? `${E.toFixed(0)}%` : "—",
|
|
10492
|
+
sub: `思考 ${Ot(D)}`
|
|
10493
10493
|
}
|
|
10494
10494
|
)
|
|
10495
10495
|
] }),
|
|
@@ -10519,7 +10519,7 @@ function rS({
|
|
|
10519
10519
|
{
|
|
10520
10520
|
className: T.tokenBarReasoning,
|
|
10521
10521
|
style: {
|
|
10522
|
-
width: `${
|
|
10522
|
+
width: `${D / w * 100}%`
|
|
10523
10523
|
}
|
|
10524
10524
|
}
|
|
10525
10525
|
)
|
|
@@ -10548,7 +10548,7 @@ function rS({
|
|
|
10548
10548
|
}
|
|
10549
10549
|
),
|
|
10550
10550
|
"思考 ",
|
|
10551
|
-
Ot(
|
|
10551
|
+
Ot(D)
|
|
10552
10552
|
] })
|
|
10553
10553
|
] })
|
|
10554
10554
|
] }) : /* @__PURE__ */ t("div", { className: T.emptyText, children: "暂无 Token 消耗记录" }),
|
|
@@ -10908,7 +10908,7 @@ function rS({
|
|
|
10908
10908
|
/* @__PURE__ */ t("th", { children: "备注" })
|
|
10909
10909
|
] }) }),
|
|
10910
10910
|
/* @__PURE__ */ t("tbody", { children: x.map((d) => {
|
|
10911
|
-
const P =
|
|
10911
|
+
const P = De(d.success) === 1;
|
|
10912
10912
|
return /* @__PURE__ */ r("tr", { children: [
|
|
10913
10913
|
/* @__PURE__ */ t("td", { className: T.cellTime, children: wn(d.createTime) }),
|
|
10914
10914
|
/* @__PURE__ */ t("td", { className: T.cellAgent, title: d.agentName, children: d.agentName }),
|
|
@@ -10925,14 +10925,14 @@ function rS({
|
|
|
10925
10925
|
/* @__PURE__ */ t("td", { className: T.cellNum, children: at(d.firstTokenMs) }),
|
|
10926
10926
|
/* @__PURE__ */ t("td", { className: T.cellNum, children: d.llmSteps ?? "—" }),
|
|
10927
10927
|
/* @__PURE__ */ t("td", { className: T.cellNum, children: Ot(
|
|
10928
|
-
|
|
10928
|
+
De(d.promptTokens) + De(d.completionTokens)
|
|
10929
10929
|
) }),
|
|
10930
10930
|
/* @__PURE__ */ t(
|
|
10931
10931
|
"td",
|
|
10932
10932
|
{
|
|
10933
10933
|
className: T.cellRemark,
|
|
10934
10934
|
title: d.errorType || void 0,
|
|
10935
|
-
children: P ?
|
|
10935
|
+
children: P ? De(d.rateLimitWaitMs) > 1e3 ? `排队 ${at(d.rateLimitWaitMs)}` : "—" : (Ka[d.errorType] ?? d.errorType) || "未知错误"
|
|
10936
10936
|
}
|
|
10937
10937
|
)
|
|
10938
10938
|
] }, d.id);
|
|
@@ -11184,10 +11184,10 @@ function rw({
|
|
|
11184
11184
|
loadMoreMessages: $,
|
|
11185
11185
|
hasMoreMessages: J,
|
|
11186
11186
|
chatScrollBottomTick: M,
|
|
11187
|
-
projectSwitchSeq:
|
|
11187
|
+
projectSwitchSeq: D,
|
|
11188
11188
|
hideToolCalls: w,
|
|
11189
11189
|
navigateToTasksTick: v,
|
|
11190
|
-
selectedFilePath:
|
|
11190
|
+
selectedFilePath: E,
|
|
11191
11191
|
fileClickVersion: ne,
|
|
11192
11192
|
expandProject: I,
|
|
11193
11193
|
projects: O
|
|
@@ -11222,7 +11222,7 @@ function rw({
|
|
|
11222
11222
|
[l]
|
|
11223
11223
|
), [ce, Z] = C(!1), [ve, U] = C(!1), [K, se] = C(!1), [B, X] = C(null), [q, L] = C(null), pe = Ne(null), ge = F((b) => b.token), [ke, $e] = C(!1), [Me, Qe] = C([]), [Ue, lt] = C(!1), [et, Ye] = C(!1), [It, ft] = C(!1), [te, Be] = C(
|
|
11224
11224
|
null
|
|
11225
|
-
), [We, kt] = C(!1), [yt, bt] = C(["0"]), [Rn, At] = C(!1), [Pt, gn] = C(!1), [Qn, Pn] = C(!1), [_n, mt] = C(!1), [$t,
|
|
11225
|
+
), [We, kt] = C(!1), [yt, bt] = C(["0"]), [Rn, At] = C(!1), [Pt, gn] = C(!1), [Qn, Pn] = C(!1), [_n, mt] = C(!1), [$t, Dt] = C(!1), [fn, kn] = C(!1), [Yn, Xn] = C(!1);
|
|
11226
11226
|
ie(() => {
|
|
11227
11227
|
!e || !c || !s || n != null && Number(c.id) !== n || (kn(!0), s());
|
|
11228
11228
|
}, [
|
|
@@ -11231,7 +11231,7 @@ function rw({
|
|
|
11231
11231
|
c,
|
|
11232
11232
|
s
|
|
11233
11233
|
]);
|
|
11234
|
-
const [
|
|
11234
|
+
const [Et, $n] = C([]), He = j(
|
|
11235
11235
|
(b) => {
|
|
11236
11236
|
if (!(c != null && c.workspace_path))
|
|
11237
11237
|
return Be(null), Promise.resolve();
|
|
@@ -11295,7 +11295,7 @@ function rw({
|
|
|
11295
11295
|
}, 3e3);
|
|
11296
11296
|
return () => clearInterval(V);
|
|
11297
11297
|
}, [We, te == null ? void 0 : te.status, He]);
|
|
11298
|
-
const [Ce,
|
|
11298
|
+
const [Ce, Ee] = C({}), [Ve, nt] = C({
|
|
11299
11299
|
EVALUATED: !1,
|
|
11300
11300
|
EXTRACTED: !1,
|
|
11301
11301
|
REJECTED: !1,
|
|
@@ -11335,7 +11335,7 @@ function rw({
|
|
|
11335
11335
|
"div",
|
|
11336
11336
|
{
|
|
11337
11337
|
className: o.learningPipelineHeader,
|
|
11338
|
-
onClick: () => oe.id != null &&
|
|
11338
|
+
onClick: () => oe.id != null && Ee((Tt) => ({
|
|
11339
11339
|
...Tt,
|
|
11340
11340
|
[oe.id]: !Tt[oe.id]
|
|
11341
11341
|
})),
|
|
@@ -11497,14 +11497,14 @@ function rw({
|
|
|
11497
11497
|
]), ri = j(async () => {
|
|
11498
11498
|
if (!(c != null && c.workspace_path) || !(c != null && c.id)) return;
|
|
11499
11499
|
const b = `${c.workspace_path}_${c.id}`;
|
|
11500
|
-
|
|
11500
|
+
Dt(!0), mt(!0);
|
|
11501
11501
|
try {
|
|
11502
11502
|
const V = await Ur(b);
|
|
11503
11503
|
$n(V.records || []);
|
|
11504
11504
|
} catch {
|
|
11505
11505
|
$n([]);
|
|
11506
11506
|
} finally {
|
|
11507
|
-
|
|
11507
|
+
Dt(!1);
|
|
11508
11508
|
}
|
|
11509
11509
|
}, [c == null ? void 0 : c.workspace_path, c == null ? void 0 : c.id]);
|
|
11510
11510
|
ie(() => {
|
|
@@ -11559,7 +11559,7 @@ function rw({
|
|
|
11559
11559
|
}
|
|
11560
11560
|
},
|
|
11561
11561
|
[R]
|
|
11562
|
-
), qs = (c == null ? void 0 : c.status) === "CLOSED", [bn, js] = C(!1), [Vt, vn] = C(null), [zt, Gs] = C(!1),
|
|
11562
|
+
), qs = (c == null ? void 0 : c.status) === "CLOSED", [bn, js] = C(!1), [Vt, vn] = C(null), [zt, Gs] = C(!1), Dn = j(async (b) => {
|
|
11563
11563
|
try {
|
|
11564
11564
|
const V = await ho(
|
|
11565
11565
|
b,
|
|
@@ -11570,21 +11570,21 @@ function rw({
|
|
|
11570
11570
|
}
|
|
11571
11571
|
}, []);
|
|
11572
11572
|
ie(() => {
|
|
11573
|
-
c != null && c.id ?
|
|
11574
|
-
}, [c == null ? void 0 : c.id,
|
|
11573
|
+
c != null && c.id ? Dn(c.id) : vn(null);
|
|
11574
|
+
}, [c == null ? void 0 : c.id, Dn]);
|
|
11575
11575
|
const Ws = j(async () => {
|
|
11576
11576
|
if (!(!c || bn)) {
|
|
11577
11577
|
js(!0);
|
|
11578
11578
|
try {
|
|
11579
11579
|
const b = await Ir(c.id);
|
|
11580
|
-
b.success ? Q("图片解析已触发", "success") : Q(b.message || "图片解析失败", "error"), await
|
|
11580
|
+
b.success ? Q("图片解析已触发", "success") : Q(b.message || "图片解析失败", "error"), await Dn(c.id);
|
|
11581
11581
|
} catch (b) {
|
|
11582
11582
|
Q((b == null ? void 0 : b.message) || "图片解析失败", "error");
|
|
11583
11583
|
} finally {
|
|
11584
11584
|
js(!1);
|
|
11585
11585
|
}
|
|
11586
11586
|
}
|
|
11587
|
-
}, [c, bn,
|
|
11587
|
+
}, [c, bn, Dn]), Us = j(async () => {
|
|
11588
11588
|
if (!(!c || zt)) {
|
|
11589
11589
|
Gs(!0);
|
|
11590
11590
|
try {
|
|
@@ -11625,7 +11625,7 @@ function rw({
|
|
|
11625
11625
|
lt(!1);
|
|
11626
11626
|
}
|
|
11627
11627
|
}
|
|
11628
|
-
}, [c]),
|
|
11628
|
+
}, [c]), En = j(
|
|
11629
11629
|
(b) => {
|
|
11630
11630
|
Ye(!1), I(b);
|
|
11631
11631
|
},
|
|
@@ -11634,19 +11634,19 @@ function rw({
|
|
|
11634
11634
|
if (!(c != null && c.parent_id)) return;
|
|
11635
11635
|
const b = c.parent_id, V = O.find((Fe) => Fe.id === b);
|
|
11636
11636
|
if (V) {
|
|
11637
|
-
|
|
11637
|
+
En(V);
|
|
11638
11638
|
return;
|
|
11639
11639
|
}
|
|
11640
11640
|
ft(!0);
|
|
11641
11641
|
try {
|
|
11642
|
-
const Fe = F.getState().token, oe = await
|
|
11643
|
-
|
|
11642
|
+
const Fe = F.getState().token, oe = await Dr(b, Fe);
|
|
11643
|
+
En(oe);
|
|
11644
11644
|
} catch (Fe) {
|
|
11645
11645
|
console.error("[ChatPanel] 获取父单失败:", Fe), Q("获取父单失败", "error");
|
|
11646
11646
|
} finally {
|
|
11647
11647
|
ft(!1);
|
|
11648
11648
|
}
|
|
11649
|
-
}, [c == null ? void 0 : c.parent_id, O,
|
|
11649
|
+
}, [c == null ? void 0 : c.parent_id, O, En]), gi = j(
|
|
11650
11650
|
(b) => {
|
|
11651
11651
|
Ye(b), b && Js();
|
|
11652
11652
|
},
|
|
@@ -11756,13 +11756,13 @@ function rw({
|
|
|
11756
11756
|
{ type: "divider" },
|
|
11757
11757
|
{
|
|
11758
11758
|
key: "fork",
|
|
11759
|
-
icon: /* @__PURE__ */ t(
|
|
11759
|
+
icon: /* @__PURE__ */ t(Di, {}),
|
|
11760
11760
|
label: "Fork 子单",
|
|
11761
11761
|
onClick: () => Ye(!0)
|
|
11762
11762
|
},
|
|
11763
11763
|
{
|
|
11764
11764
|
key: "image-parse",
|
|
11765
|
-
icon: bn ? /* @__PURE__ */ t(es, { spin: !0 }) : /* @__PURE__ */ t(
|
|
11765
|
+
icon: bn ? /* @__PURE__ */ t(es, { spin: !0 }) : /* @__PURE__ */ t(Ei, {}),
|
|
11766
11766
|
label: Fe,
|
|
11767
11767
|
danger: Vt === "failed" || Vt === "partial",
|
|
11768
11768
|
disabled: bn,
|
|
@@ -11823,11 +11823,11 @@ function rw({
|
|
|
11823
11823
|
]
|
|
11824
11824
|
);
|
|
11825
11825
|
return ie(() => {
|
|
11826
|
-
if (
|
|
11826
|
+
if (E && c) {
|
|
11827
11827
|
const b = F.getState().token;
|
|
11828
|
-
cn(
|
|
11828
|
+
cn(E, c.id, b), P("content");
|
|
11829
11829
|
}
|
|
11830
|
-
}, [
|
|
11830
|
+
}, [E, c, ne]), ie(() => {
|
|
11831
11831
|
if (d === "content" && c) {
|
|
11832
11832
|
const b = F.getState().token;
|
|
11833
11833
|
cn(
|
|
@@ -12055,7 +12055,7 @@ function rw({
|
|
|
12055
12055
|
borderRadius: 4,
|
|
12056
12056
|
transition: "background 0.2s"
|
|
12057
12057
|
},
|
|
12058
|
-
onClick: () =>
|
|
12058
|
+
onClick: () => En(b),
|
|
12059
12059
|
onMouseEnter: (V) => V.currentTarget.style.background = "#f5f5f5",
|
|
12060
12060
|
onMouseLeave: (V) => V.currentTarget.style.background = "transparent",
|
|
12061
12061
|
children: [
|
|
@@ -12112,7 +12112,7 @@ function rw({
|
|
|
12112
12112
|
members: S
|
|
12113
12113
|
}
|
|
12114
12114
|
) }) : /* @__PURE__ */ t(Te, { children: /* @__PURE__ */ t(
|
|
12115
|
-
|
|
12115
|
+
Ds,
|
|
12116
12116
|
{
|
|
12117
12117
|
kind: "team",
|
|
12118
12118
|
messages: A,
|
|
@@ -12134,7 +12134,7 @@ function rw({
|
|
|
12134
12134
|
onEditDraft: _i,
|
|
12135
12135
|
onWithdraw: fi,
|
|
12136
12136
|
scrollBottomTick: M.team,
|
|
12137
|
-
anchorKey:
|
|
12137
|
+
anchorKey: D,
|
|
12138
12138
|
footer: bi,
|
|
12139
12139
|
hideToolCalls: w,
|
|
12140
12140
|
forceExpandAll: q
|
|
@@ -12148,13 +12148,13 @@ function rw({
|
|
|
12148
12148
|
width: 480,
|
|
12149
12149
|
open: _n,
|
|
12150
12150
|
onClose: () => mt(!1),
|
|
12151
|
-
children: $t ? /* @__PURE__ */ t("div", { style: { textAlign: "center", padding: 48 }, children: /* @__PURE__ */ t(dt, { description: "加载中..." }) }) :
|
|
12151
|
+
children: $t ? /* @__PURE__ */ t("div", { style: { textAlign: "center", padding: 48 }, children: /* @__PURE__ */ t(dt, { description: "加载中..." }) }) : Et.length === 0 ? /* @__PURE__ */ t(rn, { description: "本群知识尚未被任何 Agent 使用" }) : /* @__PURE__ */ r("div", { children: [
|
|
12152
12152
|
/* @__PURE__ */ r("p", { style: { color: "#666", marginBottom: 16 }, children: [
|
|
12153
12153
|
"本群共产出 ",
|
|
12154
|
-
|
|
12154
|
+
Et.length,
|
|
12155
12155
|
" 条知识记录,被以下 Agent 使用:"
|
|
12156
12156
|
] }),
|
|
12157
|
-
|
|
12157
|
+
Et.map((b) => /* @__PURE__ */ r(
|
|
12158
12158
|
"div",
|
|
12159
12159
|
{
|
|
12160
12160
|
style: {
|
|
@@ -12665,8 +12665,8 @@ function lw(e) {
|
|
|
12665
12665
|
w.agentName
|
|
12666
12666
|
);
|
|
12667
12667
|
}
|
|
12668
|
-
}, $ = (w, v,
|
|
12669
|
-
y = { taskId: w, executionId: v, kind:
|
|
12668
|
+
}, $ = (w, v, E, ne, I) => {
|
|
12669
|
+
y = { taskId: w, executionId: v, kind: E, text: ne, agentName: I }, W == null && (W = requestAnimationFrame(R));
|
|
12670
12670
|
}, J = (w) => {
|
|
12671
12671
|
N.flushNow(w), A.flushNow(), S.delete(w);
|
|
12672
12672
|
}, M = (w, v) => {
|
|
@@ -12677,15 +12677,15 @@ function lw(e) {
|
|
|
12677
12677
|
if (x !== "" && !Wt(x, n))
|
|
12678
12678
|
return;
|
|
12679
12679
|
}
|
|
12680
|
-
const
|
|
12681
|
-
if (
|
|
12680
|
+
const E = Ie(w.id);
|
|
12681
|
+
if (E === "")
|
|
12682
12682
|
return;
|
|
12683
12683
|
const ne = F.getState();
|
|
12684
|
-
if (!(v === "task" ? ne.taskMessages : ne.messages).some((x) => x.id ===
|
|
12684
|
+
if (!(v === "task" ? ne.taskMessages : ne.messages).some((x) => x.id === E)) {
|
|
12685
12685
|
A.flushNow(), v === "task" ? m(w) : h(w);
|
|
12686
12686
|
return;
|
|
12687
12687
|
}
|
|
12688
|
-
A.schedule(
|
|
12688
|
+
A.schedule(E, w, v);
|
|
12689
12689
|
};
|
|
12690
12690
|
return {
|
|
12691
12691
|
handler: async (w) => {
|
|
@@ -12732,17 +12732,17 @@ function lw(e) {
|
|
|
12732
12732
|
});
|
|
12733
12733
|
return;
|
|
12734
12734
|
}
|
|
12735
|
-
const
|
|
12735
|
+
const E = hS(v);
|
|
12736
12736
|
if (w.type === "execution_start") {
|
|
12737
12737
|
i({
|
|
12738
12738
|
executionId: Ie(v.execution_id),
|
|
12739
12739
|
agentName: v.agent_name,
|
|
12740
12740
|
agentAvatar: v.agent_avatar,
|
|
12741
|
-
taskId:
|
|
12741
|
+
taskId: E,
|
|
12742
12742
|
pendingCount: v.pending_count,
|
|
12743
12743
|
loadingMessageId: Ie(v.loading_message_id) || void 0
|
|
12744
|
-
}),
|
|
12745
|
-
|
|
12744
|
+
}), E && F.getState().pushTaskExecutionActivity(
|
|
12745
|
+
E,
|
|
12746
12746
|
Ie(v.execution_id),
|
|
12747
12747
|
"start",
|
|
12748
12748
|
"🚀 开始执行",
|
|
@@ -12759,7 +12759,7 @@ function lw(e) {
|
|
|
12759
12759
|
agentName: v.agent_name,
|
|
12760
12760
|
agentAvatar: v.agent_avatar,
|
|
12761
12761
|
pendingCount: v.pending_count,
|
|
12762
|
-
taskId:
|
|
12762
|
+
taskId: E
|
|
12763
12763
|
});
|
|
12764
12764
|
return;
|
|
12765
12765
|
}
|
|
@@ -12771,15 +12771,15 @@ function lw(e) {
|
|
|
12771
12771
|
output: "",
|
|
12772
12772
|
agentName: v.agent_name,
|
|
12773
12773
|
agentAvatar: v.agent_avatar,
|
|
12774
|
-
taskId:
|
|
12774
|
+
taskId: E
|
|
12775
12775
|
});
|
|
12776
12776
|
return;
|
|
12777
12777
|
}
|
|
12778
12778
|
if (w.type === "agent_stream") {
|
|
12779
|
-
if (
|
|
12779
|
+
if (E) {
|
|
12780
12780
|
const I = v.accumulated || v.chunk || "", O = ua(I);
|
|
12781
12781
|
O && $(
|
|
12782
|
-
|
|
12782
|
+
E,
|
|
12783
12783
|
Ie(v.execution_id),
|
|
12784
12784
|
"stream",
|
|
12785
12785
|
O,
|
|
@@ -12793,17 +12793,17 @@ function lw(e) {
|
|
|
12793
12793
|
output: v.accumulated || v.chunk || "",
|
|
12794
12794
|
agentName: v.agent_name,
|
|
12795
12795
|
agentAvatar: v.agent_avatar,
|
|
12796
|
-
taskId:
|
|
12796
|
+
taskId: E
|
|
12797
12797
|
});
|
|
12798
12798
|
return;
|
|
12799
12799
|
}
|
|
12800
12800
|
if (w.type === "agent_thought") {
|
|
12801
12801
|
const I = Ie(v.execution_id), O = v.chunk || v.accumulated || "";
|
|
12802
12802
|
let x;
|
|
12803
|
-
if (v.accumulated ? x = v.accumulated : x = (S.get(I) ?? ((ne = F.getState().runningExecutions[I]) == null ? void 0 : ne.thoughtOutput) ?? "") + O, S.set(I, x),
|
|
12803
|
+
if (v.accumulated ? x = v.accumulated : x = (S.get(I) ?? ((ne = F.getState().runningExecutions[I]) == null ? void 0 : ne.thoughtOutput) ?? "") + O, S.set(I, x), E) {
|
|
12804
12804
|
const Y = ua(x);
|
|
12805
12805
|
Y && $(
|
|
12806
|
-
|
|
12806
|
+
E,
|
|
12807
12807
|
I,
|
|
12808
12808
|
"thinking",
|
|
12809
12809
|
Y,
|
|
@@ -12817,7 +12817,7 @@ function lw(e) {
|
|
|
12817
12817
|
thoughtOutput: x,
|
|
12818
12818
|
agentName: v.agent_name,
|
|
12819
12819
|
agentAvatar: v.agent_avatar,
|
|
12820
|
-
taskId:
|
|
12820
|
+
taskId: E
|
|
12821
12821
|
});
|
|
12822
12822
|
return;
|
|
12823
12823
|
}
|
|
@@ -12829,10 +12829,10 @@ function lw(e) {
|
|
|
12829
12829
|
thoughtOutput: "",
|
|
12830
12830
|
agentName: v.agent_name,
|
|
12831
12831
|
agentAvatar: v.agent_avatar,
|
|
12832
|
-
taskId:
|
|
12832
|
+
taskId: E,
|
|
12833
12833
|
toolCall: { name: v.tool, args: v.args }
|
|
12834
|
-
}),
|
|
12835
|
-
|
|
12834
|
+
}), E && F.getState().pushTaskExecutionActivity(
|
|
12835
|
+
E,
|
|
12836
12836
|
Ie(v.execution_id),
|
|
12837
12837
|
"tool_call",
|
|
12838
12838
|
`🔧 调用 ${v.tool || "工具"}`,
|
|
@@ -12847,12 +12847,12 @@ function lw(e) {
|
|
|
12847
12847
|
stepName: `${v.tool} 完成`,
|
|
12848
12848
|
agentName: v.agent_name,
|
|
12849
12849
|
agentAvatar: v.agent_avatar,
|
|
12850
|
-
taskId:
|
|
12850
|
+
taskId: E,
|
|
12851
12851
|
toolCall: null
|
|
12852
|
-
}),
|
|
12852
|
+
}), E) {
|
|
12853
12853
|
const I = !!v.error;
|
|
12854
12854
|
F.getState().pushTaskExecutionActivity(
|
|
12855
|
-
|
|
12855
|
+
E,
|
|
12856
12856
|
Ie(v.execution_id),
|
|
12857
12857
|
"tool_result",
|
|
12858
12858
|
`${I ? "❌" : "✅"} ${v.tool || "工具"} 完成`,
|
|
@@ -12862,15 +12862,15 @@ function lw(e) {
|
|
|
12862
12862
|
return;
|
|
12863
12863
|
}
|
|
12864
12864
|
if (w.type === "execution_complete") {
|
|
12865
|
-
J(Ie(v.execution_id)), l(Ie(v.execution_id)),
|
|
12865
|
+
J(Ie(v.execution_id)), l(Ie(v.execution_id)), E ? F.getState().applyTaskExecutionSettled(E, "complete") : (c(void 0, !0), F.getState().loadMembers());
|
|
12866
12866
|
return;
|
|
12867
12867
|
}
|
|
12868
12868
|
if (w.type === "execution_cancelled") {
|
|
12869
|
-
J(Ie(v.execution_id)), u(Ie(v.execution_id)),
|
|
12869
|
+
J(Ie(v.execution_id)), u(Ie(v.execution_id)), E ? F.getState().applyTaskExecutionSettled(E, "cancelled") : F.getState().loadMembers();
|
|
12870
12870
|
return;
|
|
12871
12871
|
}
|
|
12872
12872
|
if (w.type === "execution_error") {
|
|
12873
|
-
J(Ie(v.execution_id)), l(Ie(v.execution_id)),
|
|
12873
|
+
J(Ie(v.execution_id)), l(Ie(v.execution_id)), E && F.getState().applyTaskExecutionSettled(E, "failed"), v.message && console.error("Agent execution error:", v.message);
|
|
12874
12874
|
return;
|
|
12875
12875
|
}
|
|
12876
12876
|
if (w.type === "mode_changed") {
|
|
@@ -12911,7 +12911,7 @@ function lw(e) {
|
|
|
12911
12911
|
};
|
|
12912
12912
|
}
|
|
12913
12913
|
export {
|
|
12914
|
-
|
|
12914
|
+
Do as A,
|
|
12915
12915
|
sl as B,
|
|
12916
12916
|
rw as C,
|
|
12917
12917
|
nw as D,
|
|
@@ -12935,10 +12935,10 @@ export {
|
|
|
12935
12935
|
ue as V,
|
|
12936
12936
|
No as W,
|
|
12937
12937
|
XS as X,
|
|
12938
|
-
|
|
12939
|
-
|
|
12940
|
-
|
|
12941
|
-
|
|
12938
|
+
lw as a,
|
|
12939
|
+
ES as b,
|
|
12940
|
+
ds as c,
|
|
12941
|
+
DS as d,
|
|
12942
12942
|
xS as e,
|
|
12943
12943
|
AS as f,
|
|
12944
12944
|
LS as g,
|