@arcadeai/design-system 3.15.0 → 3.15.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.
|
@@ -1271,7 +1271,7 @@ class qt extends d {
|
|
|
1271
1271
|
return new d(e);
|
|
1272
1272
|
}
|
|
1273
1273
|
async getAllTools(e = {}) {
|
|
1274
|
-
const { limit: n =
|
|
1274
|
+
const { limit: n = 25e3, offset: r = 0, toolkit: s } = e;
|
|
1275
1275
|
return (await this.tools.list({
|
|
1276
1276
|
limit: n,
|
|
1277
1277
|
offset: r,
|
|
@@ -1307,7 +1307,7 @@ class qt extends d {
|
|
|
1307
1307
|
async getToolsForToolkit(e) {
|
|
1308
1308
|
return (await this.tools.list({
|
|
1309
1309
|
toolkit: e,
|
|
1310
|
-
limit:
|
|
1310
|
+
limit: 25e3
|
|
1311
1311
|
})).items;
|
|
1312
1312
|
}
|
|
1313
1313
|
applyToolRequirements(e, n) {
|
|
@@ -97,7 +97,7 @@ m("Arcade Tests", () => {
|
|
|
97
97
|
arcadeClientId: "test-client-id",
|
|
98
98
|
apiKey: "test-api-key"
|
|
99
99
|
}).getAllTools(), e(d).toHaveBeenCalledWith(
|
|
100
|
-
e.objectContaining({ limit:
|
|
100
|
+
e.objectContaining({ limit: 25e3, offset: 0 })
|
|
101
101
|
);
|
|
102
102
|
}), s("should filter tools by toolkit", async () => {
|
|
103
103
|
const t = await new i({
|
|
@@ -258,7 +258,7 @@ m("Arcade Tests", () => {
|
|
|
258
258
|
arcadeClientId: "test-client-id",
|
|
259
259
|
apiKey: "test-api-key"
|
|
260
260
|
}).getToolsForToolkit("Gmail"), e(d).toHaveBeenCalledWith(
|
|
261
|
-
e.objectContaining({ toolkit: "Gmail", limit:
|
|
261
|
+
e.objectContaining({ toolkit: "Gmail", limit: 25e3 })
|
|
262
262
|
);
|
|
263
263
|
}), s("should group tools by a string key", async () => {
|
|
264
264
|
const t = await new i({
|