Skip to content

Commit 5454724

Browse files
committed
fix(integrations): cap spotify playlist items limit at 50 and drop buffer tests for rejected output enums
1 parent 158f843 commit 5454724

5 files changed

Lines changed: 5 additions & 10 deletions

File tree

‎apps/sim/lib/internal/buffer/operations.test.ts‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,6 @@ describe('Buffer operations', () => {
190190
error: 'Post.isCustomScheduled must be a boolean',
191191
},
192192
{ corruption: { allowedActions: [42] }, error: 'Post.allowedActions[] must be a string' },
193-
{ corruption: { status: 'invalid-status' }, error: 'Post.status must be one of' },
194-
{
195-
corruption: { allowedActions: ['invalid-action'] },
196-
error: 'Post.allowedActions[] must be one of',
197-
},
198193
{
199194
corruption: {
200195
channel: {

‎apps/sim/tools/generated/tool-metadata.ts‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎apps/sim/tools/generated/tool-outputs.ts‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎apps/sim/tools/spotify/check_playlist_followers.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const spotifyCheckPlaylistFollowersTool: ToolConfig<
5858
outputs: {
5959
results: {
6060
type: 'json',
61-
description: 'One boolean: whether the current user follows the playlist',
61+
description: 'Array with one boolean: whether the current user follows the playlist',
6262
},
6363
},
6464
}

‎apps/sim/tools/spotify/get_playlist_tracks.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const spotifyGetPlaylistTracksTool: ToolConfig<
3131
required: false,
3232
visibility: 'user-or-llm',
3333
default: 50,
34-
description: 'Maximum number of tracks to return (1-100)',
34+
description: 'Maximum number of tracks to return (1-50)',
3535
},
3636
offset: {
3737
type: 'number',
@@ -50,7 +50,7 @@ export const spotifyGetPlaylistTracksTool: ToolConfig<
5050

5151
request: {
5252
url: (params) => {
53-
const limit = Math.min(Math.max(params.limit || 50, 1), 100)
53+
const limit = Math.min(Math.max(params.limit || 50, 1), 50)
5454
const offset = params.offset || 0
5555
let url = `https://api.spotify.com/v1/playlists/${params.playlistId}/items?limit=${limit}&offset=${offset}`
5656
if (params.market) {

0 commit comments

Comments
 (0)