@yuku123/z-team-component 0.2.138 → 0.2.139
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/{AdminModuleContent-9gH_G78B.js → AdminModuleContent-B1IJbLVN.js} +11463 -12034
- package/dist/{ChangeLogView-DzFmZVBw.js → ChangeLogView-BVKf3AZn.js} +1 -1
- package/dist/{index-BHfNKXIA.js → CollabPersonalHost-BY6RqeQJ.js} +3 -3
- package/dist/{ComponentDoc-KyD5wtuW.js → ComponentDoc-BIX-e69A.js} +204 -212
- package/dist/{index-DXA0r7Co.js → DevWorkbench-BtiPE_V4.js} +2 -2
- package/dist/{InvitationManagementPage-6-0uZNuO.js → InvitationManagementPage-DRC_8AiO.js} +1 -1
- package/dist/{index-C9NwYJh-.js → KnowledgeGraphTab-BfhDEyvW.js} +1 -1
- package/dist/{index-DC1fQH0J.js → Market-C2vkBzDr.js} +2 -2
- package/dist/{OnboardingPage-tLarxnp5.js → OnboardingPage-B4GQTFCS.js} +2 -2
- package/dist/{index-DZcMGMHV.js → OpsWorkbench-D8RF2p4X.js} +292 -292
- package/dist/{index-Cwptuq_d.js → ProductWorkspace-PSO7Q9m-.js} +7 -7
- package/dist/{ScheduledTasks-QGmD7Uhz.js → ScheduledTasks-CoaHVU6e.js} +3104 -3141
- package/dist/{index-CNmSLd0s.js → SmartWorkbench-BkdfSgqx.js} +611 -638
- package/dist/{SystemShell-CWawiWOn.js → SystemShell-CANwRSyW.js} +149 -148
- package/dist/SystemWorkbench.module-DpLM0zgA.js +36 -0
- package/dist/{index-BgdqkNkT.js → TrainingAdminShell-CgnQM4Nb.js} +3 -3
- package/dist/{index-BdEokzAv.js → WorkBuddyShell-DCrPpMd5.js} +6 -6
- package/dist/{admin-logs-DXjxD-y2.js → admin-logs-DK00NEUv.js} +1 -1
- package/dist/{index-4icVyiM3.js → admin-ryysUJ9z.js} +6 -6
- package/dist/{api-DOjASQ0k.js → api-C_9xZbZr.js} +1 -1
- package/dist/{api-Dzr8HLsU.js → api-DBemNteG.js} +1 -1
- package/dist/{index-0AjMJyFL.js → build-by-form-CXxXrXvw.js} +5 -5
- package/dist/{index-DarTFF-M.js → change-log-CcmXtywx.js} +1 -1
- package/dist/{index-4NOi2xz4.js → chat-DKwMolQV.js} +2 -2
- package/dist/{index-8VddM67M.js → common-Bcnlb4nY.js} +2 -2
- package/dist/{createWorkspaceWsHandler-DCokPv4M.js → createWorkspaceWsHandler-6xyLJ14H.js} +3417 -3479
- package/dist/{index-CjYmL2yJ.js → docs-A-g6sqaE.js} +2 -2
- package/dist/{index-CUOByyqy.js → from-scenario-D8CIJLDn.js} +5 -5
- package/dist/{index-Crzx3zh2.js → from-ticket-D0oQPEf1.js} +2 -2
- package/dist/{index-DGdtqBi4.js → index-BGAG77Nt.js} +4 -4
- package/dist/index-BM6KEb8k.js +576 -0
- package/dist/{index-B75TTql4.js → index-BgCxUeRF.js} +2 -2
- package/dist/{index-ZqDoLUxb.js → index-BlfOXOZM.js} +1 -1
- package/dist/index-Bs_WMKyt.js +9527 -0
- package/dist/{index-nj-cjKsf.js → index-Dlf6mERD.js} +1950 -1910
- package/dist/index.js +1 -1
- package/dist/{instance-CDA6R8yG.js → instance-B9ZKD5cL.js} +1 -1
- package/dist/{menuPermission-LCjN8Osm.js → menuPermission-C4EVCwjs.js} +3 -3
- package/dist/{menuTree-Ctcz41N8.js → menuTree-BjchjhUw.js} +25 -23
- package/dist/pages.js +1 -1
- package/dist/{index-CLP0LnEz.js → phone-BU4g7eHI.js} +5 -5
- package/dist/portal-QNpTaU--.js +237 -0
- package/dist/{index-VqKcDrn3.js → scenario-DOpFkfNV.js} +2 -2
- package/dist/{send-default-agent-team-message-3Uyy88s_.js → send-default-agent-team-message-1L9Jv1eJ.js} +1 -1
- package/dist/{sso-user-DX2FYQCh.js → sso-user-Co71Xi9I.js} +1 -1
- package/dist/{training-BgYM7EV-.js → training-BqYfINRR.js} +1 -1
- package/dist/{webide-BsF30aLX.js → webide-AknolY0B.js} +213 -213
- package/dist/{index-PJZV-bFc.js → welcome-BBLRGBWu.js} +1 -1
- package/dist/z-team-component.css +1 -1
- package/package.json +12 -4
- package/dist/SystemWorkbench.module-CZv_ruUa.js +0 -36
- package/dist/index-DhDdFRHC.js +0 -279
- package/dist/index-DxZEpsT6.js +0 -10339
- /package/dist/{index-DrDFy5jN.js → CognitionWorkbench-DrDFy5jN.js} +0 -0
- /package/dist/{index-C815hPWS.js → chatdemo-C815hPWS.js} +0 -0
- /package/dist/{index-B_LJRFsK.js → download-B_LJRFsK.js} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as o, f as l, B as r, b as c } from "./ComponentDoc-
|
|
1
|
+
import { a as o, f as l, B as r, b as c } from "./ComponentDoc-BIX-e69A.js";
|
|
2
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));
|
|
@@ -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-BIX-e69A.js";
|
|
4
|
+
import { h as g } from "./index-BlfOXOZM.js";
|
|
5
|
+
import { N as A } from "./index-Bs_WMKyt.js";
|
|
6
6
|
function P() {
|
|
7
7
|
return d((n) => n.permissionState) !== "failed" ? null : /* @__PURE__ */ a(
|
|
8
8
|
h,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { useCallback as m, useState as p, useRef as h, useEffect as I } from "react";
|
|
2
2
|
import { jsx as n } from "react/jsx-runtime";
|
|
3
3
|
import { BarChartOutlined as O, MonitorOutlined as f, SettingOutlined as w, ControlOutlined as _, ToolOutlined as N, BookOutlined as M, ThunderboltOutlined as S, CodeSandboxOutlined as T } from "@ant-design/icons";
|
|
4
|
-
function C(i, t,
|
|
4
|
+
function C(i, t, a = 176, o = 480) {
|
|
5
5
|
const s = m(
|
|
6
6
|
(e) => {
|
|
7
|
-
const
|
|
8
|
-
return Math.min(Math.max(
|
|
7
|
+
const l = window.innerWidth > 0 ? Math.floor(window.innerWidth / 2) : o, b = Math.max(a, Math.min(o, l));
|
|
8
|
+
return Math.min(Math.max(a, Math.round(e)), b);
|
|
9
9
|
},
|
|
10
|
-
[
|
|
10
|
+
[a, o]
|
|
11
11
|
), [r, y] = p(() => {
|
|
12
12
|
try {
|
|
13
13
|
const e = Number(localStorage.getItem(i));
|
|
@@ -17,8 +17,8 @@ function C(i, t, l = 176, o = 480) {
|
|
|
17
17
|
return t;
|
|
18
18
|
}), [c, g] = p(!1), u = h(r);
|
|
19
19
|
u.current = r;
|
|
20
|
-
const
|
|
21
|
-
e.preventDefault(),
|
|
20
|
+
const d = h(null), E = m((e) => {
|
|
21
|
+
e.preventDefault(), d.current = { startX: e.clientX, startW: u.current }, g(!0);
|
|
22
22
|
}, []), v = m(() => {
|
|
23
23
|
y(t);
|
|
24
24
|
try {
|
|
@@ -28,18 +28,18 @@ function C(i, t, l = 176, o = 480) {
|
|
|
28
28
|
}, [t, i]);
|
|
29
29
|
return I(() => {
|
|
30
30
|
if (!c) return;
|
|
31
|
-
const e = (
|
|
32
|
-
const k =
|
|
33
|
-
k && y(s(k.startW +
|
|
34
|
-
},
|
|
35
|
-
|
|
31
|
+
const e = (b) => {
|
|
32
|
+
const k = d.current;
|
|
33
|
+
k && y(s(k.startW + b.clientX - k.startX));
|
|
34
|
+
}, l = () => {
|
|
35
|
+
d.current = null, g(!1);
|
|
36
36
|
try {
|
|
37
37
|
localStorage.setItem(i, String(u.current));
|
|
38
38
|
} catch {
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
|
-
return window.addEventListener("pointermove", e), window.addEventListener("pointerup",
|
|
42
|
-
window.removeEventListener("pointermove", e), window.removeEventListener("pointerup",
|
|
41
|
+
return window.addEventListener("pointermove", e), window.addEventListener("pointerup", l), window.addEventListener("pointercancel", l), document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", () => {
|
|
42
|
+
window.removeEventListener("pointermove", e), window.removeEventListener("pointerup", l), window.removeEventListener("pointercancel", l), document.body.style.cursor = "", document.body.style.userSelect = "";
|
|
43
43
|
};
|
|
44
44
|
}, [c, s, i]), { width: r, dragging: c, onHandlePointerDown: E, resetWidth: v };
|
|
45
45
|
}
|
|
@@ -53,7 +53,7 @@ const W = [
|
|
|
53
53
|
{ key: "statistics-personal", label: "个人指标" },
|
|
54
54
|
{ key: "statistics-global", label: "全局指标" },
|
|
55
55
|
{ key: "statistics-tech", label: "技术指标" },
|
|
56
|
-
{ key: "statistics-scenario", label: "
|
|
56
|
+
{ key: "statistics-scenario", label: "专家团指标" },
|
|
57
57
|
{ key: "statistics-business", label: "业务指标" },
|
|
58
58
|
{
|
|
59
59
|
key: "ops-report",
|
|
@@ -81,7 +81,9 @@ const W = [
|
|
|
81
81
|
label: "工具监控",
|
|
82
82
|
permission: "AUDIT_LOG_VIEW"
|
|
83
83
|
},
|
|
84
|
-
|
|
84
|
+
// 消息监控(msghub)已于 2026-11-13 挪到智能面 SmartWorkbench「智能体」组 —— 它是
|
|
85
|
+
// agent 消息流(CHAT/REASONING/TOOL_CALL…)的监控面,不是系统面运行指标。
|
|
86
|
+
// SUPPORTED_MENUS 保留 msghub,旧深链 ?menu=msghub 仍可打开(AdminModuleContent case 也在)。
|
|
85
87
|
{ key: "statistics-scenario-cost", label: "成本监控" }
|
|
86
88
|
]
|
|
87
89
|
},
|
|
@@ -103,12 +105,12 @@ const W = [
|
|
|
103
105
|
},
|
|
104
106
|
{
|
|
105
107
|
key: "ft-scenario",
|
|
106
|
-
label: "
|
|
108
|
+
label: "专家团管理",
|
|
107
109
|
children: [
|
|
108
|
-
{ key: "scenario", label: "
|
|
109
|
-
{ key: "scenario-instance", label: "
|
|
110
|
+
{ key: "scenario", label: "专家团构建" },
|
|
111
|
+
{ key: "scenario-instance", label: "协作实例" },
|
|
110
112
|
{ key: "scenario-template", label: "渲染模板" },
|
|
111
|
-
{ key: "tag", label: "
|
|
113
|
+
{ key: "tag", label: "专家团标签" }
|
|
112
114
|
]
|
|
113
115
|
},
|
|
114
116
|
{ key: "tool", label: "工具管理" }
|
|
@@ -170,11 +172,11 @@ const W = [
|
|
|
170
172
|
children: [
|
|
171
173
|
{ key: "knowledge-base", label: "文档知识" },
|
|
172
174
|
{ key: "knowledge-notes", label: "个人笔记" },
|
|
173
|
-
//
|
|
175
|
+
// 个体知识/专家团知识(原一级分组「进化管理」→ 个体进化/专家团进化):进化学习
|
|
174
176
|
// 即知识蒸馏闭环(学习记录→知识吸收)。接口走独立 evolution 服务(无主应用
|
|
175
177
|
// 权限拦截,EVOLUTION_VIEW 本就纯前端门槛),子项跟随父组 KNOWLEDGE_VIEW。key 保留,深链兼容。
|
|
176
178
|
{ key: "evolution-agent", label: "个体知识" },
|
|
177
|
-
{ key: "evolution-scenario", label: "
|
|
179
|
+
{ key: "evolution-scenario", label: "专家团知识" }
|
|
178
180
|
]
|
|
179
181
|
},
|
|
180
182
|
{
|
|
@@ -290,8 +292,8 @@ const W = [
|
|
|
290
292
|
function A(i = W) {
|
|
291
293
|
return i.flatMap(
|
|
292
294
|
(t) => {
|
|
293
|
-
var
|
|
294
|
-
return (
|
|
295
|
+
var a;
|
|
296
|
+
return (a = t.children) != null && a.length ? A(t.children) : [t];
|
|
295
297
|
}
|
|
296
298
|
);
|
|
297
299
|
}
|
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-BIX-e69A.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";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsxs as p, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { r as D, f as le } from "./ctc-sso-DtJHC-2M.js";
|
|
3
|
-
import { r as de, h as Z, s as K } from "./sso-user-
|
|
3
|
+
import { r as de, h as Z, s as K } from "./sso-user-Co71Xi9I.js";
|
|
4
4
|
import { ArrowLeftOutlined as ue, LogoutOutlined as pe, SearchOutlined as me } from "@ant-design/icons";
|
|
5
5
|
import { Spin as O, Button as X, Input as he, Empty as Y, Tag as fe, message as ge } from "antd";
|
|
6
6
|
import B from "query-string";
|
|
7
7
|
import { useState as y, useRef as E, useEffect as w, useMemo as J, useCallback as q } from "react";
|
|
8
8
|
import { useLocation as be } from "react-router-dom";
|
|
9
9
|
import { h as A } from "./history-BlrA1eaW.js";
|
|
10
|
-
import { a as ke, C as we } from "./createWorkspaceWsHandler-
|
|
11
|
-
import { u as c, Y as Se, _ as ye, $ as ve, a0 as Ne, a1 as Te, a2 as je, k as ee } from "./ComponentDoc-
|
|
12
|
-
import { l as Ce, j as Pe } from "./instance-
|
|
10
|
+
import { a as ke, C as we } from "./createWorkspaceWsHandler-6xyLJ14H.js";
|
|
11
|
+
import { u as c, Y as Se, _ as ye, $ as ve, a0 as Ne, a1 as Te, a2 as je, k as ee } from "./ComponentDoc-BIX-e69A.js";
|
|
12
|
+
import { l as Ce, j as Pe } from "./instance-B9ZKD5cL.js";
|
|
13
13
|
import { i as xe, s as _e } from "./mobile-client-O3yr9h6t.js";
|
|
14
14
|
/* empty css */
|
|
15
|
-
import { s as Ee } from "./admin-logs-
|
|
15
|
+
import { s as Ee } from "./admin-logs-DK00NEUv.js";
|
|
16
16
|
const ae = 2e4;
|
|
17
17
|
function Ae(o, i = ae, n = globalThis) {
|
|
18
18
|
let s = null;
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { CloseOutlined as I } from "@ant-design/icons";
|
|
3
|
+
import { useState as m, useEffect as E, useCallback as v } from "react";
|
|
4
|
+
import { h as C } from "./history-BlrA1eaW.js";
|
|
5
|
+
const D = "_portalRoot_1sa2c_7", A = "_portalHeader_1sa2c_47", S = "_brandRow_1sa2c_53", w = "_brandLogo_1sa2c_59", y = "_brandTitle_1sa2c_63", L = "_brandSubtitle_1sa2c_70", j = "_portalMain_1sa2c_76", B = "_sectionTitle_1sa2c_85", F = "_cardGrid_1sa2c_92", $ = "_scenarioCard_1sa2c_98", G = "_cardTop_1sa2c_114", H = "_cardIcon_1sa2c_119", O = "_cardInfo_1sa2c_123", R = "_cardTitle_1sa2c_127", M = "_cardTags_1sa2c_134", P = "_tag_1sa2c_139", q = "_cardDesc_1sa2c_148", W = "_cardAction_1sa2c_154", z = "_btnCreate_1sa2c_159", Z = "_portalFooter_1sa2c_184", J = "_linkWorkspace_1sa2c_190", K = "_modalOverlay_1sa2c_206", Q = "_modalBox_1sa2c_217", U = "_modalHeader_1sa2c_226", V = "_modalIcon_1sa2c_239", X = "_modalClose_1sa2c_242", Y = "_modalBody_1sa2c_255", aa = "_modalDesc_1sa2c_258", ea = "_fieldGroup_1sa2c_264", ca = "_fieldLabel_1sa2c_269", sa = "_required_1sa2c_274", ra = "_fieldTextarea_1sa2c_301", oa = "_fieldTextareaError_1sa2c_325", na = "_fieldError_1sa2c_328", la = "_modalFooter_1sa2c_333", ta = "_btnCancel_1sa2c_339", da = "_btnConfirm_1sa2c_354", a = {
|
|
6
|
+
portalRoot: D,
|
|
7
|
+
portalHeader: A,
|
|
8
|
+
brandRow: S,
|
|
9
|
+
brandLogo: w,
|
|
10
|
+
brandTitle: y,
|
|
11
|
+
brandSubtitle: L,
|
|
12
|
+
portalMain: j,
|
|
13
|
+
sectionTitle: B,
|
|
14
|
+
cardGrid: F,
|
|
15
|
+
scenarioCard: $,
|
|
16
|
+
cardTop: G,
|
|
17
|
+
cardIcon: H,
|
|
18
|
+
cardInfo: O,
|
|
19
|
+
cardTitle: R,
|
|
20
|
+
cardTags: M,
|
|
21
|
+
tag: P,
|
|
22
|
+
cardDesc: q,
|
|
23
|
+
cardAction: W,
|
|
24
|
+
btnCreate: z,
|
|
25
|
+
portalFooter: Z,
|
|
26
|
+
linkWorkspace: J,
|
|
27
|
+
modalOverlay: K,
|
|
28
|
+
modalBox: Q,
|
|
29
|
+
modalHeader: U,
|
|
30
|
+
modalIcon: V,
|
|
31
|
+
modalClose: X,
|
|
32
|
+
modalBody: Y,
|
|
33
|
+
modalDesc: aa,
|
|
34
|
+
fieldGroup: ea,
|
|
35
|
+
fieldLabel: ca,
|
|
36
|
+
required: sa,
|
|
37
|
+
fieldTextarea: ra,
|
|
38
|
+
fieldTextareaError: oa,
|
|
39
|
+
fieldError: na,
|
|
40
|
+
modalFooter: la,
|
|
41
|
+
btnCancel: ta,
|
|
42
|
+
btnConfirm: da
|
|
43
|
+
}, k = window.ZTEAM_USE_KAPI === !0 ? "/kapi/z-team/api" : "/z-team/api";
|
|
44
|
+
function ia(c) {
|
|
45
|
+
return c.length === 0 ? null : c.find((n) => n.isDefault || n.is_default) ?? c[0];
|
|
46
|
+
}
|
|
47
|
+
function N(c) {
|
|
48
|
+
return c.isDefault || c.is_default ? "默认专家团" : (c.name || "").replace(/场景/g, "专家团");
|
|
49
|
+
}
|
|
50
|
+
function _a() {
|
|
51
|
+
return fetch(`${k}/scenarios`, {
|
|
52
|
+
credentials: "include",
|
|
53
|
+
headers: { Accept: "application/json" }
|
|
54
|
+
}).then((c) => c.json()).then((c) => {
|
|
55
|
+
if (c && c.success === !1)
|
|
56
|
+
throw new Error(c.message || "加载专家团失败");
|
|
57
|
+
const n = (c == null ? void 0 : c.data) ?? c;
|
|
58
|
+
return Array.isArray(n) ? n : [];
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
function ma({
|
|
62
|
+
team: c,
|
|
63
|
+
onClose: n,
|
|
64
|
+
onCreated: p
|
|
65
|
+
}) {
|
|
66
|
+
const [d, h] = m(""), [i, l] = m(!1), [_, t] = m(""), r = v(async () => {
|
|
67
|
+
var g, T;
|
|
68
|
+
const o = d.trim();
|
|
69
|
+
if (!o) {
|
|
70
|
+
t("请填写需求描述");
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
t(""), l(!0);
|
|
74
|
+
try {
|
|
75
|
+
const f = ((g = o.split(`
|
|
76
|
+
`)[0]) == null ? void 0 : g.trim()) ?? "", x = f.length > 0 ? f.length > 32 ? `${f.slice(0, 32)}…` : f : `${Date.now()}`, b = `${N(c)}-${x}`, u = await (await fetch(`${k}/scenario-instances/`, {
|
|
77
|
+
method: "POST",
|
|
78
|
+
credentials: "include",
|
|
79
|
+
headers: {
|
|
80
|
+
Accept: "application/json",
|
|
81
|
+
"Content-Type": "application/json"
|
|
82
|
+
},
|
|
83
|
+
body: JSON.stringify({
|
|
84
|
+
name: b,
|
|
85
|
+
description: o.length > 120 ? `${o.slice(0, 120)}…` : o,
|
|
86
|
+
workspace_path: b,
|
|
87
|
+
scenario_code: c.code,
|
|
88
|
+
extend_params: { topic: o, source: "expert-team" }
|
|
89
|
+
})
|
|
90
|
+
})).json();
|
|
91
|
+
u.success && ((T = u.data) != null && T.id) ? p(u.data.id) : t(u.message || "创建失败,请重试");
|
|
92
|
+
} catch {
|
|
93
|
+
t("网络错误,请检查服务是否可用");
|
|
94
|
+
} finally {
|
|
95
|
+
l(!1);
|
|
96
|
+
}
|
|
97
|
+
}, [d, c, p]);
|
|
98
|
+
return /* @__PURE__ */ e("div", { className: a.modalOverlay, onClick: n, children: /* @__PURE__ */ s("div", { className: a.modalBox, onClick: (o) => o.stopPropagation(), children: [
|
|
99
|
+
/* @__PURE__ */ s("div", { className: a.modalHeader, children: [
|
|
100
|
+
/* @__PURE__ */ e("span", { className: a.modalIcon, children: c.isDefault || c.is_default ? "👥" : "🧩" }),
|
|
101
|
+
/* @__PURE__ */ e("h3", { children: N(c) }),
|
|
102
|
+
/* @__PURE__ */ e("button", { className: a.modalClose, onClick: n, children: /* @__PURE__ */ e(I, {}) })
|
|
103
|
+
] }),
|
|
104
|
+
/* @__PURE__ */ s("div", { className: a.modalBody, children: [
|
|
105
|
+
/* @__PURE__ */ e("p", { className: a.modalDesc, children: c.isDefault || c.is_default ? "唯一大 leader 常驻,什么活都能接。" : c.description || "大 leader 领衔的专家组。" }),
|
|
106
|
+
/* @__PURE__ */ s("div", { className: a.fieldGroup, children: [
|
|
107
|
+
/* @__PURE__ */ s("label", { className: a.fieldLabel, children: [
|
|
108
|
+
"需求描述",
|
|
109
|
+
/* @__PURE__ */ e("span", { className: a.required, children: "*" })
|
|
110
|
+
] }),
|
|
111
|
+
/* @__PURE__ */ e(
|
|
112
|
+
"textarea",
|
|
113
|
+
{
|
|
114
|
+
className: `${a.fieldTextarea} ${_ ? a.fieldTextareaError : ""}`,
|
|
115
|
+
value: d,
|
|
116
|
+
placeholder: `描述你要完成的事情,例如:
|
|
117
|
+
主题:2026 Q3 产品回顾
|
|
118
|
+
要求:按季度重点分三部分,突出数据变化`,
|
|
119
|
+
onChange: (o) => {
|
|
120
|
+
h(o.target.value), _ && t("");
|
|
121
|
+
},
|
|
122
|
+
rows: 5,
|
|
123
|
+
autoFocus: !0
|
|
124
|
+
}
|
|
125
|
+
),
|
|
126
|
+
_ && /* @__PURE__ */ e("p", { className: a.fieldError, children: _ })
|
|
127
|
+
] })
|
|
128
|
+
] }),
|
|
129
|
+
/* @__PURE__ */ s("div", { className: a.modalFooter, children: [
|
|
130
|
+
/* @__PURE__ */ e("button", { className: a.btnCancel, onClick: n, children: "取消" }),
|
|
131
|
+
/* @__PURE__ */ e(
|
|
132
|
+
"button",
|
|
133
|
+
{
|
|
134
|
+
className: a.btnConfirm,
|
|
135
|
+
onClick: r,
|
|
136
|
+
disabled: i,
|
|
137
|
+
children: i ? "创建中..." : "确认并开始"
|
|
138
|
+
}
|
|
139
|
+
)
|
|
140
|
+
] })
|
|
141
|
+
] }) });
|
|
142
|
+
}
|
|
143
|
+
function ga() {
|
|
144
|
+
const [c, n] = m([]), [p, d] = m(""), [h, i] = m(null);
|
|
145
|
+
E(() => {
|
|
146
|
+
let r = !1;
|
|
147
|
+
return _a().then((o) => {
|
|
148
|
+
r || (n(o), d(o.length === 0 ? "专家团未加载到" : ""));
|
|
149
|
+
}).catch((o) => {
|
|
150
|
+
r || d(o instanceof Error ? o.message : "加载专家团失败");
|
|
151
|
+
}), () => {
|
|
152
|
+
r = !0;
|
|
153
|
+
};
|
|
154
|
+
}, []);
|
|
155
|
+
const l = ia(c), _ = c.filter((r) => r.code !== (l == null ? void 0 : l.code)), t = v((r) => {
|
|
156
|
+
localStorage.setItem("ft_last_project_id", String(r)), localStorage.removeItem("ft_last_file_path"), C.push("/workspace");
|
|
157
|
+
}, []);
|
|
158
|
+
return /* @__PURE__ */ s("div", { className: a.portalRoot, children: [
|
|
159
|
+
/* @__PURE__ */ s("header", { className: a.portalHeader, children: [
|
|
160
|
+
/* @__PURE__ */ s("div", { className: a.brandRow, children: [
|
|
161
|
+
/* @__PURE__ */ e("img", { src: "/logo.svg", alt: "logo", className: a.brandLogo }),
|
|
162
|
+
/* @__PURE__ */ e("h1", { className: a.brandTitle, children: "Z-OPC 一人公司基建" })
|
|
163
|
+
] }),
|
|
164
|
+
/* @__PURE__ */ e("p", { className: a.brandSubtitle, children: "一人公司的 AI 基建 — 默认专家团随叫随到,额外需要再引入专家团" })
|
|
165
|
+
] }),
|
|
166
|
+
/* @__PURE__ */ s("main", { className: a.portalMain, children: [
|
|
167
|
+
/* @__PURE__ */ e("h2", { className: a.sectionTitle, children: "专家团" }),
|
|
168
|
+
p ? /* @__PURE__ */ e("p", { className: a.cardDesc, children: p }) : null,
|
|
169
|
+
/* @__PURE__ */ s("div", { className: a.cardGrid, children: [
|
|
170
|
+
l ? /* @__PURE__ */ s("div", { className: a.scenarioCard, children: [
|
|
171
|
+
/* @__PURE__ */ s("div", { className: a.cardTop, children: [
|
|
172
|
+
/* @__PURE__ */ e("span", { className: a.cardIcon, children: "👥" }),
|
|
173
|
+
/* @__PURE__ */ s("div", { className: a.cardInfo, children: [
|
|
174
|
+
/* @__PURE__ */ e("h3", { className: a.cardTitle, children: N(l) }),
|
|
175
|
+
/* @__PURE__ */ s("div", { className: a.cardTags, children: [
|
|
176
|
+
/* @__PURE__ */ e("span", { className: a.tag, children: "默认" }),
|
|
177
|
+
/* @__PURE__ */ e("span", { className: a.tag, children: "唯一大 leader" })
|
|
178
|
+
] })
|
|
179
|
+
] })
|
|
180
|
+
] }),
|
|
181
|
+
/* @__PURE__ */ e("p", { className: a.cardDesc, children: "什么活都能接:直接描述需求即可开始。" }),
|
|
182
|
+
/* @__PURE__ */ e("div", { className: a.cardAction, children: /* @__PURE__ */ e(
|
|
183
|
+
"button",
|
|
184
|
+
{
|
|
185
|
+
className: a.btnCreate,
|
|
186
|
+
onClick: () => i(l),
|
|
187
|
+
children: "开始"
|
|
188
|
+
}
|
|
189
|
+
) })
|
|
190
|
+
] }) : null,
|
|
191
|
+
_.map((r) => /* @__PURE__ */ s("div", { className: a.scenarioCard, children: [
|
|
192
|
+
/* @__PURE__ */ s("div", { className: a.cardTop, children: [
|
|
193
|
+
/* @__PURE__ */ e("span", { className: a.cardIcon, children: "🧩" }),
|
|
194
|
+
/* @__PURE__ */ s("div", { className: a.cardInfo, children: [
|
|
195
|
+
/* @__PURE__ */ e("h3", { className: a.cardTitle, children: r.name }),
|
|
196
|
+
/* @__PURE__ */ s("div", { className: a.cardTags, children: [
|
|
197
|
+
/* @__PURE__ */ e("span", { className: a.tag, children: "大 leader 领衔" }),
|
|
198
|
+
r.agentCount ?? r.agent_count ? /* @__PURE__ */ s("span", { className: a.tag, children: [
|
|
199
|
+
r.agentCount ?? r.agent_count,
|
|
200
|
+
" 位专家"
|
|
201
|
+
] }) : null
|
|
202
|
+
] })
|
|
203
|
+
] })
|
|
204
|
+
] }),
|
|
205
|
+
/* @__PURE__ */ e("p", { className: a.cardDesc, children: r.description || "针对专项领域引入的专家组。" }),
|
|
206
|
+
/* @__PURE__ */ e("div", { className: a.cardAction, children: /* @__PURE__ */ e(
|
|
207
|
+
"button",
|
|
208
|
+
{
|
|
209
|
+
className: a.btnCreate,
|
|
210
|
+
onClick: () => i(r),
|
|
211
|
+
children: "开始"
|
|
212
|
+
}
|
|
213
|
+
) })
|
|
214
|
+
] }, r.code))
|
|
215
|
+
] })
|
|
216
|
+
] }),
|
|
217
|
+
/* @__PURE__ */ e("footer", { className: a.portalFooter, children: /* @__PURE__ */ e(
|
|
218
|
+
"button",
|
|
219
|
+
{
|
|
220
|
+
className: a.linkWorkspace,
|
|
221
|
+
onClick: () => C.push("/workspace"),
|
|
222
|
+
children: "进入工作台 →"
|
|
223
|
+
}
|
|
224
|
+
) }),
|
|
225
|
+
h && /* @__PURE__ */ e(
|
|
226
|
+
ma,
|
|
227
|
+
{
|
|
228
|
+
team: h,
|
|
229
|
+
onClose: () => i(null),
|
|
230
|
+
onCreated: t
|
|
231
|
+
}
|
|
232
|
+
)
|
|
233
|
+
] });
|
|
234
|
+
}
|
|
235
|
+
export {
|
|
236
|
+
ga as default
|
|
237
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as t, jsx as n, Fragment as _ } from "react/jsx-runtime";
|
|
2
2
|
import { useState as i, useRef as D, useCallback as B, useEffect as N } from "react";
|
|
3
|
-
import { u as j } from "./ComponentDoc-
|
|
3
|
+
import { u as j } from "./ComponentDoc-BIX-e69A.js";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import { l as F, c as G, a as z, b as K, p as W } from "./api-
|
|
5
|
+
import { l as F, c as G, a as z, b as K, p as W } from "./api-DBemNteG.js";
|
|
6
6
|
const L = "dev_brain_scenario";
|
|
7
7
|
function q() {
|
|
8
8
|
var M;
|