Fix missing scopes in tools that call other tools (#240)

This commit is contained in:
Renato Byrro 2025-02-03 22:39:34 -03:00 committed by GitHub
parent 9d49572f09
commit 149c25d967
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 27 additions and 4 deletions

View file

@ -148,7 +148,14 @@ async def send_message_to_channel(
@tool(
requires_auth=Slack(
scopes=["channels:read", "groups:read", "im:read", "mpim:read"],
scopes=[
"channels:read",
"groups:read",
"im:read",
"mpim:read",
"users:read",
"users:read.email",
],
)
)
async def get_members_in_conversation_by_id(
@ -201,7 +208,14 @@ async def get_members_in_conversation_by_id(
@tool(
requires_auth=Slack(
scopes=["channels:read", "groups:read", "im:read", "mpim:read"],
scopes=[
"channels:read",
"groups:read",
"im:read",
"mpim:read",
"users:read",
"users:read.email",
],
)
)
async def get_members_in_conversation_by_name(
@ -351,7 +365,16 @@ async def get_messages_in_conversation_by_id(
# can avoid exposing this arg to the LLM.
@tool(
requires_auth=Slack(
scopes=["channels:history", "groups:history", "im:history", "mpim:history"],
scopes=[
"channels:history",
"channels:read",
"groups:history",
"groups:read",
"im:history",
"im:read",
"mpim:history",
"mpim:read",
],
)
)
async def get_messages_in_channel_by_name(

View file

@ -1,6 +1,6 @@
[tool.poetry]
name = "arcade_slack"
version = "0.2.1"
version = "0.2.2"
description = "Slack tools for LLMs"
authors = ["Arcade <dev@arcade.dev>"]