@yuku123/z-team-component 0.2.31 → 0.2.33

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.
@@ -1,11 +1,11 @@
1
1
  import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
- import { CopyOutlined as Y, ReloadOutlined as Ae, PlusOutlined as pe, DeleteOutlined as Ne, ClearOutlined as we, CloseOutlined as Te, SendOutlined as Ce, RobotOutlined as he, CloudServerOutlined as xe, MessageOutlined as Pe, KeyOutlined as Se, AppstoreOutlined as be, GiftOutlined as Ie, ApiOutlined as Me, ToolOutlined as Ke, BarChartOutlined as Oe, DesktopOutlined as Ee } from "@ant-design/icons";
2
+ import { CopyOutlined as Y, ReloadOutlined as Ae, PlusOutlined as pe, DeleteOutlined as Ne, ClearOutlined as we, CloseOutlined as Te, SendOutlined as Ce, RobotOutlined as he, CloudServerOutlined as Se, MessageOutlined as xe, KeyOutlined as Pe, AppstoreOutlined as be, GiftOutlined as Ie, ApiOutlined as Me, ToolOutlined as Oe, BarChartOutlined as Ke, DesktopOutlined as Ee } from "@ant-design/icons";
3
3
  import { useState as k, useCallback as $, useEffect as X, useRef as ne, useMemo as Be } from "react";
4
4
  import { Tooltip as G, Tabs as De, Button as B, Modal as se, Input as ue, Drawer as $e, Spin as Q, Statistic as q, Table as Le, message as _, Tag as F, Select as _e, Checkbox as ze } from "antd";
5
5
  import { s as t } from "./SmartWorkbench.module-DzQskKT0.js";
6
6
  import { AgentAppList as Re, AgentInstanceManager as Ue, TemplateMarket as je, McpPage as qe, SkillMarket as Fe, AgentDashboard as He } from "@yuku123/z-agent-component";
7
7
  import "@yuku123/z-frontend-common";
8
- import "./ComponentDoc-CUhlRqDo.js";
8
+ import "./ComponentDoc-B2qJmtU6.js";
9
9
  import "@yuku123/z-frontend-common/ui";
10
10
  import { D as Ge } from "./DebugPlayground-cxffrMgF.js";
11
11
  const oe = "ft_gateway_default_ak", Je = typeof window < "u" && window.ZTEAM_USE_KAPI === !0, ge = Je, We = `${ge ? "/kapi" : ""}/z-team`, z = ge ? "/kapi/z-team-agent-gateway" : "/gateway-api";
@@ -158,7 +158,7 @@ const Ze = [
158
158
  }
159
159
  ];
160
160
  async function Ve(a, o, c, d) {
161
- var C, x, b, P;
161
+ var C, S, b, x;
162
162
  const g = await fetch(`${z}/v1/chat/completions`, {
163
163
  method: "POST",
164
164
  headers: {
@@ -210,8 +210,8 @@ async function Ve(a, o, c, d) {
210
210
  try {
211
211
  const u = JSON.parse(M), A = u == null ? void 0 : u.choices;
212
212
  if (Array.isArray(A) && A.length > 0) {
213
- const K = (x = A[0]) == null ? void 0 : x.delta;
214
- if (K != null && K.content && d.onDelta(K.content), (b = A[0]) == null ? void 0 : b.finish_reason) {
213
+ const O = (S = A[0]) == null ? void 0 : S.delta;
214
+ if (O != null && O.content && d.onDelta(O.content), (b = A[0]) == null ? void 0 : b.finish_reason) {
215
215
  const R = u != null && u.usage ? {
216
216
  promptTokens: u.usage.prompt_tokens ?? 0,
217
217
  completionTokens: u.usage.completion_tokens ?? 0,
@@ -222,12 +222,12 @@ async function Ve(a, o, c, d) {
222
222
  }
223
223
  }
224
224
  if (u != null && u.usage) {
225
- const K = {
225
+ const O = {
226
226
  promptTokens: u.usage.prompt_tokens ?? 0,
227
227
  completionTokens: u.usage.completion_tokens ?? 0,
228
228
  totalTokens: u.usage.total_tokens ?? 0
229
229
  };
230
- d.onDone(K);
230
+ d.onDone(O);
231
231
  return;
232
232
  }
233
233
  } catch {
@@ -236,7 +236,7 @@ async function Ve(a, o, c, d) {
236
236
  }
237
237
  d.onDone();
238
238
  } catch (i) {
239
- if ((P = d.signal) != null && P.aborted) return;
239
+ if ((x = d.signal) != null && x.aborted) return;
240
240
  throw d.onError(i instanceof Error ? i : new Error(String(i))), i;
241
241
  }
242
242
  }
@@ -341,7 +341,7 @@ curl -X POST ${a}/v1/messages \\
341
341
  }'`;
342
342
  }
343
343
  function it() {
344
- const [a, o] = k("personal"), [c, d] = k([]), [g, D] = k([]), [w, T] = k(!0), [C, x] = k(!1), [b, P] = k(!1), [i, p] = k(""), [h, I] = k({ open: !1 }), [M, u] = k(null), [A, K] = k(null), [J, R] = k(!1), H = "zifang", ee = "zifang", n = et(), r = $(async () => {
344
+ const [a, o] = k("personal"), [c, d] = k([]), [g, D] = k([]), [w, T] = k(!0), [C, S] = k(!1), [b, x] = k(!1), [i, p] = k(""), [h, I] = k({ open: !1 }), [M, u] = k(null), [A, O] = k(null), [J, R] = k(!1), H = "zifang", ee = "zifang", n = et(), r = $(async () => {
345
345
  T(!0);
346
346
  try {
347
347
  const [l, f] = await Promise.all([
@@ -357,16 +357,16 @@ function it() {
357
357
  r();
358
358
  }, [r]);
359
359
  const N = () => {
360
- p(""), P(!0);
360
+ p(""), x(!0);
361
361
  }, y = async () => {
362
362
  if (!i.trim()) {
363
363
  _.warning("请输入 AK 名称");
364
364
  return;
365
365
  }
366
- x(!0);
366
+ S(!0);
367
367
  try {
368
368
  const l = await ye(H, ee, i.trim());
369
- tt(l.akPrefix, l.apiKey), P(!1), I({
369
+ tt(l.akPrefix, l.apiKey), x(!1), I({
370
370
  open: !0,
371
371
  apiKey: l.apiKey,
372
372
  akPrefix: l.akPrefix
@@ -374,7 +374,7 @@ function it() {
374
374
  } catch (l) {
375
375
  _.error(l instanceof Error ? l.message : "创建 AK 失败");
376
376
  } finally {
377
- x(!1);
377
+ S(!1);
378
378
  }
379
379
  }, L = (l) => {
380
380
  se.confirm({
@@ -397,18 +397,18 @@ function it() {
397
397
  const f = at(l.akPrefix);
398
398
  f ? v(f) : (v(l.akPrefix), _.info("完整 AK 未在本地缓存(可能在本设备外创建),已复制前缀"));
399
399
  }, te = async (l) => {
400
- u(l), R(!0), K(null);
400
+ u(l), R(!0), O(null);
401
401
  try {
402
402
  const f = await Qe(l.id);
403
- K(f);
403
+ O(f);
404
404
  } catch (f) {
405
405
  _.error(f instanceof Error ? f.message : "获取用量失败");
406
406
  } finally {
407
407
  R(!1);
408
408
  }
409
- }, S = () => {
410
- u(null), K(null);
411
- }, O = (l) => {
409
+ }, P = () => {
410
+ u(null), O(null);
411
+ }, K = (l) => {
412
412
  const f = Object.entries(l);
413
413
  if (f.length === 0)
414
414
  return /* @__PURE__ */ e("span", { className: t.usageEmpty, children: "暂无数据" });
@@ -660,7 +660,7 @@ function it() {
660
660
  {
661
661
  open: b,
662
662
  title: "生成新 AK",
663
- onCancel: () => P(!1),
663
+ onCancel: () => x(!1),
664
664
  onOk: y,
665
665
  okText: "确认生成",
666
666
  cancelText: "取消",
@@ -749,7 +749,7 @@ function it() {
749
749
  /* @__PURE__ */ e("code", { children: M.akPrefix })
750
750
  ] }) : "AK 详情",
751
751
  open: !!M,
752
- onClose: S,
752
+ onClose: P,
753
753
  size: "large",
754
754
  children: J ? /* @__PURE__ */ e("div", { style: { textAlign: "center", padding: 60 }, children: /* @__PURE__ */ e(Q, { description: "加载用量数据..." }) }) : A ? /* @__PURE__ */ s("div", { className: t.usageDrawerContent, children: [
755
755
  /* @__PURE__ */ s("div", { className: t.usageStatsGrid, children: [
@@ -792,7 +792,7 @@ function it() {
792
792
  ] }),
793
793
  /* @__PURE__ */ s("div", { className: t.usageSection, children: [
794
794
  /* @__PURE__ */ e("h4", { className: t.usageSectionTitle, children: "每日调用曲线(近 30 天)" }),
795
- O(A.daily)
795
+ K(A.daily)
796
796
  ] }),
797
797
  /* @__PURE__ */ s("div", { className: t.usageSection, children: [
798
798
  /* @__PURE__ */ e("h4", { className: t.usageSectionTitle, children: "模型用量分布" }),
@@ -807,7 +807,13 @@ function it() {
807
807
  dataSource: A.recent,
808
808
  rowKey: "id",
809
809
  size: "small",
810
- pagination: { pageSize: 10, size: "small" },
810
+ pagination: {
811
+ pageSize: 10,
812
+ size: "small",
813
+ showSizeChanger: !0,
814
+ pageSizeOptions: ["10", "20", "50", "100"],
815
+ showTotal: (l) => `共 ${l} 条`
816
+ },
811
817
  scroll: { x: 760 }
812
818
  }
813
819
  )
@@ -829,7 +835,7 @@ function lt(a) {
829
835
  const Z = 4;
830
836
  let rt = 0;
831
837
  function ct({ initialModels: a }) {
832
- const [o, c] = k([]), [d, g] = k([]), [D, w] = k(!0), [T, C] = k(""), [x, b] = k(!1), P = ne(""), i = ne(/* @__PURE__ */ new Map()), p = ne(/* @__PURE__ */ new Map());
838
+ const [o, c] = k([]), [d, g] = k([]), [D, w] = k(!0), [T, C] = k(""), [S, b] = k(!1), x = ne(""), i = ne(/* @__PURE__ */ new Map()), p = ne(/* @__PURE__ */ new Map());
833
839
  X(() => {
834
840
  (async () => {
835
841
  try {
@@ -856,12 +862,12 @@ function ct({ initialModels: a }) {
856
862
  },
857
863
  []
858
864
  ), M = $(async () => {
859
- if (P.current) return P.current;
865
+ if (x.current) return x.current;
860
866
  const n = await nt();
861
- return P.current = n, n;
867
+ return x.current = n, n;
862
868
  }, []), u = $(async () => {
863
869
  const n = T.trim();
864
- if (!n || x) return;
870
+ if (!n || S) return;
865
871
  let r;
866
872
  try {
867
873
  r = await M();
@@ -888,31 +894,31 @@ function ct({ initialModels: a }) {
888
894
  i.current.set(v.id, U);
889
895
  const te = v.messages.slice(0, -1);
890
896
  Ve(r, v.model, te, {
891
- onDelta: (S) => {
892
- I(v.id, (O) => ({
893
- ...O,
894
- streamingContent: O.streamingContent + S,
895
- messages: O.messages.map(
896
- (W, ae) => ae === O.messages.length - 1 ? { ...W, content: O.streamingContent + S } : W
897
+ onDelta: (P) => {
898
+ I(v.id, (K) => ({
899
+ ...K,
900
+ streamingContent: K.streamingContent + P,
901
+ messages: K.messages.map(
902
+ (W, ae) => ae === K.messages.length - 1 ? { ...W, content: K.streamingContent + P } : W
897
903
  )
898
904
  })), h(v.id);
899
905
  },
900
- onDone: (S) => {
901
- I(v.id, (O) => ({
902
- ...O,
906
+ onDone: (P) => {
907
+ I(v.id, (K) => ({
908
+ ...K,
903
909
  isStreaming: !1,
904
- usage: S ? {
905
- promptTokens: S.promptTokens,
906
- completionTokens: S.completionTokens,
907
- totalTokens: S.totalTokens
910
+ usage: P ? {
911
+ promptTokens: P.promptTokens,
912
+ completionTokens: P.completionTokens,
913
+ totalTokens: P.totalTokens
908
914
  } : null
909
915
  })), i.current.delete(v.id);
910
916
  },
911
- onError: (S) => {
912
- (S.message.includes("401") || S.message.includes("API key")) && (ke(), P.current = ""), I(v.id, (O) => ({
913
- ...O,
917
+ onError: (P) => {
918
+ (P.message.includes("401") || P.message.includes("API key")) && (ke(), x.current = ""), I(v.id, (K) => ({
919
+ ...K,
914
920
  isStreaming: !1,
915
- error: S.message
921
+ error: P.message
916
922
  })), i.current.delete(v.id);
917
923
  },
918
924
  signal: U.signal
@@ -927,9 +933,9 @@ function ct({ initialModels: a }) {
927
933
  setTimeout(() => {
928
934
  clearInterval(L), b(!1);
929
935
  }, 300 * 1e3);
930
- }, [T, x, o, M, I, h]), A = $(() => {
936
+ }, [T, S, o, M, I, h]), A = $(() => {
931
937
  i.current.forEach((n) => n.abort()), i.current.clear(), c((n) => n.map((r) => ({ ...r, isStreaming: !1 }))), b(!1);
932
- }, []), K = $(() => {
938
+ }, []), O = $(() => {
933
939
  var r, N;
934
940
  if (o.length >= Z) return;
935
941
  const n = ((r = d.find((y) => !o.some((L) => L.model === y.modelName))) == null ? void 0 : r.modelName) || ((N = d[0]) == null ? void 0 : N.modelName) || "qwen3.6-flash";
@@ -945,7 +951,7 @@ function ct({ initialModels: a }) {
945
951
  usage: null
946
952
  }))
947
953
  ), b(!1);
948
- }, [x, o]), R = $((n) => {
954
+ }, [S, o]), R = $((n) => {
949
955
  const r = i.current.get(n);
950
956
  r && r.abort(), i.current.delete(n), c((N) => N.filter((y) => y.id !== n));
951
957
  }, []), H = $(
@@ -972,7 +978,7 @@ function ct({ initialModels: a }) {
972
978
  size: "small",
973
979
  icon: /* @__PURE__ */ e(we, {}),
974
980
  onClick: J,
975
- disabled: x || o.every((n) => n.messages.length === 0),
981
+ disabled: S || o.every((n) => n.messages.length === 0),
976
982
  children: "清空重新来"
977
983
  }
978
984
  )
@@ -1047,7 +1053,7 @@ function ct({ initialModels: a }) {
1047
1053
  }
1048
1054
  )
1049
1055
  ] }, n.id)),
1050
- o.length < Z && /* @__PURE__ */ e(G, { title: "添加面板", children: /* @__PURE__ */ e("div", { className: t.addPanelBtn, onClick: K, children: /* @__PURE__ */ e(pe, {}) }) })
1056
+ o.length < Z && /* @__PURE__ */ e(G, { title: "添加面板", children: /* @__PURE__ */ e("div", { className: t.addPanelBtn, onClick: O, children: /* @__PURE__ */ e(pe, {}) }) })
1051
1057
  ] }),
1052
1058
  /* @__PURE__ */ s("div", { className: t.chatInputBar, children: [
1053
1059
  /* @__PURE__ */ e(
@@ -1061,10 +1067,10 @@ function ct({ initialModels: a }) {
1061
1067
  onPressEnter: (n) => {
1062
1068
  n.shiftKey || (n.preventDefault(), u());
1063
1069
  },
1064
- disabled: x
1070
+ disabled: S
1065
1071
  }
1066
1072
  ),
1067
- x ? /* @__PURE__ */ e(B, { danger: !0, onClick: A, children: "停止" }) : /* @__PURE__ */ s(B, { type: "primary", onClick: u, disabled: !T.trim(), children: [
1073
+ S ? /* @__PURE__ */ e(B, { danger: !0, onClick: A, children: "停止" }) : /* @__PURE__ */ s(B, { type: "primary", onClick: u, disabled: !T.trim(), children: [
1068
1074
  /* @__PURE__ */ e(Ce, {}),
1069
1075
  " 发送"
1070
1076
  ] })
@@ -1102,11 +1108,11 @@ function dt({ onStartChat: a }) {
1102
1108
  const h = new Set(p);
1103
1109
  return h.has(i) ? h.delete(i) : h.add(i), h;
1104
1110
  });
1105
- }, C = Array.from(D), x = (i) => {
1111
+ }, C = Array.from(D), S = (i) => {
1106
1112
  a([i]);
1107
1113
  }, b = () => {
1108
1114
  C.length > 0 && a(C);
1109
- }, P = (i) => {
1115
+ }, x = (i) => {
1110
1116
  if (!i) return "default";
1111
1117
  const p = i.toLowerCase();
1112
1118
  return p.includes("aliyun") || p.includes("ali") ? "blue" : p.includes("zhipu") || p.includes("glm") ? "purple" : p.includes("moonshot") || p.includes("kimi") ? "cyan" : p.includes("minimax") ? "orange" : "default";
@@ -1142,7 +1148,7 @@ function dt({ onStartChat: a }) {
1142
1148
  i.modelProvider && /* @__PURE__ */ e(
1143
1149
  F,
1144
1150
  {
1145
- color: P(i.modelProvider),
1151
+ color: x(i.modelProvider),
1146
1152
  style: { fontSize: 11, margin: 0 },
1147
1153
  children: i.modelProvider
1148
1154
  }
@@ -1158,7 +1164,7 @@ function dt({ onStartChat: a }) {
1158
1164
  type: "link",
1159
1165
  size: "small",
1160
1166
  onClick: (h) => {
1161
- h.stopPropagation(), x(i.modelName);
1167
+ h.stopPropagation(), S(i.modelName);
1162
1168
  },
1163
1169
  children: "发起对话"
1164
1170
  }
@@ -1188,18 +1194,18 @@ function dt({ onStartChat: a }) {
1188
1194
  }
1189
1195
  const mt = [
1190
1196
  // 模型与对话
1191
- { key: "model-management", label: "模型管理", icon: /* @__PURE__ */ e(xe, {}) },
1192
- { key: "model-chat", label: "模型对话", icon: /* @__PURE__ */ e(Pe, {}) },
1193
- { key: "ak-management", label: "AK 管理", icon: /* @__PURE__ */ e(Se, {}) },
1197
+ { key: "model-management", label: "模型管理", icon: /* @__PURE__ */ e(Se, {}) },
1198
+ { key: "model-chat", label: "模型对话", icon: /* @__PURE__ */ e(xe, {}) },
1199
+ { key: "ak-management", label: "AK 管理", icon: /* @__PURE__ */ e(Pe, {}) },
1194
1200
  // Agent 应用
1195
1201
  { key: "agent-app", label: "Agent 应用", icon: /* @__PURE__ */ e(he, {}) },
1196
1202
  { key: "agent-instance", label: "多 Agent 实例", icon: /* @__PURE__ */ e(be, {}) },
1197
1203
  { key: "template-market", label: "模板市场", icon: /* @__PURE__ */ e(Ie, {}) },
1198
1204
  // 协议与扩展
1199
1205
  { key: "mcp-service", label: "MCP 服务", icon: /* @__PURE__ */ e(Me, {}) },
1200
- { key: "skill-market", label: "技能市场", icon: /* @__PURE__ */ e(Ke, {}) },
1206
+ { key: "skill-market", label: "技能市场", icon: /* @__PURE__ */ e(Oe, {}) },
1201
1207
  // 监控与调试
1202
- { key: "agent-dashboard", label: "Agent 监控", icon: /* @__PURE__ */ e(Oe, {}) },
1208
+ { key: "agent-dashboard", label: "Agent 监控", icon: /* @__PURE__ */ e(Ke, {}) },
1203
1209
  { key: "debug-console", label: "Debug 调试台", icon: /* @__PURE__ */ e(Ee, {}) }
1204
1210
  ];
1205
1211
  function wt() {
@@ -7,7 +7,7 @@ import { message as U, Input as H, Tooltip as se, Button as g, Spin as ce, Empty
7
7
  import ve from "react-markdown";
8
8
  import _e from "rehype-highlight";
9
9
  import ge from "remark-gfm";
10
- import { M as oa } from "./index-VHvEmmhf.js";
10
+ import { M as oa } from "./index-CEmwgW65.js";
11
11
  function j(a) {
12
12
  return a ? `?token=${encodeURIComponent(a)}` : "";
13
13
  }
@@ -12,7 +12,7 @@ import Tt from "remark-gfm";
12
12
  import { h as be } from "./index.module-CAa-2T7m.js";
13
13
  import { M as Hl } from "./index-CUVdeb8y.js";
14
14
  import { ae as Kl } from "./api-19TXED_O.js";
15
- import { h as ql } from "./schedule-DD50-7cs.js";
15
+ import { h as ql } from "./schedule-DIlnA1uC.js";
16
16
  import { s as Ee } from "./SmartWorkbench.module-DzQskKT0.js";
17
17
  function Vl() {
18
18
  const l = Ce((i) => i.token), [n, D] = o([]), [k, L] = o(!1), [x, B] = o(""), [E, F] = o(null), [c, A] = o(!1), [C, T] = o(!1), [I, U] = o(null), [u, v] = o([]), [_, y] = o([]), [j, J] = o([]), [Z, O] = o([]), [w, z] = o([]), h = de(async () => {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as e, P as s, S as a, Z as r, i } from "./ComponentDoc-CUhlRqDo.js";
1
+ import { C as e, P as s, S as a, Z as r, i } from "./ComponentDoc-B2qJmtU6.js";
2
2
  import { h as m } from "./history-BlrA1eaW.js";
3
3
  export {
4
4
  e as ComponentDocPage,
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-CUhlRqDo.js";
3
+ import { S as o, P as a, C as r, Z as m } from "./ComponentDoc-B2qJmtU6.js";
4
4
  import "react/jsx-runtime";
5
5
  import "react-router-dom";
6
6
  import "antd";
@@ -1,7 +1,38 @@
1
1
  import { jsxs as E, jsx as h } from "react/jsx-runtime";
2
2
  import { Component as N } from "react";
3
3
  import { a as c, B as i, u as l, f as u, g as A, r as f } from "./api-19TXED_O.js";
4
- class I extends N {
4
+ const S = {
5
+ RUNTIME_MONITOR_VIEW: ["RUNTIME_MONITOR_MANAGE"],
6
+ EVALUATION_VIEW: ["EVALUATION_MANAGE"],
7
+ COLLABORATION_VIEW: [
8
+ "AGENT_MANAGE",
9
+ "SKILL_MANAGE",
10
+ "SCENARIO_MANAGE",
11
+ "PROFILE_MANAGE",
12
+ "TAG_MANAGE",
13
+ "TOOL_MANAGE"
14
+ ],
15
+ EVOLUTION_VIEW: ["EVOLUTION_MANAGE"],
16
+ OPS_CONFIG_VIEW: [
17
+ "OPS_CONFIG_MANAGE",
18
+ "ONCALL_MANAGE",
19
+ "ANNOUNCEMENT_MANAGE",
20
+ "OPS_REPORT_MANAGE"
21
+ ],
22
+ KNOWLEDGE_VIEW: ["KNOWLEDGE_MANAGE"],
23
+ WEBIDE_VIEW: ["WEBIDE_MANAGE"]
24
+ };
25
+ function I(n, e) {
26
+ var r;
27
+ if (!n) return !1;
28
+ if (n.is_global_admin || (r = n.permissions) != null && r.includes(e)) return !0;
29
+ const t = S[e];
30
+ return !!(t != null && t.some((a) => {
31
+ var s;
32
+ return (s = n.permissions) == null ? void 0 : s.includes(a);
33
+ }));
34
+ }
35
+ class O extends N {
5
36
  constructor(e) {
6
37
  super(e), this.state = { hasError: !1, error: null };
7
38
  }
@@ -62,37 +93,6 @@ class I extends N {
62
93
  ) : this.props.children;
63
94
  }
64
95
  }
65
- const S = {
66
- RUNTIME_MONITOR_VIEW: ["RUNTIME_MONITOR_MANAGE"],
67
- EVALUATION_VIEW: ["EVALUATION_MANAGE"],
68
- COLLABORATION_VIEW: [
69
- "AGENT_MANAGE",
70
- "SKILL_MANAGE",
71
- "SCENARIO_MANAGE",
72
- "PROFILE_MANAGE",
73
- "TAG_MANAGE",
74
- "TOOL_MANAGE"
75
- ],
76
- EVOLUTION_VIEW: ["EVOLUTION_MANAGE"],
77
- OPS_CONFIG_VIEW: [
78
- "OPS_CONFIG_MANAGE",
79
- "ONCALL_MANAGE",
80
- "ANNOUNCEMENT_MANAGE",
81
- "OPS_REPORT_MANAGE"
82
- ],
83
- KNOWLEDGE_VIEW: ["KNOWLEDGE_MANAGE"],
84
- WEBIDE_VIEW: ["WEBIDE_MANAGE"]
85
- };
86
- function O(n, e) {
87
- var r;
88
- if (!n) return !1;
89
- if (n.is_global_admin || (r = n.permissions) != null && r.includes(e)) return !0;
90
- const t = S[e];
91
- return !!(t != null && t.some((a) => {
92
- var s;
93
- return (s = n.permissions) == null ? void 0 : s.includes(a);
94
- }));
95
- }
96
96
  function p(n) {
97
97
  const e = n && typeof n == "object" ? n : {}, t = Array.isArray(e.items) ? A(e.items) : [];
98
98
  return { ...e, items: t };
@@ -223,14 +223,14 @@ async function P(n = "") {
223
223
  return l(t, "标记已读失败");
224
224
  }
225
225
  export {
226
- I as E,
226
+ O as E,
227
227
  P as a,
228
228
  _ as b,
229
229
  G as c,
230
230
  T as d,
231
231
  R as e,
232
232
  b as f,
233
- O as h,
233
+ I as h,
234
234
  U as m,
235
235
  M as r,
236
236
  L as s,
@@ -10,7 +10,7 @@ import { a as E, f as A, B as M, u as j, r as Xe, t as Re, i as it, k as be, c a
10
10
  import { u as In, f as Ca, a as Pr, b as Sa, c as Ur, d as zr, e as Na, g as Br, r as jr, h as Fr, m as Hr } from "./admin-logs-Dv86pFvY.js";
11
11
  import Ee from "dayjs";
12
12
  import { u as Pt } from "./useAppStore-BQN-26ns.js";
13
- import { s as Ia } from "./schedule-DD50-7cs.js";
13
+ import { s as Ia } from "./schedule-DIlnA1uC.js";
14
14
  import { M as wa } from "./index-CUVdeb8y.js";
15
15
  import "./echarts-B1OU1xr4.js";
16
16
  import * as Wr from "echarts/core";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuku123/z-team-component",
3
- "version": "0.2.31",
3
+ "version": "0.2.33",
4
4
  "description": "z-team 团队工作台组件层(lead 005 §8.7:403 文件整体接管,含 pages/workspace/ 系统模式集成 shell)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",