thepopebot 1.1.2 → 1.2.3
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/README.md +1 -1
- package/api/index.js +72 -165
- package/bin/cli.js +36 -6
- package/bin/local.sh +31 -0
- package/bin/postinstall.js +6 -2
- package/config/index.js +2 -11
- package/config/instrumentation.js +17 -5
- package/lib/actions.js +7 -6
- package/lib/ai/agent.js +36 -0
- package/lib/ai/index.js +274 -0
- package/lib/ai/model.js +67 -0
- package/lib/ai/tools.js +49 -0
- package/lib/auth/actions.js +28 -0
- package/lib/auth/config.js +45 -0
- package/lib/auth/index.js +27 -0
- package/lib/auth/middleware.js +30 -0
- package/lib/channels/base.js +56 -0
- package/lib/channels/index.js +15 -0
- package/lib/channels/telegram.js +146 -0
- package/lib/chat/actions.js +239 -0
- package/lib/chat/api.js +103 -0
- package/lib/chat/components/app-sidebar.js +161 -0
- package/lib/chat/components/app-sidebar.jsx +214 -0
- package/lib/chat/components/chat-header.js +9 -0
- package/lib/chat/components/chat-header.jsx +14 -0
- package/lib/chat/components/chat-input.js +230 -0
- package/lib/chat/components/chat-input.jsx +232 -0
- package/lib/chat/components/chat-nav-context.js +11 -0
- package/lib/chat/components/chat-nav-context.jsx +11 -0
- package/lib/chat/components/chat-page.js +70 -0
- package/lib/chat/components/chat-page.jsx +89 -0
- package/lib/chat/components/chat.js +78 -0
- package/lib/chat/components/chat.jsx +91 -0
- package/lib/chat/components/chats-page.js +170 -0
- package/lib/chat/components/chats-page.jsx +203 -0
- package/lib/chat/components/crons-page.js +144 -0
- package/lib/chat/components/crons-page.jsx +204 -0
- package/lib/chat/components/greeting.js +11 -0
- package/lib/chat/components/greeting.jsx +14 -0
- package/lib/chat/components/icons.js +518 -0
- package/lib/chat/components/icons.jsx +482 -0
- package/lib/chat/components/index.js +19 -0
- package/lib/chat/components/message.js +66 -0
- package/lib/chat/components/message.jsx +92 -0
- package/lib/chat/components/messages.js +63 -0
- package/lib/chat/components/messages.jsx +72 -0
- package/lib/chat/components/notifications-page.js +54 -0
- package/lib/chat/components/notifications-page.jsx +83 -0
- package/lib/chat/components/page-layout.js +21 -0
- package/lib/chat/components/page-layout.jsx +28 -0
- package/lib/chat/components/settings-layout.js +37 -0
- package/lib/chat/components/settings-layout.jsx +51 -0
- package/lib/chat/components/settings-secrets-page.js +216 -0
- package/lib/chat/components/settings-secrets-page.jsx +264 -0
- package/lib/chat/components/sidebar-history-item.js +54 -0
- package/lib/chat/components/sidebar-history-item.jsx +50 -0
- package/lib/chat/components/sidebar-history.js +92 -0
- package/lib/chat/components/sidebar-history.jsx +132 -0
- package/lib/chat/components/sidebar-user-nav.js +59 -0
- package/lib/chat/components/sidebar-user-nav.jsx +69 -0
- package/lib/chat/components/swarm-page.js +250 -0
- package/lib/chat/components/swarm-page.jsx +356 -0
- package/lib/chat/components/triggers-page.js +121 -0
- package/lib/chat/components/triggers-page.jsx +177 -0
- package/lib/chat/components/ui/dropdown-menu.js +98 -0
- package/lib/chat/components/ui/dropdown-menu.jsx +116 -0
- package/lib/chat/components/ui/scroll-area.js +13 -0
- package/lib/chat/components/ui/scroll-area.jsx +17 -0
- package/lib/chat/components/ui/separator.js +21 -0
- package/lib/chat/components/ui/separator.jsx +18 -0
- package/lib/chat/components/ui/sheet.js +75 -0
- package/lib/chat/components/ui/sheet.jsx +95 -0
- package/lib/chat/components/ui/sidebar.js +227 -0
- package/lib/chat/components/ui/sidebar.jsx +245 -0
- package/lib/chat/components/ui/tooltip.js +56 -0
- package/lib/chat/components/ui/tooltip.jsx +66 -0
- package/lib/chat/utils.js +11 -0
- package/lib/cron.js +7 -8
- package/lib/db/api-keys.js +160 -0
- package/lib/db/chats.js +129 -0
- package/lib/db/index.js +106 -0
- package/lib/db/notifications.js +99 -0
- package/lib/db/schema.js +51 -0
- package/lib/db/users.js +89 -0
- package/lib/paths.js +23 -17
- package/lib/tools/create-job.js +3 -3
- package/lib/tools/github.js +145 -1
- package/lib/tools/openai.js +1 -1
- package/lib/tools/telegram.js +4 -3
- package/lib/triggers.js +6 -7
- package/lib/utils/render-md.js +6 -6
- package/package.json +43 -6
- package/setup/lib/auth.mjs +22 -9
- package/setup/lib/prerequisites.mjs +10 -3
- package/setup/lib/telegram-verify.mjs +3 -16
- package/setup/setup-telegram.mjs +31 -62
- package/setup/setup.mjs +58 -98
- package/templates/.dockerignore +5 -0
- package/templates/.env.example +18 -2
- package/templates/.github/workflows/auto-merge.yml +1 -1
- package/templates/.github/workflows/build-image.yml +6 -4
- package/templates/.github/workflows/notify-job-failed.yml +2 -2
- package/templates/.github/workflows/notify-pr-complete.yml +2 -2
- package/templates/.github/workflows/run-job.yml +24 -10
- package/templates/CLAUDE.md +5 -3
- package/templates/app/api/auth/[...nextauth]/route.js +1 -0
- package/templates/app/api/chat/route.js +1 -0
- package/templates/app/chat/[chatId]/page.js +8 -0
- package/templates/app/chats/page.js +7 -0
- package/templates/app/components/ascii-logo.jsx +10 -0
- package/templates/app/components/login-form.jsx +81 -0
- package/templates/app/components/setup-form.jsx +82 -0
- package/templates/app/components/theme-provider.jsx +11 -0
- package/templates/app/components/theme-toggle.jsx +38 -0
- package/templates/app/components/ui/button.jsx +21 -0
- package/templates/app/components/ui/card.jsx +23 -0
- package/templates/app/components/ui/input.jsx +10 -0
- package/templates/app/components/ui/label.jsx +10 -0
- package/templates/app/crons/page.js +7 -0
- package/templates/app/globals.css +66 -0
- package/templates/app/layout.js +9 -2
- package/templates/app/login/page.js +15 -0
- package/templates/app/notifications/page.js +7 -0
- package/templates/app/page.js +6 -30
- package/templates/app/settings/layout.js +7 -0
- package/templates/app/settings/page.js +5 -0
- package/templates/app/settings/secrets/page.js +5 -0
- package/templates/app/swarm/page.js +7 -0
- package/templates/app/triggers/page.js +7 -0
- package/templates/config/CRONS.json +2 -2
- package/templates/config/TRIGGERS.json +2 -2
- package/templates/docker/event_handler/Dockerfile +19 -0
- package/templates/docker/{entrypoint.sh → job/entrypoint.sh} +4 -4
- package/templates/docker/runner/Dockerfile +38 -0
- package/templates/docker/runner/entrypoint.sh +41 -0
- package/templates/docker-compose.yml +52 -0
- package/templates/instrumentation.js +6 -1
- package/templates/middleware.js +1 -0
- package/templates/postcss.config.mjs +5 -0
- package/lib/claude/conversation.js +0 -76
- package/lib/claude/index.js +0 -142
- package/lib/claude/tools.js +0 -54
- /package/templates/docker/{Dockerfile → job/Dockerfile} +0 -0
|
@@ -0,0 +1,518 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
function PlusIcon({ size = 16 }) {
|
|
4
|
+
return /* @__PURE__ */ jsxs(
|
|
5
|
+
"svg",
|
|
6
|
+
{
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
viewBox: "0 0 24 24",
|
|
9
|
+
fill: "none",
|
|
10
|
+
stroke: "currentColor",
|
|
11
|
+
strokeWidth: 2,
|
|
12
|
+
strokeLinecap: "round",
|
|
13
|
+
strokeLinejoin: "round",
|
|
14
|
+
width: size,
|
|
15
|
+
height: size,
|
|
16
|
+
children: [
|
|
17
|
+
/* @__PURE__ */ jsx("path", { d: "M5 12h14" }),
|
|
18
|
+
/* @__PURE__ */ jsx("path", { d: "M12 5v14" })
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
function TrashIcon({ size = 16 }) {
|
|
24
|
+
return /* @__PURE__ */ jsxs(
|
|
25
|
+
"svg",
|
|
26
|
+
{
|
|
27
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
28
|
+
viewBox: "0 0 24 24",
|
|
29
|
+
fill: "none",
|
|
30
|
+
stroke: "currentColor",
|
|
31
|
+
strokeWidth: 2,
|
|
32
|
+
strokeLinecap: "round",
|
|
33
|
+
strokeLinejoin: "round",
|
|
34
|
+
width: size,
|
|
35
|
+
height: size,
|
|
36
|
+
children: [
|
|
37
|
+
/* @__PURE__ */ jsx("path", { d: "M3 6h18" }),
|
|
38
|
+
/* @__PURE__ */ jsx("path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6" }),
|
|
39
|
+
/* @__PURE__ */ jsx("path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2" })
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
function SendIcon({ size = 16 }) {
|
|
45
|
+
return /* @__PURE__ */ jsxs(
|
|
46
|
+
"svg",
|
|
47
|
+
{
|
|
48
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
49
|
+
viewBox: "0 0 24 24",
|
|
50
|
+
fill: "none",
|
|
51
|
+
stroke: "currentColor",
|
|
52
|
+
strokeWidth: 2,
|
|
53
|
+
strokeLinecap: "round",
|
|
54
|
+
strokeLinejoin: "round",
|
|
55
|
+
width: size,
|
|
56
|
+
height: size,
|
|
57
|
+
children: [
|
|
58
|
+
/* @__PURE__ */ jsx("path", { d: "m5 12 7-7 7 7" }),
|
|
59
|
+
/* @__PURE__ */ jsx("path", { d: "M12 19V5" })
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
function StopIcon({ size = 16 }) {
|
|
65
|
+
return /* @__PURE__ */ jsx(
|
|
66
|
+
"svg",
|
|
67
|
+
{
|
|
68
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
69
|
+
viewBox: "0 0 24 24",
|
|
70
|
+
fill: "currentColor",
|
|
71
|
+
width: size,
|
|
72
|
+
height: size,
|
|
73
|
+
children: /* @__PURE__ */ jsx("rect", { x: "6", y: "6", width: "12", height: "12", rx: "1" })
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
function MessageIcon({ size = 16 }) {
|
|
78
|
+
return /* @__PURE__ */ jsx(
|
|
79
|
+
"svg",
|
|
80
|
+
{
|
|
81
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
82
|
+
viewBox: "0 0 24 24",
|
|
83
|
+
fill: "none",
|
|
84
|
+
stroke: "currentColor",
|
|
85
|
+
strokeWidth: 2,
|
|
86
|
+
strokeLinecap: "round",
|
|
87
|
+
strokeLinejoin: "round",
|
|
88
|
+
width: size,
|
|
89
|
+
height: size,
|
|
90
|
+
children: /* @__PURE__ */ jsx("path", { d: "M7.9 20A9 9 0 1 0 4 16.1L2 22Z" })
|
|
91
|
+
}
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
function SquarePenIcon({ size = 16 }) {
|
|
95
|
+
return /* @__PURE__ */ jsxs(
|
|
96
|
+
"svg",
|
|
97
|
+
{
|
|
98
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
99
|
+
viewBox: "0 0 24 24",
|
|
100
|
+
fill: "none",
|
|
101
|
+
stroke: "currentColor",
|
|
102
|
+
strokeWidth: 2,
|
|
103
|
+
strokeLinecap: "round",
|
|
104
|
+
strokeLinejoin: "round",
|
|
105
|
+
width: size,
|
|
106
|
+
height: size,
|
|
107
|
+
children: [
|
|
108
|
+
/* @__PURE__ */ jsx("path", { d: "M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }),
|
|
109
|
+
/* @__PURE__ */ jsx("path", { d: "M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z" })
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
function PanelLeftIcon({ size = 16 }) {
|
|
115
|
+
return /* @__PURE__ */ jsxs(
|
|
116
|
+
"svg",
|
|
117
|
+
{
|
|
118
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
119
|
+
viewBox: "0 0 24 24",
|
|
120
|
+
fill: "none",
|
|
121
|
+
stroke: "currentColor",
|
|
122
|
+
strokeWidth: 2,
|
|
123
|
+
strokeLinecap: "round",
|
|
124
|
+
strokeLinejoin: "round",
|
|
125
|
+
width: size,
|
|
126
|
+
height: size,
|
|
127
|
+
children: [
|
|
128
|
+
/* @__PURE__ */ jsx("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }),
|
|
129
|
+
/* @__PURE__ */ jsx("path", { d: "M9 3v18" })
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
function SearchIcon({ size = 16 }) {
|
|
135
|
+
return /* @__PURE__ */ jsxs(
|
|
136
|
+
"svg",
|
|
137
|
+
{
|
|
138
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
139
|
+
viewBox: "0 0 24 24",
|
|
140
|
+
fill: "none",
|
|
141
|
+
stroke: "currentColor",
|
|
142
|
+
strokeWidth: 2,
|
|
143
|
+
strokeLinecap: "round",
|
|
144
|
+
strokeLinejoin: "round",
|
|
145
|
+
width: size,
|
|
146
|
+
height: size,
|
|
147
|
+
children: [
|
|
148
|
+
/* @__PURE__ */ jsx("circle", { cx: "11", cy: "11", r: "8" }),
|
|
149
|
+
/* @__PURE__ */ jsx("path", { d: "m21 21-4.35-4.35" })
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
function BellIcon({ size = 16 }) {
|
|
155
|
+
return /* @__PURE__ */ jsxs(
|
|
156
|
+
"svg",
|
|
157
|
+
{
|
|
158
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
159
|
+
viewBox: "0 0 24 24",
|
|
160
|
+
fill: "none",
|
|
161
|
+
stroke: "currentColor",
|
|
162
|
+
strokeWidth: 2,
|
|
163
|
+
strokeLinecap: "round",
|
|
164
|
+
strokeLinejoin: "round",
|
|
165
|
+
width: size,
|
|
166
|
+
height: size,
|
|
167
|
+
children: [
|
|
168
|
+
/* @__PURE__ */ jsx("path", { d: "M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9" }),
|
|
169
|
+
/* @__PURE__ */ jsx("path", { d: "M10.3 21a1.94 1.94 0 0 0 3.4 0" })
|
|
170
|
+
]
|
|
171
|
+
}
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
function SwarmIcon({ size = 16 }) {
|
|
175
|
+
return /* @__PURE__ */ jsxs(
|
|
176
|
+
"svg",
|
|
177
|
+
{
|
|
178
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
179
|
+
viewBox: "0 0 24 24",
|
|
180
|
+
fill: "none",
|
|
181
|
+
stroke: "currentColor",
|
|
182
|
+
strokeWidth: 2,
|
|
183
|
+
strokeLinecap: "round",
|
|
184
|
+
strokeLinejoin: "round",
|
|
185
|
+
width: size,
|
|
186
|
+
height: size,
|
|
187
|
+
children: [
|
|
188
|
+
/* @__PURE__ */ jsx("path", { d: "M9.5 2L12 4.5L9.5 7L5 7L2.5 4.5L5 2Z" }),
|
|
189
|
+
/* @__PURE__ */ jsx("path", { d: "M19 2L21.5 4.5L19 7L14.5 7L12 4.5L14.5 2Z" }),
|
|
190
|
+
/* @__PURE__ */ jsx("path", { d: "M14.25 7L16.75 9.5L14.25 12L9.75 12L7.25 9.5L9.75 7Z" })
|
|
191
|
+
]
|
|
192
|
+
}
|
|
193
|
+
);
|
|
194
|
+
}
|
|
195
|
+
function PaperclipIcon({ size = 16 }) {
|
|
196
|
+
return /* @__PURE__ */ jsx(
|
|
197
|
+
"svg",
|
|
198
|
+
{
|
|
199
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
200
|
+
viewBox: "0 0 24 24",
|
|
201
|
+
fill: "none",
|
|
202
|
+
stroke: "currentColor",
|
|
203
|
+
strokeWidth: 2,
|
|
204
|
+
strokeLinecap: "round",
|
|
205
|
+
strokeLinejoin: "round",
|
|
206
|
+
width: size,
|
|
207
|
+
height: size,
|
|
208
|
+
children: /* @__PURE__ */ jsx("path", { d: "m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48" })
|
|
209
|
+
}
|
|
210
|
+
);
|
|
211
|
+
}
|
|
212
|
+
function XIcon({ size = 16 }) {
|
|
213
|
+
return /* @__PURE__ */ jsxs(
|
|
214
|
+
"svg",
|
|
215
|
+
{
|
|
216
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
217
|
+
viewBox: "0 0 24 24",
|
|
218
|
+
fill: "none",
|
|
219
|
+
stroke: "currentColor",
|
|
220
|
+
strokeWidth: 2,
|
|
221
|
+
strokeLinecap: "round",
|
|
222
|
+
strokeLinejoin: "round",
|
|
223
|
+
width: size,
|
|
224
|
+
height: size,
|
|
225
|
+
children: [
|
|
226
|
+
/* @__PURE__ */ jsx("path", { d: "M18 6 6 18" }),
|
|
227
|
+
/* @__PURE__ */ jsx("path", { d: "m6 6 12 12" })
|
|
228
|
+
]
|
|
229
|
+
}
|
|
230
|
+
);
|
|
231
|
+
}
|
|
232
|
+
function FileTextIcon({ size = 16 }) {
|
|
233
|
+
return /* @__PURE__ */ jsxs(
|
|
234
|
+
"svg",
|
|
235
|
+
{
|
|
236
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
237
|
+
viewBox: "0 0 24 24",
|
|
238
|
+
fill: "none",
|
|
239
|
+
stroke: "currentColor",
|
|
240
|
+
strokeWidth: 2,
|
|
241
|
+
strokeLinecap: "round",
|
|
242
|
+
strokeLinejoin: "round",
|
|
243
|
+
width: size,
|
|
244
|
+
height: size,
|
|
245
|
+
children: [
|
|
246
|
+
/* @__PURE__ */ jsx("path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" }),
|
|
247
|
+
/* @__PURE__ */ jsx("path", { d: "M14 2v4a2 2 0 0 0 2 2h4" }),
|
|
248
|
+
/* @__PURE__ */ jsx("path", { d: "M10 9H8" }),
|
|
249
|
+
/* @__PURE__ */ jsx("path", { d: "M16 13H8" }),
|
|
250
|
+
/* @__PURE__ */ jsx("path", { d: "M16 17H8" })
|
|
251
|
+
]
|
|
252
|
+
}
|
|
253
|
+
);
|
|
254
|
+
}
|
|
255
|
+
function ClockIcon({ size = 16 }) {
|
|
256
|
+
return /* @__PURE__ */ jsxs(
|
|
257
|
+
"svg",
|
|
258
|
+
{
|
|
259
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
260
|
+
viewBox: "0 0 24 24",
|
|
261
|
+
fill: "none",
|
|
262
|
+
stroke: "currentColor",
|
|
263
|
+
strokeWidth: 2,
|
|
264
|
+
strokeLinecap: "round",
|
|
265
|
+
strokeLinejoin: "round",
|
|
266
|
+
width: size,
|
|
267
|
+
height: size,
|
|
268
|
+
children: [
|
|
269
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10" }),
|
|
270
|
+
/* @__PURE__ */ jsx("polyline", { points: "12 6 12 12 16 14" })
|
|
271
|
+
]
|
|
272
|
+
}
|
|
273
|
+
);
|
|
274
|
+
}
|
|
275
|
+
function ZapIcon({ size = 16 }) {
|
|
276
|
+
return /* @__PURE__ */ jsx(
|
|
277
|
+
"svg",
|
|
278
|
+
{
|
|
279
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
280
|
+
viewBox: "0 0 24 24",
|
|
281
|
+
fill: "none",
|
|
282
|
+
stroke: "currentColor",
|
|
283
|
+
strokeWidth: 2,
|
|
284
|
+
strokeLinecap: "round",
|
|
285
|
+
strokeLinejoin: "round",
|
|
286
|
+
width: size,
|
|
287
|
+
height: size,
|
|
288
|
+
children: /* @__PURE__ */ jsx("path", { d: "M13 2 3 14h9l-1 10 10-12h-9l1-10z" })
|
|
289
|
+
}
|
|
290
|
+
);
|
|
291
|
+
}
|
|
292
|
+
function RefreshIcon({ size = 16 }) {
|
|
293
|
+
return /* @__PURE__ */ jsxs(
|
|
294
|
+
"svg",
|
|
295
|
+
{
|
|
296
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
297
|
+
viewBox: "0 0 24 24",
|
|
298
|
+
fill: "none",
|
|
299
|
+
stroke: "currentColor",
|
|
300
|
+
strokeWidth: 2,
|
|
301
|
+
strokeLinecap: "round",
|
|
302
|
+
strokeLinejoin: "round",
|
|
303
|
+
width: size,
|
|
304
|
+
height: size,
|
|
305
|
+
children: [
|
|
306
|
+
/* @__PURE__ */ jsx("path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" }),
|
|
307
|
+
/* @__PURE__ */ jsx("path", { d: "M21 3v5h-5" }),
|
|
308
|
+
/* @__PURE__ */ jsx("path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" }),
|
|
309
|
+
/* @__PURE__ */ jsx("path", { d: "M8 16H3v5" })
|
|
310
|
+
]
|
|
311
|
+
}
|
|
312
|
+
);
|
|
313
|
+
}
|
|
314
|
+
function ChevronDownIcon({ size = 16 }) {
|
|
315
|
+
return /* @__PURE__ */ jsx(
|
|
316
|
+
"svg",
|
|
317
|
+
{
|
|
318
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
319
|
+
viewBox: "0 0 24 24",
|
|
320
|
+
fill: "none",
|
|
321
|
+
stroke: "currentColor",
|
|
322
|
+
strokeWidth: 2,
|
|
323
|
+
strokeLinecap: "round",
|
|
324
|
+
strokeLinejoin: "round",
|
|
325
|
+
width: size,
|
|
326
|
+
height: size,
|
|
327
|
+
children: /* @__PURE__ */ jsx("path", { d: "m6 9 6 6 6-6" })
|
|
328
|
+
}
|
|
329
|
+
);
|
|
330
|
+
}
|
|
331
|
+
function SettingsIcon({ size = 16 }) {
|
|
332
|
+
return /* @__PURE__ */ jsxs(
|
|
333
|
+
"svg",
|
|
334
|
+
{
|
|
335
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
336
|
+
viewBox: "0 0 24 24",
|
|
337
|
+
fill: "none",
|
|
338
|
+
stroke: "currentColor",
|
|
339
|
+
strokeWidth: 2,
|
|
340
|
+
strokeLinecap: "round",
|
|
341
|
+
strokeLinejoin: "round",
|
|
342
|
+
width: size,
|
|
343
|
+
height: size,
|
|
344
|
+
children: [
|
|
345
|
+
/* @__PURE__ */ jsx("path", { d: "M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" }),
|
|
346
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "3" })
|
|
347
|
+
]
|
|
348
|
+
}
|
|
349
|
+
);
|
|
350
|
+
}
|
|
351
|
+
function KeyIcon({ size = 16 }) {
|
|
352
|
+
return /* @__PURE__ */ jsxs(
|
|
353
|
+
"svg",
|
|
354
|
+
{
|
|
355
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
356
|
+
viewBox: "0 0 24 24",
|
|
357
|
+
fill: "none",
|
|
358
|
+
stroke: "currentColor",
|
|
359
|
+
strokeWidth: 2,
|
|
360
|
+
strokeLinecap: "round",
|
|
361
|
+
strokeLinejoin: "round",
|
|
362
|
+
width: size,
|
|
363
|
+
height: size,
|
|
364
|
+
children: [
|
|
365
|
+
/* @__PURE__ */ jsx("path", { d: "m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4" }),
|
|
366
|
+
/* @__PURE__ */ jsx("path", { d: "m21 2-9.6 9.6" }),
|
|
367
|
+
/* @__PURE__ */ jsx("circle", { cx: "7.5", cy: "15.5", r: "5.5" })
|
|
368
|
+
]
|
|
369
|
+
}
|
|
370
|
+
);
|
|
371
|
+
}
|
|
372
|
+
function CopyIcon({ size = 16 }) {
|
|
373
|
+
return /* @__PURE__ */ jsxs(
|
|
374
|
+
"svg",
|
|
375
|
+
{
|
|
376
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
377
|
+
viewBox: "0 0 24 24",
|
|
378
|
+
fill: "none",
|
|
379
|
+
stroke: "currentColor",
|
|
380
|
+
strokeWidth: 2,
|
|
381
|
+
strokeLinecap: "round",
|
|
382
|
+
strokeLinejoin: "round",
|
|
383
|
+
width: size,
|
|
384
|
+
height: size,
|
|
385
|
+
children: [
|
|
386
|
+
/* @__PURE__ */ jsx("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
|
|
387
|
+
/* @__PURE__ */ jsx("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
|
|
388
|
+
]
|
|
389
|
+
}
|
|
390
|
+
);
|
|
391
|
+
}
|
|
392
|
+
function CheckIcon({ size = 16 }) {
|
|
393
|
+
return /* @__PURE__ */ jsx(
|
|
394
|
+
"svg",
|
|
395
|
+
{
|
|
396
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
397
|
+
viewBox: "0 0 24 24",
|
|
398
|
+
fill: "none",
|
|
399
|
+
stroke: "currentColor",
|
|
400
|
+
strokeWidth: 2,
|
|
401
|
+
strokeLinecap: "round",
|
|
402
|
+
strokeLinejoin: "round",
|
|
403
|
+
width: size,
|
|
404
|
+
height: size,
|
|
405
|
+
children: /* @__PURE__ */ jsx("path", { d: "M20 6 9 17l-5-5" })
|
|
406
|
+
}
|
|
407
|
+
);
|
|
408
|
+
}
|
|
409
|
+
function SpinnerIcon({ size = 16, className = "" }) {
|
|
410
|
+
return /* @__PURE__ */ jsx(
|
|
411
|
+
"svg",
|
|
412
|
+
{
|
|
413
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
414
|
+
viewBox: "0 0 24 24",
|
|
415
|
+
fill: "none",
|
|
416
|
+
stroke: "currentColor",
|
|
417
|
+
strokeWidth: 2,
|
|
418
|
+
strokeLinecap: "round",
|
|
419
|
+
strokeLinejoin: "round",
|
|
420
|
+
width: size,
|
|
421
|
+
height: size,
|
|
422
|
+
className: `animate-spin ${className}`,
|
|
423
|
+
children: /* @__PURE__ */ jsx("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
|
|
424
|
+
}
|
|
425
|
+
);
|
|
426
|
+
}
|
|
427
|
+
function SunIcon({ size = 16 }) {
|
|
428
|
+
return /* @__PURE__ */ jsxs(
|
|
429
|
+
"svg",
|
|
430
|
+
{
|
|
431
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
432
|
+
viewBox: "0 0 24 24",
|
|
433
|
+
fill: "none",
|
|
434
|
+
stroke: "currentColor",
|
|
435
|
+
strokeWidth: 2,
|
|
436
|
+
strokeLinecap: "round",
|
|
437
|
+
strokeLinejoin: "round",
|
|
438
|
+
width: size,
|
|
439
|
+
height: size,
|
|
440
|
+
children: [
|
|
441
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "4" }),
|
|
442
|
+
/* @__PURE__ */ jsx("path", { d: "M12 2v2" }),
|
|
443
|
+
/* @__PURE__ */ jsx("path", { d: "M12 20v2" }),
|
|
444
|
+
/* @__PURE__ */ jsx("path", { d: "m4.93 4.93 1.41 1.41" }),
|
|
445
|
+
/* @__PURE__ */ jsx("path", { d: "m17.66 17.66 1.41 1.41" }),
|
|
446
|
+
/* @__PURE__ */ jsx("path", { d: "M2 12h2" }),
|
|
447
|
+
/* @__PURE__ */ jsx("path", { d: "M20 12h2" }),
|
|
448
|
+
/* @__PURE__ */ jsx("path", { d: "m6.34 17.66-1.41 1.41" }),
|
|
449
|
+
/* @__PURE__ */ jsx("path", { d: "m19.07 4.93-1.41 1.41" })
|
|
450
|
+
]
|
|
451
|
+
}
|
|
452
|
+
);
|
|
453
|
+
}
|
|
454
|
+
function MoonIcon({ size = 16 }) {
|
|
455
|
+
return /* @__PURE__ */ jsx(
|
|
456
|
+
"svg",
|
|
457
|
+
{
|
|
458
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
459
|
+
viewBox: "0 0 24 24",
|
|
460
|
+
fill: "none",
|
|
461
|
+
stroke: "currentColor",
|
|
462
|
+
strokeWidth: 2,
|
|
463
|
+
strokeLinecap: "round",
|
|
464
|
+
strokeLinejoin: "round",
|
|
465
|
+
width: size,
|
|
466
|
+
height: size,
|
|
467
|
+
children: /* @__PURE__ */ jsx("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" })
|
|
468
|
+
}
|
|
469
|
+
);
|
|
470
|
+
}
|
|
471
|
+
function LogOutIcon({ size = 16 }) {
|
|
472
|
+
return /* @__PURE__ */ jsxs(
|
|
473
|
+
"svg",
|
|
474
|
+
{
|
|
475
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
476
|
+
viewBox: "0 0 24 24",
|
|
477
|
+
fill: "none",
|
|
478
|
+
stroke: "currentColor",
|
|
479
|
+
strokeWidth: 2,
|
|
480
|
+
strokeLinecap: "round",
|
|
481
|
+
strokeLinejoin: "round",
|
|
482
|
+
width: size,
|
|
483
|
+
height: size,
|
|
484
|
+
children: [
|
|
485
|
+
/* @__PURE__ */ jsx("path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" }),
|
|
486
|
+
/* @__PURE__ */ jsx("polyline", { points: "16 17 21 12 16 7" }),
|
|
487
|
+
/* @__PURE__ */ jsx("line", { x1: "21", x2: "9", y1: "12", y2: "12" })
|
|
488
|
+
]
|
|
489
|
+
}
|
|
490
|
+
);
|
|
491
|
+
}
|
|
492
|
+
export {
|
|
493
|
+
BellIcon,
|
|
494
|
+
CheckIcon,
|
|
495
|
+
ChevronDownIcon,
|
|
496
|
+
ClockIcon,
|
|
497
|
+
CopyIcon,
|
|
498
|
+
FileTextIcon,
|
|
499
|
+
KeyIcon,
|
|
500
|
+
LogOutIcon,
|
|
501
|
+
MessageIcon,
|
|
502
|
+
MoonIcon,
|
|
503
|
+
PanelLeftIcon,
|
|
504
|
+
PaperclipIcon,
|
|
505
|
+
PlusIcon,
|
|
506
|
+
RefreshIcon,
|
|
507
|
+
SearchIcon,
|
|
508
|
+
SendIcon,
|
|
509
|
+
SettingsIcon,
|
|
510
|
+
SpinnerIcon,
|
|
511
|
+
SquarePenIcon,
|
|
512
|
+
StopIcon,
|
|
513
|
+
SunIcon,
|
|
514
|
+
SwarmIcon,
|
|
515
|
+
TrashIcon,
|
|
516
|
+
XIcon,
|
|
517
|
+
ZapIcon
|
|
518
|
+
};
|