@yuku123/z-team-component 0.2.71 → 0.2.73
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-AUM7QbBp.js → ChangeLogView-BJxIhIPc.js} +1 -1
- package/dist/{ComponentDoc-CLxzCDOh.js → ComponentDoc-D6j0q6td.js} +3 -3
- package/dist/{InvitationManagementPage-MxyMf4G0.js → InvitationManagementPage-CguvahDP.js} +1 -1
- package/dist/{OnboardingPage-BRwX8RYe.js → OnboardingPage-CMtXJdWG.js} +2 -2
- package/dist/{ScheduledTasks-CM1m4eVZ.js → ScheduledTasks-CboH2Vtb.js} +2917 -3169
- package/dist/{SystemShell-BlgZhQ3V.js → SystemShell-Bj3uLkb-.js} +5 -5
- package/dist/{admin-logs-Dx2fTWjF.js → admin-logs-asBlA9MU.js} +2 -2
- package/dist/{api-CvQEwiLU.js → api-DPkUB1DA.js} +67 -67
- package/dist/{api-prj570UT.js → api-DcV3bpwl.js} +1 -1
- package/dist/{createWorkspaceWsHandler-gVanGCAb.js → createWorkspaceWsHandler-BUDc2OuA.js} +4 -4
- package/dist/{index-PGSvSOmm.js → index--l2UiQAT.js} +3 -3
- package/dist/{index-pyPNcAqs.js → index-BA3lZUmW.js} +1 -1
- package/dist/{index-B5xRddRA.js → index-BJqS68-M.js} +6 -6
- package/dist/{index-BujZj4b8.js → index-B_O9mXF6.js} +4 -4
- package/dist/{index-DDlmkQRB.js → index-C7ymoOiI.js} +2 -2
- package/dist/{index-DZbYU9xn.js → index-C9YhDxMT.js} +1 -1
- package/dist/{index-Dk0Qm8aZ.js → index-CM81Z4Gw.js} +1 -1
- package/dist/{index-DrWXMU6s.js → index-COhXbfib.js} +1 -1
- package/dist/{index-Cr4Rf1IT.js → index-CRgnk_Ly.js} +5 -5
- package/dist/{index-C4AgHd-o.js → index-CWnbQ1Ho.js} +2 -2
- package/dist/{index-pc_ckjzD.js → index-CfljuY26.js} +3 -3
- package/dist/{index-C1rcAeiF.js → index-Cz45ypLD.js} +3 -3
- package/dist/{index-D1PpV_Lf.js → index-D8WafKB8.js} +2 -2
- package/dist/{index-DJMZ1RpC.js → index-DB0RIaB4.js} +2 -2
- package/dist/{index-Cry-Oyoh.js → index-DHDQGO4q.js} +3 -3
- package/dist/index-DQ6ZfUO0.js +2880 -0
- package/dist/{index-CxYTuPnw.js → index-DdEl0ec4.js} +2 -2
- package/dist/{index-QZpyj7Q3.js → index-DfecivMN.js} +1256 -1256
- package/dist/index-DjFfvrfB.js +136 -0
- package/dist/{index-BbxVn7xy.js → index-DrDur76N.js} +1 -1
- package/dist/{index-CL7GMxR-.js → index-DxRqnvKU.js} +4 -4
- package/dist/{index-CrpF4NY8.js → index-Zx-BL-9D.js} +1 -1
- package/dist/{index-Do4YkHdZ.js → index-d5kr3WEM.js} +4 -4
- package/dist/{index-DOyFfs3n.js → index-ewTV5yeN.js} +2673 -2672
- package/dist/{index-DzAkJL3V.js → index-rPNKkWaw.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/{instance-TOlRCxS4.js → instance-B9aQMplq.js} +1 -1
- package/dist/{menuPermission-Bay-G_zT.js → menuPermission-B0HlWqWx.js} +3 -3
- package/dist/pages.js +1 -1
- package/dist/{schedule-DkbDjIh4.js → schedule-iMEGim0L.js} +1 -1
- package/dist/{send-default-agent-team-message-Bv-QRc7Y.js → send-default-agent-team-message-DtkE1OO4.js} +1 -1
- package/dist/{sso-user-BpOzJlQ3.js → sso-user-CFgbZoZ1.js} +1 -1
- package/dist/{training-BDzZav1U.js → training-DeyqAiin.js} +1 -1
- package/dist/{useAppStore-B1sVy9Iw.js → useAppStore-DQP0l22d.js} +19 -19
- package/dist/{webide-C3IaJ_eP.js → webide-BlpH-J-H.js} +4 -4
- package/package.json +1 -1
- package/dist/index-D4opADk_.js +0 -168
- package/dist/index-zhz9iWvI.js +0 -2629
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as c, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
-
import { i as $, t as x, p as O, b,
|
|
2
|
+
import { i as $, t as x, p as O, c as b, b as v } from "./api-DPkUB1DA.js";
|
|
3
3
|
import { CheckCircleFilled as F } 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 j, 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 y } from "./history-BlrA1eaW.js";
|
|
9
|
-
import { l as Z, j as z, f as H, b as L, p as M } from "./instance-
|
|
10
|
-
import { u as w } from "./useAppStore-
|
|
9
|
+
import { l as Z, j as z, f as H, b as L, p as M } from "./instance-B9aQMplq.js";
|
|
10
|
+
import { u as w } from "./useAppStore-DQP0l22d.js";
|
|
11
11
|
import { b as N } from "./mobile-client-O3yr9h6t.js";
|
|
12
12
|
function ct() {
|
|
13
13
|
const m = W(), p = B.parse(m.search), o = String(
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as o, f as d, B as r, u as c } from "./api-
|
|
1
|
+
import { a as o, f as d, B as r, u as c } from "./api-DPkUB1DA.js";
|
|
2
2
|
async function h(e, n = "") {
|
|
3
3
|
const t = new URLSearchParams();
|
|
4
4
|
n && t.set("token", n), e.scenario_code && t.set("scenario_code", e.scenario_code), e.status && t.set("status", e.status), e.name && t.set("name", e.name), e.role && t.set("role", e.role), e.create_time_start && t.set("create_time_start", e.create_time_start), e.create_time_end && t.set("create_time_end", e.create_time_end), t.set("page", String(e.page ?? 1)), t.set("size", String(e.size ?? 20));
|
|
@@ -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 "./useAppStore-
|
|
4
|
-
import { h as g } from "./schedule-
|
|
5
|
-
import { N as A } from "./index-
|
|
3
|
+
import { u as d } from "./useAppStore-DQP0l22d.js";
|
|
4
|
+
import { h as g } from "./schedule-iMEGim0L.js";
|
|
5
|
+
import { N as A } from "./index-ewTV5yeN.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,6 +1,6 @@
|
|
|
1
1
|
import { createElement as e } from "react";
|
|
2
2
|
import { ReadOutlined as t } from "@ant-design/icons";
|
|
3
|
-
import { S as o, P as a, C as r, Z as m } from "./ComponentDoc-
|
|
3
|
+
import { S as o, P as a, C as r, Z as m } from "./ComponentDoc-D6j0q6td.js";
|
|
4
4
|
import "react/jsx-runtime";
|
|
5
5
|
import "react-router-dom";
|
|
6
6
|
import "antd";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as i, f as c, B as d,
|
|
1
|
+
import { a as i, f as c, B as d, n as u, u as h, t as N, g as R } from "./api-DPkUB1DA.js";
|
|
2
2
|
import { jsx as g, jsxs as O } from "react/jsx-runtime";
|
|
3
3
|
import { useMemo as b, useState as L, useEffect as D, Component as M } from "react";
|
|
4
4
|
const T = [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { create as
|
|
2
|
-
import { Q as
|
|
1
|
+
import { create as Ce } from "zustand";
|
|
2
|
+
import { Q as je, x as M, i as C, y as ne, k as A, t as _, z as se, A as Pe, C as Ne, D as we, E as Ee, F as xe, G as Fe, H as ae, I as Re, J as Oe, K as B, L as Ue, M as He, w as ie, N as Le, O as $e, P as Ge, R as De, S as Ve, U as Be, V as qe, W as ze, X as Ke, Y as We, Z as Je, _ as Ye, $ as Ze, a0 as Qe, a1 as Xe, s as x, a2 as et, a3 as oe, a4 as tt, a5 as nt, a6 as rt, a7 as st, a8 as at, a9 as it, aa as ot, ab as ct, c as lt, ac as ut, ad as dt, m as ft, ae as mt } from "./api-DPkUB1DA.js";
|
|
3
3
|
import { message as F } from "antd";
|
|
4
4
|
const _e = `[[REASONING:正在分析…]]
|
|
5
5
|
正在分析…
|
|
@@ -65,7 +65,7 @@ function Rt(n) {
|
|
|
65
65
|
}
|
|
66
66
|
function pt(n) {
|
|
67
67
|
var e;
|
|
68
|
-
return ((e = n == null ? void 0 : n.scenario_code) == null ? void 0 : e.trim().toLowerCase()) ===
|
|
68
|
+
return ((e = n == null ? void 0 : n.scenario_code) == null ? void 0 : e.trim().toLowerCase()) === je;
|
|
69
69
|
}
|
|
70
70
|
function he(n, t) {
|
|
71
71
|
return pt(n) && !ye(t);
|
|
@@ -220,7 +220,7 @@ function ht(n) {
|
|
|
220
220
|
return n.sender_type !== "AGENT" || E(n) || n.content === "已取消" ? !1 : n.content === "处理中..." || n.content === "🔄 正在处理中..." || Q(n.content) || n.content.includes("[[REASONING:") || n.content.includes("[[TOOL_CALL:");
|
|
221
221
|
}
|
|
222
222
|
function z(n, t, e, r, s, a) {
|
|
223
|
-
if (
|
|
223
|
+
if (C(a))
|
|
224
224
|
return a;
|
|
225
225
|
const o = t ? s : r, i = t ?? null;
|
|
226
226
|
for (let c = o.length - 1; c >= 0; c--) {
|
|
@@ -364,7 +364,7 @@ function me(n, t) {
|
|
|
364
364
|
const Ie = "$ref";
|
|
365
365
|
function N(n) {
|
|
366
366
|
const t = _(n);
|
|
367
|
-
return
|
|
367
|
+
return C(t) ? t : void 0;
|
|
368
368
|
}
|
|
369
369
|
function ve(n) {
|
|
370
370
|
if (!n || typeof n != "object" || Array.isArray(n))
|
|
@@ -372,7 +372,7 @@ function ve(n) {
|
|
|
372
372
|
const t = Object.keys(n);
|
|
373
373
|
return t.length === 1 && t[0] === Ie;
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function j(n) {
|
|
376
376
|
if (!(!n || typeof n != "object" || Array.isArray(n)) && !ve(n))
|
|
377
377
|
return n;
|
|
378
378
|
}
|
|
@@ -381,10 +381,10 @@ function w(n) {
|
|
|
381
381
|
}
|
|
382
382
|
function kt(n) {
|
|
383
383
|
var s;
|
|
384
|
-
const t =
|
|
384
|
+
const t = j(n.submittedValue);
|
|
385
385
|
if (w(t))
|
|
386
386
|
return t;
|
|
387
|
-
const e =
|
|
387
|
+
const e = j((s = n.cardForm) == null ? void 0 : s.value);
|
|
388
388
|
if (w(e))
|
|
389
389
|
return e;
|
|
390
390
|
const r = typeof n.result == "string" && n.result.trim() ? n.result.trim() : "";
|
|
@@ -405,7 +405,7 @@ function Tt(n) {
|
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
407
|
function Zt(n, t) {
|
|
408
|
-
const e = t.result == null || t.result === "" ? n.result : String(t.result), r = Tt(t.ext), s =
|
|
408
|
+
const e = t.result == null || t.result === "" ? n.result : String(t.result), r = Tt(t.ext), s = j(
|
|
409
409
|
(r == null ? void 0 : r.submittedValue) ?? (r == null ? void 0 : r.submitted_value)
|
|
410
410
|
), a = {
|
|
411
411
|
...n,
|
|
@@ -420,7 +420,7 @@ function be(n) {
|
|
|
420
420
|
const t = n, e = N(t.humanTaskId ?? t.human_task_id);
|
|
421
421
|
if (e == null)
|
|
422
422
|
return null;
|
|
423
|
-
const r =
|
|
423
|
+
const r = j(t.cardForm) ?? j(t.card_form), s = j(t.submittedValue ?? t.submitted_value), a = typeof t.result == "string" ? t.result : void 0, o = kt({
|
|
424
424
|
submittedValue: s,
|
|
425
425
|
cardForm: r,
|
|
426
426
|
result: a
|
|
@@ -477,7 +477,7 @@ function ee(n) {
|
|
|
477
477
|
sender_id: r,
|
|
478
478
|
message_type: String(n.message_type ?? n.messageType ?? "TEXT"),
|
|
479
479
|
content: String(n.content ?? ""),
|
|
480
|
-
task_id: a == null || !
|
|
480
|
+
task_id: a == null || !C(a) ? null : a,
|
|
481
481
|
ext: l,
|
|
482
482
|
created_at: String(n.created_at ?? n.createdAt ?? ""),
|
|
483
483
|
sender_name: String(n.sender_name ?? n.senderName ?? ""),
|
|
@@ -606,7 +606,7 @@ function bt(n, t, e) {
|
|
|
606
606
|
const s = [...n];
|
|
607
607
|
return s[r] = { ...t, id: t.id }, s;
|
|
608
608
|
}
|
|
609
|
-
function
|
|
609
|
+
function Ct(n) {
|
|
610
610
|
var r;
|
|
611
611
|
const t = (r = n.currentProject) == null ? void 0 : r.id;
|
|
612
612
|
if (t == null)
|
|
@@ -626,7 +626,7 @@ function jt(n) {
|
|
|
626
626
|
}
|
|
627
627
|
const L = 80;
|
|
628
628
|
let ge = 0;
|
|
629
|
-
function
|
|
629
|
+
function jt(n) {
|
|
630
630
|
let t = (n || "").trim();
|
|
631
631
|
if (!t) return "";
|
|
632
632
|
t.length > 2e3 && (t = t.slice(0, 2e3));
|
|
@@ -652,7 +652,7 @@ function $() {
|
|
|
652
652
|
const n = /* @__PURE__ */ new Date(), t = (e) => String(e).padStart(2, "0");
|
|
653
653
|
return `${t(n.getHours())}:${t(n.getMinutes())}:${t(n.getSeconds())}`;
|
|
654
654
|
}
|
|
655
|
-
const Xt = 3, en = 4, tn = 5, nn =
|
|
655
|
+
const Xt = 3, en = 4, tn = 5, nn = Ce((n, t) => ({
|
|
656
656
|
currentUser: null,
|
|
657
657
|
permissionState: "unknown",
|
|
658
658
|
// FEATURE-ZTEAM-MERGE: 优先 z-opc 的 token, 其次 z-team 原生的 z_team_token
|
|
@@ -1049,7 +1049,7 @@ const Xt = 3, en = 4, tn = 5, nn = je((n, t) => ({
|
|
|
1049
1049
|
if (!Z(r))
|
|
1050
1050
|
return;
|
|
1051
1051
|
const s = r.id;
|
|
1052
|
-
if (!
|
|
1052
|
+
if (!C(s))
|
|
1053
1053
|
return;
|
|
1054
1054
|
const a = t();
|
|
1055
1055
|
let o = G(r, a.members);
|
|
@@ -1370,7 +1370,7 @@ const Xt = 3, en = 4, tn = 5, nn = je((n, t) => ({
|
|
|
1370
1370
|
},
|
|
1371
1371
|
expandProject: async (e, r) => {
|
|
1372
1372
|
var g, P;
|
|
1373
|
-
const s = String(e.id), a = (r == null ? void 0 : r.expandTree) === !0, o = t(), i =
|
|
1373
|
+
const s = String(e.id), a = (r == null ? void 0 : r.expandTree) === !0, o = t(), i = Ct(o), c = le(e, o.currentUser, e.mode), l = o.expandedProjectIds.includes(s), u = i[s], d = !o.fileTrees[s] || o.fileTrees[s].length === 0;
|
|
1374
1374
|
if (((g = o.currentProject) == null ? void 0 : g.id) === s && o.projectSwitchSeq > 0) {
|
|
1375
1375
|
a && !l && (n({
|
|
1376
1376
|
expandedProjectIds: [
|
|
@@ -1647,8 +1647,8 @@ const Xt = 3, en = 4, tn = 5, nn = je((n, t) => ({
|
|
|
1647
1647
|
const r = ee(
|
|
1648
1648
|
e
|
|
1649
1649
|
), s = _(r.task_id);
|
|
1650
|
-
if (
|
|
1651
|
-
const d =
|
|
1650
|
+
if (C(s)) {
|
|
1651
|
+
const d = jt(r.content);
|
|
1652
1652
|
d && t().pushTaskActivity(
|
|
1653
1653
|
s,
|
|
1654
1654
|
d,
|
|
@@ -1666,7 +1666,7 @@ const Xt = 3, en = 4, tn = 5, nn = je((n, t) => ({
|
|
|
1666
1666
|
{ ...r, task_id: o },
|
|
1667
1667
|
t().members
|
|
1668
1668
|
), c = i.id;
|
|
1669
|
-
|
|
1669
|
+
C(c) && n((d) => {
|
|
1670
1670
|
let f = d.taskMessages;
|
|
1671
1671
|
if (i.sender_type === "AGENT" && i.task_id && (f = f.filter(
|
|
1672
1672
|
(g) => !(M(g.id) && g.sender_type === "AGENT" && g.task_id === i.task_id)
|
|
@@ -6,11 +6,11 @@ import dr from "react-markdown";
|
|
|
6
6
|
import ur from "rehype-highlight";
|
|
7
7
|
import mr from "remark-gfm";
|
|
8
8
|
import { h as pr } from "./history-BlrA1eaW.js";
|
|
9
|
-
import { a as z, f as F, B as H, u as W, i as lt,
|
|
10
|
-
import { u as Bn, f as za, a as Wa, b as Ga, c as Ka, d as qa, e as Va, g as gr, r as br, h as vr, m as Cr } from "./admin-logs-
|
|
11
|
-
import { s as Ya, j as Ja, k as Vn, l as _n, p as gn, n as Qa, o as Un, q as Xa, v as Nr, w as Sr, x as Za, y as wr, z as pn, f as eo, D as to, A as Ir, B as Tr, C as kr } from "./schedule-
|
|
9
|
+
import { a as z, f as F, B as H, u as W, i as lt, k as Ce, t as He, c as hr, ap as qn, ac as fr, aC as yr, aD as ga, aE as _r, aF as Ha } from "./api-DPkUB1DA.js";
|
|
10
|
+
import { u as Bn, f as za, a as Wa, b as Ga, c as Ka, d as qa, e as Va, g as gr, r as br, h as vr, m as Cr } from "./admin-logs-asBlA9MU.js";
|
|
11
|
+
import { s as Ya, j as Ja, k as Vn, l as _n, p as gn, n as Qa, o as Un, q as Xa, v as Nr, w as Sr, x as Za, y as wr, z as pn, f as eo, D as to, A as Ir, B as Tr, C as kr } from "./schedule-iMEGim0L.js";
|
|
12
12
|
import Me from "dayjs";
|
|
13
|
-
import { u as Wt } from "./useAppStore-
|
|
13
|
+
import { u as Wt } from "./useAppStore-DQP0l22d.js";
|
|
14
14
|
import { M as no } from "./index-CUVdeb8y.js";
|
|
15
15
|
import "./echarts-B1OU1xr4.js";
|
|
16
16
|
import * as Dr from "echarts/core";
|
package/package.json
CHANGED
package/dist/index-D4opADk_.js
DELETED
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
import { jsxs as u, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { useState as h, useCallback as f } from "react";
|
|
3
|
-
import { c as E, t as j } from "./api-CvQEwiLU.js";
|
|
4
|
-
import { S as K, T as Q, P as q } from "./webide-C3IaJ_eP.js";
|
|
5
|
-
import { P as z, W as F, S as G, C as J, E as M, a as R, b, c as T, T as U, d as V } from "./ScheduledTasks-CM1m4eVZ.js";
|
|
6
|
-
import { p as r } from "./index-DOyFfs3n.js";
|
|
7
|
-
function v({
|
|
8
|
-
view: s,
|
|
9
|
-
agents: e,
|
|
10
|
-
token: i,
|
|
11
|
-
currentUser: m,
|
|
12
|
-
onOpenChat: a,
|
|
13
|
-
onOpenAgentDetail: k,
|
|
14
|
-
onBackToExtensions: A,
|
|
15
|
-
onOpenTab: o,
|
|
16
|
-
onAgentCreated: p,
|
|
17
|
-
onOpenProject: d,
|
|
18
|
-
onOpenWorkbenchShell: y
|
|
19
|
-
}) {
|
|
20
|
-
const [S, P] = h(
|
|
21
|
-
null
|
|
22
|
-
), [x, I] = h(
|
|
23
|
-
null
|
|
24
|
-
), D = f(
|
|
25
|
-
(n) => {
|
|
26
|
-
o("notes"), P({ id: n, ts: Date.now() });
|
|
27
|
-
},
|
|
28
|
-
[o]
|
|
29
|
-
), N = f(
|
|
30
|
-
(n) => {
|
|
31
|
-
o("todo"), I({ id: n, ts: Date.now() });
|
|
32
|
-
},
|
|
33
|
-
[o]
|
|
34
|
-
), W = s.kind === "chat" ? `${s.agent.id}-${s.sessionId ?? "new"}-${s.ts}` : "none", [H, C] = h(null), l = e.find((n) => n.id === H) ?? r(e) ?? null, $ = f(
|
|
35
|
-
async (n, c) => {
|
|
36
|
-
const g = l ?? r(e);
|
|
37
|
-
if (g)
|
|
38
|
-
try {
|
|
39
|
-
const B = n.length > 20 ? `${n.slice(0, 20)}…` : n, L = await E(
|
|
40
|
-
g.id,
|
|
41
|
-
B,
|
|
42
|
-
i,
|
|
43
|
-
c
|
|
44
|
-
);
|
|
45
|
-
a(g, j(L.id), n);
|
|
46
|
-
} catch {
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
[l, e, i, a]
|
|
50
|
-
);
|
|
51
|
-
return /* @__PURE__ */ u("div", { style: { height: "100%", display: "flex", flexDirection: "column" }, children: [
|
|
52
|
-
s.kind === "chat" && /* @__PURE__ */ t(
|
|
53
|
-
"div",
|
|
54
|
-
{
|
|
55
|
-
style: {
|
|
56
|
-
flex: 1,
|
|
57
|
-
minHeight: 0,
|
|
58
|
-
display: "flex",
|
|
59
|
-
flexDirection: "column"
|
|
60
|
-
},
|
|
61
|
-
children: /* @__PURE__ */ t(
|
|
62
|
-
z,
|
|
63
|
-
{
|
|
64
|
-
agent: s.agent,
|
|
65
|
-
initialSessionId: s.sessionId,
|
|
66
|
-
draftNoAutoPick: s.draft === !0,
|
|
67
|
-
autoSendDraft: s.draftText ?? null,
|
|
68
|
-
chromeless: !0,
|
|
69
|
-
agents: e,
|
|
70
|
-
onSwitchAgent: (n) => a(n)
|
|
71
|
-
},
|
|
72
|
-
W
|
|
73
|
-
)
|
|
74
|
-
}
|
|
75
|
-
),
|
|
76
|
-
s.kind === "landing" && /* @__PURE__ */ t("div", { style: { flex: 1, minHeight: 0 }, children: /* @__PURE__ */ t(
|
|
77
|
-
F,
|
|
78
|
-
{
|
|
79
|
-
agents: e,
|
|
80
|
-
activeAgent: l,
|
|
81
|
-
onSwitchAgent: (n) => C(n.id),
|
|
82
|
-
onSend: $,
|
|
83
|
-
onOpenTab: o,
|
|
84
|
-
onQuickAsk: () => {
|
|
85
|
-
const n = l ?? r(e);
|
|
86
|
-
n && a(n);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
) }),
|
|
90
|
-
s.kind === "schedule" && /* @__PURE__ */ t(G, { localOnline: !1 }),
|
|
91
|
-
s.kind === "history" && /* @__PURE__ */ t(
|
|
92
|
-
J,
|
|
93
|
-
{
|
|
94
|
-
agents: e,
|
|
95
|
-
token: i,
|
|
96
|
-
onOpenSession: (n, c) => a(n, c)
|
|
97
|
-
}
|
|
98
|
-
),
|
|
99
|
-
s.kind === "extensions" && /* @__PURE__ */ t(
|
|
100
|
-
M,
|
|
101
|
-
{
|
|
102
|
-
agents: e,
|
|
103
|
-
loading: !1,
|
|
104
|
-
skillsAgent: r(e),
|
|
105
|
-
token: i,
|
|
106
|
-
currentUser: m,
|
|
107
|
-
onChat: (n) => a(n),
|
|
108
|
-
onConfig: k,
|
|
109
|
-
onCreated: p,
|
|
110
|
-
onOpenPersonalTab: o,
|
|
111
|
-
onOpenWorkbenchShell: y
|
|
112
|
-
}
|
|
113
|
-
),
|
|
114
|
-
s.kind === "agentDetail" && /* @__PURE__ */ t("div", { style: { flex: 1, minHeight: 0 }, children: /* @__PURE__ */ t(
|
|
115
|
-
R,
|
|
116
|
-
{
|
|
117
|
-
agent: s.agent,
|
|
118
|
-
onBack: A
|
|
119
|
-
}
|
|
120
|
-
) }),
|
|
121
|
-
s.kind === "tab" && /* @__PURE__ */ u("div", { style: { flex: 1, minHeight: 0 }, children: [
|
|
122
|
-
s.tab === "projects" && /* @__PURE__ */ t(
|
|
123
|
-
b,
|
|
124
|
-
{
|
|
125
|
-
activeTab: "projects",
|
|
126
|
-
onActiveTabChange: () => {
|
|
127
|
-
},
|
|
128
|
-
onOpenProject: d,
|
|
129
|
-
hideTabs: !0
|
|
130
|
-
}
|
|
131
|
-
),
|
|
132
|
-
s.tab === "personal" && /* @__PURE__ */ t(
|
|
133
|
-
b,
|
|
134
|
-
{
|
|
135
|
-
activeTab: "personal",
|
|
136
|
-
onActiveTabChange: () => {
|
|
137
|
-
},
|
|
138
|
-
onOpenProject: d,
|
|
139
|
-
hideTabs: !0
|
|
140
|
-
}
|
|
141
|
-
),
|
|
142
|
-
s.tab === "business-stats" && /* @__PURE__ */ t(K, { source: "scenario" }),
|
|
143
|
-
s.tab === "tools" && /* @__PURE__ */ t(T, { showTools: !0, showWebsites: !1 }),
|
|
144
|
-
s.tab === "websites" && /* @__PURE__ */ t(T, { showTools: !1, showWebsites: !0 }),
|
|
145
|
-
s.tab === "todo" && /* @__PURE__ */ t(
|
|
146
|
-
Q,
|
|
147
|
-
{
|
|
148
|
-
onOpenProject: d,
|
|
149
|
-
onOpenNote: D,
|
|
150
|
-
openTodoId: x
|
|
151
|
-
}
|
|
152
|
-
),
|
|
153
|
-
s.tab === "notes" && /* @__PURE__ */ t(
|
|
154
|
-
q,
|
|
155
|
-
{
|
|
156
|
-
onOpenProject: d,
|
|
157
|
-
onOpenTodo: N,
|
|
158
|
-
openNoteId: S
|
|
159
|
-
}
|
|
160
|
-
),
|
|
161
|
-
s.tab === "training" && /* @__PURE__ */ t(U, {}),
|
|
162
|
-
s.tab === "webide" && /* @__PURE__ */ t(V, {})
|
|
163
|
-
] })
|
|
164
|
-
] });
|
|
165
|
-
}
|
|
166
|
-
export {
|
|
167
|
-
v as default
|
|
168
|
-
};
|