@yuku123/z-team-component 0.2.72 → 0.2.74
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-AUM7QbBp.js → ChangeLogView-BJxIhIPc.js} +1 -1
- package/dist/{ComponentDoc-CLxzCDOh.js → ComponentDoc-CFKpk6X_.js} +3 -3
- package/dist/{InvitationManagementPage-MxyMf4G0.js → InvitationManagementPage-Dr4SxM5K.js} +1 -1
- package/dist/{OnboardingPage-BRwX8RYe.js → OnboardingPage-DcYULxKd.js} +2 -2
- package/dist/{ScheduledTasks-CM1m4eVZ.js → ScheduledTasks-T4NFJWsk.js} +2918 -3170
- package/dist/{SystemShell-BlgZhQ3V.js → SystemShell-D8aDuO_D.js} +215 -196
- package/dist/{admin-logs-Dx2fTWjF.js → admin-logs-asBlA9MU.js} +2 -2
- package/dist/{api-prj570UT.js → api-Bj-xsNGU.js} +1 -1
- package/dist/{api-CvQEwiLU.js → api-DPkUB1DA.js} +67 -67
- package/dist/{createWorkspaceWsHandler-gVanGCAb.js → createWorkspaceWsHandler-25JfnMML.js} +1834 -1812
- package/dist/{index-pyPNcAqs.js → index-BA3lZUmW.js} +1 -1
- package/dist/{index-DOyFfs3n.js → index-BYTVXqVp.js} +3844 -3731
- package/dist/{index-pc_ckjzD.js → index-BYn9kfIj.js} +3 -3
- package/dist/{index-C1rcAeiF.js → index-BZnC9BRh.js} +3 -3
- package/dist/{index-BujZj4b8.js → index-B_O9mXF6.js} +4 -4
- package/dist/{index-nj-cjKsf.js → index-BohoJQPr.js} +1849 -1857
- package/dist/{index-DDlmkQRB.js → index-C7ymoOiI.js} +2 -2
- package/dist/{index-DZbYU9xn.js → index-C9YhDxMT.js} +1 -1
- package/dist/{index-CxYTuPnw.js → index-CMVYzEVW.js} +2 -2
- package/dist/{index-DrWXMU6s.js → index-COhXbfib.js} +1 -1
- package/dist/index-CQcGGl6J.js +137 -0
- package/dist/{index-B5xRddRA.js → index-CbTwXfER.js} +6 -6
- package/dist/{index-Dk0Qm8aZ.js → index-Ccc2gRJA.js} +1 -1
- package/dist/{index-D1PpV_Lf.js → index-Ce9TrTy7.js} +2 -2
- package/dist/{index-C4AgHd-o.js → index-Czt_d2TY.js} +2 -2
- package/dist/{index-Cry-Oyoh.js → index-DHDQGO4q.js} +3 -3
- package/dist/{index-DJMZ1RpC.js → index-DOOlyOVX.js} +2 -2
- package/dist/{index-QZpyj7Q3.js → index-DfecivMN.js} +1256 -1256
- package/dist/{index-CL7GMxR-.js → index-DxRqnvKU.js} +4 -4
- package/dist/{index-PGSvSOmm.js → index-IK8UlsDo.js} +30 -30
- package/dist/{index-Cr4Rf1IT.js → index-OP18iV8V.js} +5 -5
- package/dist/{index-CrpF4NY8.js → index-Zx-BL-9D.js} +1 -1
- package/dist/{index-Do4YkHdZ.js → index-d5kr3WEM.js} +4 -4
- package/dist/{index-DzAkJL3V.js → index-rPNKkWaw.js} +3 -3
- package/dist/index-rkF8co0n.js +2882 -0
- package/dist/index.js +1 -1
- package/dist/{instance-TOlRCxS4.js → instance-B9aQMplq.js} +1 -1
- package/dist/{menuPermission-Bay-G_zT.js → menuPermission-6NaQTuIn.js} +3 -3
- package/dist/pages.js +11 -11
- package/dist/{schedule-DkbDjIh4.js → schedule-iMEGim0L.js} +1 -1
- package/dist/{send-default-agent-team-message-Bv-QRc7Y.js → send-default-agent-team-message-DtkE1OO4.js} +1 -1
- package/dist/{sso-user-BpOzJlQ3.js → sso-user-CFgbZoZ1.js} +1 -1
- package/dist/{training-BDzZav1U.js → training-DeyqAiin.js} +1 -1
- package/dist/{useAppStore-B1sVy9Iw.js → useAppStore-DQP0l22d.js} +19 -19
- package/dist/{webide-C3IaJ_eP.js → webide-BlpH-J-H.js} +4 -4
- package/dist/z-team-component.css +1 -1
- package/package.json +1 -1
- package/dist/index-BbxVn7xy.js +0 -1747
- package/dist/index-D4opADk_.js +0 -168
- package/dist/index-zhz9iWvI.js +0 -2629
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as o, f as d, B as r, u as c } from "./api-
|
|
1
|
+
import { a as o, f as d, B as r, u as c } from "./api-DPkUB1DA.js";
|
|
2
2
|
async function h(e, n = "") {
|
|
3
3
|
const t = new URLSearchParams();
|
|
4
4
|
n && t.set("token", n), e.scenario_code && t.set("scenario_code", e.scenario_code), e.status && t.set("status", e.status), e.name && t.set("name", e.name), e.role && t.set("role", e.role), e.create_time_start && t.set("create_time_start", e.create_time_start), e.create_time_end && t.set("create_time_end", e.create_time_end), t.set("page", String(e.page ?? 1)), t.set("size", String(e.size ?? 20));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { Alert as h } from "antd";
|
|
3
|
-
import { u as d } from "./useAppStore-
|
|
4
|
-
import { h as g } from "./schedule-
|
|
5
|
-
import { N as A } from "./index-
|
|
3
|
+
import { u as d } from "./useAppStore-DQP0l22d.js";
|
|
4
|
+
import { h as g } from "./schedule-iMEGim0L.js";
|
|
5
|
+
import { N as A } from "./index-BYTVXqVp.js";
|
|
6
6
|
function P() {
|
|
7
7
|
return d((n) => n.permissionState) !== "failed" ? null : /* @__PURE__ */ a(
|
|
8
8
|
h,
|
package/dist/pages.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { createElement as e } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { S as
|
|
2
|
+
import { BellOutlined as t, ProjectOutlined as o, DesktopOutlined as r, ReadOutlined as a } from "@ant-design/icons";
|
|
3
|
+
import { S as m, P as p, C as i, Z as n } from "./ComponentDoc-CFKpk6X_.js";
|
|
4
4
|
import "react/jsx-runtime";
|
|
5
5
|
import "react-router-dom";
|
|
6
6
|
import "antd";
|
|
7
7
|
import "@yuku123/z-frontend-common";
|
|
8
8
|
import "@yuku123/z-frontend-common/ui";
|
|
9
|
-
const
|
|
10
|
-
{ path: "/team/subscribe", title: "订阅", order: 1, Component:
|
|
11
|
-
{ path: "/team/project", title: "项目", order: 2, Component:
|
|
9
|
+
const h = { title: "z-team 团队工作台", short: "team" }, j = [
|
|
10
|
+
{ path: "/team/subscribe", title: "订阅", order: 1, Component: m },
|
|
11
|
+
{ path: "/team/project", title: "项目", order: 2, Component: p },
|
|
12
12
|
// 组件文档页(lead 008 §7):放在 /team/:rest* 兜底之前,否则会被兜底路由吃掉。
|
|
13
|
-
{ path: "/team/docs", title: "组件文档", order: 3, Component:
|
|
14
|
-
{ path: "/team/:rest*", Component:
|
|
13
|
+
{ path: "/team/docs", title: "组件文档", order: 3, Component: i },
|
|
14
|
+
{ path: "/team/:rest*", Component: n }
|
|
15
15
|
];
|
|
16
|
-
e(t);
|
|
16
|
+
e(t), e(o), e(r), e(a);
|
|
17
17
|
export {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
i as ComponentDocPage,
|
|
19
|
+
h as appMeta,
|
|
20
|
+
j as routes
|
|
21
21
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as i, f as c, B as d,
|
|
1
|
+
import { a as i, f as c, B as d, n as u, u as h, t as N, g as R } from "./api-DPkUB1DA.js";
|
|
2
2
|
import { jsx as g, jsxs as O } from "react/jsx-runtime";
|
|
3
3
|
import { useMemo as b, useState as L, useEffect as D, Component as M } from "react";
|
|
4
4
|
const T = [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { create as
|
|
2
|
-
import { Q as
|
|
1
|
+
import { create as Ce } from "zustand";
|
|
2
|
+
import { Q as je, x as M, i as C, y as ne, k as A, t as _, z as se, A as Pe, C as Ne, D as we, E as Ee, F as xe, G as Fe, H as ae, I as Re, J as Oe, K as B, L as Ue, M as He, w as ie, N as Le, O as $e, P as Ge, R as De, S as Ve, U as Be, V as qe, W as ze, X as Ke, Y as We, Z as Je, _ as Ye, $ as Ze, a0 as Qe, a1 as Xe, s as x, a2 as et, a3 as oe, a4 as tt, a5 as nt, a6 as rt, a7 as st, a8 as at, a9 as it, aa as ot, ab as ct, c as lt, ac as ut, ad as dt, m as ft, ae as mt } from "./api-DPkUB1DA.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()) === je;
|
|
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 (C(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 C(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 j(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 = j(n.submittedValue);
|
|
385
385
|
if (w(t))
|
|
386
386
|
return t;
|
|
387
|
-
const e =
|
|
387
|
+
const e = j((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 = j(
|
|
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 = j(t.cardForm) ?? j(t.card_form), s = j(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 || !C(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 Ct(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 jt(n) {
|
|
|
626
626
|
}
|
|
627
627
|
const L = 80;
|
|
628
628
|
let ge = 0;
|
|
629
|
-
function
|
|
629
|
+
function jt(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 = Ce((n, t) => ({
|
|
656
656
|
currentUser: null,
|
|
657
657
|
permissionState: "unknown",
|
|
658
658
|
// FEATURE-ZTEAM-MERGE: 优先 z-opc 的 token, 其次 z-team 原生的 z_team_token
|
|
@@ -1049,7 +1049,7 @@ const Xt = 3, en = 4, tn = 5, nn = je((n, t) => ({
|
|
|
1049
1049
|
if (!Z(r))
|
|
1050
1050
|
return;
|
|
1051
1051
|
const s = r.id;
|
|
1052
|
-
if (!
|
|
1052
|
+
if (!C(s))
|
|
1053
1053
|
return;
|
|
1054
1054
|
const a = t();
|
|
1055
1055
|
let o = G(r, a.members);
|
|
@@ -1370,7 +1370,7 @@ const Xt = 3, en = 4, tn = 5, nn = je((n, t) => ({
|
|
|
1370
1370
|
},
|
|
1371
1371
|
expandProject: async (e, r) => {
|
|
1372
1372
|
var g, P;
|
|
1373
|
-
const s = String(e.id), a = (r == null ? void 0 : r.expandTree) === !0, o = t(), i =
|
|
1373
|
+
const s = String(e.id), a = (r == null ? void 0 : r.expandTree) === !0, o = t(), i = Ct(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;
|
|
1374
1374
|
if (((g = o.currentProject) == null ? void 0 : g.id) === s && o.projectSwitchSeq > 0) {
|
|
1375
1375
|
a && !l && (n({
|
|
1376
1376
|
expandedProjectIds: [
|
|
@@ -1647,8 +1647,8 @@ const Xt = 3, en = 4, tn = 5, nn = je((n, t) => ({
|
|
|
1647
1647
|
const r = ee(
|
|
1648
1648
|
e
|
|
1649
1649
|
), s = _(r.task_id);
|
|
1650
|
-
if (
|
|
1651
|
-
const d =
|
|
1650
|
+
if (C(s)) {
|
|
1651
|
+
const d = jt(r.content);
|
|
1652
1652
|
d && t().pushTaskActivity(
|
|
1653
1653
|
s,
|
|
1654
1654
|
d,
|
|
@@ -1666,7 +1666,7 @@ const Xt = 3, en = 4, tn = 5, nn = je((n, t) => ({
|
|
|
1666
1666
|
{ ...r, task_id: o },
|
|
1667
1667
|
t().members
|
|
1668
1668
|
), c = i.id;
|
|
1669
|
-
|
|
1669
|
+
C(c) && n((d) => {
|
|
1670
1670
|
let f = d.taskMessages;
|
|
1671
1671
|
if (i.sender_type === "AGENT" && i.task_id && (f = f.filter(
|
|
1672
1672
|
(g) => !(M(g.id) && g.sender_type === "AGENT" && g.task_id === i.task_id)
|
|
@@ -6,11 +6,11 @@ import dr from "react-markdown";
|
|
|
6
6
|
import ur from "rehype-highlight";
|
|
7
7
|
import mr from "remark-gfm";
|
|
8
8
|
import { h as pr } from "./history-BlrA1eaW.js";
|
|
9
|
-
import { a as z, f as F, B as H, u as W, i as lt,
|
|
10
|
-
import { u as Bn, f as za, a as Wa, b as Ga, c as Ka, d as qa, e as Va, g as gr, r as br, h as vr, m as Cr } from "./admin-logs-
|
|
11
|
-
import { s as Ya, j as Ja, k as Vn, l as _n, p as gn, n as Qa, o as Un, q as Xa, v as Nr, w as Sr, x as Za, y as wr, z as pn, f as eo, D as to, A as Ir, B as Tr, C as kr } from "./schedule-
|
|
9
|
+
import { a as z, f as F, B as H, u as W, i as lt, k as Ce, t as He, c as hr, ap as qn, ac as fr, aC as yr, aD as ga, aE as _r, aF as Ha } from "./api-DPkUB1DA.js";
|
|
10
|
+
import { u as Bn, f as za, a as Wa, b as Ga, c as Ka, d as qa, e as Va, g as gr, r as br, h as vr, m as Cr } from "./admin-logs-asBlA9MU.js";
|
|
11
|
+
import { s as Ya, j as Ja, k as Vn, l as _n, p as gn, n as Qa, o as Un, q as Xa, v as Nr, w as Sr, x as Za, y as wr, z as pn, f as eo, D as to, A as Ir, B as Tr, C as kr } from "./schedule-iMEGim0L.js";
|
|
12
12
|
import Me from "dayjs";
|
|
13
|
-
import { u as Wt } from "./useAppStore-
|
|
13
|
+
import { u as Wt } from "./useAppStore-DQP0l22d.js";
|
|
14
14
|
import { M as no } from "./index-CUVdeb8y.js";
|
|
15
15
|
import "./echarts-B1OU1xr4.js";
|
|
16
16
|
import * as Dr from "echarts/core";
|