@yuku123/z-team-component 0.2.101 → 0.2.103
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/package.json +1 -1
- package/dist/ChangeLogView-C5CT7IdD.js +0 -542
- package/dist/ComponentDoc-_6l967G1.js +0 -8035
- package/dist/InvitationManagementPage-aVNAFNfh.js +0 -495
- package/dist/OnboardingPage-eguTk0Fr.js +0 -393
- package/dist/ScheduledTasks-fQkpSLxv.js +0 -12127
- package/dist/SystemShell-CcjFqtAl.js +0 -688
- package/dist/_commonjsHelpers-B52_cu2H.js +0 -26
- package/dist/admin-logs-3ZODCEOd.js +0 -198
- package/dist/api-Cxg9p973.js +0 -20
- package/dist/browser-jb_PFvU3.js +0 -1538
- package/dist/createWorkspaceWsHandler-DGSUlhxe.js +0 -13142
- package/dist/ctc-sso-DtJHC-2M.js +0 -117
- package/dist/echarts-B1OU1xr4.js +0 -16
- package/dist/history-BlrA1eaW.js +0 -41
- package/dist/index-9pP8ZkkO.js +0 -913
- package/dist/index-BK7D0ag2.js +0 -142
- package/dist/index-BQvWAcy_.js +0 -814
- package/dist/index-BZCQSW-G.js +0 -1222
- package/dist/index-B_LJRFsK.js +0 -339
- package/dist/index-BdAkIs1M.js +0 -42049
- package/dist/index-Bn-5kryj.js +0 -2217
- package/dist/index-BohoJQPr.js +0 -7631
- package/dist/index-Bxeg6bYj.js +0 -315
- package/dist/index-C6Y3uiLo.js +0 -316
- package/dist/index-C815hPWS.js +0 -430
- package/dist/index-CJRhmIZt.js +0 -132
- package/dist/index-CRuyEQHz.js +0 -242
- package/dist/index-CUgTpa_y.js +0 -10132
- package/dist/index-Cl8xxWPn.js +0 -93
- package/dist/index-CuXeGlOh.js +0 -5892
- package/dist/index-Cxecr-Dh.js +0 -8
- package/dist/index-CyXYKCpO.js +0 -178
- package/dist/index-D1xldtWw.js +0 -479
- package/dist/index-DH85SI_i.js +0 -574
- package/dist/index-DJ52X07p.js +0 -1640
- package/dist/index-DLmDAaE2.js +0 -169
- package/dist/index-DTRobC4q.js +0 -956
- package/dist/index-DWsfQMp8.js +0 -208
- package/dist/index-DdeHvY0_.js +0 -112
- package/dist/index-DhDdFRHC.js +0 -279
- package/dist/index-DjokMbUK.js +0 -434
- package/dist/index-DyKLLFs9.js +0 -2699
- package/dist/index-J7unHx4K.js +0 -118
- package/dist/index-t0s2Lph_.js +0 -189
- package/dist/index.js +0 -10
- package/dist/index.module-CAa-2T7m.js +0 -72
- package/dist/index.module-UI0iz8K0.js +0 -42
- package/dist/instance-120oH-2S.js +0 -216
- package/dist/menuPermission-qZTza4Oq.js +0 -60
- package/dist/mobile-client-O3yr9h6t.js +0 -24
- package/dist/pages.js +0 -21
- package/dist/send-default-agent-team-message-DrfWKH9j.js +0 -35
- package/dist/spark-md5-Dld54a-T.js +0 -178
- package/dist/sso-user-DXwW5eLV.js +0 -43
- package/dist/training-D3P1cMiu.js +0 -450
- package/dist/webide-D_OZQdjo.js +0 -5233
- package/dist/z-team-component.css +0 -1
package/dist/index-J7unHx4K.js
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useState as y, useMemo as d } from "react";
|
|
3
|
-
import { useNavigate as G, useLocation as k } from "react-router-dom";
|
|
4
|
-
import { CodeOutlined as L, DownOutlined as N, RightOutlined as O, AppstoreOutlined as v, TableOutlined as A, DatabaseOutlined as w, RobotOutlined as H, FunctionOutlined as M, ApartmentOutlined as W, EyeOutlined as C, BranchesOutlined as $, DeploymentUnitOutlined as p, SafetyCertificateOutlined as g } from "@ant-design/icons";
|
|
5
|
-
import R from "@yuku123/z-lc-component";
|
|
6
|
-
import { f as U, M as x } from "./menuPermission-qZTza4Oq.js";
|
|
7
|
-
import { d as b } from "./ComponentDoc-_6l967G1.js";
|
|
8
|
-
const D = "_shell_1n5c7_7", E = "_sidebar_1n5c7_15", P = "_sidebarHeader_1n5c7_26", j = "_menuList_1n5c7_37", K = "_menuGroup_1n5c7_43", T = "_menuGroupHeader_1n5c7_47", B = "_menuGroupLabel_1n5c7_65", F = "_menuGroupArrow_1n5c7_69", q = "_menuSubList_1n5c7_74", z = "_menuSubItemWrap_1n5c7_80", J = "_menuSubItem_1n5c7_80", Q = "_menuSubItemActive_1n5c7_101", V = "_menuSubItemIcon_1n5c7_108", X = "_menuSubItemLabel_1n5c7_113", Y = "_main_1n5c7_118", t = {
|
|
9
|
-
shell: D,
|
|
10
|
-
sidebar: E,
|
|
11
|
-
sidebarHeader: P,
|
|
12
|
-
menuList: j,
|
|
13
|
-
menuGroup: K,
|
|
14
|
-
menuGroupHeader: T,
|
|
15
|
-
menuGroupLabel: B,
|
|
16
|
-
menuGroupArrow: F,
|
|
17
|
-
menuSubList: q,
|
|
18
|
-
menuSubItemWrap: z,
|
|
19
|
-
menuSubItem: J,
|
|
20
|
-
menuSubItemActive: Q,
|
|
21
|
-
menuSubItemIcon: V,
|
|
22
|
-
menuSubItemLabel: X,
|
|
23
|
-
main: Y
|
|
24
|
-
}, r = [
|
|
25
|
-
{
|
|
26
|
-
title: "应用",
|
|
27
|
-
items: [
|
|
28
|
-
{ key: "apps", label: "应用列表", icon: /* @__PURE__ */ e(v, {}), path: "apps" }
|
|
29
|
-
]
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
title: "建模",
|
|
33
|
-
items: [
|
|
34
|
-
{ key: "designer", label: "Schema 设计器", icon: /* @__PURE__ */ e(A, {}), path: "designer" },
|
|
35
|
-
{ key: "db-import", label: "从数据库导入", icon: /* @__PURE__ */ e(w, {}), path: "db-import" },
|
|
36
|
-
{ key: "admin-ai", label: "AI 建模", icon: /* @__PURE__ */ e(H, {}), path: "admin/ai" }
|
|
37
|
-
]
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
title: "配置",
|
|
41
|
-
items: [
|
|
42
|
-
{ key: "admin-dicts", label: "数据字典", icon: /* @__PURE__ */ e(M, {}), path: "admin/dicts" },
|
|
43
|
-
{ key: "admin-relations", label: "实体关系", icon: /* @__PURE__ */ e(W, {}), path: "admin/relations" },
|
|
44
|
-
{ key: "admin-views", label: "视图配置", icon: /* @__PURE__ */ e(C, {}), path: "admin/views" },
|
|
45
|
-
{ key: "admin-pipelines", label: "Pipeline", icon: /* @__PURE__ */ e($, {}), path: "admin/pipelines" },
|
|
46
|
-
{ key: "admin-workflows", label: "流程绑定", icon: /* @__PURE__ */ e(p, {}), path: "admin/workflows" }
|
|
47
|
-
]
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
title: "运行",
|
|
51
|
-
items: [
|
|
52
|
-
{ key: "admin-permissions", label: "权限矩阵", icon: /* @__PURE__ */ e(g, {}), path: "admin/permissions", permission: "PERMISSION_MANAGE" },
|
|
53
|
-
{ key: "admin-deployments", label: "部署记录", icon: /* @__PURE__ */ e(p, {}), path: "admin/deployments" }
|
|
54
|
-
]
|
|
55
|
-
}
|
|
56
|
-
], c = "/lc";
|
|
57
|
-
function Z(l) {
|
|
58
|
-
if (!l.startsWith(c)) return null;
|
|
59
|
-
const m = l.slice(c.length).replace(/^\//, "");
|
|
60
|
-
for (const o of r)
|
|
61
|
-
for (const s of o.items)
|
|
62
|
-
if (m === s.path || m.startsWith(`${s.path}/`)) return s.key;
|
|
63
|
-
return null;
|
|
64
|
-
}
|
|
65
|
-
function le() {
|
|
66
|
-
const l = G(), { pathname: m } = k(), o = b((n) => n.currentUser), s = b((n) => n.permissionState), [_, h] = y(
|
|
67
|
-
new Set(r.map((n) => n.title))
|
|
68
|
-
), S = d(
|
|
69
|
-
() => s === "failed" ? r : U(r, o),
|
|
70
|
-
[o, s]
|
|
71
|
-
), I = d(() => Z(m), [m]), f = (n) => {
|
|
72
|
-
h((u) => {
|
|
73
|
-
const i = new Set(u);
|
|
74
|
-
return i.has(n) ? i.delete(n) : i.add(n), i;
|
|
75
|
-
});
|
|
76
|
-
};
|
|
77
|
-
return /* @__PURE__ */ a("div", { className: t.shell, children: [
|
|
78
|
-
/* @__PURE__ */ a("aside", { className: t.sidebar, children: [
|
|
79
|
-
/* @__PURE__ */ a("div", { className: t.sidebarHeader, children: [
|
|
80
|
-
/* @__PURE__ */ e(L, {}),
|
|
81
|
-
/* @__PURE__ */ e("span", { children: "研发工作台" })
|
|
82
|
-
] }),
|
|
83
|
-
/* @__PURE__ */ e(x, {}),
|
|
84
|
-
/* @__PURE__ */ e("nav", { className: t.menuList, children: S.map((n) => {
|
|
85
|
-
const u = !_.has(n.title);
|
|
86
|
-
return /* @__PURE__ */ a("div", { className: t.menuGroup, children: [
|
|
87
|
-
/* @__PURE__ */ a(
|
|
88
|
-
"div",
|
|
89
|
-
{
|
|
90
|
-
className: t.menuGroupHeader,
|
|
91
|
-
onClick: () => f(n.title),
|
|
92
|
-
children: [
|
|
93
|
-
/* @__PURE__ */ e("span", { className: t.menuGroupLabel, children: n.title }),
|
|
94
|
-
/* @__PURE__ */ e("span", { className: t.menuGroupArrow, children: u ? /* @__PURE__ */ e(N, {}) : /* @__PURE__ */ e(O, {}) })
|
|
95
|
-
]
|
|
96
|
-
}
|
|
97
|
-
),
|
|
98
|
-
u && /* @__PURE__ */ e("ul", { className: t.menuSubList, children: n.items.map((i) => /* @__PURE__ */ a(
|
|
99
|
-
"li",
|
|
100
|
-
{
|
|
101
|
-
className: `${t.menuSubItemWrap} ${t.menuSubItem} ${I === i.key ? t.menuSubItemActive : ""}`,
|
|
102
|
-
onClick: () => l(`${c}/${i.path}`),
|
|
103
|
-
children: [
|
|
104
|
-
/* @__PURE__ */ e("span", { className: t.menuSubItemIcon, children: i.icon }),
|
|
105
|
-
/* @__PURE__ */ e("span", { className: t.menuSubItemLabel, children: i.label })
|
|
106
|
-
]
|
|
107
|
-
},
|
|
108
|
-
i.key
|
|
109
|
-
)) })
|
|
110
|
-
] }, n.title);
|
|
111
|
-
}) })
|
|
112
|
-
] }),
|
|
113
|
-
/* @__PURE__ */ e("main", { className: t.main, children: /* @__PURE__ */ e(R, {}) })
|
|
114
|
-
] });
|
|
115
|
-
}
|
|
116
|
-
export {
|
|
117
|
-
le as default
|
|
118
|
-
};
|
package/dist/index-t0s2Lph_.js
DELETED
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
import { jsxs as f, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { useState as h, useCallback as u } from "react";
|
|
3
|
-
import { S as N, P as H } from "./webide-D_OZQdjo.js";
|
|
4
|
-
import { L as W, P as $, S as j, C as B, E as O, a as q, W as b, b as g, T as z, c as E } from "./ScheduledTasks-fQkpSLxv.js";
|
|
5
|
-
import { w as K, p as M } from "./index-CUgTpa_y.js";
|
|
6
|
-
import { TodoTab as R } from "@yuku123/z-task-component";
|
|
7
|
-
function V({
|
|
8
|
-
view: s,
|
|
9
|
-
agents: o,
|
|
10
|
-
token: i,
|
|
11
|
-
currentUser: p,
|
|
12
|
-
onOpenChat: d,
|
|
13
|
-
onOpenAgentDetail: m,
|
|
14
|
-
onBackToExtensions: r,
|
|
15
|
-
onOpenTab: a,
|
|
16
|
-
onAgentCreated: T,
|
|
17
|
-
onOpenProject: l,
|
|
18
|
-
onOpenWorkbenchShell: x,
|
|
19
|
-
onOpenHistory: S,
|
|
20
|
-
localLane: n
|
|
21
|
-
}) {
|
|
22
|
-
const [y, k] = h(
|
|
23
|
-
null
|
|
24
|
-
), [C, P] = h(
|
|
25
|
-
null
|
|
26
|
-
), A = u(
|
|
27
|
-
(e) => {
|
|
28
|
-
a("notes"), k({ id: e, ts: Date.now() });
|
|
29
|
-
},
|
|
30
|
-
[a]
|
|
31
|
-
), I = u(
|
|
32
|
-
(e) => {
|
|
33
|
-
a("todo"), P({ id: e, ts: Date.now() });
|
|
34
|
-
},
|
|
35
|
-
[a]
|
|
36
|
-
), c = s.kind === "chat" ? s.lane === "local" ? `local-${s.sessionId ?? "new"}-${s.ts}` : `${s.agent.id}-${s.sessionId ?? "new"}-${s.ts}` : "none";
|
|
37
|
-
return /* @__PURE__ */ f("div", { style: { height: "100%", display: "flex", flexDirection: "column" }, children: [
|
|
38
|
-
s.kind === "chat" && (s.lane === "local" ? (
|
|
39
|
-
/* 本地车道(合并第 3 步):本机 Agent 会话;
|
|
40
|
-
本机离线/没有伙伴时给可读空态,不让中间区白屏 */
|
|
41
|
-
n && n.activeLocal && n.localOnline ? /* @__PURE__ */ t(
|
|
42
|
-
"div",
|
|
43
|
-
{
|
|
44
|
-
style: {
|
|
45
|
-
flex: 1,
|
|
46
|
-
minHeight: 0,
|
|
47
|
-
display: "flex",
|
|
48
|
-
flexDirection: "column"
|
|
49
|
-
},
|
|
50
|
-
children: /* @__PURE__ */ t(
|
|
51
|
-
W,
|
|
52
|
-
{
|
|
53
|
-
agent: K(n.activeLocal),
|
|
54
|
-
openSessionId: s.sessionId ? String(s.sessionId) : null,
|
|
55
|
-
onOpenSessionConsumed: () => {
|
|
56
|
-
},
|
|
57
|
-
onSessionsMutated: n.refreshSessions
|
|
58
|
-
},
|
|
59
|
-
c
|
|
60
|
-
)
|
|
61
|
-
}
|
|
62
|
-
) : /* @__PURE__ */ t(
|
|
63
|
-
"div",
|
|
64
|
-
{
|
|
65
|
-
style: {
|
|
66
|
-
flex: 1,
|
|
67
|
-
display: "flex",
|
|
68
|
-
alignItems: "center",
|
|
69
|
-
justifyContent: "center",
|
|
70
|
-
color: "rgba(0,0,0,0.45)",
|
|
71
|
-
fontSize: 13
|
|
72
|
-
},
|
|
73
|
-
children: "本机 Agent 未连接:启动 Z-OPC 桌面端伴生服务后可用本地车道"
|
|
74
|
-
}
|
|
75
|
-
)
|
|
76
|
-
) : /* @__PURE__ */ t(
|
|
77
|
-
"div",
|
|
78
|
-
{
|
|
79
|
-
style: {
|
|
80
|
-
flex: 1,
|
|
81
|
-
minHeight: 0,
|
|
82
|
-
display: "flex",
|
|
83
|
-
flexDirection: "column"
|
|
84
|
-
},
|
|
85
|
-
children: /* @__PURE__ */ t(
|
|
86
|
-
$,
|
|
87
|
-
{
|
|
88
|
-
agent: s.agent,
|
|
89
|
-
initialSessionId: s.sessionId,
|
|
90
|
-
draftNoAutoPick: s.draft === !0,
|
|
91
|
-
autoSendDraft: s.autoSendDraft ?? null,
|
|
92
|
-
chromeless: !0,
|
|
93
|
-
agents: o,
|
|
94
|
-
onSwitchAgent: (e) => d(e)
|
|
95
|
-
},
|
|
96
|
-
c
|
|
97
|
-
)
|
|
98
|
-
}
|
|
99
|
-
)),
|
|
100
|
-
s.kind === "schedule" && /* @__PURE__ */ t(
|
|
101
|
-
j,
|
|
102
|
-
{
|
|
103
|
-
localOnline: (n == null ? void 0 : n.localOnline) ?? !1,
|
|
104
|
-
agents: o,
|
|
105
|
-
token: i,
|
|
106
|
-
defaultLane: "cloud"
|
|
107
|
-
}
|
|
108
|
-
),
|
|
109
|
-
s.kind === "history" && /* @__PURE__ */ t(
|
|
110
|
-
B,
|
|
111
|
-
{
|
|
112
|
-
agents: o,
|
|
113
|
-
token: i,
|
|
114
|
-
onOpenSession: (e, D) => d(e, D),
|
|
115
|
-
onBack: r
|
|
116
|
-
}
|
|
117
|
-
),
|
|
118
|
-
s.kind === "extensions" && /* @__PURE__ */ t(
|
|
119
|
-
O,
|
|
120
|
-
{
|
|
121
|
-
agents: o,
|
|
122
|
-
loading: !1,
|
|
123
|
-
skillsAgent: M(o),
|
|
124
|
-
token: i,
|
|
125
|
-
currentUser: p,
|
|
126
|
-
onChat: (e) => d(e),
|
|
127
|
-
onConfig: m,
|
|
128
|
-
onCreated: T,
|
|
129
|
-
onOpenPersonalTab: a,
|
|
130
|
-
onOpenWorkbenchShell: x,
|
|
131
|
-
onOpenHistory: S,
|
|
132
|
-
capTabRequest: s.cap ? { tab: s.cap, ts: s.ts } : null
|
|
133
|
-
}
|
|
134
|
-
),
|
|
135
|
-
s.kind === "agentDetail" && /* @__PURE__ */ t("div", { style: { flex: 1, minHeight: 0 }, children: /* @__PURE__ */ t(
|
|
136
|
-
q,
|
|
137
|
-
{
|
|
138
|
-
agent: s.agent,
|
|
139
|
-
onBack: r
|
|
140
|
-
}
|
|
141
|
-
) }),
|
|
142
|
-
s.kind === "tab" && /* @__PURE__ */ f("div", { style: { flex: 1, minHeight: 0 }, children: [
|
|
143
|
-
s.tab === "projects" && /* @__PURE__ */ t(
|
|
144
|
-
b,
|
|
145
|
-
{
|
|
146
|
-
activeTab: "projects",
|
|
147
|
-
onActiveTabChange: () => {
|
|
148
|
-
},
|
|
149
|
-
onOpenProject: l,
|
|
150
|
-
hideTabs: !0
|
|
151
|
-
}
|
|
152
|
-
),
|
|
153
|
-
s.tab === "personal" && /* @__PURE__ */ t(
|
|
154
|
-
b,
|
|
155
|
-
{
|
|
156
|
-
activeTab: "personal",
|
|
157
|
-
onActiveTabChange: () => {
|
|
158
|
-
},
|
|
159
|
-
onOpenProject: l,
|
|
160
|
-
hideTabs: !0
|
|
161
|
-
}
|
|
162
|
-
),
|
|
163
|
-
s.tab === "business-stats" && /* @__PURE__ */ t(N, { source: "scenario" }),
|
|
164
|
-
s.tab === "tools" && /* @__PURE__ */ t(g, { showTools: !0, showWebsites: !1 }),
|
|
165
|
-
s.tab === "websites" && /* @__PURE__ */ t(g, { showTools: !1, showWebsites: !0 }),
|
|
166
|
-
s.tab === "todo" && /* @__PURE__ */ t(
|
|
167
|
-
R,
|
|
168
|
-
{
|
|
169
|
-
onOpenProject: l,
|
|
170
|
-
onOpenNote: A,
|
|
171
|
-
openTodoId: C
|
|
172
|
-
}
|
|
173
|
-
),
|
|
174
|
-
s.tab === "notes" && /* @__PURE__ */ t(
|
|
175
|
-
H,
|
|
176
|
-
{
|
|
177
|
-
onOpenProject: l,
|
|
178
|
-
onOpenTodo: I,
|
|
179
|
-
openNoteId: y
|
|
180
|
-
}
|
|
181
|
-
),
|
|
182
|
-
s.tab === "training" && /* @__PURE__ */ t(z, {}),
|
|
183
|
-
s.tab === "webide" && /* @__PURE__ */ t(E, {})
|
|
184
|
-
] })
|
|
185
|
-
] });
|
|
186
|
-
}
|
|
187
|
-
export {
|
|
188
|
-
V as default
|
|
189
|
-
};
|
package/dist/index.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { C as e, P as s, S as a, Z as r, i } from "./ComponentDoc-_6l967G1.js";
|
|
2
|
-
import { h as m } from "./history-BlrA1eaW.js";
|
|
3
|
-
export {
|
|
4
|
-
e as ComponentDocPage,
|
|
5
|
-
s as ProjectApp,
|
|
6
|
-
a as SubscribeApp,
|
|
7
|
-
r as ZTeamApp,
|
|
8
|
-
m as history,
|
|
9
|
-
i as isTokenExpired
|
|
10
|
-
};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
const c = "_hub_1scx0_1", o = "_header_1scx0_9", t = "_backBtn_1scx0_19", n = "_title_1scx0_35", e = "_bodySplit_1scx0_42", _ = "_spinWrapper_1scx0_55", a = "_columnsLayout_1scx0_70", s = "_catNav_1scx0_78", r = "_catNavTitle_1scx0_89", v = "_catItem_1scx0_97", l = "_catItemActive_1scx0_116", m = "_columnGridWrap_1scx0_122", d = "_catTag_1scx0_131", x = "_columnGrid_1scx0_122", u = "_columnCard_1scx0_149", i = "_columnCover_1scx0_163", p = "_columnCoverPlaceholder_1scx0_176", I = "_columnInfo_1scx0_182", G = "_columnDesc_1scx0_191", T = "_columnMeta_1scx0_200", C = "_latestUpdate_1scx0_204", A = "_latestTime_1scx0_214", N = "_deleteIcon_1scx0_229", b = "_columnActionsBar_1scx0_238", h = "_actionBtn_1scx0_245", g = "_actionBtnDanger_1scx0_263", y = "_ownerTag_1scx0_272", B = "_coverGrid_1scx0_279", D = "_coverCell_1scx0_284", U = "_coverItem_1scx0_287", k = "_coverNone_1scx0_301", L = "_coverUpload_1scx0_311", M = "_coverUploadIcon_1scx0_319", S = "_coverUploadingMask_1scx0_322", w = "_coverItemSelected_1scx0_330", O = "_coverName_1scx0_334", P = "_splitLayout_1scx0_346", W = "_articleNav_1scx0_354", f = "_navColumnDesc_1scx0_365", E = "_navGroup_1scx0_378", R = "_navToolbar_1scx0_382", $ = "_navAddGroup_1scx0_386", j = "_navGroupOps_1scx0_406", q = "_navGroupTitle_1scx0_415", z = "_navGroupIcon_1scx0_428", F = "_navGroupName_1scx0_433", H = "_navGroupCount_1scx0_440", J = "_navChapter_1scx0_447", K = "_navItem_1scx0_451", Q = "_navItemActive_1scx0_464", V = "_navTitle_1scx0_468", X = "_navItemRead_1scx0_472", Y = "_navIndex_1scx0_475", Z = "_readDot_1scx0_492", cc = "_navOps_1scx0_499", oc = "_navEmpty_1scx0_509", tc = "_readerPane_1scx0_513", nc = "_readerContent_1scx0_528", ec = "_tocAside_1scx0_534", _c = "_tocTitle_1scx0_545", ac = "_tocList_1scx0_554", sc = "_tocItem_1scx0_559", rc = "_tocSub_1scx0_576", vc = "_tocItemActive_1scx0_579", lc = "_readerTitle_1scx0_592", mc = "_readerMeta_1scx0_599", dc = "_markdown_1scx0_611", xc = {
|
|
2
|
-
hub: c,
|
|
3
|
-
header: o,
|
|
4
|
-
backBtn: t,
|
|
5
|
-
title: n,
|
|
6
|
-
bodySplit: e,
|
|
7
|
-
spinWrapper: _,
|
|
8
|
-
columnsLayout: a,
|
|
9
|
-
catNav: s,
|
|
10
|
-
catNavTitle: r,
|
|
11
|
-
catItem: v,
|
|
12
|
-
catItemActive: l,
|
|
13
|
-
columnGridWrap: m,
|
|
14
|
-
catTag: d,
|
|
15
|
-
columnGrid: x,
|
|
16
|
-
columnCard: u,
|
|
17
|
-
columnCover: i,
|
|
18
|
-
columnCoverPlaceholder: p,
|
|
19
|
-
columnInfo: I,
|
|
20
|
-
columnDesc: G,
|
|
21
|
-
columnMeta: T,
|
|
22
|
-
latestUpdate: C,
|
|
23
|
-
latestTime: A,
|
|
24
|
-
deleteIcon: N,
|
|
25
|
-
columnActionsBar: b,
|
|
26
|
-
actionBtn: h,
|
|
27
|
-
actionBtnDanger: g,
|
|
28
|
-
ownerTag: y,
|
|
29
|
-
coverGrid: B,
|
|
30
|
-
coverCell: D,
|
|
31
|
-
coverItem: U,
|
|
32
|
-
coverNone: k,
|
|
33
|
-
coverUpload: L,
|
|
34
|
-
coverUploadIcon: M,
|
|
35
|
-
coverUploadingMask: S,
|
|
36
|
-
coverItemSelected: w,
|
|
37
|
-
coverName: O,
|
|
38
|
-
splitLayout: P,
|
|
39
|
-
articleNav: W,
|
|
40
|
-
navColumnDesc: f,
|
|
41
|
-
navGroup: E,
|
|
42
|
-
navToolbar: R,
|
|
43
|
-
navAddGroup: $,
|
|
44
|
-
navGroupOps: j,
|
|
45
|
-
navGroupTitle: q,
|
|
46
|
-
navGroupIcon: z,
|
|
47
|
-
navGroupName: F,
|
|
48
|
-
navGroupCount: H,
|
|
49
|
-
navChapter: J,
|
|
50
|
-
navItem: K,
|
|
51
|
-
navItemActive: Q,
|
|
52
|
-
navTitle: V,
|
|
53
|
-
navItemRead: X,
|
|
54
|
-
navIndex: Y,
|
|
55
|
-
readDot: Z,
|
|
56
|
-
navOps: cc,
|
|
57
|
-
navEmpty: oc,
|
|
58
|
-
readerPane: tc,
|
|
59
|
-
readerContent: nc,
|
|
60
|
-
tocAside: ec,
|
|
61
|
-
tocTitle: _c,
|
|
62
|
-
tocList: ac,
|
|
63
|
-
tocItem: sc,
|
|
64
|
-
tocSub: rc,
|
|
65
|
-
tocItemActive: vc,
|
|
66
|
-
readerTitle: lc,
|
|
67
|
-
readerMeta: mc,
|
|
68
|
-
markdown: dc
|
|
69
|
-
};
|
|
70
|
-
export {
|
|
71
|
-
xc as h
|
|
72
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
const t = "_scenarioPage_1rtig_1", e = "_toolbar_1rtig_11", i = "_toolbarLeft_1rtig_22", o = "_pageTitle_1rtig_30", r = "_statInline_1rtig_39", _ = "_statChip_1rtig_47", n = "_statDivider_1rtig_53", s = "_pageActions_1rtig_60", a = "_tableCard_1rtig_68", c = "_tableWrap_1rtig_76", l = "_codeTag_1rtig_136", g = "_nameCell_1rtig_146", d = "_defaultBadge_1rtig_166", m = "_descCell_1rtig_180", p = "_mutedCell_1rtig_186", I = "_actionGroup_1rtig_190", f = "_emptyState_1rtig_203", y = "_emptyIcon_1rtig_212", b = "_emptyTitle_1rtig_225", C = "_emptyHint_1rtig_232", T = "_loadingWrap_1rtig_240", w = "_scenarioDrawerWrap_1rtig_266", u = "_section_1rtig_275", D = "_formRow_1rtig_279", R = "_formLabel_1rtig_283", S = "_formHint_1rtig_291", W = "_formRowPair_1rtig_298", v = "_sectionDivider_1rtig_307", A = "_listItemRow_1rtig_323", B = "_listItemIndex_1rtig_339", H = "_listItemBody_1rtig_354", L = "_listItemActions_1rtig_367", P = "_inlineFields_1rtig_375", x = "_dirTree_1rtig_395", h = "_dirNode_1rtig_401", F = "_dirTreeScroll_1rtig_411", G = "_readmeSection_1rtig_417", N = {
|
|
2
|
-
scenarioPage: t,
|
|
3
|
-
toolbar: e,
|
|
4
|
-
toolbarLeft: i,
|
|
5
|
-
pageTitle: o,
|
|
6
|
-
statInline: r,
|
|
7
|
-
statChip: _,
|
|
8
|
-
statDivider: n,
|
|
9
|
-
pageActions: s,
|
|
10
|
-
tableCard: a,
|
|
11
|
-
tableWrap: c,
|
|
12
|
-
codeTag: l,
|
|
13
|
-
nameCell: g,
|
|
14
|
-
defaultBadge: d,
|
|
15
|
-
descCell: m,
|
|
16
|
-
mutedCell: p,
|
|
17
|
-
actionGroup: I,
|
|
18
|
-
emptyState: f,
|
|
19
|
-
emptyIcon: y,
|
|
20
|
-
emptyTitle: b,
|
|
21
|
-
emptyHint: C,
|
|
22
|
-
loadingWrap: T,
|
|
23
|
-
scenarioDrawerWrap: w,
|
|
24
|
-
section: u,
|
|
25
|
-
formRow: D,
|
|
26
|
-
formLabel: R,
|
|
27
|
-
formHint: S,
|
|
28
|
-
formRowPair: W,
|
|
29
|
-
sectionDivider: v,
|
|
30
|
-
listItemRow: A,
|
|
31
|
-
listItemIndex: B,
|
|
32
|
-
listItemBody: H,
|
|
33
|
-
listItemActions: L,
|
|
34
|
-
inlineFields: P,
|
|
35
|
-
dirTree: x,
|
|
36
|
-
dirNode: h,
|
|
37
|
-
dirTreeScroll: F,
|
|
38
|
-
readmeSection: G
|
|
39
|
-
};
|
|
40
|
-
export {
|
|
41
|
-
N as s
|
|
42
|
-
};
|
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
import { a as o, f as d, B as r, u as c } from "./ComponentDoc-_6l967G1.js";
|
|
2
|
-
async function h(e, n = "") {
|
|
3
|
-
const t = new URLSearchParams();
|
|
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 o(
|
|
6
|
-
`${r}/scenario-instances/page?${t.toString()}`,
|
|
7
|
-
d
|
|
8
|
-
);
|
|
9
|
-
return c(s, "获取工作项列表失败");
|
|
10
|
-
}
|
|
11
|
-
function u(e) {
|
|
12
|
-
return {
|
|
13
|
-
id: String(e.id),
|
|
14
|
-
name: String(e.name ?? ""),
|
|
15
|
-
description: String(e.description ?? ""),
|
|
16
|
-
workspace_path: String(e.workspace_path ?? e.workspacePath ?? ""),
|
|
17
|
-
status: String(e.status ?? "ACTIVE"),
|
|
18
|
-
created_at: String(e.created_at ?? e.createdAt ?? ""),
|
|
19
|
-
mode: e.mode != null ? String(e.mode) : void 0,
|
|
20
|
-
scenario_id: e.scenario_id != null ? String(e.scenario_id) : e.scenarioId != null ? String(e.scenarioId) : void 0,
|
|
21
|
-
scenario_code: e.scenario_code != null ? String(e.scenario_code) : e.scenarioCode != null ? String(e.scenarioCode) : void 0,
|
|
22
|
-
scenario_name: e.scenario_name != null ? String(e.scenario_name) : e.scenarioName != null ? String(e.scenarioName) : void 0,
|
|
23
|
-
role: e.role != null ? String(e.role) : void 0,
|
|
24
|
-
llm_code: e.llm_code != null ? String(e.llm_code) : e.llmCode != null ? String(e.llmCode) : void 0,
|
|
25
|
-
close_feedback: m(e, "close_feedback"),
|
|
26
|
-
close_tags: m(e, "close_tags"),
|
|
27
|
-
close_time: m(e, "close_time"),
|
|
28
|
-
close_user: m(e, "close_user"),
|
|
29
|
-
members: Array.isArray(e.members) ? e.members.map((n) => String(n)) : void 0,
|
|
30
|
-
parent_id: p(e)
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
function m(e, n) {
|
|
34
|
-
const t = n.replace(/_([a-z])/g, (l, _) => _.toUpperCase());
|
|
35
|
-
if (e[n] != null) return e[n];
|
|
36
|
-
if (e[t] != null) return e[t];
|
|
37
|
-
const s = e.close_info ?? e.closeInfo;
|
|
38
|
-
if (s) {
|
|
39
|
-
if (s[n] != null) return s[n];
|
|
40
|
-
if (s[t] != null) return s[t];
|
|
41
|
-
}
|
|
42
|
-
const a = e.ext;
|
|
43
|
-
if (!a) return;
|
|
44
|
-
const i = a.params;
|
|
45
|
-
if (i)
|
|
46
|
-
return i[n] ?? void 0;
|
|
47
|
-
}
|
|
48
|
-
function p(e) {
|
|
49
|
-
const n = e.ext;
|
|
50
|
-
if (!n) return;
|
|
51
|
-
const t = n.params;
|
|
52
|
-
if (!t) return;
|
|
53
|
-
const s = t.parent_id;
|
|
54
|
-
if (s == null) return;
|
|
55
|
-
const a = s === "" ? "" : String(s);
|
|
56
|
-
return a === "" ? void 0 : a;
|
|
57
|
-
}
|
|
58
|
-
async function I(e) {
|
|
59
|
-
const n = await o(
|
|
60
|
-
`${r}/scenario-instances/${e}/models`
|
|
61
|
-
);
|
|
62
|
-
return await c(n, "获取模型列表失败") ?? [];
|
|
63
|
-
}
|
|
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, "获取工单信息失败");
|
|
71
|
-
}
|
|
72
|
-
function v(e) {
|
|
73
|
-
return String(e.currentStage ?? e.current_stage ?? "").trim();
|
|
74
|
-
}
|
|
75
|
-
function g(e) {
|
|
76
|
-
const n = e.trim().replace(/[/\\:*?"<>|]/g, "_");
|
|
77
|
-
return n.length > 0 ? n.slice(0, 80) : "workspace";
|
|
78
|
-
}
|
|
79
|
-
function T(e, n) {
|
|
80
|
-
var i;
|
|
81
|
-
const t = e.requirementTitle && e.requirementTitle.trim() || n, s = { ticket_id: n }, a = (i = e.foneUrl) == null ? void 0 : i.trim();
|
|
82
|
-
return a && (s.work_order_url = a), {
|
|
83
|
-
name: t,
|
|
84
|
-
description: `ticket_id_${n}_${t}`,
|
|
85
|
-
workspace_path: g(t),
|
|
86
|
-
scenario_code: f,
|
|
87
|
-
extend_params: s
|
|
88
|
-
};
|
|
89
|
-
}
|
|
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;
|
|
95
|
-
return {
|
|
96
|
-
status: i,
|
|
97
|
-
scenarioInstance: l ? u(l) : null
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
async function U(e, n = "") {
|
|
101
|
-
const t = await S(e, n);
|
|
102
|
-
if (t.status === "NOT_FOUND" || !t.scenarioInstance)
|
|
103
|
-
throw {
|
|
104
|
-
_apiUserError: !0,
|
|
105
|
-
userMessage: "项目不存在",
|
|
106
|
-
message: "项目不存在"
|
|
107
|
-
};
|
|
108
|
-
return t.scenarioInstance;
|
|
109
|
-
}
|
|
110
|
-
async function k(e, n = "") {
|
|
111
|
-
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await o(
|
|
112
|
-
`${r}/scenario-instances/${e}/join-self${t}`,
|
|
113
|
-
{
|
|
114
|
-
...d,
|
|
115
|
-
method: "POST"
|
|
116
|
-
}
|
|
117
|
-
), a = await c(s, "加入工程失败");
|
|
118
|
-
return u(a);
|
|
119
|
-
}
|
|
120
|
-
async function b(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);
|
|
122
|
-
if (!Number.isFinite(a) || a <= 0)
|
|
123
|
-
throw {
|
|
124
|
-
_apiUserError: !0,
|
|
125
|
-
userMessage: "自身答疑群组无效",
|
|
126
|
-
message: "自身答疑群组无效"
|
|
127
|
-
};
|
|
128
|
-
return {
|
|
129
|
-
scenario_instance_id: a,
|
|
130
|
-
name: String(s.name ?? "Z-OPC 自身答疑"),
|
|
131
|
-
scenario_code: String(s.scenario_code ?? "qa_support"),
|
|
132
|
-
workspace_path: String(s.workspace_path ?? ""),
|
|
133
|
-
status: String(s.status ?? "ACTIVE")
|
|
134
|
-
};
|
|
135
|
-
}
|
|
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 列表失败");
|
|
141
|
-
return (Array.isArray(a) ? a : []).map(
|
|
142
|
-
(l) => u(l)
|
|
143
|
-
);
|
|
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
|
-
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
|
-
const n = await o(
|
|
174
|
-
`${r}/scenario-instances/${e}/retry-init`,
|
|
175
|
-
{
|
|
176
|
-
...d,
|
|
177
|
-
method: "POST",
|
|
178
|
-
headers: { "Content-Type": "application/json" }
|
|
179
|
-
}
|
|
180
|
-
);
|
|
181
|
-
return c(n, "初始化补偿失败");
|
|
182
|
-
}
|
|
183
|
-
async function F(e = "", n = 8) {
|
|
184
|
-
const t = new URLSearchParams();
|
|
185
|
-
e && t.set("token", e), t.set("limit", String(n));
|
|
186
|
-
const s = await o(
|
|
187
|
-
`${r}/scenario-instances/my-unclosed?${t.toString()}`,
|
|
188
|
-
d
|
|
189
|
-
), a = await c(
|
|
190
|
-
s,
|
|
191
|
-
"查询未关单失败"
|
|
192
|
-
);
|
|
193
|
-
return (Array.isArray(a) ? a : []).map((i) => ({
|
|
194
|
-
id: Number(i.id ?? 0),
|
|
195
|
-
name: String(i.name ?? ""),
|
|
196
|
-
scenario_code: String(i.scenario_code ?? ""),
|
|
197
|
-
created_at: String(i.created_at ?? i.createdAt ?? "")
|
|
198
|
-
}));
|
|
199
|
-
}
|
|
200
|
-
export {
|
|
201
|
-
h as a,
|
|
202
|
-
T as b,
|
|
203
|
-
F as c,
|
|
204
|
-
I as d,
|
|
205
|
-
b as e,
|
|
206
|
-
C as f,
|
|
207
|
-
O as g,
|
|
208
|
-
A as h,
|
|
209
|
-
N as i,
|
|
210
|
-
k as j,
|
|
211
|
-
y as k,
|
|
212
|
-
S as l,
|
|
213
|
-
U as m,
|
|
214
|
-
v as p,
|
|
215
|
-
P as r
|
|
216
|
-
};
|