mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-11 00:58:30 +00:00
Change CLI tool publish message (#2662)
This commit is contained in:
@@ -117,7 +117,9 @@ class ToolCommand(BaseCommand, PlusAPIMixin):
|
|||||||
|
|
||||||
published_handle = publish_response.json()["handle"]
|
published_handle = publish_response.json()["handle"]
|
||||||
console.print(
|
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",
|
style="bold green",
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -153,8 +155,12 @@ class ToolCommand(BaseCommand, PlusAPIMixin):
|
|||||||
login_response_json = login_response.json()
|
login_response_json = login_response.json()
|
||||||
|
|
||||||
settings = Settings()
|
settings = Settings()
|
||||||
settings.tool_repository_username = login_response_json["credential"]["username"]
|
settings.tool_repository_username = login_response_json["credential"][
|
||||||
settings.tool_repository_password = login_response_json["credential"]["password"]
|
"username"
|
||||||
|
]
|
||||||
|
settings.tool_repository_password = login_response_json["credential"][
|
||||||
|
"password"
|
||||||
|
]
|
||||||
settings.dump()
|
settings.dump()
|
||||||
|
|
||||||
console.print(
|
console.print(
|
||||||
@@ -179,7 +185,7 @@ class ToolCommand(BaseCommand, PlusAPIMixin):
|
|||||||
capture_output=False,
|
capture_output=False,
|
||||||
env=self._build_env_with_credentials(repository_handle),
|
env=self._build_env_with_credentials(repository_handle),
|
||||||
text=True,
|
text=True,
|
||||||
check=True
|
check=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
if add_package_result.stderr:
|
if add_package_result.stderr:
|
||||||
@@ -204,7 +210,11 @@ class ToolCommand(BaseCommand, PlusAPIMixin):
|
|||||||
settings = Settings()
|
settings = Settings()
|
||||||
|
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
env[f"UV_INDEX_{repository_handle}_USERNAME"] = str(settings.tool_repository_username or "")
|
env[f"UV_INDEX_{repository_handle}_USERNAME"] = str(
|
||||||
env[f"UV_INDEX_{repository_handle}_PASSWORD"] = str(settings.tool_repository_password or "")
|
settings.tool_repository_username or ""
|
||||||
|
)
|
||||||
|
env[f"UV_INDEX_{repository_handle}_PASSWORD"] = str(
|
||||||
|
settings.tool_repository_password or ""
|
||||||
|
)
|
||||||
|
|
||||||
return env
|
return env
|
||||||
|
|||||||
Reference in New Issue
Block a user