@yuku123/z-team-component 0.2.126 → 0.2.128
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-hwkY-Pxj.js → ChangeLogView-BWcf9eFT.js} +1 -1
- package/dist/{ComponentDoc-CKmtNnh_.js → ComponentDoc-MAAFSdex.js} +3 -3
- package/dist/{InvitationManagementPage-ClQ_7XHg.js → InvitationManagementPage-DB3CeBs-.js} +1 -1
- package/dist/{OnboardingPage-5lzdybfe.js → OnboardingPage-KwEQlQ9m.js} +2 -2
- package/dist/{ScheduledTasks-oj2tZe__.js → ScheduledTasks-BQnjn17C.js} +4193 -4249
- package/dist/{SystemShell-Bo3Ng6_d.js → SystemShell-xfKRXTHa.js} +4 -4
- package/dist/{admin-logs-BokQn7fB.js → admin-logs-BBniVCWG.js} +1 -1
- package/dist/{api-BZs1eLa_.js → api-CErncfky.js} +1 -1
- package/dist/{api-5yDkyF00.js → api-CIzOXga5.js} +1 -1
- package/dist/{createWorkspaceWsHandler-Cd7unuWy.js → createWorkspaceWsHandler-DZc2EeOE.js} +4570 -4748
- package/dist/{index-DWCdywD4.js → index-9cmnvhwH.js} +6 -6
- package/dist/index-BK0TLurx.js +1718 -0
- package/dist/{index-BX8H830P.js → index-BNfRZbfa.js} +2 -2
- package/dist/{index-CnDetS6K.js → index-BPDcCJys.js} +161 -173
- package/dist/{index-rp3qgBky.js → index-BTnwvvjN.js} +3 -3
- package/dist/{index-BfTdO2nT.js → index-BWlQEPJO.js} +3031 -3058
- package/dist/{index-D_7JpAQa.js → index-BZdTJbw5.js} +1 -1
- package/dist/{index-ur6gpyT1.js → index-BbmFLkXG.js} +3 -3
- package/dist/{index-DMHKU_G5.js → index-Bchg8LCD.js} +1 -1
- package/dist/{index-CbVvlL_b.js → index-BkbSCWQ7.js} +40 -38
- package/dist/{index-Cg6G_t44.js → index-BmgJG2c3.js} +2 -2
- package/dist/{index-C75zXxPM.js → index-BsxfUGiv.js} +3 -3
- package/dist/{index-BoXsk4dS.js → index-C6uTjD16.js} +2 -2
- package/dist/{index-y1YkonCi.js → index-CcsEH7Y7.js} +3 -3
- package/dist/{index-BlPEzCfX.js → index-CjKs2OyG.js} +2 -2
- package/dist/{index-DxjUlEU_.js → index-Cqzxd3l5.js} +2 -2
- package/dist/{index-DXa_PuZH.js → index-Cxz8YOXI.js} +3 -3
- package/dist/{index-BwIpkciY.js → index-D7PjZbJz.js} +291 -295
- package/dist/{index-CHzNasWa.js → index-DMScwqnC.js} +1 -1
- package/dist/{index-D3lnAFF-.js → index-DTRR9SFq.js} +4 -4
- package/dist/{index-BTNBi5rr.js → index-DVdVtFor.js} +2 -2
- package/dist/{index-BMk_Sumc.js → index-DmO4sKus.js} +2 -2
- package/dist/{index-B9Y6yPZO.js → index-DqAba7Rt.js} +1 -1
- package/dist/{index-B_rGKW7y.js → index-HU-dTCwe.js} +3 -3
- package/dist/{index-U_bR1irL.js → index-nu3p6CB7.js} +34 -41
- package/dist/{index-BFg1y572.js → index-vn1AwgKA.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/{instance-CTEy2yAP.js → instance-C7K_c-Ic.js} +31 -61
- package/dist/{menuPermission-Cm2AFp2N.js → menuPermission-ClR4xmR1.js} +3 -3
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-D4Ji6TrR.js → send-default-agent-team-message-BkUCZ7h9.js} +1 -1
- package/dist/{sso-user-BAkLqzuY.js → sso-user-B9VemiQi.js} +1 -1
- package/dist/{training-CxX8t9Ha.js → training-s01hnxH7.js} +1 -1
- package/dist/{webide-4JYjdOGz.js → webide-CJ8I_wyf.js} +3 -3
- package/dist/z-team-component.css +1 -1
- package/package.json +1 -1
- package/dist/index-BzHxN3Tj.js +0 -1645
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as h, f as _, B as N, v as A, t as g } from "./ComponentDoc-
|
|
1
|
+
import { a as h, f as _, B as N, v as A, t as g } from "./ComponentDoc-MAAFSdex.js";
|
|
2
2
|
import { jsx as p, jsxs as I } from "react/jsx-runtime";
|
|
3
3
|
import { useMemo as S, useState as C, useEffect as G, Component as L } from "react";
|
|
4
4
|
function $(t) {
|
|
@@ -6,9 +6,9 @@ import { useState as F, useRef as fp, useEffect as Y, useMemo as Wp, useCallback
|
|
|
6
6
|
import Vp, { defaultUrlTransform as KA } from "react-markdown";
|
|
7
7
|
import gp from "rehype-highlight";
|
|
8
8
|
import Jp from "remark-gfm";
|
|
9
|
-
import { aa as xa, ab as jA, u as Dp } from "./ComponentDoc-
|
|
10
|
-
import { x as ia, y as oA, z as fA, B as lA, b as xA, E as iA, G as cA, H as TA, I as vA, J as up, K as Yp, M as mp, O as yp, Q as Ip, V as FA, X as dA, Y as OA, Z as XA } from "./index-
|
|
11
|
-
import { b as RA, d as NA, f as kA, e as WA, g as Cp, h as DA, j as qA, r as uA, k as mA, l as wA, m as BA, n as GA, o as LA, p as zA, q as VA } from "./createWorkspaceWsHandler-
|
|
9
|
+
import { aa as xa, ab as jA, u as Dp } from "./ComponentDoc-MAAFSdex.js";
|
|
10
|
+
import { x as ia, y as oA, z as fA, B as lA, b as xA, E as iA, G as cA, H as TA, I as vA, J as up, K as Yp, M as mp, O as yp, Q as Ip, V as FA, X as dA, Y as OA, Z as XA } from "./index-BWlQEPJO.js";
|
|
11
|
+
import { b as RA, d as NA, f as kA, e as WA, g as Cp, h as DA, j as qA, r as uA, k as mA, l as wA, m as BA, n as GA, o as LA, p as zA, q as VA } from "./createWorkspaceWsHandler-DZc2EeOE.js";
|
|
12
12
|
import { h as r } from "./index.module-CAa-2T7m.js";
|
|
13
13
|
const gA = "_editorView_as93v_7", JA = "_editorTopBar_as93v_16", bA = "_backBtn_as93v_25", MA = "_titleInput_as93v_39", sA = "_summaryBar_as93v_50", QA = "_summaryInput_as93v_55", hA = "_mdToolbar_as93v_67", YA = "_mdBtn_as93v_77", yA = "_mdSep_as93v_84", IA = "_editorBody_as93v_93", CA = "_tocPanel_as93v_100", ZA = "_tocHeader_as93v_108", EA = "_tocList_as93v_117", _A = "_tocItem_as93v_122", $A = "_tocEmpty_as93v_137", pt = "_textarea_as93v_144", at = "_half_as93v_160", At = "_preview_as93v_163", tt = "_markdown_as93v_173", et = "_videoEmbed_as93v_185", w = {
|
|
14
14
|
editorView: gA,
|
|
@@ -1681,7 +1681,7 @@ const Rt = [
|
|
|
1681
1681
|
draftDeleteBtn: T0,
|
|
1682
1682
|
markdown: v0
|
|
1683
1683
|
}, F0 = HA(
|
|
1684
|
-
() => import("./index-
|
|
1684
|
+
() => import("./index-BmgJG2c3.js").then((a) => ({ default: a.MarketContent }))
|
|
1685
1685
|
);
|
|
1686
1686
|
function d0(a) {
|
|
1687
1687
|
const n = [], x = a.split(`
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as c, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
-
import { e as $, u as j, t as x, p as O, g as v, h as F } from "./ComponentDoc-
|
|
2
|
+
import { e as $, u as j, t as x, p as O, g as v, h as F } from "./ComponentDoc-MAAFSdex.js";
|
|
3
3
|
import { CheckCircleFilled as b } from "@ant-design/icons";
|
|
4
4
|
import { Result as D, Button as R, Spin as U } from "antd";
|
|
5
5
|
import B from "query-string";
|
|
6
6
|
import { useMemo as y, useState as f, useRef as q, useCallback as A, useEffect as J } from "react";
|
|
7
7
|
import { useLocation as W } from "react-router-dom";
|
|
8
8
|
import { h as w } from "./history-BlrA1eaW.js";
|
|
9
|
-
import { l as Z, j as z, f as H, b as L, p as M } from "./instance-
|
|
9
|
+
import { l as Z, j as z, f as H, b as L, p as M } from "./instance-C7K_c-Ic.js";
|
|
10
10
|
import { b as N } from "./mobile-client-O3yr9h6t.js";
|
|
11
11
|
function nt() {
|
|
12
12
|
const m = W(), p = B.parse(m.search), o = String(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AppLayout as v, ErrorBoundary as z, LoginPage as _, StatusTag as j, defaultStatusMap as F } from "@yuku123/z-frontend-common";
|
|
2
|
-
import { d as y } from "./ComponentDoc-
|
|
3
|
-
import { z as V, E as Q, A as X, M as Y, D as Z, O as $, F as ee, R as te, G as re, H as ae, I as oe, J as ne, K as le, K as ie, L as se } from "./ComponentDoc-
|
|
2
|
+
import { d as y } from "./ComponentDoc-MAAFSdex.js";
|
|
3
|
+
import { z as V, E as Q, A as X, M as Y, D as Z, O as $, F as ee, R as te, G as re, H as ae, I as oe, J as ne, K as le, K as ie, L as se } from "./ComponentDoc-MAAFSdex.js";
|
|
4
4
|
import { jsxs as r, Fragment as h, jsx as e } from "react/jsx-runtime";
|
|
5
5
|
import { useState as n, useEffect as R } from "react";
|
|
6
6
|
import { Alert as I, Space as x, Button as l, Tag as c, Result as T } from "antd";
|
|
@@ -2,7 +2,7 @@ import { jsxs as r, jsx as n, Fragment as H } from "react/jsx-runtime";
|
|
|
2
2
|
import { BookOutlined as V, ReloadOutlined as Ne, SearchOutlined as fe, CloseOutlined as ge, CaretDownOutlined as ve, CaretRightOutlined as Te } from "@ant-design/icons";
|
|
3
3
|
import { message as Se, Spin as F } from "antd";
|
|
4
4
|
import { useState as k, useRef as M, useEffect as G, useCallback as C } from "react";
|
|
5
|
-
import { a as A, B as R, b as E } from "./ComponentDoc-
|
|
5
|
+
import { a as A, B as R, b as E } from "./ComponentDoc-MAAFSdex.js";
|
|
6
6
|
function B(a) {
|
|
7
7
|
const l = new URLSearchParams();
|
|
8
8
|
Object.entries(a).forEach(([N, s]) => {
|
|
@@ -2,11 +2,11 @@ import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
|
2
2
|
import { Navigate as _, useLocation as ce } from "react-router-dom";
|
|
3
3
|
import { Spin as ie, Row as de, Col as U, Card as M, Statistic as W, Space as v, Tag as C, Button as w, Alert as G, Table as pe, Badge as ee, Popconfirm as B, message as b, Select as te, Drawer as ue, Tabs as me, Form as D, Modal as he, Input as V, InputNumber as j } from "antd";
|
|
4
4
|
import { DashboardOutlined as X, ClusterOutlined as q, CloudServerOutlined as H, ContainerOutlined as ne, ReloadOutlined as Y, LockOutlined as ye, UnlockOutlined as ge, PlayCircleOutlined as fe, PauseCircleOutlined as be, ClearOutlined as se, SendOutlined as we, EyeOutlined as ke, DeleteOutlined as ae, PlusOutlined as xe, EditOutlined as ve, BranchesOutlined as Ce, RocketOutlined as Pe, AlertOutlined as Se, FileTextOutlined as Re, DatabaseOutlined as Q, CloudOutlined as Oe, DeploymentUnitOutlined as Ie } from "@ant-design/icons";
|
|
5
|
-
import { W as $e } from "./index-
|
|
6
|
-
import { Y as Ee } from "./ComponentDoc-
|
|
5
|
+
import { W as $e } from "./index-BbmFLkXG.js";
|
|
6
|
+
import { Y as Ee } from "./ComponentDoc-MAAFSdex.js";
|
|
7
7
|
import { useState as i, useEffect as z, useRef as L } from "react";
|
|
8
8
|
import { ListTable as re } from "@yuku123/z-frontend-common/ui";
|
|
9
|
-
import "./index-
|
|
9
|
+
import "./index-BWlQEPJO.js";
|
|
10
10
|
const Te = "/z-team/ops/k8s";
|
|
11
11
|
async function oe(t, r) {
|
|
12
12
|
const d = `${Te}${t}`, u = await fetch(d, {
|
|
@@ -1,36 +1,33 @@
|
|
|
1
1
|
import { jsxs as f, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useState as h, useCallback as u } from "react";
|
|
3
|
-
import { S as
|
|
4
|
-
import { L as
|
|
5
|
-
import { w as
|
|
6
|
-
import { TodoTab as
|
|
7
|
-
function
|
|
3
|
+
import { S as I, P } from "./webide-CJ8I_wyf.js";
|
|
4
|
+
import { L as D, P as N, S as H, C as W, E as $, a as j, W as b, b as g, T as B, c as O } from "./ScheduledTasks-BQnjn17C.js";
|
|
5
|
+
import { w as q, p as z } from "./index-BWlQEPJO.js";
|
|
6
|
+
import { TodoTab as E } from "@yuku123/z-task-component";
|
|
7
|
+
function J({
|
|
8
8
|
view: s,
|
|
9
9
|
agents: o,
|
|
10
10
|
token: i,
|
|
11
|
-
currentUser: p,
|
|
12
11
|
onOpenChat: d,
|
|
13
|
-
onOpenAgentDetail:
|
|
12
|
+
onOpenAgentDetail: p,
|
|
14
13
|
onBackToExtensions: r,
|
|
15
14
|
onOpenTab: a,
|
|
16
|
-
onAgentCreated:
|
|
15
|
+
onAgentCreated: m,
|
|
17
16
|
onOpenProject: l,
|
|
18
|
-
onOpenWorkbenchShell: x,
|
|
19
|
-
onOpenHistory: S,
|
|
20
17
|
localLane: n
|
|
21
18
|
}) {
|
|
22
|
-
const [
|
|
19
|
+
const [T, x] = h(
|
|
23
20
|
null
|
|
24
|
-
), [
|
|
21
|
+
), [S, y] = h(
|
|
25
22
|
null
|
|
26
|
-
),
|
|
23
|
+
), k = u(
|
|
27
24
|
(e) => {
|
|
28
|
-
a("notes"),
|
|
25
|
+
a("notes"), x({ id: e, ts: Date.now() });
|
|
29
26
|
},
|
|
30
27
|
[a]
|
|
31
|
-
),
|
|
28
|
+
), C = u(
|
|
32
29
|
(e) => {
|
|
33
|
-
a("todo"),
|
|
30
|
+
a("todo"), y({ id: e, ts: Date.now() });
|
|
34
31
|
},
|
|
35
32
|
[a]
|
|
36
33
|
), c = s.kind === "chat" ? s.lane === "local" ? `local-${s.sessionId ?? "new"}-${s.ts}` : `${s.agent.id}-${s.sessionId ?? "new"}-${s.ts}` : "none";
|
|
@@ -48,9 +45,9 @@ function V({
|
|
|
48
45
|
flexDirection: "column"
|
|
49
46
|
},
|
|
50
47
|
children: /* @__PURE__ */ t(
|
|
51
|
-
|
|
48
|
+
D,
|
|
52
49
|
{
|
|
53
|
-
agent:
|
|
50
|
+
agent: q(n.activeLocal),
|
|
54
51
|
openSessionId: s.sessionId ? String(s.sessionId) : null,
|
|
55
52
|
onOpenSessionConsumed: () => {
|
|
56
53
|
},
|
|
@@ -83,7 +80,7 @@ function V({
|
|
|
83
80
|
flexDirection: "column"
|
|
84
81
|
},
|
|
85
82
|
children: /* @__PURE__ */ t(
|
|
86
|
-
|
|
83
|
+
N,
|
|
87
84
|
{
|
|
88
85
|
agent: s.agent,
|
|
89
86
|
initialSessionId: s.sessionId,
|
|
@@ -98,7 +95,7 @@ function V({
|
|
|
98
95
|
}
|
|
99
96
|
)),
|
|
100
97
|
s.kind === "schedule" && /* @__PURE__ */ t(
|
|
101
|
-
|
|
98
|
+
H,
|
|
102
99
|
{
|
|
103
100
|
localOnline: (n == null ? void 0 : n.localOnline) ?? !1,
|
|
104
101
|
agents: o,
|
|
@@ -107,33 +104,29 @@ function V({
|
|
|
107
104
|
}
|
|
108
105
|
),
|
|
109
106
|
s.kind === "history" && /* @__PURE__ */ t(
|
|
110
|
-
|
|
107
|
+
W,
|
|
111
108
|
{
|
|
112
109
|
agents: o,
|
|
113
110
|
token: i,
|
|
114
|
-
onOpenSession: (e,
|
|
111
|
+
onOpenSession: (e, A) => d(e, A),
|
|
115
112
|
onBack: r
|
|
116
113
|
}
|
|
117
114
|
),
|
|
118
115
|
s.kind === "extensions" && /* @__PURE__ */ t(
|
|
119
|
-
|
|
116
|
+
$,
|
|
120
117
|
{
|
|
121
118
|
agents: o,
|
|
122
119
|
loading: !1,
|
|
123
|
-
skillsAgent:
|
|
120
|
+
skillsAgent: z(o),
|
|
124
121
|
token: i,
|
|
125
|
-
currentUser: p,
|
|
126
122
|
onChat: (e) => d(e),
|
|
127
|
-
onConfig:
|
|
128
|
-
onCreated:
|
|
129
|
-
onOpenPersonalTab: a,
|
|
130
|
-
onOpenWorkbenchShell: x,
|
|
131
|
-
onOpenHistory: S,
|
|
123
|
+
onConfig: p,
|
|
124
|
+
onCreated: m,
|
|
132
125
|
capTabRequest: s.cap ? { tab: s.cap, ts: s.ts } : null
|
|
133
126
|
}
|
|
134
127
|
),
|
|
135
128
|
s.kind === "agentDetail" && /* @__PURE__ */ t("div", { style: { flex: 1, minHeight: 0 }, children: /* @__PURE__ */ t(
|
|
136
|
-
|
|
129
|
+
j,
|
|
137
130
|
{
|
|
138
131
|
agent: s.agent,
|
|
139
132
|
onBack: r
|
|
@@ -160,30 +153,30 @@ function V({
|
|
|
160
153
|
hideTabs: !0
|
|
161
154
|
}
|
|
162
155
|
),
|
|
163
|
-
s.tab === "business-stats" && /* @__PURE__ */ t(
|
|
156
|
+
s.tab === "business-stats" && /* @__PURE__ */ t(I, { source: "scenario" }),
|
|
164
157
|
s.tab === "tools" && /* @__PURE__ */ t(g, { showTools: !0, showWebsites: !1 }),
|
|
165
158
|
s.tab === "websites" && /* @__PURE__ */ t(g, { showTools: !1, showWebsites: !0 }),
|
|
166
159
|
s.tab === "todo" && /* @__PURE__ */ t(
|
|
167
|
-
|
|
160
|
+
E,
|
|
168
161
|
{
|
|
169
162
|
onOpenProject: l,
|
|
170
|
-
onOpenNote:
|
|
171
|
-
openTodoId:
|
|
163
|
+
onOpenNote: k,
|
|
164
|
+
openTodoId: S
|
|
172
165
|
}
|
|
173
166
|
),
|
|
174
167
|
s.tab === "notes" && /* @__PURE__ */ t(
|
|
175
|
-
|
|
168
|
+
P,
|
|
176
169
|
{
|
|
177
170
|
onOpenProject: l,
|
|
178
|
-
onOpenTodo:
|
|
179
|
-
openNoteId:
|
|
171
|
+
onOpenTodo: C,
|
|
172
|
+
openNoteId: T
|
|
180
173
|
}
|
|
181
174
|
),
|
|
182
|
-
s.tab === "training" && /* @__PURE__ */ t(
|
|
183
|
-
s.tab === "webide" && /* @__PURE__ */ t(
|
|
175
|
+
s.tab === "training" && /* @__PURE__ */ t(B, {}),
|
|
176
|
+
s.tab === "webide" && /* @__PURE__ */ t(O, {})
|
|
184
177
|
] })
|
|
185
178
|
] });
|
|
186
179
|
}
|
|
187
180
|
export {
|
|
188
|
-
|
|
181
|
+
J as default
|
|
189
182
|
};
|
|
@@ -3,8 +3,8 @@ import { useState as I, useMemo as p, useCallback as B, useEffect as L } from "r
|
|
|
3
3
|
import { useNavigate as y, useLocation as G } from "react-router-dom";
|
|
4
4
|
import { CodeOutlined as v, DownOutlined as O, RightOutlined as A, AppstoreOutlined as C, TableOutlined as W, DatabaseOutlined as H, RobotOutlined as M, FunctionOutlined as $, ApartmentOutlined as P, EyeOutlined as R, BranchesOutlined as U, DeploymentUnitOutlined as _, SafetyCertificateOutlined as x } from "@ant-design/icons";
|
|
5
5
|
import E from "@yuku123/z-lc-component";
|
|
6
|
-
import { f as D, M as T } from "./menuPermission-
|
|
7
|
-
import { u as h } from "./ComponentDoc-
|
|
6
|
+
import { f as D, M as T } from "./menuPermission-ClR4xmR1.js";
|
|
7
|
+
import { u as h } from "./ComponentDoc-MAAFSdex.js";
|
|
8
8
|
const j = "_shellWrap_1gpbw_7", K = "_shell_1gpbw_7", q = "_productBanner_1gpbw_25", F = "_productBannerLabel_1gpbw_37", z = "_productBannerName_1gpbw_43", J = "_productBannerCode_1gpbw_51", Q = "_productBannerBack_1gpbw_56", V = "_sidebar_1gpbw_73", X = "_sidebarHeader_1gpbw_84", Y = "_menuList_1gpbw_95", Z = "_menuGroup_1gpbw_101", ee = "_menuGroupHeader_1gpbw_105", ne = "_menuGroupLabel_1gpbw_123", te = "_menuGroupArrow_1gpbw_127", ae = "_menuSubList_1gpbw_132", se = "_menuSubItemWrap_1gpbw_138", re = "_menuSubItem_1gpbw_138", ie = "_menuSubItemActive_1gpbw_159", oe = "_menuSubItemIcon_1gpbw_166", ce = "_menuSubItemLabel_1gpbw_171", ue = "_main_1gpbw_176", t = {
|
|
9
9
|
shellWrap: j,
|
|
10
10
|
shell: K,
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { a as o, f as
|
|
2
|
-
async function
|
|
1
|
+
import { a as o, f as l, B as r, b as c } from "./ComponentDoc-MAAFSdex.js";
|
|
2
|
+
async function I(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
5
|
const s = await o(
|
|
6
6
|
`${r}/scenario-instances/page?${t.toString()}`,
|
|
7
|
-
|
|
7
|
+
l
|
|
8
8
|
);
|
|
9
9
|
return c(s, "获取工作项列表失败");
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function _(e) {
|
|
12
12
|
return {
|
|
13
13
|
id: String(e.id),
|
|
14
14
|
name: String(e.name ?? ""),
|
|
@@ -22,16 +22,16 @@ function u(e) {
|
|
|
22
22
|
scenario_name: e.scenario_name != null ? String(e.scenario_name) : e.scenarioName != null ? String(e.scenarioName) : void 0,
|
|
23
23
|
role: e.role != null ? String(e.role) : void 0,
|
|
24
24
|
llm_code: e.llm_code != null ? String(e.llm_code) : e.llmCode != null ? String(e.llmCode) : void 0,
|
|
25
|
-
close_feedback:
|
|
26
|
-
close_tags:
|
|
27
|
-
close_time:
|
|
28
|
-
close_user:
|
|
25
|
+
close_feedback: u(e, "close_feedback"),
|
|
26
|
+
close_tags: u(e, "close_tags"),
|
|
27
|
+
close_time: u(e, "close_time"),
|
|
28
|
+
close_user: u(e, "close_user"),
|
|
29
29
|
members: Array.isArray(e.members) ? e.members.map((n) => String(n)) : void 0,
|
|
30
30
|
parent_id: p(e)
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
const t = n.replace(/_([a-z])/g, (
|
|
33
|
+
function u(e, n) {
|
|
34
|
+
const t = n.replace(/_([a-z])/g, (d, m) => m.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;
|
|
@@ -55,7 +55,7 @@ function p(e) {
|
|
|
55
55
|
const a = s === "" ? "" : String(s);
|
|
56
56
|
return a === "" ? void 0 : a;
|
|
57
57
|
}
|
|
58
|
-
async function
|
|
58
|
+
async function h(e) {
|
|
59
59
|
const n = await o(
|
|
60
60
|
`${r}/scenario-instances/${e}/models`
|
|
61
61
|
);
|
|
@@ -65,7 +65,7 @@ const f = "develop_brain_scenario";
|
|
|
65
65
|
async function C(e) {
|
|
66
66
|
const n = await o(
|
|
67
67
|
`${r}/dev-brain/agent/ticket?ticketId=${encodeURIComponent(e)}`,
|
|
68
|
-
|
|
68
|
+
l
|
|
69
69
|
);
|
|
70
70
|
return c(n, "获取工单信息失败");
|
|
71
71
|
}
|
|
@@ -76,7 +76,7 @@ function g(e) {
|
|
|
76
76
|
const n = e.trim().replace(/[/\\:*?"<>|]/g, "_");
|
|
77
77
|
return n.length > 0 ? n.slice(0, 80) : "workspace";
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function U(e, n) {
|
|
80
80
|
var i;
|
|
81
81
|
const t = e.requirementTitle && e.requirementTitle.trim() || n, s = { ticket_id: n }, a = (i = e.foneUrl) == null ? void 0 : i.trim();
|
|
82
82
|
return a && (s.work_order_url = a), {
|
|
@@ -90,14 +90,14 @@ function T(e, n) {
|
|
|
90
90
|
async function S(e, n = "") {
|
|
91
91
|
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await o(
|
|
92
92
|
`${r}/scenario-instances/${e}${t}`,
|
|
93
|
-
|
|
94
|
-
), a = await c(s, "获取项目失败"), i = a.status === "FOUND" ? "FOUND" : "NOT_FOUND",
|
|
93
|
+
l
|
|
94
|
+
), a = await c(s, "获取项目失败"), i = a.status === "FOUND" ? "FOUND" : "NOT_FOUND", d = a.scenario_instance ?? a.scenarioInstance ?? null;
|
|
95
95
|
return {
|
|
96
96
|
status: i,
|
|
97
|
-
scenarioInstance:
|
|
97
|
+
scenarioInstance: d ? _(d) : null
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
|
-
async function
|
|
100
|
+
async function A(e, n = "") {
|
|
101
101
|
const t = await S(e, n);
|
|
102
102
|
if (t.status === "NOT_FOUND" || !t.scenarioInstance)
|
|
103
103
|
throw {
|
|
@@ -111,14 +111,14 @@ async function b(e, n = "") {
|
|
|
111
111
|
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await o(
|
|
112
112
|
`${r}/scenario-instances/${e}/join-self${t}`,
|
|
113
113
|
{
|
|
114
|
-
...
|
|
114
|
+
...l,
|
|
115
115
|
method: "POST"
|
|
116
116
|
}
|
|
117
117
|
), a = await c(s, "加入工程失败");
|
|
118
|
-
return
|
|
118
|
+
return _(a);
|
|
119
119
|
}
|
|
120
120
|
async function k(e = "") {
|
|
121
|
-
const n = e ? `?token=${encodeURIComponent(e)}` : "", t = await o(`${r}/self-support${n}`,
|
|
121
|
+
const n = e ? `?token=${encodeURIComponent(e)}` : "", t = await o(`${r}/self-support${n}`, l), s = await c(t, "获取自身答疑群组失败"), a = Number(s.scenario_instance_id ?? 0);
|
|
122
122
|
if (!Number.isFinite(a) || a <= 0)
|
|
123
123
|
throw {
|
|
124
124
|
_apiUserError: !0,
|
|
@@ -133,59 +133,32 @@ async function k(e = "") {
|
|
|
133
133
|
status: String(s.status ?? "ACTIVE")
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
|
-
async function
|
|
136
|
+
async function N(e, n = "") {
|
|
137
137
|
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await o(
|
|
138
138
|
`${r}/scenario-instances/${e}/forks${t}`,
|
|
139
|
-
|
|
139
|
+
l
|
|
140
140
|
), a = await c(s, "获取 Fork 列表失败");
|
|
141
141
|
return (Array.isArray(a) ? a : []).map(
|
|
142
|
-
(
|
|
142
|
+
(d) => _(d)
|
|
143
143
|
);
|
|
144
144
|
}
|
|
145
|
-
async function O(e) {
|
|
146
|
-
const n = await o(
|
|
147
|
-
`${r}/scenario-instances/${e}/close-feedback-tags`,
|
|
148
|
-
{
|
|
149
|
-
...d,
|
|
150
|
-
method: "GET"
|
|
151
|
-
}
|
|
152
|
-
);
|
|
153
|
-
return await c(n, "获取关单标签失败");
|
|
154
|
-
}
|
|
155
145
|
async function P(e) {
|
|
156
|
-
const n = await o(`${r}/scenario-instances/${e}/reopen`, {
|
|
157
|
-
...d,
|
|
158
|
-
method: "POST",
|
|
159
|
-
headers: { "Content-Type": "application/json" }
|
|
160
|
-
}), t = await c(n, "重新开启失败");
|
|
161
|
-
return u(t);
|
|
162
|
-
}
|
|
163
|
-
async function A(e, n) {
|
|
164
|
-
const t = await o(`${r}/scenario-instances/${e}/close`, {
|
|
165
|
-
...d,
|
|
166
|
-
method: "POST",
|
|
167
|
-
headers: { "Content-Type": "application/json" },
|
|
168
|
-
body: JSON.stringify(n)
|
|
169
|
-
}), s = await c(t, "关单失败");
|
|
170
|
-
return u(s);
|
|
171
|
-
}
|
|
172
|
-
async function N(e) {
|
|
173
146
|
const n = await o(
|
|
174
147
|
`${r}/scenario-instances/${e}/retry-init`,
|
|
175
148
|
{
|
|
176
|
-
...
|
|
149
|
+
...l,
|
|
177
150
|
method: "POST",
|
|
178
151
|
headers: { "Content-Type": "application/json" }
|
|
179
152
|
}
|
|
180
153
|
);
|
|
181
154
|
return c(n, "初始化补偿失败");
|
|
182
155
|
}
|
|
183
|
-
async function
|
|
156
|
+
async function O(e = "", n = 8) {
|
|
184
157
|
const t = new URLSearchParams();
|
|
185
158
|
e && t.set("token", e), t.set("limit", String(n));
|
|
186
159
|
const s = await o(
|
|
187
160
|
`${r}/scenario-instances/my-unclosed?${t.toString()}`,
|
|
188
|
-
|
|
161
|
+
l
|
|
189
162
|
), a = await c(
|
|
190
163
|
s,
|
|
191
164
|
"查询未关单失败"
|
|
@@ -198,19 +171,16 @@ async function F(e = "", n = 8) {
|
|
|
198
171
|
}));
|
|
199
172
|
}
|
|
200
173
|
export {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
174
|
+
I as a,
|
|
175
|
+
U as b,
|
|
176
|
+
O as c,
|
|
177
|
+
h as d,
|
|
205
178
|
k as e,
|
|
206
179
|
C as f,
|
|
207
|
-
|
|
180
|
+
N as g,
|
|
208
181
|
A as h,
|
|
209
|
-
N as i,
|
|
210
182
|
b as j,
|
|
211
|
-
y as k,
|
|
212
183
|
S as l,
|
|
213
|
-
U as m,
|
|
214
184
|
v as p,
|
|
215
185
|
P as r
|
|
216
186
|
};
|
|
@@ -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 "./ComponentDoc-
|
|
4
|
-
import { h as g } from "./index-
|
|
5
|
-
import { N as A } from "./index-
|
|
3
|
+
import { u as d } from "./ComponentDoc-MAAFSdex.js";
|
|
4
|
+
import { h as g } from "./index-DMScwqnC.js";
|
|
5
|
+
import { N as A } from "./index-BWlQEPJO.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,4 +1,4 @@
|
|
|
1
|
-
import { S as t, P as o, C as r, Z as a } from "./ComponentDoc-
|
|
1
|
+
import { S as t, P as o, C as r, Z as a } from "./ComponentDoc-MAAFSdex.js";
|
|
2
2
|
import { createElement as e } from "react";
|
|
3
3
|
import { BellOutlined as m, ProjectOutlined as p, DesktopOutlined as i, ReadOutlined as n } from "@ant-design/icons";
|
|
4
4
|
import "react/jsx-runtime";
|
|
@@ -6,9 +6,9 @@ import ur from "react-markdown";
|
|
|
6
6
|
import mr from "rehype-highlight";
|
|
7
7
|
import fr from "remark-gfm";
|
|
8
8
|
import { h as pr } from "./history-BlrA1eaW.js";
|
|
9
|
-
import { a as w, f as _, B as v, b as C, u as ea, n as yt, aa as hr, t as et, e as yr, ac as gr, ad as On, ae as _r, af as ta } from "./ComponentDoc-
|
|
10
|
-
import { f as br, a as vr, u as En, b as Sr, c as wr, r as Cr, d as Nr, e as Tr, g as kr, h as Ir, m as $r } from "./admin-logs-
|
|
11
|
-
import { a as xr, f as Lr, c as Ar } from "./index-
|
|
9
|
+
import { a as w, f as _, B as v, b as C, u as ea, n as yt, aa as hr, t as et, e as yr, ac as gr, ad as On, ae as _r, af as ta } from "./ComponentDoc-MAAFSdex.js";
|
|
10
|
+
import { f as br, a as vr, u as En, b as Sr, c as wr, r as Cr, d as Nr, e as Tr, g as kr, h as Ir, m as $r } from "./admin-logs-BBniVCWG.js";
|
|
11
|
+
import { a as xr, f as Lr, c as Ar } from "./index-DMScwqnC.js";
|
|
12
12
|
import { findTodosLinkedToNote as Dr, buildTodoProjectContext as Rr, linkedTodoChipLabel as Or } from "@yuku123/z-task-component";
|
|
13
13
|
import Ne from "dayjs";
|
|
14
14
|
import "./echarts-B1OU1xr4.js";
|