mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-11 00:58:30 +00:00
preparing enw version with deploy
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "crewai"
|
name = "crewai"
|
||||||
version = "0.55.1"
|
version = "0.55.2"
|
||||||
description = "Cutting-edge framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks."
|
description = "Cutting-edge framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks."
|
||||||
authors = ["Joao Moura <joao@crewai.com>"]
|
authors = ["Joao Moura <joao@crewai.com>"]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
ALGORITHMS = ["RS256"]
|
ALGORITHMS = ["RS256"]
|
||||||
AUTH0_DOMAIN = "dev-jzsr0j8zs0atl5ha.us.auth0.com"
|
AUTH0_DOMAIN = "crewai.us.auth0.com"
|
||||||
AUTH0_CLIENT_ID = "CZtyRHuVW80HbLSjk4ggXNzjg4KAt7Oe"
|
AUTH0_CLIENT_ID = "DEVC5Fw6NlRoSzmDCcOhVq85EfLBjKa8"
|
||||||
AUTH0_AUDIENCE = "https://dev-jzsr0j8zs0atl5ha.us.auth0.com/api/v2/"
|
AUTH0_AUDIENCE = "https://crewai.us.auth0.com/api/v2/"
|
||||||
|
|||||||
@@ -203,10 +203,11 @@ def deploy():
|
|||||||
|
|
||||||
|
|
||||||
@deploy.command(name="create")
|
@deploy.command(name="create")
|
||||||
def deploy_create():
|
@click.option("-y", "--yes", is_flag=True, help="Skip the confirmation prompt")
|
||||||
|
def deploy_create(yes: bool):
|
||||||
"""Create a Crew deployment."""
|
"""Create a Crew deployment."""
|
||||||
deploy_cmd = DeployCommand()
|
deploy_cmd = DeployCommand()
|
||||||
deploy_cmd.create_crew()
|
deploy_cmd.create_crew(yes)
|
||||||
|
|
||||||
|
|
||||||
@deploy.command(name="list")
|
@deploy.command(name="list")
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ class DeployCommand:
|
|||||||
else:
|
else:
|
||||||
self._handle_error(json_response)
|
self._handle_error(json_response)
|
||||||
|
|
||||||
def create_crew(self) -> None:
|
def create_crew(self, confirm: bool) -> None:
|
||||||
"""
|
"""
|
||||||
Create a new crew deployment.
|
Create a new crew deployment.
|
||||||
"""
|
"""
|
||||||
@@ -136,7 +136,7 @@ class DeployCommand:
|
|||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
self._confirm_input(env_vars, remote_repo_url)
|
self._confirm_input(env_vars, remote_repo_url, confirm)
|
||||||
payload = self._create_payload(env_vars, remote_repo_url)
|
payload = self._create_payload(env_vars, remote_repo_url)
|
||||||
|
|
||||||
response = self.client.create_crew(payload)
|
response = self.client.create_crew(payload)
|
||||||
@@ -145,18 +145,22 @@ class DeployCommand:
|
|||||||
else:
|
else:
|
||||||
self._handle_error(response.json())
|
self._handle_error(response.json())
|
||||||
|
|
||||||
def _confirm_input(self, env_vars: Dict[str, str], remote_repo_url: str) -> None:
|
def _confirm_input(
|
||||||
|
self, env_vars: Dict[str, str], remote_repo_url: str, confirm: bool
|
||||||
|
) -> None:
|
||||||
"""
|
"""
|
||||||
Confirm input parameters with the user.
|
Confirm input parameters with the user.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
env_vars (Dict[str, str]): Environment variables.
|
env_vars (Dict[str, str]): Environment variables.
|
||||||
remote_repo_url (str): Remote repository URL.
|
remote_repo_url (str): Remote repository URL.
|
||||||
|
confirm (bool): Whether to confirm input.
|
||||||
"""
|
"""
|
||||||
input(f"Press Enter to continue with the following Env vars: {env_vars}")
|
if not confirm:
|
||||||
input(
|
input(f"Press Enter to continue with the following Env vars: {env_vars}")
|
||||||
f"Press Enter to continue with the following remote repository: {remote_repo_url}\n"
|
input(
|
||||||
)
|
f"Press Enter to continue with the following remote repository: {remote_repo_url}\n"
|
||||||
|
)
|
||||||
|
|
||||||
def _create_payload(
|
def _create_payload(
|
||||||
self,
|
self,
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ authors = ["Your Name <you@example.com>"]
|
|||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = ">=3.10,<=3.13"
|
python = ">=3.10,<=3.13"
|
||||||
crewai = { extras = ["tools"], version = ">=0.55.1,<1.0.0" }
|
crewai = { extras = ["tools"], version = ">=0.55.2,<1.0.0" }
|
||||||
|
|
||||||
|
|
||||||
[tool.poetry.scripts]
|
[tool.poetry.scripts]
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ authors = ["Your Name <you@example.com>"]
|
|||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = ">=3.10,<=3.13"
|
python = ">=3.10,<=3.13"
|
||||||
crewai = { extras = ["tools"], version = ">=0.55.1,<1.0.0" }
|
crewai = { extras = ["tools"], version = ">=0.55.2,<1.0.0" }
|
||||||
asyncio = "*"
|
asyncio = "*"
|
||||||
|
|
||||||
[tool.poetry.scripts]
|
[tool.poetry.scripts]
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ authors = ["Your Name <you@example.com>"]
|
|||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = ">=3.10,<=3.13"
|
python = ">=3.10,<=3.13"
|
||||||
crewai = { extras = ["tools"], version = ">=0.55.1,<1.0.0" }
|
crewai = { extras = ["tools"], version = ">=0.55.2,<1.0.0" }
|
||||||
|
|
||||||
|
|
||||||
[tool.poetry.scripts]
|
[tool.poetry.scripts]
|
||||||
|
|||||||
Reference in New Issue
Block a user