From 3d9000495cb76b44a80104b3688c4a4975d98677 Mon Sep 17 00:00:00 2001 From: Vini Brasil Date: Tue, 22 Apr 2025 13:09:30 -0300 Subject: [PATCH] Change CLI tool publish message (#2662) --- src/crewai/cli/tools/main.py | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/src/crewai/cli/tools/main.py b/src/crewai/cli/tools/main.py index b2d2cec99..8fbe1948b 100644 --- a/src/crewai/cli/tools/main.py +++ b/src/crewai/cli/tools/main.py @@ -117,7 +117,9 @@ class ToolCommand(BaseCommand, PlusAPIMixin): published_handle = publish_response.json()["handle"] console.print( - f"Successfully published {published_handle} ({project_version}).\nInstall it in other projects with crewai tool install {published_handle}", + f"Successfully published `{published_handle}` ({project_version}).\n\n" + + "⚠️ Security checks are running in the background. Your tool will be available once these are complete.\n" + + f"You can monitor the status or access your tool here:\nhttps://app.crewai.com/crewai_plus/tools/{published_handle}", style="bold green", ) @@ -153,8 +155,12 @@ class ToolCommand(BaseCommand, PlusAPIMixin): login_response_json = login_response.json() settings = Settings() - settings.tool_repository_username = login_response_json["credential"]["username"] - settings.tool_repository_password = login_response_json["credential"]["password"] + settings.tool_repository_username = login_response_json["credential"][ + "username" + ] + settings.tool_repository_password = login_response_json["credential"][ + "password" + ] settings.dump() console.print( @@ -179,7 +185,7 @@ class ToolCommand(BaseCommand, PlusAPIMixin): capture_output=False, env=self._build_env_with_credentials(repository_handle), text=True, - check=True + check=True, ) if add_package_result.stderr: @@ -204,7 +210,11 @@ class ToolCommand(BaseCommand, PlusAPIMixin): settings = Settings() env = os.environ.copy() - env[f"UV_INDEX_{repository_handle}_USERNAME"] = str(settings.tool_repository_username or "") - env[f"UV_INDEX_{repository_handle}_PASSWORD"] = str(settings.tool_repository_password or "") + env[f"UV_INDEX_{repository_handle}_USERNAME"] = str( + settings.tool_repository_username or "" + ) + env[f"UV_INDEX_{repository_handle}_PASSWORD"] = str( + settings.tool_repository_password or "" + ) return env