@yuku123/z-team-component 0.2.72 → 0.2.74

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.
Files changed (50) hide show
  1. package/dist/{ChangeLogView-AUM7QbBp.js → ChangeLogView-BJxIhIPc.js} +1 -1
  2. package/dist/{ComponentDoc-CLxzCDOh.js → ComponentDoc-CFKpk6X_.js} +3 -3
  3. package/dist/{InvitationManagementPage-MxyMf4G0.js → InvitationManagementPage-Dr4SxM5K.js} +1 -1
  4. package/dist/{OnboardingPage-BRwX8RYe.js → OnboardingPage-DcYULxKd.js} +2 -2
  5. package/dist/{ScheduledTasks-CM1m4eVZ.js → ScheduledTasks-T4NFJWsk.js} +2918 -3170
  6. package/dist/{SystemShell-BlgZhQ3V.js → SystemShell-D8aDuO_D.js} +215 -196
  7. package/dist/{admin-logs-Dx2fTWjF.js → admin-logs-asBlA9MU.js} +2 -2
  8. package/dist/{api-prj570UT.js → api-Bj-xsNGU.js} +1 -1
  9. package/dist/{api-CvQEwiLU.js → api-DPkUB1DA.js} +67 -67
  10. package/dist/{createWorkspaceWsHandler-gVanGCAb.js → createWorkspaceWsHandler-25JfnMML.js} +1834 -1812
  11. package/dist/{index-pyPNcAqs.js → index-BA3lZUmW.js} +1 -1
  12. package/dist/{index-DOyFfs3n.js → index-BYTVXqVp.js} +3844 -3731
  13. package/dist/{index-pc_ckjzD.js → index-BYn9kfIj.js} +3 -3
  14. package/dist/{index-C1rcAeiF.js → index-BZnC9BRh.js} +3 -3
  15. package/dist/{index-BujZj4b8.js → index-B_O9mXF6.js} +4 -4
  16. package/dist/{index-nj-cjKsf.js → index-BohoJQPr.js} +1849 -1857
  17. package/dist/{index-DDlmkQRB.js → index-C7ymoOiI.js} +2 -2
  18. package/dist/{index-DZbYU9xn.js → index-C9YhDxMT.js} +1 -1
  19. package/dist/{index-CxYTuPnw.js → index-CMVYzEVW.js} +2 -2
  20. package/dist/{index-DrWXMU6s.js → index-COhXbfib.js} +1 -1
  21. package/dist/index-CQcGGl6J.js +137 -0
  22. package/dist/{index-B5xRddRA.js → index-CbTwXfER.js} +6 -6
  23. package/dist/{index-Dk0Qm8aZ.js → index-Ccc2gRJA.js} +1 -1
  24. package/dist/{index-D1PpV_Lf.js → index-Ce9TrTy7.js} +2 -2
  25. package/dist/{index-C4AgHd-o.js → index-Czt_d2TY.js} +2 -2
  26. package/dist/{index-Cry-Oyoh.js → index-DHDQGO4q.js} +3 -3
  27. package/dist/{index-DJMZ1RpC.js → index-DOOlyOVX.js} +2 -2
  28. package/dist/{index-QZpyj7Q3.js → index-DfecivMN.js} +1256 -1256
  29. package/dist/{index-CL7GMxR-.js → index-DxRqnvKU.js} +4 -4
  30. package/dist/{index-PGSvSOmm.js → index-IK8UlsDo.js} +30 -30
  31. package/dist/{index-Cr4Rf1IT.js → index-OP18iV8V.js} +5 -5
  32. package/dist/{index-CrpF4NY8.js → index-Zx-BL-9D.js} +1 -1
  33. package/dist/{index-Do4YkHdZ.js → index-d5kr3WEM.js} +4 -4
  34. package/dist/{index-DzAkJL3V.js → index-rPNKkWaw.js} +3 -3
  35. package/dist/index-rkF8co0n.js +2882 -0
  36. package/dist/index.js +1 -1
  37. package/dist/{instance-TOlRCxS4.js → instance-B9aQMplq.js} +1 -1
  38. package/dist/{menuPermission-Bay-G_zT.js → menuPermission-6NaQTuIn.js} +3 -3
  39. package/dist/pages.js +11 -11
  40. package/dist/{schedule-DkbDjIh4.js → schedule-iMEGim0L.js} +1 -1
  41. package/dist/{send-default-agent-team-message-Bv-QRc7Y.js → send-default-agent-team-message-DtkE1OO4.js} +1 -1
  42. package/dist/{sso-user-BpOzJlQ3.js → sso-user-CFgbZoZ1.js} +1 -1
  43. package/dist/{training-BDzZav1U.js → training-DeyqAiin.js} +1 -1
  44. package/dist/{useAppStore-B1sVy9Iw.js → useAppStore-DQP0l22d.js} +19 -19
  45. package/dist/{webide-C3IaJ_eP.js → webide-BlpH-J-H.js} +4 -4
  46. package/dist/z-team-component.css +1 -1
  47. package/package.json +1 -1
  48. package/dist/index-BbxVn7xy.js +0 -1747
  49. package/dist/index-D4opADk_.js +0 -168
  50. package/dist/index-zhz9iWvI.js +0 -2629
@@ -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
- };