shu/fix cli (#2086)

This commit is contained in:
Shuchang Zheng
2025-04-03 03:20:40 -04:00
committed by GitHub
parent 8c664adbec
commit 293f01a014
2 changed files with 7 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "skyvern" name = "skyvern"
version = "0.1.70" version = "0.1.71"
description = "" description = ""
authors = ["Skyvern AI <info@skyvern.com>"] authors = ["Skyvern AI <info@skyvern.com>"]
readme = "README.md" readme = "README.md"
@@ -142,4 +142,4 @@ module-root = "skyvern"
tests-root = "codeflash-tests" tests-root = "codeflash-tests"
test-framework = "pytest" test-framework = "pytest"
ignore-paths = ["skyvern/client"] ignore-paths = ["skyvern/client"]
formatter-cmds = ["ruff check --exit-zero --fix $file", "ruff format $file"] formatter-cmds = ["ruff check --exit-zero --fix $file", "ruff format $file"]

View File

@@ -404,7 +404,10 @@ async def _setup_local_organization() -> str:
""" """
Returns the API key for the local organization generated Returns the API key for the local organization generated
""" """
skyvern_agent = SkyvernAgent() skyvern_agent = SkyvernAgent(
base_url=settings.SKYVERN_BASE_URL,
api_key=settings.SKYVERN_API_KEY,
)
organization = await skyvern_agent.get_organization() organization = await skyvern_agent.get_organization()
org_auth_token = await app.DATABASE.get_valid_org_auth_token( org_auth_token = await app.DATABASE.get_valid_org_auth_token(
@@ -693,6 +696,7 @@ def setup_mcp() -> None:
@run_app.command(name="server") @run_app.command(name="server")
def run_server() -> None: def run_server() -> None:
load_dotenv() load_dotenv()
load_dotenv(".env")
from skyvern.config import settings from skyvern.config import settings
port = settings.PORT port = settings.PORT