@yuku123/z-team-component 0.2.104 → 0.2.106
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-DG-ogBff.js → ChangeLogView-Mn5LSUvJ.js} +1 -1
- package/dist/{ComponentDoc-BW1SyDxk.js → ComponentDoc-BKGd6D6u.js} +12 -12
- package/dist/{InvitationManagementPage-hYvoPEcm.js → InvitationManagementPage-DHORbfXF.js} +1 -1
- package/dist/{OnboardingPage-KDp-DrzY.js → OnboardingPage-ChIsu-TY.js} +2 -2
- package/dist/{ScheduledTasks-CErSDgyW.js → ScheduledTasks-CorjHXG-.js} +6 -6
- package/dist/{SystemShell-DvrY4Bl7.js → SystemShell-iAK8aCSW.js} +4 -4
- package/dist/{admin-logs-uPnnclwN.js → admin-logs-Ckzi7TeC.js} +5 -5
- package/dist/{api-B__qdRIf.js → api-BIwuQUnn.js} +1 -1
- package/dist/api-DWN5lt_h.js +101 -0
- package/dist/{createWorkspaceWsHandler-BXbn5-Ft.js → createWorkspaceWsHandler-CZ6H2AZV.js} +3 -3
- package/dist/{index-C9fGup9t.js → index--JKduFbf.js} +3 -3
- package/dist/{index-ByhCWenF.js → index-2iqK5Tkw.js} +102 -188
- package/dist/{index-2isWwv1X.js → index-715e6ItU.js} +9 -9
- package/dist/{index-0smeCTnr.js → index-BPSoaoFx.js} +1255 -1255
- package/dist/{index-aI2EXKED.js → index-BVhOg_hh.js} +26 -26
- package/dist/{index-DBnH-lRh.js → index-BWpXdOkG.js} +1 -1
- package/dist/{index-C2_tfpEj.js → index-BoL8kFkC.js} +2 -2
- package/dist/{index-CkWKJORv.js → index-C8ylej1n.js} +1 -1
- package/dist/{index-DAGa9v8r.js → index-CH56FdB5.js} +2 -2
- package/dist/{index-q_TPea69.js → index-CSagljyv.js} +15 -15
- package/dist/{index-BwJPAN8f.js → index-CxDonxJ5.js} +19 -19
- package/dist/{index-CsaGecGX.js → index-D1s4BGKe.js} +6 -6
- package/dist/{index-BOJm25by.js → index-D9uZ2Jjj.js} +1 -1
- package/dist/{index-BC8f-JP9.js → index-DBBmrczh.js} +3 -3
- package/dist/{index-YVtm1SRy.js → index-DFVMc2Wx.js} +28 -28
- package/dist/{index-BK3YDeXH.js → index-DG9KRcB7.js} +6 -6
- package/dist/{index-DtHoMz1H.js → index-DJl3h5Bg.js} +1 -1
- package/dist/{index-DcurzowX.js → index-DPzDdcFg.js} +4 -4
- package/dist/{index-DOgCfVB2.js → index-DTx26k4L.js} +2 -2
- package/dist/{index-D-xPVrY3.js → index-T_vi7gwn.js} +1 -1
- package/dist/{index-Cih0yoxc.js → index-VEeHoEbx.js} +5 -5
- package/dist/{index-DIFIvVWE.js → index-ioMD3Wyv.js} +2 -2
- package/dist/{index-BnJ8UEeZ.js → index-kAxFJq-Q.js} +3 -3
- package/dist/index-l4NMXF0T.js +354 -0
- package/dist/{index-Cb88Xdh4.js → index-vdWWTTZg.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/{instance-pdQ_wAhB.js → instance-CUl18UjH.js} +5 -5
- package/dist/{menuPermission-CCQjJVXg.js → menuPermission-rZ0KSqFi.js} +11 -11
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-BzeR4ahf.js → send-default-agent-team-message-BEsgdoRU.js} +1 -1
- package/dist/{sso-user-DI7oiDdc.js → sso-user-BW1vguVf.js} +1 -1
- package/dist/{training-Bz7Sr5yC.js → training-Csa_y6lO.js} +1 -1
- package/dist/{webide-NcHLDiSn.js → webide-DBov-2vp.js} +3 -3
- package/dist/z-team-component.css +1 -1
- package/package.json +1 -1
|
@@ -1,178 +1,92 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import {
|
|
1
|
+
import { jsxs as t, jsx as n, Fragment as _ } from "react/jsx-runtime";
|
|
2
|
+
import { useState as i, useRef as D, useCallback as B, useEffect as N } from "react";
|
|
3
|
+
import { u as j } from "./ComponentDoc-BKGd6D6u.js";
|
|
4
4
|
/* empty css */
|
|
5
|
-
|
|
6
|
-
const n = await o.text().catch(() => "");
|
|
7
|
-
let t = {};
|
|
8
|
-
if (n)
|
|
9
|
-
try {
|
|
10
|
-
t = JSON.parse(n);
|
|
11
|
-
} catch {
|
|
12
|
-
if (!o.ok) throw new Error(s);
|
|
13
|
-
return n;
|
|
14
|
-
}
|
|
15
|
-
if (typeof t.success == "boolean") {
|
|
16
|
-
if (t.success)
|
|
17
|
-
return U(t.data !== void 0 ? t.data : !0);
|
|
18
|
-
throw new Error(t.message || s);
|
|
19
|
-
}
|
|
20
|
-
if (!o.ok) throw new Error(s);
|
|
21
|
-
return U(t);
|
|
22
|
-
}
|
|
23
|
-
const m = O;
|
|
24
|
-
async function q(o, s) {
|
|
25
|
-
const n = s ? `?token=${encodeURIComponent(s)}` : "", t = { ...o, extend_params: { skip_init_task: "true" } }, r = await fetch(`${m}/scenario-instances${n}`, {
|
|
26
|
-
method: "POST",
|
|
27
|
-
credentials: "include",
|
|
28
|
-
headers: {
|
|
29
|
-
Accept: "application/json",
|
|
30
|
-
"Content-Type": "application/json",
|
|
31
|
-
"project-env": "local"
|
|
32
|
-
},
|
|
33
|
-
body: JSON.stringify(t)
|
|
34
|
-
});
|
|
35
|
-
return y(r, "Failed to create scenario instance");
|
|
36
|
-
}
|
|
37
|
-
async function K(o) {
|
|
38
|
-
const s = o ? `?token=${encodeURIComponent(o)}` : "", n = await fetch(`${m}/scenario-instances${s}`, {
|
|
39
|
-
credentials: "include",
|
|
40
|
-
headers: {
|
|
41
|
-
Accept: "application/json",
|
|
42
|
-
"project-env": "local"
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
return y(n, "Failed to list scenario instances");
|
|
46
|
-
}
|
|
47
|
-
async function G(o, s, n) {
|
|
48
|
-
const t = n ? `?token=${encodeURIComponent(n)}` : "", r = await fetch(
|
|
49
|
-
`${m}/scenario-instances/${o}/messages${t}`,
|
|
50
|
-
{
|
|
51
|
-
method: "POST",
|
|
52
|
-
credentials: "include",
|
|
53
|
-
headers: {
|
|
54
|
-
Accept: "application/json",
|
|
55
|
-
"Content-Type": "application/json",
|
|
56
|
-
"project-env": "local"
|
|
57
|
-
},
|
|
58
|
-
body: JSON.stringify(s)
|
|
59
|
-
}
|
|
60
|
-
);
|
|
61
|
-
return y(r, "Failed to send message");
|
|
62
|
-
}
|
|
63
|
-
async function _(o, s = 50, n, t) {
|
|
64
|
-
const r = new URLSearchParams({ limit: String(s) });
|
|
65
|
-
t && r.set("token", t);
|
|
66
|
-
const h = await fetch(
|
|
67
|
-
`${m}/scenario-instances/${o}/messages?${r}`,
|
|
68
|
-
{
|
|
69
|
-
credentials: "include",
|
|
70
|
-
headers: {
|
|
71
|
-
Accept: "application/json",
|
|
72
|
-
"project-env": "local"
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
);
|
|
76
|
-
return y(h, "Failed to list messages");
|
|
77
|
-
}
|
|
78
|
-
async function J(o, s) {
|
|
79
|
-
const n = s ? `?token=${encodeURIComponent(s)}` : "", t = await fetch(
|
|
80
|
-
// 后端成员列表在 /team(TeamController),没有 /members
|
|
81
|
-
`${m}/scenario-instances/${o}/team${n}`,
|
|
82
|
-
{
|
|
83
|
-
credentials: "include",
|
|
84
|
-
headers: {
|
|
85
|
-
Accept: "application/json",
|
|
86
|
-
"project-env": "local"
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
);
|
|
90
|
-
return y(t, "Failed to list members");
|
|
91
|
-
}
|
|
5
|
+
import { l as F, c as G, a as z, b as K, p as W } from "./api-DWN5lt_h.js";
|
|
92
6
|
const L = "dev_brain_scenario";
|
|
93
|
-
function
|
|
7
|
+
function q() {
|
|
94
8
|
var M;
|
|
95
|
-
const [
|
|
9
|
+
const [y, E] = i([]), [r, R] = i(
|
|
96
10
|
null
|
|
97
|
-
), [
|
|
11
|
+
), [d, g] = i([]), [c, H] = i([]), [m, h] = i(""), [O, u] = i(!1), [f, x] = i(!1), [b, v] = i(""), S = D(null), { token: s } = j(), w = B(() => {
|
|
98
12
|
var e;
|
|
99
|
-
(e =
|
|
13
|
+
(e = S.current) == null || e.scrollIntoView({ behavior: "smooth" });
|
|
100
14
|
}, []);
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}, [
|
|
104
|
-
|
|
15
|
+
N(() => {
|
|
16
|
+
w();
|
|
17
|
+
}, [d, w]), N(() => {
|
|
18
|
+
T();
|
|
105
19
|
}, []);
|
|
106
|
-
const
|
|
20
|
+
const T = async () => {
|
|
107
21
|
try {
|
|
108
|
-
const e = await
|
|
109
|
-
|
|
22
|
+
const e = await F(s || void 0);
|
|
23
|
+
E(e || []);
|
|
110
24
|
} catch (e) {
|
|
111
25
|
console.error("Failed to load instances:", e);
|
|
112
26
|
}
|
|
113
|
-
},
|
|
114
|
-
const e =
|
|
27
|
+
}, A = async () => {
|
|
28
|
+
const e = b.trim();
|
|
115
29
|
if (e) {
|
|
116
|
-
|
|
30
|
+
x(!0);
|
|
117
31
|
try {
|
|
118
|
-
const
|
|
32
|
+
const o = await G(
|
|
119
33
|
{ scenario_code: L, name: e },
|
|
120
|
-
|
|
34
|
+
s || void 0
|
|
121
35
|
);
|
|
122
|
-
|
|
123
|
-
} catch (
|
|
124
|
-
alert(
|
|
36
|
+
v(""), await T(), k(o);
|
|
37
|
+
} catch (o) {
|
|
38
|
+
alert(o instanceof Error ? o.message : "Create failed");
|
|
125
39
|
} finally {
|
|
126
|
-
|
|
40
|
+
x(!1);
|
|
127
41
|
}
|
|
128
42
|
}
|
|
129
|
-
},
|
|
130
|
-
|
|
43
|
+
}, k = async (e) => {
|
|
44
|
+
R(e), u(!0);
|
|
131
45
|
try {
|
|
132
|
-
const [
|
|
133
|
-
|
|
134
|
-
|
|
46
|
+
const [o, l] = await Promise.all([
|
|
47
|
+
z(e.id, 50, void 0, s || void 0),
|
|
48
|
+
K(e.id, s || void 0)
|
|
135
49
|
]);
|
|
136
|
-
|
|
137
|
-
} catch (
|
|
138
|
-
console.error("Failed to load instance data:",
|
|
50
|
+
g(o || []), H(l || []);
|
|
51
|
+
} catch (o) {
|
|
52
|
+
console.error("Failed to load instance data:", o);
|
|
139
53
|
} finally {
|
|
140
|
-
|
|
54
|
+
u(!1);
|
|
141
55
|
}
|
|
142
|
-
},
|
|
143
|
-
const e =
|
|
144
|
-
if (!e || !
|
|
145
|
-
const
|
|
146
|
-
let
|
|
147
|
-
for (const
|
|
148
|
-
if (e.includes(`@${
|
|
149
|
-
|
|
56
|
+
}, I = async () => {
|
|
57
|
+
const e = m.trim();
|
|
58
|
+
if (!e || !r) return;
|
|
59
|
+
const o = c.filter((a) => a.memberType === "AGENT");
|
|
60
|
+
let l, C = "TEXT";
|
|
61
|
+
for (const a of o)
|
|
62
|
+
if (e.includes(`@${a.displayName}`)) {
|
|
63
|
+
l = String(a.id), C = "AT_AGENT";
|
|
150
64
|
break;
|
|
151
65
|
}
|
|
152
|
-
|
|
66
|
+
h("");
|
|
153
67
|
try {
|
|
154
|
-
await
|
|
155
|
-
|
|
68
|
+
await W(
|
|
69
|
+
r.id,
|
|
156
70
|
{
|
|
157
71
|
content: e,
|
|
158
|
-
message_type:
|
|
159
|
-
...
|
|
72
|
+
message_type: C,
|
|
73
|
+
...l ? { at_agent_ref_id: l } : {}
|
|
160
74
|
},
|
|
161
|
-
|
|
75
|
+
s || void 0
|
|
162
76
|
);
|
|
163
|
-
const
|
|
164
|
-
|
|
77
|
+
const a = await z(
|
|
78
|
+
r.id,
|
|
165
79
|
50,
|
|
166
80
|
void 0,
|
|
167
|
-
|
|
81
|
+
s || void 0
|
|
168
82
|
);
|
|
169
|
-
|
|
170
|
-
} catch (
|
|
171
|
-
alert(
|
|
83
|
+
g(a || []);
|
|
84
|
+
} catch (a) {
|
|
85
|
+
alert(a instanceof Error ? a.message : "Send failed");
|
|
172
86
|
}
|
|
173
|
-
},
|
|
174
|
-
return /* @__PURE__ */
|
|
175
|
-
/* @__PURE__ */
|
|
87
|
+
}, p = c.filter((e) => e.memberType === "AGENT"), U = c.filter((e) => e.memberType === "HUMAN");
|
|
88
|
+
return /* @__PURE__ */ t("div", { style: { display: "flex", height: "100vh", fontFamily: "sans-serif" }, children: [
|
|
89
|
+
/* @__PURE__ */ t(
|
|
176
90
|
"div",
|
|
177
91
|
{
|
|
178
92
|
style: {
|
|
@@ -183,10 +97,10 @@ function Z() {
|
|
|
183
97
|
background: "#fafafa"
|
|
184
98
|
},
|
|
185
99
|
children: [
|
|
186
|
-
/* @__PURE__ */
|
|
187
|
-
/* @__PURE__ */
|
|
188
|
-
/* @__PURE__ */
|
|
189
|
-
/* @__PURE__ */
|
|
100
|
+
/* @__PURE__ */ t("div", { style: { padding: 16, borderBottom: "1px solid #e8e8e8" }, children: [
|
|
101
|
+
/* @__PURE__ */ n("h3", { style: { margin: "0 0 12px" }, children: "Scenario Instances" }),
|
|
102
|
+
/* @__PURE__ */ t("div", { style: { display: "flex", gap: 8 }, children: [
|
|
103
|
+
/* @__PURE__ */ n(
|
|
190
104
|
"input",
|
|
191
105
|
{
|
|
192
106
|
style: {
|
|
@@ -196,12 +110,12 @@ function Z() {
|
|
|
196
110
|
borderRadius: 4
|
|
197
111
|
},
|
|
198
112
|
placeholder: "Instance name",
|
|
199
|
-
value:
|
|
200
|
-
onChange: (e) =>
|
|
201
|
-
onKeyDown: (e) => e.key === "Enter" &&
|
|
113
|
+
value: b,
|
|
114
|
+
onChange: (e) => v(e.target.value),
|
|
115
|
+
onKeyDown: (e) => e.key === "Enter" && A()
|
|
202
116
|
}
|
|
203
117
|
),
|
|
204
|
-
/* @__PURE__ */
|
|
118
|
+
/* @__PURE__ */ n(
|
|
205
119
|
"button",
|
|
206
120
|
{
|
|
207
121
|
style: {
|
|
@@ -210,29 +124,29 @@ function Z() {
|
|
|
210
124
|
color: "#fff",
|
|
211
125
|
border: "none",
|
|
212
126
|
borderRadius: 4,
|
|
213
|
-
cursor:
|
|
127
|
+
cursor: f ? "not-allowed" : "pointer"
|
|
214
128
|
},
|
|
215
|
-
disabled:
|
|
216
|
-
onClick:
|
|
217
|
-
children:
|
|
129
|
+
disabled: f,
|
|
130
|
+
onClick: A,
|
|
131
|
+
children: f ? "..." : "+"
|
|
218
132
|
}
|
|
219
133
|
)
|
|
220
134
|
] })
|
|
221
135
|
] }),
|
|
222
|
-
/* @__PURE__ */
|
|
223
|
-
|
|
136
|
+
/* @__PURE__ */ t("div", { style: { flex: 1, overflow: "auto" }, children: [
|
|
137
|
+
y.map((e) => /* @__PURE__ */ t(
|
|
224
138
|
"div",
|
|
225
139
|
{
|
|
226
|
-
onClick: () =>
|
|
140
|
+
onClick: () => k(e),
|
|
227
141
|
style: {
|
|
228
142
|
padding: "10px 16px",
|
|
229
143
|
cursor: "pointer",
|
|
230
|
-
background: (
|
|
144
|
+
background: (r == null ? void 0 : r.id) === e.id ? "#e6f4ff" : "transparent",
|
|
231
145
|
borderBottom: "1px solid #f0f0f0"
|
|
232
146
|
},
|
|
233
147
|
children: [
|
|
234
|
-
/* @__PURE__ */
|
|
235
|
-
/* @__PURE__ */
|
|
148
|
+
/* @__PURE__ */ n("div", { style: { fontWeight: 500, fontSize: 13 }, children: e.name }),
|
|
149
|
+
/* @__PURE__ */ t("div", { style: { fontSize: 11, color: "#999" }, children: [
|
|
236
150
|
e.scenarioCode,
|
|
237
151
|
" · ",
|
|
238
152
|
e.status
|
|
@@ -241,13 +155,13 @@ function Z() {
|
|
|
241
155
|
},
|
|
242
156
|
e.id
|
|
243
157
|
)),
|
|
244
|
-
|
|
158
|
+
y.length === 0 ? /* @__PURE__ */ n("div", { style: { padding: 16, color: "#999", fontSize: 12 }, children: "No instances yet. Create one above." }) : null
|
|
245
159
|
] })
|
|
246
160
|
]
|
|
247
161
|
}
|
|
248
162
|
),
|
|
249
|
-
/* @__PURE__ */
|
|
250
|
-
/* @__PURE__ */
|
|
163
|
+
/* @__PURE__ */ n("div", { style: { flex: 1, display: "flex", flexDirection: "column" }, children: r ? /* @__PURE__ */ t(_, { children: [
|
|
164
|
+
/* @__PURE__ */ t(
|
|
251
165
|
"div",
|
|
252
166
|
{
|
|
253
167
|
style: {
|
|
@@ -258,25 +172,25 @@ function Z() {
|
|
|
258
172
|
alignItems: "center"
|
|
259
173
|
},
|
|
260
174
|
children: [
|
|
261
|
-
/* @__PURE__ */
|
|
262
|
-
/* @__PURE__ */
|
|
263
|
-
/* @__PURE__ */
|
|
175
|
+
/* @__PURE__ */ t("div", { children: [
|
|
176
|
+
/* @__PURE__ */ n("span", { style: { fontWeight: 600, fontSize: 15 }, children: r.name }),
|
|
177
|
+
/* @__PURE__ */ t("span", { style: { marginLeft: 8, fontSize: 12, color: "#999" }, children: [
|
|
264
178
|
"ID: ",
|
|
265
|
-
|
|
179
|
+
r.id
|
|
266
180
|
] })
|
|
267
181
|
] }),
|
|
268
|
-
/* @__PURE__ */
|
|
182
|
+
/* @__PURE__ */ t("div", { style: { fontSize: 12, color: "#666" }, children: [
|
|
269
183
|
"Members: ",
|
|
270
|
-
|
|
184
|
+
U.length,
|
|
271
185
|
" human · ",
|
|
272
|
-
|
|
186
|
+
p.length,
|
|
273
187
|
" ",
|
|
274
188
|
"agent"
|
|
275
189
|
] })
|
|
276
190
|
]
|
|
277
191
|
}
|
|
278
192
|
),
|
|
279
|
-
/* @__PURE__ */
|
|
193
|
+
/* @__PURE__ */ t(
|
|
280
194
|
"div",
|
|
281
195
|
{
|
|
282
196
|
style: {
|
|
@@ -286,14 +200,14 @@ function Z() {
|
|
|
286
200
|
background: "#fff"
|
|
287
201
|
},
|
|
288
202
|
children: [
|
|
289
|
-
|
|
203
|
+
d.length === 0 ? /* @__PURE__ */ n(
|
|
290
204
|
"div",
|
|
291
205
|
{
|
|
292
206
|
style: { color: "#999", textAlign: "center", marginTop: 80 },
|
|
293
207
|
children: "Send a message to start. Use @agent_name to mention an agent."
|
|
294
208
|
}
|
|
295
209
|
) : null,
|
|
296
|
-
|
|
210
|
+
d.map((e) => /* @__PURE__ */ t(
|
|
297
211
|
"div",
|
|
298
212
|
{
|
|
299
213
|
style: {
|
|
@@ -303,7 +217,7 @@ function Z() {
|
|
|
303
217
|
gap: 8
|
|
304
218
|
},
|
|
305
219
|
children: [
|
|
306
|
-
/* @__PURE__ */
|
|
220
|
+
/* @__PURE__ */ n(
|
|
307
221
|
"div",
|
|
308
222
|
{
|
|
309
223
|
style: {
|
|
@@ -321,8 +235,8 @@ function Z() {
|
|
|
321
235
|
children: e.senderType === "HUMAN" ? "U" : "A"
|
|
322
236
|
}
|
|
323
237
|
),
|
|
324
|
-
/* @__PURE__ */
|
|
325
|
-
/* @__PURE__ */
|
|
238
|
+
/* @__PURE__ */ t("div", { style: { maxWidth: "70%" }, children: [
|
|
239
|
+
/* @__PURE__ */ t(
|
|
326
240
|
"div",
|
|
327
241
|
{
|
|
328
242
|
style: {
|
|
@@ -339,7 +253,7 @@ function Z() {
|
|
|
339
253
|
]
|
|
340
254
|
}
|
|
341
255
|
),
|
|
342
|
-
/* @__PURE__ */
|
|
256
|
+
/* @__PURE__ */ n(
|
|
343
257
|
"div",
|
|
344
258
|
{
|
|
345
259
|
style: {
|
|
@@ -359,11 +273,11 @@ function Z() {
|
|
|
359
273
|
},
|
|
360
274
|
e.id
|
|
361
275
|
)),
|
|
362
|
-
/* @__PURE__ */
|
|
276
|
+
/* @__PURE__ */ n("div", { ref: S })
|
|
363
277
|
]
|
|
364
278
|
}
|
|
365
279
|
),
|
|
366
|
-
/* @__PURE__ */
|
|
280
|
+
/* @__PURE__ */ t(
|
|
367
281
|
"div",
|
|
368
282
|
{
|
|
369
283
|
style: {
|
|
@@ -374,7 +288,7 @@ function Z() {
|
|
|
374
288
|
background: "#fafafa"
|
|
375
289
|
},
|
|
376
290
|
children: [
|
|
377
|
-
/* @__PURE__ */
|
|
291
|
+
/* @__PURE__ */ n(
|
|
378
292
|
"textarea",
|
|
379
293
|
{
|
|
380
294
|
style: {
|
|
@@ -387,15 +301,15 @@ function Z() {
|
|
|
387
301
|
maxHeight: 120,
|
|
388
302
|
fontSize: 13
|
|
389
303
|
},
|
|
390
|
-
placeholder:
|
|
391
|
-
value:
|
|
392
|
-
onChange: (e) =>
|
|
304
|
+
placeholder: p.length > 0 ? `Type message. @${(M = p[0]) == null ? void 0 : M.displayName} to mention agent.` : "Type message...",
|
|
305
|
+
value: m,
|
|
306
|
+
onChange: (e) => h(e.target.value),
|
|
393
307
|
onKeyDown: (e) => {
|
|
394
|
-
e.key === "Enter" && !e.shiftKey && (e.preventDefault(),
|
|
308
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), I());
|
|
395
309
|
}
|
|
396
310
|
}
|
|
397
311
|
),
|
|
398
|
-
/* @__PURE__ */
|
|
312
|
+
/* @__PURE__ */ n(
|
|
399
313
|
"button",
|
|
400
314
|
{
|
|
401
315
|
style: {
|
|
@@ -407,14 +321,14 @@ function Z() {
|
|
|
407
321
|
cursor: "pointer",
|
|
408
322
|
fontSize: 13
|
|
409
323
|
},
|
|
410
|
-
onClick:
|
|
324
|
+
onClick: I,
|
|
411
325
|
children: "Send"
|
|
412
326
|
}
|
|
413
327
|
)
|
|
414
328
|
]
|
|
415
329
|
}
|
|
416
330
|
)
|
|
417
|
-
] }) : /* @__PURE__ */
|
|
331
|
+
] }) : /* @__PURE__ */ n(
|
|
418
332
|
"div",
|
|
419
333
|
{
|
|
420
334
|
style: {
|
|
@@ -430,5 +344,5 @@ function Z() {
|
|
|
430
344
|
] });
|
|
431
345
|
}
|
|
432
346
|
export {
|
|
433
|
-
|
|
347
|
+
q as default
|
|
434
348
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o, Fragment as et } from "react/jsx-runtime";
|
|
2
|
-
import { a as he, f as Le, B as Me, v as Ye,
|
|
2
|
+
import { a as he, f as Le, B as Me, v as Ye, b as Nt, aq as ia, ar as as, u as V, T as hn, as as os, at as ca, t as Xe, au as In, a6 as Re, av as ss, aw as rs, g as is, aa as cs, an as ko, c as ls, n as Wt, ax as ds, ay as us, az as ms, _ as la, a4 as ps, aA as qt, aB as hs, aC as fs, aj as gs, ak as _s, a8 as ys, e as bo, i as ks, Q as bs, U as vs, V as ws, W as Ns, Y as Cs, k as Ss, aD as Ts } from "./ComponentDoc-BKGd6D6u.js";
|
|
3
3
|
import { s as Is, r as Ln, f as Ls } from "./ctc-sso-DtJHC-2M.js";
|
|
4
|
-
import { r as Ms, h as xa, s as Ea } from "./sso-user-
|
|
4
|
+
import { r as Ms, h as xa, s as Ea } from "./sso-user-BW1vguVf.js";
|
|
5
5
|
import { Input as gn, Tooltip as _n, Spin as _t, Tabs as ha, Popconfirm as Zn, Button as At, Empty as Mn, Modal as yn, Form as un, Checkbox as $s, Tag as As, Select as xs, Popover as Pa, Dropdown as Es, Avatar as Ps, message as Oa } from "antd";
|
|
6
6
|
import fn from "query-string";
|
|
7
7
|
import { useState as d, useRef as ue, useCallback as J, useEffect as z, createElement as Os, useLayoutEffect as vo, useMemo as De, memo as Ds, Suspense as $n, lazy as bt } from "react";
|
|
8
8
|
import { useLocation as Rs, useNavigate as Fs } from "react-router-dom";
|
|
9
9
|
import { h as $t } from "./history-BlrA1eaW.js";
|
|
10
|
-
import { z as Ne, A as Bs, B as wo, S as No, D as js, E as Da, F as Ra, G as Hs, H as Ws, u as fa, i as Co, v as Us, I as zs, J as Fa, K as Gs, L as Ks, M as qs, N as Vs, O as Js, a as Ys, P as Qs, Q as Zs, R as Xs, U as er, V as m, W as Bn, C as tr, c as nr, X as ar } from "./createWorkspaceWsHandler-
|
|
10
|
+
import { z as Ne, A as Bs, B as wo, S as No, D as js, E as Da, F as Ra, G as Hs, H as Ws, u as fa, i as Co, v as Us, I as zs, J as Fa, K as Gs, L as Ks, M as qs, N as Vs, O as Js, a as Ys, P as Qs, Q as Zs, R as Xs, U as er, V as m, W as Bn, C as tr, c as nr, X as ar } from "./createWorkspaceWsHandler-CZ6H2AZV.js";
|
|
11
11
|
import { BarChartOutlined as or, PieChartOutlined as sr, LinkOutlined as So, UnorderedListOutlined as rr, FileTextOutlined as ga, ReadOutlined as To, ConsoleSqlOutlined as ir, DashboardOutlined as cr, SearchOutlined as Rn, CloseOutlined as sn, ProfileOutlined as lr, CustomerServiceOutlined as Io, ThunderboltOutlined as Ba, MessageOutlined as dr, ReloadOutlined as ur, UndoOutlined as mr, DeleteOutlined as pr, FolderOpenOutlined as hr, BugOutlined as _a, SolutionOutlined as fr, BellOutlined as gr, CheckOutlined as _r, SettingOutlined as da, LaptopOutlined as yr, MenuFoldOutlined as kr, HeartOutlined as br, BookOutlined as vr, BulbOutlined as wr, TeamOutlined as Nr, ProductOutlined as Cr, CodeOutlined as Sr, CloudServerOutlined as Tr, DatabaseOutlined as Ir, AppstoreOutlined as Lr, UserOutlined as Mr, NotificationOutlined as $r, LogoutOutlined as Ar } from "@ant-design/icons";
|
|
12
|
-
import { h as jn, f as xr, E as ja } from "./index-
|
|
13
|
-
import { s as Lo } from "./admin-logs-
|
|
12
|
+
import { h as jn, f as xr, E as ja } from "./index-T_vi7gwn.js";
|
|
13
|
+
import { s as Lo } from "./admin-logs-Ckzi7TeC.js";
|
|
14
14
|
import { createPortal as Mo } from "react-dom";
|
|
15
|
-
import { c as Er, l as Pr, j as Or } from "./instance-
|
|
15
|
+
import { c as Er, l as Pr, j as Or } from "./instance-CUl18UjH.js";
|
|
16
16
|
import Ha from "react-markdown";
|
|
17
17
|
import Wa from "rehype-highlight";
|
|
18
18
|
import Ua from "remark-gfm";
|
|
@@ -5334,7 +5334,7 @@ function dh() {
|
|
|
5334
5334
|
/* @__PURE__ */ o("div", { className: b.card, children: [
|
|
5335
5335
|
/* @__PURE__ */ e(Ie, { title: "z-team 智能工作台", desc: "个人工作台 / 协作工作台 / 群学习。", children: /* @__PURE__ */ o("span", { className: b.mono, children: [
|
|
5336
5336
|
"v",
|
|
5337
|
-
"0.2.
|
|
5337
|
+
"0.2.106"
|
|
5338
5338
|
] }) }),
|
|
5339
5339
|
/* @__PURE__ */ e(Ie, { title: "运行形态", desc: "Web 浏览器接入,也可内嵌于桌面客户端。", children: /* @__PURE__ */ e("span", { className: b.mono, children: "Web" }) }),
|
|
5340
5340
|
/* @__PURE__ */ e(Ie, { title: "统一认证", desc: "登录态由 4A / CTC SSO 托管。", children: /* @__PURE__ */ e("span", { className: b.mono, children: "SSO" }) }),
|
|
@@ -8475,7 +8475,7 @@ const Mf = "_layout_1ae41_1", $f = "_banner_1ae41_8", Af = "_bannerLeft_1ae41_20
|
|
|
8475
8475
|
smartWorkbenchArea: Eg
|
|
8476
8476
|
}, Pg = "/api";
|
|
8477
8477
|
Rr({ apiBase: Pg });
|
|
8478
|
-
const Og = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3ctitle%3elogo%3c/title%3e%3cg%20id='页面-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='01-1.全部应用'%20transform='translate(-20.000000,%20-8.000000)'%3e%3cg%20id='logo'%20transform='translate(20.000000,%208.000000)'%3e%3crect%20id='蒙版'%20fill='%23F5FAFF'%20x='0'%20y='0'%20width='24'%20height='24'%20rx='2'%3e%3c/rect%3e%3cg%20id='资源-1'%20transform='translate(4.000000,%204.000000)'%20fill-rule='nonzero'%3e%3cpath%20d='M1.16034197,15.1111111%20C0.519502794,15.1111111%200,14.6106136%200,13.9932187%20L0,2.69831289%20C0.00159892866,1.20871436%201.25461265,0.00154043404%202.80077542,0%20L8.75478013,0%20C10.3009429,0.00154043404%2011.5539566,1.20871436%2011.5555556,2.69831289%20L11.5555556,8.29476193%20C11.5555556,8.91215688%2011.0360528,9.41265438%2010.3952136,9.41265438%20C9.75437442,9.41265438%209.23487162,8.91215688%209.23487162,8.29476193%20L9.23487162,2.70529971%20C9.23681414,2.5814236%209.18709207,2.46197487%209.09684605,2.37371702%20C9.00660003,2.28545916%208.88337485,2.23577075%208.75478013,2.23578489%20L2.80802756,2.23578489%20C2.67944752,2.23391343%202.55546299,2.28181649%202.46385373,2.36876099%20C2.37224448,2.45570548%202.32066926,2.57442264%202.32068393,2.69831289%20L2.32068393,13.9932187%20C2.32068393,14.6106136%201.80118114,15.1111111%201.16034197,15.1111111%20Z'%20id='路径'%20fill='%231F8BFF'%3e%3c/path%3e%3cpath%20d='M13.1974657,15.1111111%20L7.2469787,15.1111111%20C5.70041075,15.1095715%204.44684388,13.9026896%204.44444444,12.4129481%20L4.44444444,6.81251221%20C4.44444444,6.19483167%204.96427348,5.69410265%205.60551509,5.69410265%20C6.24675669,5.69410265%206.76658573,6.19483167%206.76658573,6.81251221%20L6.76658573,12.4129481%20C6.76738557,12.6679673%206.98223074,12.8742932%207.2469787,12.874292%20L13.1974657,12.874292%20C13.4622137,12.8742932%2013.6770589,12.6679673%2013.6778587,12.4129481%20L13.6778587,1.11840956%20C13.6778587,0.500729014%2014.1976878,0%2014.8389294,0%20C15.480171,0%2016,0.500729014%2016,1.11840956%20L16,12.4129481%20C15.9976006,13.9026896%2014.7440337,15.1095715%2013.1974657,15.1111111%20L13.1974657,15.1111111%20Z'%20id='路径'%20fill='%23FFDC29'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e", Dg = bt(() => import("./index-
|
|
8478
|
+
const Og = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3ctitle%3elogo%3c/title%3e%3cg%20id='页面-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='01-1.全部应用'%20transform='translate(-20.000000,%20-8.000000)'%3e%3cg%20id='logo'%20transform='translate(20.000000,%208.000000)'%3e%3crect%20id='蒙版'%20fill='%23F5FAFF'%20x='0'%20y='0'%20width='24'%20height='24'%20rx='2'%3e%3c/rect%3e%3cg%20id='资源-1'%20transform='translate(4.000000,%204.000000)'%20fill-rule='nonzero'%3e%3cpath%20d='M1.16034197,15.1111111%20C0.519502794,15.1111111%200,14.6106136%200,13.9932187%20L0,2.69831289%20C0.00159892866,1.20871436%201.25461265,0.00154043404%202.80077542,0%20L8.75478013,0%20C10.3009429,0.00154043404%2011.5539566,1.20871436%2011.5555556,2.69831289%20L11.5555556,8.29476193%20C11.5555556,8.91215688%2011.0360528,9.41265438%2010.3952136,9.41265438%20C9.75437442,9.41265438%209.23487162,8.91215688%209.23487162,8.29476193%20L9.23487162,2.70529971%20C9.23681414,2.5814236%209.18709207,2.46197487%209.09684605,2.37371702%20C9.00660003,2.28545916%208.88337485,2.23577075%208.75478013,2.23578489%20L2.80802756,2.23578489%20C2.67944752,2.23391343%202.55546299,2.28181649%202.46385373,2.36876099%20C2.37224448,2.45570548%202.32066926,2.57442264%202.32068393,2.69831289%20L2.32068393,13.9932187%20C2.32068393,14.6106136%201.80118114,15.1111111%201.16034197,15.1111111%20Z'%20id='路径'%20fill='%231F8BFF'%3e%3c/path%3e%3cpath%20d='M13.1974657,15.1111111%20L7.2469787,15.1111111%20C5.70041075,15.1095715%204.44684388,13.9026896%204.44444444,12.4129481%20L4.44444444,6.81251221%20C4.44444444,6.19483167%204.96427348,5.69410265%205.60551509,5.69410265%20C6.24675669,5.69410265%206.76658573,6.19483167%206.76658573,6.81251221%20L6.76658573,12.4129481%20C6.76738557,12.6679673%206.98223074,12.8742932%207.2469787,12.874292%20L13.1974657,12.874292%20C13.4622137,12.8742932%2013.6770589,12.6679673%2013.6778587,12.4129481%20L13.6778587,1.11840956%20C13.6778587,0.500729014%2014.1976878,0%2014.8389294,0%20C15.480171,0%2016,0.500729014%2016,1.11840956%20L16,12.4129481%20C15.9976006,13.9026896%2014.7440337,15.1095715%2013.1974657,15.1111111%20L13.1974657,15.1111111%20Z'%20id='路径'%20fill='%23FFDC29'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e", Dg = bt(() => import("./index-DG9KRcB7.js")), Rg = bt(() => import("./index--JKduFbf.js")), Fg = bt(() => import("./index-C8ylej1n.js")), Bg = bt(() => import("./index-BWpXdOkG.js")), jg = bt(() => import("./index-DPzDdcFg.js").then((t) => t.i)), Hg = bt(() => import("./index-DBBmrczh.js")), Wg = bt(() => import("./index-DTx26k4L.js")), Ug = bt(() => import("./index-BPSoaoFx.js")), zg = bt(() => import("./index-BoL8kFkC.js")), Gg = bt(() => import("./index-kAxFJq-Q.js")), Kg = bt(() => import("./index-l4NMXF0T.js").then((t) => ({ default: t.default }))), fo = bt(() => import("./SystemShell-iAK8aCSW.js")), Go = "ft_popup_read";
|
|
8479
8479
|
function go(t) {
|
|
8480
8480
|
return t.id != null ? String(t.id) : `${t.title ?? ""}|${t.content ?? ""}`;
|
|
8481
8481
|
}
|
|
@@ -9058,7 +9058,7 @@ function Vg({
|
|
|
9058
9058
|
*/
|
|
9059
9059
|
/* @__PURE__ */ e("div", { className: A.smartWorkbenchArea, children: /* @__PURE__ */ e(fo, {}) })
|
|
9060
9060
|
) : Ee === "product" ? (
|
|
9061
|
-
/* ──
|
|
9061
|
+
/* ── 产品工作台 v2:左(产品树/文件树)中(渲染)右(群聊) ── */
|
|
9062
9062
|
/* @__PURE__ */ e("div", { className: A.smartWorkbenchArea, children: /* @__PURE__ */ e($n, { fallback: null, children: /* @__PURE__ */ e(ja, { children: /* @__PURE__ */ e(Kg, {}) }) }) })
|
|
9063
9063
|
) : Ee === "dev" ? (
|
|
9064
9064
|
/* ── 研发模式:z-lc 低代码平台 ──
|