@yuku123/z-team-component 0.2.52 → 0.2.54
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-nPAmM1X0.js → ChangeLogView-Cstbioyw.js} +137 -137
- package/dist/{ComponentDoc-Cky9jCGu.js → ComponentDoc-yvIrAz9-.js} +506 -461
- package/dist/{InvitationManagementPage-BsbaIGvB.js → InvitationManagementPage-CIouC3Fn.js} +1 -1
- package/dist/{OnboardingPage-CHVgeBiO.js → OnboardingPage-DScwVCi-.js} +2 -2
- package/dist/ScheduledTasks-Dd2lJrBF.js +9449 -0
- package/dist/{SystemShell-4OiqvM11.js → SystemShell-DtvyWy0u.js} +1 -1
- package/dist/{admin-logs-D6HtRcK6.js → admin-logs-B9KS6VJz.js} +2 -2
- package/dist/{api-C78tCfne.js → api-CALqShkO.js} +288 -270
- package/dist/{api-BT968Uwc.js → api-CdVRdA0g.js} +1 -1
- package/dist/createWorkspaceWsHandler-CL5-4wFp.js +13037 -0
- package/dist/{index-BX1Wd9x9.js → index-4YxdJwFm.js} +3 -3
- package/dist/index-7Pe_xBrh.js +582 -0
- package/dist/{index-DFY3lzq0.js → index-C2Wkg1b5.js} +3 -3
- package/dist/{index-CdlfWFvS.js → index-C3B7CbHo.js} +610 -529
- package/dist/{index-BkX0I2aB.js → index-C6S3MIu4.js} +56 -56
- package/dist/{index-BAY37t4f.js → index-CGWttFLb.js} +41 -35
- package/dist/{index-LwKUkzKI.js → index-CKS65_Dw.js} +3 -3
- package/dist/{index-Bdu31aRV.js → index-CLWgeKwr.js} +2 -2
- package/dist/{index-DxFZKDq-.js → index-C_2o9qgM.js} +6 -6
- package/dist/index-CgQH7-9F.js +130 -0
- package/dist/{index-B_C7H9WL.js → index-D6V-4vNa.js} +5 -5
- package/dist/index-DC5lxCN8.js +474 -0
- package/dist/{index-D9AqC2O-.js → index-DET70T3j.js} +1 -1
- package/dist/index-DEx5rtXv.js +242 -0
- package/dist/{index-DpcrvKsK.js → index-DJOyOVn_.js} +87 -74
- package/dist/{index-qK6pyAGy.js → index-DKeYG0Fu.js} +4 -4
- package/dist/index-DLQoecEe.js +1143 -0
- package/dist/{index-CR3sbzOU.js → index-DLyAy3cr.js} +7 -7
- package/dist/index-DOygBsXO.js +2826 -0
- package/dist/index-DRrBkbr_.js +100 -0
- package/dist/index-DWsfQMp8.js +208 -0
- package/dist/index-Pk7OkJrk.js +1133 -0
- package/dist/index-TDZM-Zv3.js +9287 -0
- package/dist/index-WIsi8fln.js +339 -0
- package/dist/{index-BAK7UDvY.js → index-aw72ID7y.js} +1 -1
- package/dist/{index-ClA0896K.js → index-lftFkqfI.js} +4 -4
- package/dist/{index-JMzBzwiO.js → index-usrA11ZG.js} +618 -617
- package/dist/index.js +1 -1
- package/dist/{instance-D5dhjbgg.js → instance-f3C-1qYl.js} +3 -3
- package/dist/pages.js +1 -1
- package/dist/schedule-DfkgwPdE.js +497 -0
- package/dist/{send-default-agent-team-message-C882sJLV.js → send-default-agent-team-message-d_ECdczr.js} +1 -1
- package/dist/{sso-user-Bi9_l9yi.js → sso-user-HcsSzg8P.js} +1 -1
- package/dist/{training-Ba09KItE.js → training-DnNQN0An.js} +1 -1
- package/dist/{useAppStore-ibJyVIAX.js → useAppStore-kRZEA5WZ.js} +19 -19
- package/dist/webide-DPjFYxLl.js +7845 -0
- package/dist/z-team-component.css +2 -2
- package/package.json +1 -1
- package/dist/SmartWorkbench.module-xRRmpTTw.js +0 -85
- package/dist/createWorkspaceWsHandler-mq-UTF2O.js +0 -13028
- package/dist/index-7nSly-MA.js +0 -405
- package/dist/index-B11_fFjX.js +0 -1182
- package/dist/index-B3-0eXYQ.js +0 -844
- package/dist/index-Cp3DAwNx.js +0 -13862
- package/dist/index-NaBR2aQE.js +0 -6685
- package/dist/index-UsGqMo11.js +0 -848
- package/dist/schedule-C-4ksDPw.js +0 -239
- package/dist/webide-RsFP9pHM.js +0 -8087
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { create as
|
|
2
|
-
import { Q as
|
|
1
|
+
import { create as je } from "zustand";
|
|
2
|
+
import { Q as Ce, H as M, i as j, I as ne, k as A, t as _, J as se, K as Pe, L as Ne, M as we, N as Ee, O as xe, P as Fe, R as ae, S as Re, U as Oe, V as B, W as Ue, X as He, w as ie, Y as Le, Z as $e, _ as Ge, $ as De, a0 as Ve, a1 as Be, a2 as qe, a3 as ze, a4 as Ke, a5 as We, a6 as Je, a7 as Ye, a8 as Ze, a9 as Qe, aa as Xe, s as x, ab as et, ac as oe, ad as tt, ae as nt, af as rt, ag as st, ah as at, ai as it, aj as ot, ak as ct, c as lt, al as ut, am as dt, m as ft, an as mt } from "./api-CALqShkO.js";
|
|
3
3
|
import { message as F } from "antd";
|
|
4
4
|
const _e = `[[REASONING:正在分析…]]
|
|
5
5
|
正在分析…
|
|
@@ -65,7 +65,7 @@ function Rt(n) {
|
|
|
65
65
|
}
|
|
66
66
|
function pt(n) {
|
|
67
67
|
var e;
|
|
68
|
-
return ((e = n == null ? void 0 : n.scenario_code) == null ? void 0 : e.trim().toLowerCase()) ===
|
|
68
|
+
return ((e = n == null ? void 0 : n.scenario_code) == null ? void 0 : e.trim().toLowerCase()) === Ce;
|
|
69
69
|
}
|
|
70
70
|
function he(n, t) {
|
|
71
71
|
return pt(n) && !ye(t);
|
|
@@ -220,7 +220,7 @@ function ht(n) {
|
|
|
220
220
|
return n.sender_type !== "AGENT" || E(n) || n.content === "已取消" ? !1 : n.content === "处理中..." || n.content === "🔄 正在处理中..." || Q(n.content) || n.content.includes("[[REASONING:") || n.content.includes("[[TOOL_CALL:");
|
|
221
221
|
}
|
|
222
222
|
function z(n, t, e, r, s, a) {
|
|
223
|
-
if (
|
|
223
|
+
if (j(a))
|
|
224
224
|
return a;
|
|
225
225
|
const o = t ? s : r, i = t ?? null;
|
|
226
226
|
for (let c = o.length - 1; c >= 0; c--) {
|
|
@@ -364,7 +364,7 @@ function me(n, t) {
|
|
|
364
364
|
const Ie = "$ref";
|
|
365
365
|
function N(n) {
|
|
366
366
|
const t = _(n);
|
|
367
|
-
return
|
|
367
|
+
return j(t) ? t : void 0;
|
|
368
368
|
}
|
|
369
369
|
function ve(n) {
|
|
370
370
|
if (!n || typeof n != "object" || Array.isArray(n))
|
|
@@ -372,7 +372,7 @@ function ve(n) {
|
|
|
372
372
|
const t = Object.keys(n);
|
|
373
373
|
return t.length === 1 && t[0] === Ie;
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function C(n) {
|
|
376
376
|
if (!(!n || typeof n != "object" || Array.isArray(n)) && !ve(n))
|
|
377
377
|
return n;
|
|
378
378
|
}
|
|
@@ -381,10 +381,10 @@ function w(n) {
|
|
|
381
381
|
}
|
|
382
382
|
function kt(n) {
|
|
383
383
|
var s;
|
|
384
|
-
const t =
|
|
384
|
+
const t = C(n.submittedValue);
|
|
385
385
|
if (w(t))
|
|
386
386
|
return t;
|
|
387
|
-
const e =
|
|
387
|
+
const e = C((s = n.cardForm) == null ? void 0 : s.value);
|
|
388
388
|
if (w(e))
|
|
389
389
|
return e;
|
|
390
390
|
const r = typeof n.result == "string" && n.result.trim() ? n.result.trim() : "";
|
|
@@ -405,7 +405,7 @@ function Tt(n) {
|
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
407
|
function Zt(n, t) {
|
|
408
|
-
const e = t.result == null || t.result === "" ? n.result : String(t.result), r = Tt(t.ext), s =
|
|
408
|
+
const e = t.result == null || t.result === "" ? n.result : String(t.result), r = Tt(t.ext), s = C(
|
|
409
409
|
(r == null ? void 0 : r.submittedValue) ?? (r == null ? void 0 : r.submitted_value)
|
|
410
410
|
), a = {
|
|
411
411
|
...n,
|
|
@@ -420,7 +420,7 @@ function be(n) {
|
|
|
420
420
|
const t = n, e = N(t.humanTaskId ?? t.human_task_id);
|
|
421
421
|
if (e == null)
|
|
422
422
|
return null;
|
|
423
|
-
const r =
|
|
423
|
+
const r = C(t.cardForm) ?? C(t.card_form), s = C(t.submittedValue ?? t.submitted_value), a = typeof t.result == "string" ? t.result : void 0, o = kt({
|
|
424
424
|
submittedValue: s,
|
|
425
425
|
cardForm: r,
|
|
426
426
|
result: a
|
|
@@ -477,7 +477,7 @@ function ee(n) {
|
|
|
477
477
|
sender_id: r,
|
|
478
478
|
message_type: String(n.message_type ?? n.messageType ?? "TEXT"),
|
|
479
479
|
content: String(n.content ?? ""),
|
|
480
|
-
task_id: a == null || !
|
|
480
|
+
task_id: a == null || !j(a) ? null : a,
|
|
481
481
|
ext: l,
|
|
482
482
|
created_at: String(n.created_at ?? n.createdAt ?? ""),
|
|
483
483
|
sender_name: String(n.sender_name ?? n.senderName ?? ""),
|
|
@@ -606,7 +606,7 @@ function bt(n, t, e) {
|
|
|
606
606
|
const s = [...n];
|
|
607
607
|
return s[r] = { ...t, id: t.id }, s;
|
|
608
608
|
}
|
|
609
|
-
function
|
|
609
|
+
function jt(n) {
|
|
610
610
|
var r;
|
|
611
611
|
const t = (r = n.currentProject) == null ? void 0 : r.id;
|
|
612
612
|
if (t == null)
|
|
@@ -626,7 +626,7 @@ function Ct(n) {
|
|
|
626
626
|
}
|
|
627
627
|
const L = 80;
|
|
628
628
|
let ge = 0;
|
|
629
|
-
function
|
|
629
|
+
function Ct(n) {
|
|
630
630
|
let t = (n || "").trim();
|
|
631
631
|
if (!t) return "";
|
|
632
632
|
t.length > 2e3 && (t = t.slice(0, 2e3));
|
|
@@ -652,7 +652,7 @@ function $() {
|
|
|
652
652
|
const n = /* @__PURE__ */ new Date(), t = (e) => String(e).padStart(2, "0");
|
|
653
653
|
return `${t(n.getHours())}:${t(n.getMinutes())}:${t(n.getSeconds())}`;
|
|
654
654
|
}
|
|
655
|
-
const Xt = 3, en = 4, tn = 5, nn =
|
|
655
|
+
const Xt = 3, en = 4, tn = 5, nn = je((n, t) => ({
|
|
656
656
|
currentUser: null,
|
|
657
657
|
// FEATURE-ZTEAM-MERGE: 优先 z-opc 的 token, 其次 z-team 原生的 z_team_token
|
|
658
658
|
token: localStorage.getItem("token") || localStorage.getItem("z_team_token") || "",
|
|
@@ -1045,7 +1045,7 @@ const Xt = 3, en = 4, tn = 5, nn = Ce((n, t) => ({
|
|
|
1045
1045
|
if (!Z(r))
|
|
1046
1046
|
return;
|
|
1047
1047
|
const s = r.id;
|
|
1048
|
-
if (!
|
|
1048
|
+
if (!j(s))
|
|
1049
1049
|
return;
|
|
1050
1050
|
const a = t();
|
|
1051
1051
|
let o = G(r, a.members);
|
|
@@ -1366,7 +1366,7 @@ const Xt = 3, en = 4, tn = 5, nn = Ce((n, t) => ({
|
|
|
1366
1366
|
},
|
|
1367
1367
|
expandProject: async (e, r) => {
|
|
1368
1368
|
var g, P;
|
|
1369
|
-
const s = String(e.id), a = (r == null ? void 0 : r.expandTree) === !0, o = t(), i =
|
|
1369
|
+
const s = String(e.id), a = (r == null ? void 0 : r.expandTree) === !0, o = t(), i = jt(o), c = le(e, o.currentUser, e.mode), l = o.expandedProjectIds.includes(s), u = i[s], d = !o.fileTrees[s] || o.fileTrees[s].length === 0;
|
|
1370
1370
|
if (((g = o.currentProject) == null ? void 0 : g.id) === s && o.projectSwitchSeq > 0) {
|
|
1371
1371
|
a && !l && (n({
|
|
1372
1372
|
expandedProjectIds: [
|
|
@@ -1643,8 +1643,8 @@ const Xt = 3, en = 4, tn = 5, nn = Ce((n, t) => ({
|
|
|
1643
1643
|
const r = ee(
|
|
1644
1644
|
e
|
|
1645
1645
|
), s = _(r.task_id);
|
|
1646
|
-
if (
|
|
1647
|
-
const d =
|
|
1646
|
+
if (j(s)) {
|
|
1647
|
+
const d = Ct(r.content);
|
|
1648
1648
|
d && t().pushTaskActivity(
|
|
1649
1649
|
s,
|
|
1650
1650
|
d,
|
|
@@ -1662,7 +1662,7 @@ const Xt = 3, en = 4, tn = 5, nn = Ce((n, t) => ({
|
|
|
1662
1662
|
{ ...r, task_id: o },
|
|
1663
1663
|
t().members
|
|
1664
1664
|
), c = i.id;
|
|
1665
|
-
|
|
1665
|
+
j(c) && n((d) => {
|
|
1666
1666
|
let f = d.taskMessages;
|
|
1667
1667
|
if (i.sender_type === "AGENT" && i.task_id && (f = f.filter(
|
|
1668
1668
|
(g) => !(M(g.id) && g.sender_type === "AGENT" && g.task_id === i.task_id)
|