Skip to content

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.

Change CLI tool publish message (#2662)

Vini Brasil3d9000495cb7
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