@arcadeai/design-system 3.29.0 → 3.29.1
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/components/index.js +95 -101
- package/dist/components/ui/index.d.ts +0 -1
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +95 -101
- package/dist/components/ui/molecules/index.d.ts +0 -2
- package/dist/components/ui/molecules/index.d.ts.map +1 -1
- package/dist/components/ui/molecules/index.js +9 -13
- package/dist/components/ui/molecules/requirement-badges.js +4 -7
- package/dist/components/ui/molecules/toolkit-card.d.ts +14 -2
- package/dist/components/ui/molecules/toolkit-card.d.ts.map +1 -1
- package/dist/components/ui/molecules/toolkit-card.js +1 -1
- package/dist/main.js +136 -142
- package/dist/{toolkit-card-BTFS_2j_.js → toolkit-card-DE-5B2dS.js} +2 -5
- package/package.json +28 -71
- package/dist/components/ui/molecules/toolkit-picker-trigger.d.ts +0 -9
- package/dist/components/ui/molecules/toolkit-picker-trigger.d.ts.map +0 -1
- package/dist/components/ui/molecules/toolkit-picker-trigger.js +0 -99
- package/dist/components/ui/molecules/toolkit-selection-summary.d.ts +0 -12
- package/dist/components/ui/molecules/toolkit-selection-summary.d.ts.map +0 -1
- package/dist/components/ui/molecules/toolkit-selection-summary.js +0 -116
- package/dist/components/ui/organisms/index.d.ts +0 -3
- package/dist/components/ui/organisms/index.d.ts.map +0 -1
- package/dist/components/ui/organisms/index.js +0 -4
- package/dist/components/ui/organisms/toolkit-picker/components/action-buttons.d.ts +0 -7
- package/dist/components/ui/organisms/toolkit-picker/components/action-buttons.d.ts.map +0 -1
- package/dist/components/ui/organisms/toolkit-picker/components/action-buttons.js +0 -54
- package/dist/components/ui/organisms/toolkit-picker/components/filter-badges.d.ts +0 -2
- package/dist/components/ui/organisms/toolkit-picker/components/filter-badges.d.ts.map +0 -1
- package/dist/components/ui/organisms/toolkit-picker/components/filter-badges.js +0 -89
- package/dist/components/ui/organisms/toolkit-picker/components/footer-summary.d.ts +0 -2
- package/dist/components/ui/organisms/toolkit-picker/components/footer-summary.d.ts.map +0 -1
- package/dist/components/ui/organisms/toolkit-picker/components/footer-summary.js +0 -36
- package/dist/components/ui/organisms/toolkit-picker/components/search-input.d.ts +0 -2
- package/dist/components/ui/organisms/toolkit-picker/components/search-input.d.ts.map +0 -1
- package/dist/components/ui/organisms/toolkit-picker/components/search-input.js +0 -70
- package/dist/components/ui/organisms/toolkit-picker/components/select-button.d.ts +0 -10
- package/dist/components/ui/organisms/toolkit-picker/components/select-button.d.ts.map +0 -1
- package/dist/components/ui/organisms/toolkit-picker/components/select-button.js +0 -35
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-card-with-selection.d.ts +0 -10
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-card-with-selection.d.ts.map +0 -1
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-card-with-selection.js +0 -36
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-list.d.ts +0 -9
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-list.d.ts.map +0 -1
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-list.js +0 -169
- package/dist/components/ui/organisms/toolkit-picker/components/tools-list.d.ts +0 -9
- package/dist/components/ui/organisms/toolkit-picker/components/tools-list.d.ts.map +0 -1
- package/dist/components/ui/organisms/toolkit-picker/components/tools-list.js +0 -125
- package/dist/components/ui/organisms/toolkit-picker/components/unoptimized-toggle.d.ts +0 -21
- package/dist/components/ui/organisms/toolkit-picker/components/unoptimized-toggle.d.ts.map +0 -1
- package/dist/components/ui/organisms/toolkit-picker/components/unoptimized-toggle.js +0 -29
- package/dist/components/ui/organisms/toolkit-picker/hooks/featured-toolkits.d.ts +0 -8
- package/dist/components/ui/organisms/toolkit-picker/hooks/featured-toolkits.d.ts.map +0 -1
- package/dist/components/ui/organisms/toolkit-picker/hooks/featured-toolkits.js +0 -11
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker.d.ts +0 -60
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker.d.ts.map +0 -1
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker.js +0 -326
- package/dist/components/ui/organisms/toolkit-picker/index.d.ts +0 -17
- package/dist/components/ui/organisms/toolkit-picker/index.d.ts.map +0 -1
- package/dist/components/ui/organisms/toolkit-picker/index.js +0 -17
- package/dist/components/ui/organisms/toolkit-picker/mocks/toolkit-collection.d.ts +0 -14
- package/dist/components/ui/organisms/toolkit-picker/mocks/toolkit-collection.d.ts.map +0 -1
- package/dist/components/ui/organisms/toolkit-picker/mocks/toolkit-collection.js +0 -896
- package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.d.ts +0 -3
- package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.d.ts.map +0 -1
- package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.js +0 -221
- package/dist/components/ui/organisms/toolkit-picker/utils/toolkit-grouping.d.ts +0 -51
- package/dist/components/ui/organisms/toolkit-picker/utils/toolkit-grouping.d.ts.map +0 -1
- package/dist/components/ui/organisms/toolkit-picker/utils/toolkit-grouping.js +0 -81
- package/dist/lib/arcade/arcade.d.ts +0 -76
- package/dist/lib/arcade/arcade.d.ts.map +0 -1
- package/dist/lib/arcade/arcade.js +0 -1305
- package/dist/lib/arcade/mocks.d.ts +0 -3
- package/dist/lib/arcade/mocks.d.ts.map +0 -1
- package/dist/lib/arcade/mocks.js +0 -547
- package/dist/lib/arcade/toolkit-collection.d.ts +0 -15
- package/dist/lib/arcade/toolkit-collection.d.ts.map +0 -1
- package/dist/lib/arcade/toolkit-collection.js +0 -149
- package/dist/web-sgv-FK6q.js +0 -84
|
@@ -1,896 +0,0 @@
|
|
|
1
|
-
import "../../../../../web-sgv-FK6q.js";
|
|
2
|
-
import { allTools as h } from "../../../../../lib/arcade/mocks.js";
|
|
3
|
-
import { normalizeText as M } from "../../../../../lib/arcade/toolkit-collection.js";
|
|
4
|
-
import { TOOLKIT_CATALOGUE as E } from "../../../../../metadata/toolkits.js";
|
|
5
|
-
const N = h.filter((a) => a.toolkit.name === "basic"), C = h.filter((a) => a.toolkit.name === "api_toolkit"), x = h.filter((a) => a.toolkit.name === "Google"), z = h.filter((a) => a.toolkit.name === "Gmail"), i = (a, r = !1, n = !1, l) => {
|
|
6
|
-
const c = E[a];
|
|
7
|
-
return c ? {
|
|
8
|
-
...c,
|
|
9
|
-
isBYOC: r,
|
|
10
|
-
isPro: n,
|
|
11
|
-
...l !== void 0 ? { type: l } : {}
|
|
12
|
-
} : {
|
|
13
|
-
id: a,
|
|
14
|
-
label: a,
|
|
15
|
-
isBYOC: r,
|
|
16
|
-
isPro: n,
|
|
17
|
-
publicIconUrl: "",
|
|
18
|
-
docsLink: `https://docs.example.com/${a}`,
|
|
19
|
-
relativeDocsLink: `/${a}`,
|
|
20
|
-
type: l ?? "community",
|
|
21
|
-
category: "productivity",
|
|
22
|
-
isComingSoon: !1,
|
|
23
|
-
isHidden: !1
|
|
24
|
-
};
|
|
25
|
-
}, D = {
|
|
26
|
-
basic: {
|
|
27
|
-
name: "basic",
|
|
28
|
-
description: "Basic toolkit with essential tools",
|
|
29
|
-
version: "1.0.0",
|
|
30
|
-
tools: N,
|
|
31
|
-
requirements: {
|
|
32
|
-
met: !0,
|
|
33
|
-
secrets: [],
|
|
34
|
-
authorization: [],
|
|
35
|
-
scopes: {}
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
api_toolkit: {
|
|
39
|
-
name: "api_toolkit",
|
|
40
|
-
description: "API toolkit for external integrations",
|
|
41
|
-
version: "2.0.0",
|
|
42
|
-
tools: C,
|
|
43
|
-
requirements: {
|
|
44
|
-
met: !1,
|
|
45
|
-
secrets: [
|
|
46
|
-
{
|
|
47
|
-
key: "OPENAI_API_KEY",
|
|
48
|
-
met: !0,
|
|
49
|
-
status_reason: "API key configured"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
key: "ANTHROPIC_API_KEY",
|
|
53
|
-
met: !1,
|
|
54
|
-
status_reason: "API key not found"
|
|
55
|
-
}
|
|
56
|
-
],
|
|
57
|
-
authorization: [],
|
|
58
|
-
scopes: {}
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
"Advanced Integration": {
|
|
62
|
-
name: "Advanced Integration",
|
|
63
|
-
description: "Advanced toolkit with both API keys and OAuth requirements",
|
|
64
|
-
version: "3.0.0",
|
|
65
|
-
tools: [
|
|
66
|
-
{
|
|
67
|
-
name: "advanced_integration_tool_1",
|
|
68
|
-
input: { parameters: [] },
|
|
69
|
-
qualified_name: "advanced_integration.tool_1",
|
|
70
|
-
description: "Advanced integration tool with multiple requirements",
|
|
71
|
-
fully_qualified_name: "advanced_integration.tool_1",
|
|
72
|
-
toolkit: {
|
|
73
|
-
name: "Advanced Integration",
|
|
74
|
-
description: "Advanced toolkit with both API keys and OAuth requirements",
|
|
75
|
-
version: "3.0.0"
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
name: "advanced_integration_tool_2",
|
|
80
|
-
input: { parameters: [] },
|
|
81
|
-
qualified_name: "advanced_integration.tool_2",
|
|
82
|
-
description: "Another advanced integration tool",
|
|
83
|
-
fully_qualified_name: "advanced_integration.tool_2",
|
|
84
|
-
toolkit: {
|
|
85
|
-
name: "Advanced Integration",
|
|
86
|
-
description: "Advanced toolkit with both API keys and OAuth requirements",
|
|
87
|
-
version: "3.0.0"
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
],
|
|
91
|
-
requirements: {
|
|
92
|
-
met: !1,
|
|
93
|
-
secrets: [
|
|
94
|
-
{
|
|
95
|
-
key: "STRIPE_SECRET_KEY",
|
|
96
|
-
met: !0,
|
|
97
|
-
status_reason: "Stripe key configured"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
key: "TWILIO_AUTH_TOKEN",
|
|
101
|
-
met: !1,
|
|
102
|
-
status_reason: "Twilio token not found"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
key: "SENDGRID_API_KEY",
|
|
106
|
-
met: !1,
|
|
107
|
-
status_reason: "SendGrid key not found"
|
|
108
|
-
}
|
|
109
|
-
],
|
|
110
|
-
authorization: [
|
|
111
|
-
{
|
|
112
|
-
id: "arcade-slack",
|
|
113
|
-
provider_id: "slack",
|
|
114
|
-
status: "active",
|
|
115
|
-
oauth2: { scopes: ["channels:read", "chat:write"] }
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
id: "arcade-discord",
|
|
119
|
-
provider_id: "discord",
|
|
120
|
-
status: "inactive",
|
|
121
|
-
oauth2: { scopes: ["bot", "applications.commands"] }
|
|
122
|
-
}
|
|
123
|
-
],
|
|
124
|
-
scopes: {
|
|
125
|
-
slack: ["channels:read", "chat:write", "users:read"],
|
|
126
|
-
discord: ["bot", "applications.commands", "guilds.join"]
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
"Enterprise Suite": {
|
|
131
|
-
name: "Enterprise Suite",
|
|
132
|
-
description: "Enterprise-grade toolkit with all requirement types and premium features",
|
|
133
|
-
version: "4.0.0",
|
|
134
|
-
tools: [
|
|
135
|
-
{
|
|
136
|
-
name: "enterprise_analytics",
|
|
137
|
-
input: { parameters: [] },
|
|
138
|
-
qualified_name: "enterprise.analytics",
|
|
139
|
-
description: "Advanced analytics and reporting tool",
|
|
140
|
-
fully_qualified_name: "enterprise.analytics",
|
|
141
|
-
toolkit: {
|
|
142
|
-
name: "Enterprise Suite",
|
|
143
|
-
description: "Enterprise-grade toolkit with all requirement types and premium features",
|
|
144
|
-
version: "4.0.0"
|
|
145
|
-
}
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
name: "enterprise_workflow",
|
|
149
|
-
input: { parameters: [] },
|
|
150
|
-
qualified_name: "enterprise.workflow",
|
|
151
|
-
description: "Complex workflow automation tool",
|
|
152
|
-
fully_qualified_name: "enterprise.workflow",
|
|
153
|
-
toolkit: {
|
|
154
|
-
name: "Enterprise Suite",
|
|
155
|
-
description: "Enterprise-grade toolkit with all requirement types and premium features",
|
|
156
|
-
version: "4.0.0"
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
name: "enterprise_integration",
|
|
161
|
-
input: { parameters: [] },
|
|
162
|
-
qualified_name: "enterprise.integration",
|
|
163
|
-
description: "Enterprise system integration tool",
|
|
164
|
-
fully_qualified_name: "enterprise.integration",
|
|
165
|
-
toolkit: {
|
|
166
|
-
name: "Enterprise Suite",
|
|
167
|
-
description: "Enterprise-grade toolkit with all requirement types and premium features",
|
|
168
|
-
version: "4.0.0"
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
],
|
|
172
|
-
requirements: {
|
|
173
|
-
met: !0,
|
|
174
|
-
secrets: [
|
|
175
|
-
{
|
|
176
|
-
key: "ENTERPRISE_API_KEY",
|
|
177
|
-
met: !0,
|
|
178
|
-
status_reason: "Enterprise API key configured"
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
key: "DATABASE_CONNECTION_STRING",
|
|
182
|
-
met: !0,
|
|
183
|
-
status_reason: "Database connection not configured"
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
key: "REDIS_PASSWORD",
|
|
187
|
-
met: !0,
|
|
188
|
-
status_reason: "Redis password not set"
|
|
189
|
-
}
|
|
190
|
-
],
|
|
191
|
-
authorization: [
|
|
192
|
-
{
|
|
193
|
-
id: "arcade-enterprise-sso",
|
|
194
|
-
provider_id: "enterprise_sso",
|
|
195
|
-
status: "active",
|
|
196
|
-
oauth2: { scopes: ["user:read", "admin:write", "audit:read"] }
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
id: "arcade-ldap",
|
|
200
|
-
provider_id: "ldap",
|
|
201
|
-
status: "inactive",
|
|
202
|
-
oauth2: { scopes: ["directory:read"] }
|
|
203
|
-
}
|
|
204
|
-
],
|
|
205
|
-
scopes: {
|
|
206
|
-
enterprise_sso: [
|
|
207
|
-
"user:read",
|
|
208
|
-
"admin:write",
|
|
209
|
-
"audit:read",
|
|
210
|
-
"reports:generate"
|
|
211
|
-
],
|
|
212
|
-
ldap: ["directory:read", "group:read"]
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
},
|
|
216
|
-
Google: {
|
|
217
|
-
name: "Google",
|
|
218
|
-
description: "Arcade.dev LLM tools for Google Workspace",
|
|
219
|
-
version: "1.2.4",
|
|
220
|
-
tools: x,
|
|
221
|
-
requirements: {
|
|
222
|
-
met: !0,
|
|
223
|
-
secrets: [],
|
|
224
|
-
authorization: [
|
|
225
|
-
{
|
|
226
|
-
id: "arcade-google",
|
|
227
|
-
provider_id: "google",
|
|
228
|
-
status: "active",
|
|
229
|
-
oauth2: { scopes: ["https://www.googleapis.com/auth/drive.file"] }
|
|
230
|
-
}
|
|
231
|
-
],
|
|
232
|
-
scopes: { google: ["https://www.googleapis.com/auth/drive.file"] }
|
|
233
|
-
}
|
|
234
|
-
},
|
|
235
|
-
Gmail: {
|
|
236
|
-
name: "Gmail",
|
|
237
|
-
description: "Arcade.dev LLM tools for Gmail",
|
|
238
|
-
version: "2.0.0",
|
|
239
|
-
tools: z,
|
|
240
|
-
requirements: {
|
|
241
|
-
met: !0,
|
|
242
|
-
secrets: [],
|
|
243
|
-
authorization: [
|
|
244
|
-
{
|
|
245
|
-
id: "arcade-google",
|
|
246
|
-
provider_id: "google",
|
|
247
|
-
status: "active",
|
|
248
|
-
oauth2: {
|
|
249
|
-
scopes: [
|
|
250
|
-
"https://www.googleapis.com/auth/gmail.modify",
|
|
251
|
-
"https://www.googleapis.com/auth/gmail.labels"
|
|
252
|
-
]
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
],
|
|
256
|
-
scopes: {
|
|
257
|
-
google: [
|
|
258
|
-
"https://www.googleapis.com/auth/gmail.modify",
|
|
259
|
-
"https://www.googleapis.com/auth/gmail.labels"
|
|
260
|
-
]
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
},
|
|
264
|
-
// Starter/API endpoint toolkits
|
|
265
|
-
GmailApi: {
|
|
266
|
-
name: "GmailApi",
|
|
267
|
-
description: "Gmail API endpoints for direct API access",
|
|
268
|
-
version: "1.0.0",
|
|
269
|
-
tools: [
|
|
270
|
-
{
|
|
271
|
-
name: "gmail_api_send",
|
|
272
|
-
input: { parameters: [] },
|
|
273
|
-
qualified_name: "gmail_api.send",
|
|
274
|
-
description: "Send email via Gmail API",
|
|
275
|
-
fully_qualified_name: "gmail_api.send",
|
|
276
|
-
toolkit: {
|
|
277
|
-
name: "GmailApi",
|
|
278
|
-
description: "Gmail API endpoints for direct API access",
|
|
279
|
-
version: "1.0.0"
|
|
280
|
-
}
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
name: "gmail_api_list",
|
|
284
|
-
input: { parameters: [] },
|
|
285
|
-
qualified_name: "gmail_api.list",
|
|
286
|
-
description: "List emails via Gmail API",
|
|
287
|
-
fully_qualified_name: "gmail_api.list",
|
|
288
|
-
toolkit: {
|
|
289
|
-
name: "GmailApi",
|
|
290
|
-
description: "Gmail API endpoints for direct API access",
|
|
291
|
-
version: "1.0.0"
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
],
|
|
295
|
-
requirements: {
|
|
296
|
-
met: !0,
|
|
297
|
-
secrets: [],
|
|
298
|
-
authorization: [],
|
|
299
|
-
scopes: {}
|
|
300
|
-
}
|
|
301
|
-
},
|
|
302
|
-
SlackApi: {
|
|
303
|
-
name: "SlackApi",
|
|
304
|
-
description: "Slack API endpoints for direct API access",
|
|
305
|
-
version: "1.0.0",
|
|
306
|
-
tools: [
|
|
307
|
-
{
|
|
308
|
-
name: "slack_api_post_message",
|
|
309
|
-
input: { parameters: [] },
|
|
310
|
-
qualified_name: "slack_api.post_message",
|
|
311
|
-
description: "Post message via Slack API",
|
|
312
|
-
fully_qualified_name: "slack_api.post_message",
|
|
313
|
-
toolkit: {
|
|
314
|
-
name: "SlackApi",
|
|
315
|
-
description: "Slack API endpoints for direct API access",
|
|
316
|
-
version: "1.0.0"
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
],
|
|
320
|
-
requirements: {
|
|
321
|
-
met: !0,
|
|
322
|
-
secrets: [],
|
|
323
|
-
authorization: [],
|
|
324
|
-
scopes: {}
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
};
|
|
328
|
-
function b(a) {
|
|
329
|
-
const r = [], n = [], l = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), m = {
|
|
330
|
-
toolkitsByName: /* @__PURE__ */ new Map(),
|
|
331
|
-
toolsByName: /* @__PURE__ */ new Map()
|
|
332
|
-
};
|
|
333
|
-
for (const [e, o] of Object.entries(a)) {
|
|
334
|
-
const v = M([
|
|
335
|
-
o.name,
|
|
336
|
-
o.description ?? "",
|
|
337
|
-
o.version ?? ""
|
|
338
|
-
]), A = {
|
|
339
|
-
secrets: o.requirements?.secrets?.length ? {
|
|
340
|
-
configured: o.requirements.secrets.filter((t) => t.met === !0).map((t) => t.key),
|
|
341
|
-
pending: o.requirements.secrets.filter((t) => t.met === !1).map((t) => t.key)
|
|
342
|
-
} : void 0,
|
|
343
|
-
oauth: o.requirements?.authorization?.length ? {
|
|
344
|
-
providers: o.requirements.authorization.filter((t) => t.provider_id || t.id).map((t) => ({
|
|
345
|
-
id: t.provider_id || t.id || "",
|
|
346
|
-
status: t.status,
|
|
347
|
-
scopes: t.oauth2?.scopes || []
|
|
348
|
-
}))
|
|
349
|
-
} : void 0
|
|
350
|
-
}, y = (() => {
|
|
351
|
-
switch (e) {
|
|
352
|
-
case "basic":
|
|
353
|
-
return i(e, !1, !1);
|
|
354
|
-
// Neither BYOC nor Pro
|
|
355
|
-
case "api_toolkit":
|
|
356
|
-
return i(e, !0, !1);
|
|
357
|
-
// BYOC only
|
|
358
|
-
case "Advanced Integration":
|
|
359
|
-
return i(e, !0, !1);
|
|
360
|
-
// BYOC only
|
|
361
|
-
case "Enterprise Suite":
|
|
362
|
-
return i(e, !0, !0);
|
|
363
|
-
// Both BYOC and Pro
|
|
364
|
-
case "Google":
|
|
365
|
-
return i(e, !1, !0);
|
|
366
|
-
// Pro only
|
|
367
|
-
case "Gmail":
|
|
368
|
-
return i(e, !1, !1);
|
|
369
|
-
// Neither BYOC nor Pro
|
|
370
|
-
// Starter/API endpoint toolkits (explicit names)
|
|
371
|
-
case "GmailApi":
|
|
372
|
-
case "SlackApi":
|
|
373
|
-
case "GithubApi":
|
|
374
|
-
case "NotionApi":
|
|
375
|
-
case "StripeApi":
|
|
376
|
-
case "DiscordApi":
|
|
377
|
-
case "JiraApi":
|
|
378
|
-
case "AsanaApi":
|
|
379
|
-
case "LinearApi":
|
|
380
|
-
case "AirtableApi":
|
|
381
|
-
case "DropboxApi":
|
|
382
|
-
case "CalendarApi":
|
|
383
|
-
case "DriveApi":
|
|
384
|
-
case "SheetsApi":
|
|
385
|
-
return i(e, !1, !1, "arcade_starter");
|
|
386
|
-
// Real toolkits with variety
|
|
387
|
-
case "GitHub":
|
|
388
|
-
return i(e, !1, !0);
|
|
389
|
-
// Pro only
|
|
390
|
-
case "Slack":
|
|
391
|
-
return i(e, !1, !1);
|
|
392
|
-
// Neither BYOC nor Pro (primary toolkit, not starter)
|
|
393
|
-
case "Discord":
|
|
394
|
-
return i(e, !0, !1);
|
|
395
|
-
// BYOC only
|
|
396
|
-
case "Notion":
|
|
397
|
-
return i(e, !1, !0);
|
|
398
|
-
// Pro only
|
|
399
|
-
case "Stripe":
|
|
400
|
-
return i(e, !0, !0);
|
|
401
|
-
// Both BYOC and Pro
|
|
402
|
-
case "Asana":
|
|
403
|
-
return i(e, !1, !1);
|
|
404
|
-
// Neither BYOC nor Pro
|
|
405
|
-
case "Linear":
|
|
406
|
-
return i(e, !0, !1);
|
|
407
|
-
// BYOC only
|
|
408
|
-
case "Airtable":
|
|
409
|
-
return i(e, !1, !0);
|
|
410
|
-
// Pro only
|
|
411
|
-
case "Dropbox":
|
|
412
|
-
return i(e, !1, !1);
|
|
413
|
-
// Neither BYOC nor Pro
|
|
414
|
-
case "E2B":
|
|
415
|
-
return i(e, !0, !0);
|
|
416
|
-
// Both BYOC and Pro
|
|
417
|
-
case "Firecrawl":
|
|
418
|
-
return i(e, !0, !0);
|
|
419
|
-
// Both BYOC and Pro
|
|
420
|
-
// Add variety for generated toolkits
|
|
421
|
-
case "Cloud":
|
|
422
|
-
case "Security":
|
|
423
|
-
return i(e, !0, !0);
|
|
424
|
-
// Both BYOC and Pro
|
|
425
|
-
case "Database":
|
|
426
|
-
case "Analytics":
|
|
427
|
-
return i(e, !1, !0);
|
|
428
|
-
// Pro only
|
|
429
|
-
case "Email":
|
|
430
|
-
case "AI":
|
|
431
|
-
return i(e, !0, !1);
|
|
432
|
-
// BYOC only
|
|
433
|
-
default:
|
|
434
|
-
return e.endsWith("Api") ? i(e, !1, !1, "arcade_starter") : i(e, !1, !1);
|
|
435
|
-
}
|
|
436
|
-
})(), d = {
|
|
437
|
-
...o,
|
|
438
|
-
searchableText: v,
|
|
439
|
-
requirementsSummary: A,
|
|
440
|
-
metadata: y
|
|
441
|
-
};
|
|
442
|
-
r.push(d), l.set(e, d), m.toolkitsByName.set(e.toLowerCase(), d);
|
|
443
|
-
for (const t of o.tools) {
|
|
444
|
-
const u = M([
|
|
445
|
-
t.name,
|
|
446
|
-
t.fully_qualified_name,
|
|
447
|
-
t.description ?? "",
|
|
448
|
-
o.name,
|
|
449
|
-
o.description ?? ""
|
|
450
|
-
]), p = {
|
|
451
|
-
...t,
|
|
452
|
-
searchableText: u
|
|
453
|
-
};
|
|
454
|
-
n.push(p), c.set(t.fully_qualified_name, e), m.toolsByName.set(
|
|
455
|
-
t.fully_qualified_name.toLowerCase(),
|
|
456
|
-
p
|
|
457
|
-
);
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
return {
|
|
461
|
-
toolkits: r,
|
|
462
|
-
tools: n,
|
|
463
|
-
toolkitMap: l,
|
|
464
|
-
toolToToolkitMap: c,
|
|
465
|
-
searchIndex: m
|
|
466
|
-
};
|
|
467
|
-
}
|
|
468
|
-
const $ = {
|
|
469
|
-
Slack: {
|
|
470
|
-
name: "Slack",
|
|
471
|
-
description: "Slack communication toolkit",
|
|
472
|
-
version: "1.0.0",
|
|
473
|
-
tools: [
|
|
474
|
-
{
|
|
475
|
-
name: "send_message",
|
|
476
|
-
input: { parameters: [] },
|
|
477
|
-
qualified_name: "slack.send_message",
|
|
478
|
-
description: "Send message to Slack channel",
|
|
479
|
-
fully_qualified_name: "slack.send_message",
|
|
480
|
-
toolkit: {
|
|
481
|
-
name: "Slack",
|
|
482
|
-
description: "Slack communication toolkit",
|
|
483
|
-
version: "1.0.0"
|
|
484
|
-
}
|
|
485
|
-
},
|
|
486
|
-
{
|
|
487
|
-
input: { parameters: [] },
|
|
488
|
-
qualified_name: "slack.create_channel",
|
|
489
|
-
name: "create_channel",
|
|
490
|
-
description: "Create new Slack channel",
|
|
491
|
-
fully_qualified_name: "slack.create_channel",
|
|
492
|
-
toolkit: {
|
|
493
|
-
name: "Slack",
|
|
494
|
-
description: "Slack communication toolkit",
|
|
495
|
-
version: "1.0.0"
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
],
|
|
499
|
-
requirements: { met: !0, secrets: [], authorization: [], scopes: {} }
|
|
500
|
-
},
|
|
501
|
-
SlackApi: {
|
|
502
|
-
name: "SlackApi",
|
|
503
|
-
description: "Slack API starter toolkit",
|
|
504
|
-
version: "1.0.0",
|
|
505
|
-
tools: [
|
|
506
|
-
{
|
|
507
|
-
name: "api_call",
|
|
508
|
-
input: { parameters: [] },
|
|
509
|
-
qualified_name: "slackapi.api_call",
|
|
510
|
-
description: "Make raw Slack API call",
|
|
511
|
-
fully_qualified_name: "slackapi.api_call",
|
|
512
|
-
toolkit: {
|
|
513
|
-
name: "SlackApi",
|
|
514
|
-
description: "Slack API starter toolkit",
|
|
515
|
-
version: "1.0.0"
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
],
|
|
519
|
-
requirements: { met: !0, secrets: [], authorization: [], scopes: {} }
|
|
520
|
-
},
|
|
521
|
-
GitHub: {
|
|
522
|
-
name: "GitHub",
|
|
523
|
-
description: "GitHub development toolkit",
|
|
524
|
-
version: "2.0.0",
|
|
525
|
-
tools: [
|
|
526
|
-
{
|
|
527
|
-
name: "create_repository",
|
|
528
|
-
input: { parameters: [] },
|
|
529
|
-
qualified_name: "github.create_repository",
|
|
530
|
-
description: "Create a new GitHub repository",
|
|
531
|
-
fully_qualified_name: "github.create_repository",
|
|
532
|
-
toolkit: {
|
|
533
|
-
name: "GitHub",
|
|
534
|
-
description: "GitHub development toolkit",
|
|
535
|
-
version: "2.0.0"
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
],
|
|
539
|
-
requirements: { met: !0, secrets: [], authorization: [], scopes: {} }
|
|
540
|
-
}
|
|
541
|
-
}, K = b(D), W = b($), H = {
|
|
542
|
-
Gmail: {
|
|
543
|
-
name: "Gmail",
|
|
544
|
-
description: "Gmail email management toolkit",
|
|
545
|
-
version: "2.0.0",
|
|
546
|
-
tools: [
|
|
547
|
-
{
|
|
548
|
-
name: "send_email",
|
|
549
|
-
input: { parameters: [] },
|
|
550
|
-
qualified_name: "gmail.send_email",
|
|
551
|
-
description: "Send email via Gmail",
|
|
552
|
-
fully_qualified_name: "gmail.send_email",
|
|
553
|
-
toolkit: {
|
|
554
|
-
name: "Gmail",
|
|
555
|
-
description: "Gmail email management toolkit",
|
|
556
|
-
version: "2.0.0"
|
|
557
|
-
}
|
|
558
|
-
},
|
|
559
|
-
{
|
|
560
|
-
name: "read_emails",
|
|
561
|
-
input: { parameters: [] },
|
|
562
|
-
qualified_name: "gmail.read_emails",
|
|
563
|
-
description: "Read emails from Gmail",
|
|
564
|
-
fully_qualified_name: "gmail.read_emails",
|
|
565
|
-
toolkit: {
|
|
566
|
-
name: "Gmail",
|
|
567
|
-
description: "Gmail email management toolkit",
|
|
568
|
-
version: "2.0.0"
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
],
|
|
572
|
-
requirements: {
|
|
573
|
-
met: !0,
|
|
574
|
-
secrets: [],
|
|
575
|
-
authorization: [
|
|
576
|
-
{
|
|
577
|
-
id: "arcade-gmail",
|
|
578
|
-
provider_id: "google",
|
|
579
|
-
status: "active",
|
|
580
|
-
oauth2: {
|
|
581
|
-
scopes: [
|
|
582
|
-
"https://www.googleapis.com/auth/gmail.modify",
|
|
583
|
-
"https://www.googleapis.com/auth/gmail.labels"
|
|
584
|
-
]
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
],
|
|
588
|
-
scopes: {
|
|
589
|
-
google: [
|
|
590
|
-
"https://www.googleapis.com/auth/gmail.modify",
|
|
591
|
-
"https://www.googleapis.com/auth/gmail.labels"
|
|
592
|
-
]
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
},
|
|
596
|
-
Slack: {
|
|
597
|
-
name: "Slack",
|
|
598
|
-
description: "Slack communication toolkit",
|
|
599
|
-
version: "1.0.0",
|
|
600
|
-
tools: [
|
|
601
|
-
{
|
|
602
|
-
name: "send_message",
|
|
603
|
-
input: { parameters: [] },
|
|
604
|
-
qualified_name: "slack.send_message",
|
|
605
|
-
description: "Send message to Slack channel",
|
|
606
|
-
fully_qualified_name: "slack.send_message",
|
|
607
|
-
toolkit: {
|
|
608
|
-
name: "Slack",
|
|
609
|
-
description: "Slack communication toolkit",
|
|
610
|
-
version: "1.0.0"
|
|
611
|
-
}
|
|
612
|
-
},
|
|
613
|
-
{
|
|
614
|
-
name: "create_channel",
|
|
615
|
-
input: { parameters: [] },
|
|
616
|
-
qualified_name: "slack.create_channel",
|
|
617
|
-
description: "Create new Slack channel",
|
|
618
|
-
fully_qualified_name: "slack.create_channel",
|
|
619
|
-
toolkit: {
|
|
620
|
-
name: "Slack",
|
|
621
|
-
description: "Slack communication toolkit",
|
|
622
|
-
version: "1.0.0"
|
|
623
|
-
}
|
|
624
|
-
}
|
|
625
|
-
],
|
|
626
|
-
requirements: {
|
|
627
|
-
met: !0,
|
|
628
|
-
secrets: [],
|
|
629
|
-
authorization: [
|
|
630
|
-
{
|
|
631
|
-
id: "arcade-slack",
|
|
632
|
-
provider_id: "slack",
|
|
633
|
-
status: "active",
|
|
634
|
-
oauth2: { scopes: ["channels:read", "chat:write"] }
|
|
635
|
-
}
|
|
636
|
-
],
|
|
637
|
-
scopes: { slack: ["channels:read", "chat:write", "users:read"] }
|
|
638
|
-
}
|
|
639
|
-
},
|
|
640
|
-
GitHub: {
|
|
641
|
-
name: "GitHub",
|
|
642
|
-
description: "GitHub development toolkit",
|
|
643
|
-
version: "2.0.0",
|
|
644
|
-
tools: [
|
|
645
|
-
{
|
|
646
|
-
name: "create_repository",
|
|
647
|
-
input: { parameters: [] },
|
|
648
|
-
qualified_name: "github.create_repository",
|
|
649
|
-
description: "Create a new GitHub repository",
|
|
650
|
-
fully_qualified_name: "github.create_repository",
|
|
651
|
-
toolkit: {
|
|
652
|
-
name: "GitHub",
|
|
653
|
-
description: "GitHub development toolkit",
|
|
654
|
-
version: "2.0.0"
|
|
655
|
-
}
|
|
656
|
-
},
|
|
657
|
-
{
|
|
658
|
-
name: "create_issue",
|
|
659
|
-
input: { parameters: [] },
|
|
660
|
-
qualified_name: "github.create_issue",
|
|
661
|
-
description: "Create a new GitHub issue",
|
|
662
|
-
fully_qualified_name: "github.create_issue",
|
|
663
|
-
toolkit: {
|
|
664
|
-
name: "GitHub",
|
|
665
|
-
description: "GitHub development toolkit",
|
|
666
|
-
version: "2.0.0"
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
],
|
|
670
|
-
requirements: {
|
|
671
|
-
met: !0,
|
|
672
|
-
secrets: [],
|
|
673
|
-
authorization: [
|
|
674
|
-
{
|
|
675
|
-
id: "arcade-github",
|
|
676
|
-
provider_id: "github",
|
|
677
|
-
status: "active",
|
|
678
|
-
oauth2: { scopes: ["repo", "issues"] }
|
|
679
|
-
}
|
|
680
|
-
],
|
|
681
|
-
scopes: { github: ["repo", "issues", "user"] }
|
|
682
|
-
}
|
|
683
|
-
},
|
|
684
|
-
Notion: {
|
|
685
|
-
name: "Notion",
|
|
686
|
-
description: "Notion workspace toolkit",
|
|
687
|
-
version: "1.5.0",
|
|
688
|
-
tools: [
|
|
689
|
-
{
|
|
690
|
-
name: "create_page",
|
|
691
|
-
input: { parameters: [] },
|
|
692
|
-
qualified_name: "notion.create_page",
|
|
693
|
-
description: "Create a new Notion page",
|
|
694
|
-
fully_qualified_name: "notion.create_page",
|
|
695
|
-
toolkit: {
|
|
696
|
-
name: "Notion",
|
|
697
|
-
description: "Notion workspace toolkit",
|
|
698
|
-
version: "1.5.0"
|
|
699
|
-
}
|
|
700
|
-
},
|
|
701
|
-
{
|
|
702
|
-
name: "search_pages",
|
|
703
|
-
input: { parameters: [] },
|
|
704
|
-
qualified_name: "notion.search_pages",
|
|
705
|
-
description: "Search Notion pages",
|
|
706
|
-
fully_qualified_name: "notion.search_pages",
|
|
707
|
-
toolkit: {
|
|
708
|
-
name: "Notion",
|
|
709
|
-
description: "Notion workspace toolkit",
|
|
710
|
-
version: "1.5.0"
|
|
711
|
-
}
|
|
712
|
-
}
|
|
713
|
-
],
|
|
714
|
-
requirements: {
|
|
715
|
-
met: !0,
|
|
716
|
-
secrets: [],
|
|
717
|
-
authorization: [
|
|
718
|
-
{
|
|
719
|
-
id: "arcade-notion",
|
|
720
|
-
provider_id: "notion",
|
|
721
|
-
status: "active",
|
|
722
|
-
oauth2: { scopes: ["read", "write"] }
|
|
723
|
-
}
|
|
724
|
-
],
|
|
725
|
-
scopes: { notion: ["read", "write"] }
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
}, U = b(H);
|
|
729
|
-
function Y(a = {}) {
|
|
730
|
-
const {
|
|
731
|
-
toolkitCount: r = 100,
|
|
732
|
-
minToolsPerToolkit: n = 10,
|
|
733
|
-
maxToolsPerToolkit: l = 25
|
|
734
|
-
} = a, c = {}, m = 3, e = 1, o = 10, v = 0.3, A = 0.7, y = 0.5, d = 0.5, t = [
|
|
735
|
-
"GmailApi",
|
|
736
|
-
"SlackApi",
|
|
737
|
-
"GithubApi",
|
|
738
|
-
"NotionApi",
|
|
739
|
-
"StripeApi"
|
|
740
|
-
], u = [
|
|
741
|
-
"Gmail",
|
|
742
|
-
"GoogleCalendar",
|
|
743
|
-
"GoogleDocs",
|
|
744
|
-
"Github",
|
|
745
|
-
"Slack",
|
|
746
|
-
"Jira",
|
|
747
|
-
"Discord",
|
|
748
|
-
"Notion",
|
|
749
|
-
"Stripe",
|
|
750
|
-
"Asana",
|
|
751
|
-
"Linear",
|
|
752
|
-
"Airtable",
|
|
753
|
-
"Dropbox",
|
|
754
|
-
"E2B",
|
|
755
|
-
"Firecrawl",
|
|
756
|
-
"Email",
|
|
757
|
-
"Cloud",
|
|
758
|
-
"Database",
|
|
759
|
-
"Analytics",
|
|
760
|
-
"Security",
|
|
761
|
-
"AI",
|
|
762
|
-
"Storage",
|
|
763
|
-
"Network",
|
|
764
|
-
"Monitoring",
|
|
765
|
-
"Deployment",
|
|
766
|
-
"Testing",
|
|
767
|
-
"Documentation",
|
|
768
|
-
"Payment",
|
|
769
|
-
"Social",
|
|
770
|
-
"Communication",
|
|
771
|
-
"Image",
|
|
772
|
-
"Video",
|
|
773
|
-
"Audio",
|
|
774
|
-
"Finance",
|
|
775
|
-
"CRM",
|
|
776
|
-
"Workflow",
|
|
777
|
-
"Scheduler",
|
|
778
|
-
"Calendar",
|
|
779
|
-
"Maps",
|
|
780
|
-
"Weather",
|
|
781
|
-
"Translation",
|
|
782
|
-
"Search",
|
|
783
|
-
"Indexing",
|
|
784
|
-
"Cache",
|
|
785
|
-
"Queue",
|
|
786
|
-
"Messaging",
|
|
787
|
-
"Notification",
|
|
788
|
-
"Authentication",
|
|
789
|
-
"Authorization",
|
|
790
|
-
"Logging",
|
|
791
|
-
"Tracing",
|
|
792
|
-
"Metrics",
|
|
793
|
-
"Alerting",
|
|
794
|
-
"Backup",
|
|
795
|
-
"Recovery"
|
|
796
|
-
], p = [
|
|
797
|
-
"Pro",
|
|
798
|
-
"Enterprise",
|
|
799
|
-
"Basic",
|
|
800
|
-
"Advanced",
|
|
801
|
-
"Premium",
|
|
802
|
-
"Starter",
|
|
803
|
-
"Core",
|
|
804
|
-
"Plus"
|
|
805
|
-
], G = Math.min(r, t.length), w = t.slice(
|
|
806
|
-
0,
|
|
807
|
-
G
|
|
808
|
-
), P = Math.max(0, r - G);
|
|
809
|
-
for (let s = 0; s < P; s++) {
|
|
810
|
-
const _ = u[s % u.length];
|
|
811
|
-
if (s < u.length)
|
|
812
|
-
w.push(_);
|
|
813
|
-
else {
|
|
814
|
-
const f = Math.floor(s / u.length) - 1, q = p[f % p.length];
|
|
815
|
-
w.push(`${_} ${q}`);
|
|
816
|
-
}
|
|
817
|
-
}
|
|
818
|
-
for (const s of w) {
|
|
819
|
-
const _ = [], f = s.toLowerCase().replace(/\s+/g, "_"), q = l - n + 1, I = n + Math.floor(Math.random() * q), T = [
|
|
820
|
-
"create",
|
|
821
|
-
"read",
|
|
822
|
-
"update",
|
|
823
|
-
"delete",
|
|
824
|
-
"list",
|
|
825
|
-
"search",
|
|
826
|
-
"export",
|
|
827
|
-
"import",
|
|
828
|
-
"sync",
|
|
829
|
-
"validate",
|
|
830
|
-
"process",
|
|
831
|
-
"transform",
|
|
832
|
-
"analyze",
|
|
833
|
-
"generate",
|
|
834
|
-
"send",
|
|
835
|
-
"receive",
|
|
836
|
-
"connect",
|
|
837
|
-
"disconnect",
|
|
838
|
-
"configure",
|
|
839
|
-
"monitor",
|
|
840
|
-
"schedule",
|
|
841
|
-
"cancel",
|
|
842
|
-
"retry",
|
|
843
|
-
"archive",
|
|
844
|
-
"restore"
|
|
845
|
-
];
|
|
846
|
-
for (let k = 0; k < I; k++) {
|
|
847
|
-
const g = T[k % T.length], S = `${g}_${f}_${k + 1}`;
|
|
848
|
-
_.push({
|
|
849
|
-
name: S,
|
|
850
|
-
fully_qualified_name: `${f}.${S}`,
|
|
851
|
-
qualified_name: S,
|
|
852
|
-
description: `${g.charAt(0).toUpperCase() + g.slice(1)} operation for ${s} - performs ${g} with advanced features and error handling`,
|
|
853
|
-
toolkit: {
|
|
854
|
-
name: s,
|
|
855
|
-
description: `${s} toolkit for comprehensive operations`,
|
|
856
|
-
version: `${Math.floor(Math.random() * m) + e}.${Math.floor(
|
|
857
|
-
Math.random() * o
|
|
858
|
-
)}.0`
|
|
859
|
-
},
|
|
860
|
-
input: { parameters: [] },
|
|
861
|
-
requirements: void 0
|
|
862
|
-
});
|
|
863
|
-
}
|
|
864
|
-
c[s] = {
|
|
865
|
-
name: s,
|
|
866
|
-
description: `${s} toolkit with ${I} powerful tools for comprehensive operations`,
|
|
867
|
-
version: `${Math.floor(Math.random() * m) + e}.${Math.floor(
|
|
868
|
-
Math.random() * o
|
|
869
|
-
)}.0`,
|
|
870
|
-
tools: _,
|
|
871
|
-
requirements: {
|
|
872
|
-
met: Math.random() > v,
|
|
873
|
-
secrets: Math.random() > A ? [
|
|
874
|
-
{
|
|
875
|
-
key: `${f.toUpperCase()}_API_KEY`,
|
|
876
|
-
met: Math.random() > y,
|
|
877
|
-
status_reason: Math.random() > d ? "API key configured" : "API key not found"
|
|
878
|
-
}
|
|
879
|
-
] : [],
|
|
880
|
-
authorization: [],
|
|
881
|
-
scopes: {}
|
|
882
|
-
}
|
|
883
|
-
};
|
|
884
|
-
}
|
|
885
|
-
return c;
|
|
886
|
-
}
|
|
887
|
-
export {
|
|
888
|
-
b as createMockToolkitCollection,
|
|
889
|
-
U as demoMockToolkitCollection,
|
|
890
|
-
H as demoMockToolkits,
|
|
891
|
-
Y as generateLargeDataset,
|
|
892
|
-
K as mockToolkitCollection,
|
|
893
|
-
D as mockToolkits,
|
|
894
|
-
W as simpleMockToolkitCollection,
|
|
895
|
-
$ as simpleMockToolkits
|
|
896
|
-
};
|