@yuku123/z-team-component 0.2.11 → 0.2.13
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/{InvitationManagementPage-BJeNjZwz.js → InvitationManagementPage-dnAOh-1A.js} +2 -2
- package/dist/{OnboardingPage-C4IKDR7H.js → OnboardingPage-BuvUHqS8.js} +2 -2
- package/dist/{ProjectApp-BzwYOzVU.js → ProjectApp-CAY_G6ac.js} +3 -3
- package/dist/{admin-logs-D9_Q7x5S.js → admin-logs-RkPVW5zJ.js} +8 -8
- package/dist/{api-fqyi5hV8.js → api-DcBK5kmz.js} +1 -1
- package/dist/{api-DxGj2k96.js → api-mKVq2JFi.js} +516 -556
- package/dist/{createWorkspaceWsHandler-CO8CErPb.js → createWorkspaceWsHandler-BpkDf0wr.js} +1354 -1354
- package/dist/{index-BPEHmsyH.js → index-7wc83ksn.js} +4 -4
- package/dist/{index-CAyKJ_Kb.js → index-B6EP1c21.js} +4 -4
- package/dist/{index-BRc2oNNo.js → index-BAEdGW8_.js} +3 -3
- package/dist/{index-8xyTb9mH.js → index-BCL8Ew0Y.js} +4 -4
- package/dist/{index-C2WxsJfi.js → index-BXfYbdx8.js} +10 -10
- package/dist/{index-CoEkAZu6.js → index-BpdbOlUi.js} +10 -10
- package/dist/{index-DTRpN0nk.js → index-D39xiMXA.js} +13 -13
- package/dist/{index-CqUVCMOn.js → index-DLJO1VX8.js} +3 -3
- package/dist/{index-o_J49wn9.js → index-DdtuikC1.js} +4044 -4034
- package/dist/{index-DLRNcbNN.js → index-MOmt3iqG.js} +6 -6
- package/dist/{index-bUfp5OSs.js → index-XeypVCYb.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/{instance-BnjcRI0U.js → instance-BNPgTp94.js} +84 -83
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-4hgjqdo4.js → send-default-agent-team-message-JTSAqt7M.js} +1 -1
- package/dist/{sso-user-D1N_OzF2.js → sso-user-BDYIn086.js} +1 -1
- package/dist/{useAppStore-Cq9uSFGy.js → useAppStore-CL9gD6JS.js} +1 -1
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import { f as ie, r as $ } from "./ctc-sso-B62FfkZg.js";
|
|
3
|
-
import { r as le, h as K, s as J } from "./sso-user-
|
|
3
|
+
import { r as le, h as K, s as J } from "./sso-user-BDYIn086.js";
|
|
4
4
|
import { ArrowLeftOutlined as de, PlusOutlined as ue, LogoutOutlined as pe, SearchOutlined as me } from "@ant-design/icons";
|
|
5
5
|
import { Spin as q, Button as D, Input as he, Empty as X, Tag as fe, message as ge } from "antd";
|
|
6
6
|
import B from "query-string";
|
|
7
7
|
import { useEffect as N, useState as y, useMemo as Y, useRef as M, useCallback as G } from "react";
|
|
8
8
|
import { useLocation as be } from "react-router-dom";
|
|
9
9
|
import { h as A } from "./history-BlrA1eaW.js";
|
|
10
|
-
import { c as ke, C as we } from "./createWorkspaceWsHandler-
|
|
11
|
-
import { u as r, f as Se, T as ve } from "./useAppStore-
|
|
12
|
-
import { o as ye,
|
|
13
|
-
import { l as Pe, j as Te } from "./instance-
|
|
10
|
+
import { c as ke, C as we } from "./createWorkspaceWsHandler-BpkDf0wr.js";
|
|
11
|
+
import { u as r, f as Se, T as ve } from "./useAppStore-CL9gD6JS.js";
|
|
12
|
+
import { o as ye, l as Ne, m as je, n as Ce, e as ee } from "./api-mKVq2JFi.js";
|
|
13
|
+
import { l as Pe, j as Te } from "./instance-BNPgTp94.js";
|
|
14
14
|
/* empty css */
|
|
15
|
-
import { s as xe } from "./admin-logs-
|
|
15
|
+
import { s as xe } from "./admin-logs-RkPVW5zJ.js";
|
|
16
16
|
function Ie(p, d) {
|
|
17
17
|
N(() => {
|
|
18
18
|
if (p == null)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { AppLayout as k, ErrorBoundary as v, LoginPage as H, StatusTag as K, defaultStatusMap as _ } from "@yuku123/z-frontend-common";
|
|
2
|
-
import { a as y } from "./ProjectApp-
|
|
3
|
-
import { C as F, E as J, c as Q, M as X, d as Y, O as Z, e as $, R as tt, f as et, g as at, h as rt, j as ot, r as nt, r as it, s as lt } from "./ProjectApp-
|
|
2
|
+
import { a as y } from "./ProjectApp-CAY_G6ac.js";
|
|
3
|
+
import { C as F, E as J, c as Q, M as X, d as Y, O as Z, e as $, R as tt, f as et, g as at, h as rt, j as ot, r as nt, r as it, s as lt } from "./ProjectApp-CAY_G6ac.js";
|
|
4
4
|
import { jsxs as a, jsx as t } from "react/jsx-runtime";
|
|
5
5
|
import { useState as i, useEffect as E } from "react";
|
|
6
6
|
import { Card as h, Alert as x, Table as g, Spin as I, Empty as f, Space as R, Button as s, Tag as c } from "antd";
|
|
7
7
|
import { ReloadOutlined as T, UserAddOutlined as w, TeamOutlined as b, PlusOutlined as O, CodeOutlined as S } from "@ant-design/icons";
|
|
8
|
-
import { D as dt } from "./index-
|
|
8
|
+
import { D as dt } from "./index-BpdbOlUi.js";
|
|
9
9
|
const G = y, A = {
|
|
10
10
|
LEADER: "red",
|
|
11
11
|
WORKER: "blue",
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
async function
|
|
1
|
+
import { a as o, f as d, B as r, b as c } from "./api-mKVq2JFi.js";
|
|
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));
|
|
5
|
-
const s = await
|
|
6
|
-
`${
|
|
7
|
-
|
|
5
|
+
const s = await o(
|
|
6
|
+
`${r}/scenario-instances/page?${t.toString()}`,
|
|
7
|
+
d
|
|
8
8
|
);
|
|
9
|
-
return
|
|
9
|
+
return c(s, "获取工作项列表失败");
|
|
10
10
|
}
|
|
11
11
|
function u(e) {
|
|
12
12
|
return {
|
|
@@ -27,11 +27,11 @@ function u(e) {
|
|
|
27
27
|
close_time: m(e, "close_time"),
|
|
28
28
|
close_user: m(e, "close_user"),
|
|
29
29
|
members: Array.isArray(e.members) ? e.members.map((n) => String(n)) : void 0,
|
|
30
|
-
parent_id:
|
|
30
|
+
parent_id: p(e)
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
function m(e, n) {
|
|
34
|
-
const t = n.replace(/_([a-z])/g, (
|
|
34
|
+
const t = n.replace(/_([a-z])/g, (l, _) => _.toUpperCase());
|
|
35
35
|
if (e[n] != null) return e[n];
|
|
36
36
|
if (e[t] != null) return e[t];
|
|
37
37
|
const s = e.close_info ?? e.closeInfo;
|
|
@@ -45,7 +45,7 @@ function m(e, n) {
|
|
|
45
45
|
if (i)
|
|
46
46
|
return i[n] ?? void 0;
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function p(e) {
|
|
49
49
|
const n = e.ext;
|
|
50
50
|
if (!n) return;
|
|
51
51
|
const t = n.params;
|
|
@@ -55,49 +55,50 @@ function g(e) {
|
|
|
55
55
|
const a = s === "" ? "" : String(s);
|
|
56
56
|
return a === "" ? void 0 : a;
|
|
57
57
|
}
|
|
58
|
-
async function
|
|
59
|
-
const n = await
|
|
60
|
-
`${
|
|
58
|
+
async function I(e) {
|
|
59
|
+
const n = await o(
|
|
60
|
+
`${r}/scenario-instances/${e}/models`
|
|
61
61
|
);
|
|
62
|
-
return await
|
|
62
|
+
return await c(n, "获取模型列表失败") ?? [];
|
|
63
63
|
}
|
|
64
|
-
const
|
|
65
|
-
async function
|
|
66
|
-
const n = await
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
const f = "develop_brain_scenario";
|
|
65
|
+
async function C(e) {
|
|
66
|
+
const n = await o(
|
|
67
|
+
`${r}/dev-brain/agent/ticket?ticketId=${encodeURIComponent(e)}`,
|
|
68
|
+
d
|
|
69
|
+
);
|
|
70
|
+
return c(n, "获取工单信息失败");
|
|
70
71
|
}
|
|
71
|
-
function
|
|
72
|
+
function T(e) {
|
|
72
73
|
return String(e.currentStage ?? e.current_stage ?? "").trim();
|
|
73
74
|
}
|
|
74
|
-
function
|
|
75
|
+
function g(e) {
|
|
75
76
|
const n = e.trim().replace(/[/\\:*?"<>|]/g, "_");
|
|
76
77
|
return n.length > 0 ? n.slice(0, 80) : "workspace";
|
|
77
78
|
}
|
|
78
|
-
function
|
|
79
|
+
function v(e, n) {
|
|
79
80
|
var i;
|
|
80
81
|
const t = e.requirementTitle && e.requirementTitle.trim() || n, s = { ticket_id: n }, a = (i = e.foneUrl) == null ? void 0 : i.trim();
|
|
81
82
|
return a && (s.work_order_url = a), {
|
|
82
83
|
name: t,
|
|
83
84
|
description: `ticket_id_${n}_${t}`,
|
|
84
|
-
workspace_path:
|
|
85
|
-
scenario_code:
|
|
85
|
+
workspace_path: g(t),
|
|
86
|
+
scenario_code: f,
|
|
86
87
|
extend_params: s
|
|
87
88
|
};
|
|
88
89
|
}
|
|
89
|
-
async function
|
|
90
|
-
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await
|
|
91
|
-
`${
|
|
92
|
-
|
|
93
|
-
), a = await
|
|
90
|
+
async function S(e, n = "") {
|
|
91
|
+
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await o(
|
|
92
|
+
`${r}/scenario-instances/${e}${t}`,
|
|
93
|
+
d
|
|
94
|
+
), a = await c(s, "获取项目失败"), i = a.status === "FOUND" ? "FOUND" : "NOT_FOUND", l = a.scenario_instance ?? a.scenarioInstance ?? null;
|
|
94
95
|
return {
|
|
95
96
|
status: i,
|
|
96
|
-
scenarioInstance:
|
|
97
|
+
scenarioInstance: l ? u(l) : null
|
|
97
98
|
};
|
|
98
99
|
}
|
|
99
|
-
async function
|
|
100
|
-
const t = await
|
|
100
|
+
async function U(e, n = "") {
|
|
101
|
+
const t = await S(e, n);
|
|
101
102
|
if (t.status === "NOT_FOUND" || !t.scenarioInstance)
|
|
102
103
|
throw {
|
|
103
104
|
_apiUserError: !0,
|
|
@@ -106,18 +107,18 @@ async function k(e, n = "") {
|
|
|
106
107
|
};
|
|
107
108
|
return t.scenarioInstance;
|
|
108
109
|
}
|
|
109
|
-
async function
|
|
110
|
-
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await
|
|
111
|
-
`${
|
|
110
|
+
async function b(e, n = "") {
|
|
111
|
+
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await o(
|
|
112
|
+
`${r}/scenario-instances/${e}/join-self${t}`,
|
|
112
113
|
{
|
|
113
|
-
...
|
|
114
|
+
...d,
|
|
114
115
|
method: "POST"
|
|
115
116
|
}
|
|
116
|
-
), a = await
|
|
117
|
+
), a = await c(s, "加入工程失败");
|
|
117
118
|
return u(a);
|
|
118
119
|
}
|
|
119
|
-
async function
|
|
120
|
-
const n = e ? `?token=${encodeURIComponent(e)}` : "", t = await
|
|
120
|
+
async function k(e = "") {
|
|
121
|
+
const n = e ? `?token=${encodeURIComponent(e)}` : "", t = await o(`${r}/self-support${n}`, d), s = await c(t, "获取自身答疑群组失败"), a = Number(s.scenario_instance_id ?? 0);
|
|
121
122
|
if (!Number.isFinite(a) || a <= 0)
|
|
122
123
|
throw {
|
|
123
124
|
_apiUserError: !0,
|
|
@@ -132,60 +133,60 @@ async function A(e = "") {
|
|
|
132
133
|
status: String(s.status ?? "ACTIVE")
|
|
133
134
|
};
|
|
134
135
|
}
|
|
135
|
-
async function
|
|
136
|
-
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await
|
|
137
|
-
`${
|
|
138
|
-
|
|
139
|
-
), a = await
|
|
136
|
+
async function y(e, n = "") {
|
|
137
|
+
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await o(
|
|
138
|
+
`${r}/scenario-instances/${e}/forks${t}`,
|
|
139
|
+
d
|
|
140
|
+
), a = await c(s, "获取 Fork 列表失败");
|
|
140
141
|
return (Array.isArray(a) ? a : []).map(
|
|
141
|
-
(
|
|
142
|
+
(l) => u(l)
|
|
142
143
|
);
|
|
143
144
|
}
|
|
144
|
-
async function
|
|
145
|
-
const n = await
|
|
146
|
-
`${
|
|
145
|
+
async function A(e) {
|
|
146
|
+
const n = await o(
|
|
147
|
+
`${r}/scenario-instances/${e}/close-feedback-tags`,
|
|
147
148
|
{
|
|
148
|
-
...
|
|
149
|
+
...d,
|
|
149
150
|
method: "GET"
|
|
150
151
|
}
|
|
151
152
|
);
|
|
152
|
-
return await
|
|
153
|
+
return await c(n, "获取关单标签失败");
|
|
153
154
|
}
|
|
154
|
-
async function
|
|
155
|
-
const n = await
|
|
156
|
-
...
|
|
155
|
+
async function N(e) {
|
|
156
|
+
const n = await o(`${r}/scenario-instances/${e}/reopen`, {
|
|
157
|
+
...d,
|
|
157
158
|
method: "POST",
|
|
158
159
|
headers: { "Content-Type": "application/json" }
|
|
159
|
-
}), t = await
|
|
160
|
+
}), t = await c(n, "重新开启失败");
|
|
160
161
|
return u(t);
|
|
161
162
|
}
|
|
162
|
-
async function
|
|
163
|
-
const t = await
|
|
164
|
-
...
|
|
163
|
+
async function O(e, n) {
|
|
164
|
+
const t = await o(`${r}/scenario-instances/${e}/close`, {
|
|
165
|
+
...d,
|
|
165
166
|
method: "POST",
|
|
166
167
|
headers: { "Content-Type": "application/json" },
|
|
167
168
|
body: JSON.stringify(n)
|
|
168
|
-
}), s = await
|
|
169
|
+
}), s = await c(t, "关单失败");
|
|
169
170
|
return u(s);
|
|
170
171
|
}
|
|
171
|
-
async function
|
|
172
|
-
const n = await
|
|
173
|
-
`${
|
|
172
|
+
async function P(e) {
|
|
173
|
+
const n = await o(
|
|
174
|
+
`${r}/scenario-instances/${e}/retry-init`,
|
|
174
175
|
{
|
|
175
|
-
...
|
|
176
|
+
...d,
|
|
176
177
|
method: "POST",
|
|
177
178
|
headers: { "Content-Type": "application/json" }
|
|
178
179
|
}
|
|
179
180
|
);
|
|
180
|
-
return
|
|
181
|
+
return c(n, "初始化补偿失败");
|
|
181
182
|
}
|
|
182
|
-
async function
|
|
183
|
+
async function F(e = "", n = 8) {
|
|
183
184
|
const t = new URLSearchParams();
|
|
184
185
|
e && t.set("token", e), t.set("limit", String(n));
|
|
185
|
-
const s = await
|
|
186
|
-
`${
|
|
187
|
-
|
|
188
|
-
), a = await
|
|
186
|
+
const s = await o(
|
|
187
|
+
`${r}/scenario-instances/my-unclosed?${t.toString()}`,
|
|
188
|
+
d
|
|
189
|
+
), a = await c(
|
|
189
190
|
s,
|
|
190
191
|
"查询未关单失败"
|
|
191
192
|
);
|
|
@@ -197,19 +198,19 @@ async function x(e = "", n = 8) {
|
|
|
197
198
|
}));
|
|
198
199
|
}
|
|
199
200
|
export {
|
|
200
|
-
|
|
201
|
-
b,
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
k,
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
201
|
+
h as a,
|
|
202
|
+
v as b,
|
|
203
|
+
I as c,
|
|
204
|
+
k as d,
|
|
205
|
+
O as e,
|
|
206
|
+
C as f,
|
|
207
|
+
A as g,
|
|
208
|
+
P as h,
|
|
209
|
+
y as i,
|
|
210
|
+
b as j,
|
|
211
|
+
U as k,
|
|
212
|
+
S as l,
|
|
213
|
+
F as m,
|
|
214
|
+
T as p,
|
|
215
|
+
N as r
|
|
215
216
|
};
|
package/dist/pages.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { create as Ce } from "zustand";
|
|
2
|
-
import { Q as je,
|
|
2
|
+
import { Q as je, v as M, i as C, w as ne, k as A, t as _, x as se, y as Pe, z as Ne, A as we, C as Ee, D as xe, E as Fe, F as ae, G as Re, H as Oe, I as B, J as Ue, K as He, n as ie, L as Le, M as $e, N as Ge, O as De, P as Ve, R as Be, S as qe, U as ze, V as Ke, W as We, X as Je, Y as Ye, Z as Ze, _ as Qe, $ as Xe, s as x, a0 as et, a1 as oe, a2 as tt, a3 as nt, a4 as rt, a5 as st, a6 as at, a7 as it, a8 as ot, a9 as ct, c as lt, aa as ut, ab as dt, r as ft, ac as mt } from "./api-mKVq2JFi.js";
|
|
3
3
|
import { message as F } from "antd";
|
|
4
4
|
const _e = `[[REASONING:正在分析…]]
|
|
5
5
|
正在分析…
|