Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
chore: Add GPT-5.4 mini model support (#5782)
Andrew Neilsonc321bd60d76a
diff --git a/docs/developers/self-hosted/docker.mdx b/docs/developers/self-hosted/docker.mdxindex d0c60e9f0..bcb28d3c2 100644--- a/docs/developers/self-hosted/docker.mdx+++ b/docs/developers/self-hosted/docker.mdx@@ -170,6 +170,22 @@ Docker Compose mounts several directories for persistent storage:The `.env` file controls the Skyvern server. Here are the most important variables grouped by purpose.+### Environment files++`docker-compose.yml` uses TWO sources for service environment:++1. **Inline `environment:` block** — compose-network values that depend on the docker network topology. Examples: `DATABASE_STRING=postgresql+psycopg://skyvern:skyvern@postgres:5432/skyvern` (the `postgres` hostname only resolves inside the compose network), `BROWSER_TYPE`, `ENABLE_CODE_BLOCK`.++2. **`env_file: .env`** — user secrets (LLM API keys, etc.).++**Do not move `DATABASE_STRING` from compose into `.env`.** The `.env.example` shipped with the repo uses a `localhost` host that points at the backend container itself when used inside compose — moving that value into `.env` will break the database connection.++If you have an existing `.env` from a pre-1.0.32 `skyvern quickstart` run, it may contain a leftover `DATABASE_STRING=postgresql+psycopg://skyvern@localhost/skyvern` line. Remove it:++```bash+sed -i.bak '/^DATABASE_STRING.*localhost/d' .env+```+### LLM ConfigurationConfigure at least one LLM provider. See [LLM Configuration](/developers/self-hosted/llm-configuration) for all providers.diff --git a/docs/developers/self-hosted/overview.mdx b/docs/developers/self-hosted/overview.mdxindex ebd0db90d..d5ed59e77 100644--- a/docs/developers/self-hosted/overview.mdx+++ b/docs/developers/self-hosted/overview.mdx@@ -84,7 +84,9 @@ Before deploying, ensure you have:</Step></Steps>-PostgreSQL 14+ is included in the Docker Compose setup. If you prefer an external database, you can configure `DATABASE_STRING` to point to your own instance.+PostgreSQL 14+ is included in the Docker Compose setup. If you prefer an external database, configure `DATABASE_STRING` to point to your own instance.++For the `pip install skyvern` path (Option A in the README), the default is a SQLite database at `~/.skyvern/data.db` — zero-config for local dev. To opt into Postgres for the pip path, run `skyvern quickstart --database-string=postgresql+psycopg://user:pass@host:5432/dbname`.## Choose your deployment methoddiff --git a/pyproject.toml b/pyproject.tomlindex 647c441f1..feff2253e 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -1,6 +1,6 @@[project]name = "skyvern"-version = "1.0.32"+version = "1.0.31"description = ""authors = [{ name = "Skyvern AI", email = "[email protected]" }]requires-python = ">=3.11,<3.14"diff --git a/skyvern/cli/quickstart.py b/skyvern/cli/quickstart.pyindex 50c8767d6..52482838a 100644--- a/skyvern/cli/quickstart.py+++ b/skyvern/cli/quickstart.py@@ -1,7 +1,6 @@"""Quickstart command for Skyvern CLI."""import asyncio-import shutilimport subprocessfrom pathlib import Path@@ -71,73 +70,6 @@ def check_postgres_container_conflict() -> bool:return False-_COMPOSE_DATABASE_STRING = "postgresql+psycopg://skyvern:skyvern@postgres:5432/skyvern"---def _bootstrap_compose_env_files() -> None:- """Copy `.env.example` and `skyvern-frontend/.env.example` into place when missing, and rewrite a localhost-pointing `DATABASE_STRING` to the compose-network value."""- bootstrapped: list[tuple[str, str]] = []-- backend_env = Path(".env")- backend_example = Path(".env.example")- if not backend_env.exists() and backend_example.exists():- shutil.copyfile(backend_example, backend_env)- bootstrapped.append((str(backend_env), "edit it to set your LLM API keys before continuing"))-- frontend_env = Path("skyvern-frontend/.env")- frontend_example = Path("skyvern-frontend/.env.example")- if not frontend_env.exists() and frontend_example.exists():- shutil.copyfile(frontend_example, frontend_env)- bootstrapped.append((str(frontend_env), "no edits required"))-- if bootstrapped:- console.print(- Panel(- "[green]Created from .env.example:[/green]\n"- + "\n".join(f" • [cyan]{path}[/cyan] — {note}" for path, note in bootstrapped),- border_style="green",- )- )-- if not backend_env.exists():- return-- content = backend_env.read_text()- if "DATABASE_STRING" not in content or "localhost" not in content:- return-- bad_lines = [- line for line in content.splitlines() if line.strip().startswith("DATABASE_STRING") and "localhost" in line- ]- if not bad_lines:- return-- console.print(- Panel(- "[bold yellow]Warning:[/bold yellow] Your [cyan].env[/cyan] sets [bold]DATABASE_STRING[/bold] to a "- "[yellow]localhost[/yellow] URL. Inside the docker compose network that points at the backend "- "container, not the postgres service. Update it to:\n"- f" [green]{_COMPOSE_DATABASE_STRING}[/green]",- border_style="yellow",- )- )- if not Confirm.ask("Update DATABASE_STRING in .env now?", default=True):- return-- replaced = False- new_lines: list[str] = []- for line in content.splitlines():- if line.strip().startswith("DATABASE_STRING") and "localhost" in line:- if not replaced:- new_lines.append(f'DATABASE_STRING="{_COMPOSE_DATABASE_STRING}"')- replaced = True- continue- new_lines.append(line)-- backend_env.write_text("\n".join(new_lines) + "\n")- console.print("✅ [green]Updated DATABASE_STRING for the compose network.[/green]")--def run_docker_compose_setup() -> None:"""Run the Docker Compose setup for Skyvern."""console.print("\n[bold blue]Setting up Skyvern with Docker Compose...[/bold blue]")@@ -173,8 +105,6 @@ def run_docker_compose_setup() -> None:)raise typer.Exit(0)- _bootstrap_compose_env_files()-# Configure LLM providerconsole.print("\n[bold blue]Step 1: Configure LLM Provider[/bold blue]")setup_llm_providers()diff --git a/skyvern/client/__init__.py b/skyvern/client/__init__.pyindex c4480c924..5211c3a5d 100644--- a/skyvern/client/__init__.py+++ b/skyvern/client/__init__.py@@ -168,7 +168,6 @@ if typing.TYPE_CHECKING:ForLoopBlockLoopBlocksItem_UploadToS3,ForLoopBlockLoopBlocksItem_Validation,ForLoopBlockLoopBlocksItem_Wait,- ForLoopBlockLoopBlocksItem_WhileLoop,ForLoopBlockLoopBlocksItem_WorkflowTrigger,ForLoopBlockLoopOver,ForLoopBlockLoopOver_AwsSecret,@@ -435,63 +434,6 @@ if typing.TYPE_CHECKING:WaitBlockParametersItem_Output,WaitBlockParametersItem_Workflow,WaitBlockYaml,- WhileLoopBlock,- WhileLoopBlockCondition,- WhileLoopBlockCondition_Jinja2Template,- WhileLoopBlockCondition_Prompt,- WhileLoopBlockLoopBlocksItem,- WhileLoopBlockLoopBlocksItem_Action,- WhileLoopBlockLoopBlocksItem_Code,- WhileLoopBlockLoopBlocksItem_Conditional,- WhileLoopBlockLoopBlocksItem_DownloadToS3,- WhileLoopBlockLoopBlocksItem_Extraction,- WhileLoopBlockLoopBlocksItem_FileDownload,- WhileLoopBlockLoopBlocksItem_FileUpload,- WhileLoopBlockLoopBlocksItem_FileUrlParser,- WhileLoopBlockLoopBlocksItem_ForLoop,- WhileLoopBlockLoopBlocksItem_GotoUrl,- WhileLoopBlockLoopBlocksItem_HttpRequest,- WhileLoopBlockLoopBlocksItem_HumanInteraction,- WhileLoopBlockLoopBlocksItem_Login,- WhileLoopBlockLoopBlocksItem_Navigation,- WhileLoopBlockLoopBlocksItem_PdfParser,- WhileLoopBlockLoopBlocksItem_PrintPage,- WhileLoopBlockLoopBlocksItem_SendEmail,- WhileLoopBlockLoopBlocksItem_Task,- WhileLoopBlockLoopBlocksItem_TaskV2,- WhileLoopBlockLoopBlocksItem_TextPrompt,- WhileLoopBlockLoopBlocksItem_UploadToS3,- WhileLoopBlockLoopBlocksItem_Validation,- WhileLoopBlockLoopBlocksItem_Wait,- WhileLoopBlockLoopBlocksItem_WhileLoop,- WhileLoopBlockLoopBlocksItem_WorkflowTrigger,- WhileLoopBlockYaml,- WhileLoopBlockYamlLoopBlocksItem,- WhileLoopBlockYamlLoopBlocksItem_Action,- WhileLoopBlockYamlLoopBlocksItem_Code,- WhileLoopBlockYamlLoopBlocksItem_Conditional,- WhileLoopBlockYamlLoopBlocksItem_DownloadToS3,- WhileLoopBlockYamlLoopBlocksItem_Extraction,- WhileLoopBlockYamlLoopBlocksItem_FileDownload,- WhileLoopBlockYamlLoopBlocksItem_FileUpload,- WhileLoopBlockYamlLoopBlocksItem_FileUrlParser,- WhileLoopBlockYamlLoopBlocksItem_ForLoop,- WhileLoopBlockYamlLoopBlocksItem_GotoUrl,- WhileLoopBlockYamlLoopBlocksItem_HttpRequest,- WhileLoopBlockYamlLoopBlocksItem_HumanInteraction,- WhileLoopBlockYamlLoopBlocksItem_Login,- WhileLoopBlockYamlLoopBlocksItem_Navigation,- WhileLoopBlockYamlLoopBlocksItem_PdfParser,- WhileLoopBlockYamlLoopBlocksItem_PrintPage,- WhileLoopBlockYamlLoopBlocksItem_SendEmail,- WhileLoopBlockYamlLoopBlocksItem_Task,- WhileLoopBlockYamlLoopBlocksItem_TaskV2,- WhileLoopBlockYamlLoopBlocksItem_TextPrompt,- WhileLoopBlockYamlLoopBlocksItem_UploadToS3,- WhileLoopBlockYamlLoopBlocksItem_Validation,- WhileLoopBlockYamlLoopBlocksItem_Wait,- WhileLoopBlockYamlLoopBlocksItem_WhileLoop,- WhileLoopBlockYamlLoopBlocksItem_WorkflowTrigger,Workflow,WorkflowCreateYamlRequest,WorkflowCreateYamlRequestProxyLocation,@@ -520,7 +462,6 @@ if typing.TYPE_CHECKING:WorkflowDefinitionBlocksItem_UploadToS3,WorkflowDefinitionBlocksItem_Validation,WorkflowDefinitionBlocksItem_Wait,- WorkflowDefinitionBlocksItem_WhileLoop,WorkflowDefinitionBlocksItem_WorkflowTrigger,WorkflowDefinitionParametersItem,WorkflowDefinitionParametersItem_AwsSecret,@@ -559,7 +500,6 @@ if typing.TYPE_CHECKING:WorkflowDefinitionYamlBlocksItem_UploadToS3,WorkflowDefinitionYamlBlocksItem_Validation,WorkflowDefinitionYamlBlocksItem_Wait,- WorkflowDefinitionYamlBlocksItem_WhileLoop,WorkflowDefinitionYamlBlocksItem_WorkflowTrigger,WorkflowDefinitionYamlParametersItem,WorkflowDefinitionYamlParametersItem_AwsSecret,@@ -784,7 +724,6 @@ _dynamic_imports: typing.Dict[str, str] = {"ForLoopBlockLoopBlocksItem_UploadToS3": ".types","ForLoopBlockLoopBlocksItem_Validation": ".types","ForLoopBlockLoopBlocksItem_Wait": ".types",- "ForLoopBlockLoopBlocksItem_WhileLoop": ".types","ForLoopBlockLoopBlocksItem_WorkflowTrigger": ".types","ForLoopBlockLoopOver": ".types","ForLoopBlockLoopOver_AwsSecret": ".types",@@ -1057,63 +996,6 @@ _dynamic_imports: typing.Dict[str, str] = {"WaitBlockParametersItem_Output": ".types","WaitBlockParametersItem_Workflow": ".types","WaitBlockYaml": ".types",- "WhileLoopBlock": ".types",- "WhileLoopBlockCondition": ".types",- "WhileLoopBlockCondition_Jinja2Template": ".types",- "WhileLoopBlockCondition_Prompt": ".types",- "WhileLoopBlockLoopBlocksItem": ".types",- "WhileLoopBlockLoopBlocksItem_Action": ".types",- "WhileLoopBlockLoopBlocksItem_Code": ".types",- "WhileLoopBlockLoopBlocksItem_Conditional": ".types",- "WhileLoopBlockLoopBlocksItem_DownloadToS3": ".types",- "WhileLoopBlockLoopBlocksItem_Extraction": ".types",- "WhileLoopBlockLoopBlocksItem_FileDownload": ".types",- "WhileLoopBlockLoopBlocksItem_FileUpload": ".types",- "WhileLoopBlockLoopBlocksItem_FileUrlParser": ".types",- "WhileLoopBlockLoopBlocksItem_ForLoop": ".types",- "WhileLoopBlockLoopBlocksItem_GotoUrl": ".types",- "WhileLoopBlockLoopBlocksItem_HttpRequest": ".types",- "WhileLoopBlockLoopBlocksItem_HumanInteraction": ".types",- "WhileLoopBlockLoopBlocksItem_Login": ".types",- "WhileLoopBlockLoopBlocksItem_Navigation": ".types",- "WhileLoopBlockLoopBlocksItem_PdfParser": ".types",- "WhileLoopBlockLoopBlocksItem_PrintPage": ".types",- "WhileLoopBlockLoopBlocksItem_SendEmail": ".types",- "WhileLoopBlockLoopBlocksItem_Task": ".types",- "WhileLoopBlockLoopBlocksItem_TaskV2": ".types",- "WhileLoopBlockLoopBlocksItem_TextPrompt": ".types",- "WhileLoopBlockLoopBlocksItem_UploadToS3": ".types",- "WhileLoopBlockLoopBlocksItem_Validation": ".types",- "WhileLoopBlockLoopBlocksItem_Wait": ".types",- "WhileLoopBlockLoopBlocksItem_WhileLoop": ".types",- "WhileLoopBlockLoopBlocksItem_WorkflowTrigger": ".types",- "WhileLoopBlockYaml": ".types",- "WhileLoopBlockYamlLoopBlocksItem": ".types",- "WhileLoopBlockYamlLoopBlocksItem_Action": ".types",- "WhileLoopBlockYamlLoopBlocksItem_Code": ".types",- "WhileLoopBlockYamlLoopBlocksItem_Conditional": ".types",- "WhileLoopBlockYamlLoopBlocksItem_DownloadToS3": ".types",- "WhileLoopBlockYamlLoopBlocksItem_Extraction": ".types",- "WhileLoopBlockYamlLoopBlocksItem_FileDownload": ".types",- "WhileLoopBlockYamlLoopBlocksItem_FileUpload": ".types",- "WhileLoopBlockYamlLoopBlocksItem_FileUrlParser": ".types",- "WhileLoopBlockYamlLoopBlocksItem_ForLoop": ".types",- "WhileLoopBlockYamlLoopBlocksItem_GotoUrl": ".types",- "WhileLoopBlockYamlLoopBlocksItem_HttpRequest": ".types",- "WhileLoopBlockYamlLoopBlocksItem_HumanInteraction": ".types",- "WhileLoopBlockYamlLoopBlocksItem_Login": ".types",- "WhileLoopBlockYamlLoopBlocksItem_Navigation": ".types",- "WhileLoopBlockYamlLoopBlocksItem_PdfParser": ".types",- "WhileLoopBlockYamlLoopBlocksItem_PrintPage": ".types",- "WhileLoopBlockYamlLoopBlocksItem_SendEmail": ".types",- "WhileLoopBlockYamlLoopBlocksItem_Task": ".types",- "WhileLoopBlockYamlLoopBlocksItem_TaskV2": ".types",- "WhileLoopBlockYamlLoopBlocksItem_TextPrompt": ".types",- "WhileLoopBlockYamlLoopBlocksItem_UploadToS3": ".types",- "WhileLoopBlockYamlLoopBlocksItem_Validation": ".types",- "WhileLoopBlockYamlLoopBlocksItem_Wait": ".types",- "WhileLoopBlockYamlLoopBlocksItem_WhileLoop": ".types",- "WhileLoopBlockYamlLoopBlocksItem_WorkflowTrigger": ".types","Workflow": ".types","WorkflowCreateYamlRequest": ".types","WorkflowCreateYamlRequestProxyLocation": ".types",@@ -1142,7 +1024,6 @@ _dynamic_imports: typing.Dict[str, str] = {"WorkflowDefinitionBlocksItem_UploadToS3": ".types","WorkflowDefinitionBlocksItem_Validation": ".types","WorkflowDefinitionBlocksItem_Wait": ".types",- "WorkflowDefinitionBlocksItem_WhileLoop": ".types","WorkflowDefinitionBlocksItem_WorkflowTrigger": ".types","WorkflowDefinitionParametersItem": ".types","WorkflowDefinitionParametersItem_AwsSecret": ".types",@@ -1181,7 +1062,6 @@ _dynamic_imports: typing.Dict[str, str] = {"WorkflowDefinitionYamlBlocksItem_UploadToS3": ".types","WorkflowDefinitionYamlBlocksItem_Validation": ".types","WorkflowDefinitionYamlBlocksItem_Wait": ".types",- "WorkflowDefinitionYamlBlocksItem_WhileLoop": ".types","WorkflowDefinitionYamlBlocksItem_WorkflowTrigger": ".types","WorkflowDefinitionYamlParametersItem": ".types","WorkflowDefinitionYamlParametersItem_AwsSecret": ".types",@@ -1427,7 +1307,6 @@ __all__ = ["ForLoopBlockLoopBlocksItem_UploadToS3","ForLoopBlockLoopBlocksItem_Validation","ForLoopBlockLoopBlocksItem_Wait",- "ForLoopBlockLoopBlocksItem_WhileLoop","ForLoopBlockLoopBlocksItem_WorkflowTrigger","ForLoopBlockLoopOver","ForLoopBlockLoopOver_AwsSecret",@@ -1700,63 +1579,6 @@ __all__ = ["WaitBlockParametersItem_Output","WaitBlockParametersItem_Workflow","WaitBlockYaml",- "WhileLoopBlock",- "WhileLoopBlockCondition",- "WhileLoopBlockCondition_Jinja2Template",- "WhileLoopBlockCondition_Prompt",- "WhileLoopBlockLoopBlocksItem",- "WhileLoopBlockLoopBlocksItem_Action",- "WhileLoopBlockLoopBlocksItem_Code",- "WhileLoopBlockLoopBlocksItem_Conditional",- "WhileLoopBlockLoopBlocksItem_DownloadToS3",- "WhileLoopBlockLoopBlocksItem_Extraction",- "WhileLoopBlockLoopBlocksItem_FileDownload",- "WhileLoopBlockLoopBlocksItem_FileUpload",- "WhileLoopBlockLoopBlocksItem_FileUrlParser",- "WhileLoopBlockLoopBlocksItem_ForLoop",- "WhileLoopBlockLoopBlocksItem_GotoUrl",- "WhileLoopBlockLoopBlocksItem_HttpRequest",- "WhileLoopBlockLoopBlocksItem_HumanInteraction",- "WhileLoopBlockLoopBlocksItem_Login",- "WhileLoopBlockLoopBlocksItem_Navigation",- "WhileLoopBlockLoopBlocksItem_PdfParser",- "WhileLoopBlockLoopBlocksItem_PrintPage",- "WhileLoopBlockLoopBlocksItem_SendEmail",- "WhileLoopBlockLoopBlocksItem_Task",- "WhileLoopBlockLoopBlocksItem_TaskV2",- "WhileLoopBlockLoopBlocksItem_TextPrompt",- "WhileLoopBlockLoopBlocksItem_UploadToS3",- "WhileLoopBlockLoopBlocksItem_Validation",- "WhileLoopBlockLoopBlocksItem_Wait",- "WhileLoopBlockLoopBlocksItem_WhileLoop",- "WhileLoopBlockLoopBlocksItem_WorkflowTrigger",- "WhileLoopBlockYaml",- "WhileLoopBlockYamlLoopBlocksItem",- "WhileLoopBlockYamlLoopBlocksItem_Action",- "WhileLoopBlockYamlLoopBlocksItem_Code",- "WhileLoopBlockYamlLoopBlocksItem_Conditional",- "WhileLoopBlockYamlLoopBlocksItem_DownloadToS3",- "WhileLoopBlockYamlLoopBlocksItem_Extraction",- "WhileLoopBlockYamlLoopBlocksItem_FileDownload",- "WhileLoopBlockYamlLoopBlocksItem_FileUpload",- "WhileLoopBlockYamlLoopBlocksItem_FileUrlParser",- "WhileLoopBlockYamlLoopBlocksItem_ForLoop",- "WhileLoopBlockYamlLoopBlocksItem_GotoUrl",- "WhileLoopBlockYamlLoopBlocksItem_HttpRequest",- "WhileLoopBlockYamlLoopBlocksItem_HumanInteraction",- "WhileLoopBlockYamlLoopBlocksItem_Login",- "WhileLoopBlockYamlLoopBlocksItem_Navigation",- "WhileLoopBlockYamlLoopBlocksItem_PdfParser",- "WhileLoopBlockYamlLoopBlocksItem_PrintPage",- "WhileLoopBlockYamlLoopBlocksItem_SendEmail",- "WhileLoopBlockYamlLoopBlocksItem_Task",- "WhileLoopBlockYamlLoopBlocksItem_TaskV2",- "WhileLoopBlockYamlLoopBlocksItem_TextPrompt",- "WhileLoopBlockYamlLoopBlocksItem_UploadToS3",- "WhileLoopBlockYamlLoopBlocksItem_Validation",- "WhileLoopBlockYamlLoopBlocksItem_Wait",- "WhileLoopBlockYamlLoopBlocksItem_WhileLoop",- "WhileLoopBlockYamlLoopBlocksItem_WorkflowTrigger","Workflow","WorkflowCreateYamlRequest","WorkflowCreateYamlRequestProxyLocation",@@ -1785,7 +1607,6 @@ __all__ = ["WorkflowDefinitionBlocksItem_UploadToS3","WorkflowDefinitionBlocksItem_Validation","WorkflowDefinitionBlocksItem_Wait",- "WorkflowDefinitionBlocksItem_WhileLoop","WorkflowDefinitionBlocksItem_WorkflowTrigger","WorkflowDefinitionParametersItem","WorkflowDefinitionParametersItem_AwsSecret",@@ -1824,7 +1645,6 @@ __all__ = ["WorkflowDefinitionYamlBlocksItem_UploadToS3","WorkflowDefinitionYamlBlocksItem_Validation","WorkflowDefinitionYamlBlocksItem_Wait",- "WorkflowDefinitionYamlBlocksItem_WhileLoop","WorkflowDefinitionYamlBlocksItem_WorkflowTrigger","WorkflowDefinitionYamlParametersItem","WorkflowDefinitionYamlParametersItem_AwsSecret",diff --git a/skyvern/client/core/client_wrapper.py b/skyvern/client/core/client_wrapper.pyindex 16a2916da..222726377 100644--- a/skyvern/client/core/client_wrapper.py+++ b/skyvern/client/core/client_wrapper.py@@ -22,10 +22,10 @@ class BaseClientWrapper:def get_headers(self) -> typing.Dict[str, str]:headers: typing.Dict[str, str] = {- "User-Agent": "skyvern/1.0.32",+ "User-Agent": "skyvern/1.0.31","X-Fern-Language": "Python","X-Fern-SDK-Name": "skyvern",- "X-Fern-SDK-Version": "1.0.32",+ "X-Fern-SDK-Version": "1.0.31",**(self.get_custom_headers() or {}),}if self._api_key is not None:diff --git a/skyvern/client/types/__init__.py b/skyvern/client/types/__init__.pyindex 813f333b8..38799a4df 100644--- a/skyvern/client/types/__init__.py+++ b/skyvern/client/types/__init__.py@@ -224,6 +224,7 @@ if typing.TYPE_CHECKING:ForLoopBlockYamlLoopBlocksItem_UploadToS3,ForLoopBlockYamlLoopBlocksItem_Validation,ForLoopBlockYamlLoopBlocksItem_Wait,+ ForLoopBlockYamlLoopBlocksItem_WhileLoop,ForLoopBlockYamlLoopBlocksItem_WorkflowTrigger,)from .geo_target import GeoTarget@@ -871,6 +872,7 @@ _dynamic_imports: typing.Dict[str, str] = {"ForLoopBlockYamlLoopBlocksItem_UploadToS3": ".for_loop_block_yaml_loop_blocks_item","ForLoopBlockYamlLoopBlocksItem_Validation": ".for_loop_block_yaml_loop_blocks_item","ForLoopBlockYamlLoopBlocksItem_Wait": ".for_loop_block_yaml_loop_blocks_item",+ "ForLoopBlockYamlLoopBlocksItem_WhileLoop": ".for_loop_block_yaml_loop_blocks_item","ForLoopBlockYamlLoopBlocksItem_WorkflowTrigger": ".for_loop_block_yaml_loop_blocks_item","GeoTarget": ".geo_target","GetRunResponse": ".get_run_response",@@ -1501,6 +1503,7 @@ __all__ = ["ForLoopBlockYamlLoopBlocksItem_UploadToS3","ForLoopBlockYamlLoopBlocksItem_Validation","ForLoopBlockYamlLoopBlocksItem_Wait",+ "ForLoopBlockYamlLoopBlocksItem_WhileLoop","ForLoopBlockYamlLoopBlocksItem_WorkflowTrigger","GeoTarget","GetRunResponse",diff --git a/skyvern/client/types/file_parser_block_yaml.py b/skyvern/client/types/file_parser_block_yaml.pyindex 16468a2ec..fea8c7a9c 100644--- a/skyvern/client/types/file_parser_block_yaml.py+++ b/skyvern/client/types/file_parser_block_yaml.py@@ -22,7 +22,7 @@ class FileParserBlockYaml(UniversalBaseModel):model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = Nonenext_loop_on_failure: typing.Optional[bool] = Nonefile_url: str- file_type: typing.Optional[FileType] = None+ file_type: FileTypejson_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = Noneif IS_PYDANTIC_V2:diff --git a/skyvern/client/types/for_loop_block.py b/skyvern/client/types/for_loop_block.pyindex ae300de14..30c2f5cc1 100644--- a/skyvern/client/types/for_loop_block.py+++ b/skyvern/client/types/for_loop_block.py@@ -45,6 +45,5 @@ class ForLoopBlock(UniversalBaseModel):from .context_parameter import ContextParameter # noqa: E402, F401, I001from .for_loop_block_loop_blocks_item import ForLoopBlockLoopBlocksItem # noqa: E402, F401, I001-from .while_loop_block import WhileLoopBlock # noqa: E402, F401, I001update_forward_refs(ForLoopBlock)diff --git a/skyvern/client/types/for_loop_block_loop_blocks_item.py b/skyvern/client/types/for_loop_block_loop_blocks_item.pyindex 3fa623517..4d64a8050 100644--- a/skyvern/client/types/for_loop_block_loop_blocks_item.py+++ b/skyvern/client/types/for_loop_block_loop_blocks_item.py@@ -304,6 +304,9 @@ class ForLoopBlockLoopBlocksItem_ForLoop(UniversalBaseModel):extra = pydantic.Extra.allow+from .for_loop_block import ForLoopBlock # noqa: E402, F401, I001++class ForLoopBlockLoopBlocksItem_GotoUrl(UniversalBaseModel):block_type: typing.Literal["goto_url"] = "goto_url"label: str@@ -752,18 +755,21 @@ class ForLoopBlockLoopBlocksItem_Wait(UniversalBaseModel):extra = pydantic.Extra.allow-class ForLoopBlockLoopBlocksItem_WhileLoop(UniversalBaseModel):- block_type: typing.Literal["while_loop"] = "while_loop"+class ForLoopBlockLoopBlocksItem_WorkflowTrigger(UniversalBaseModel):+ block_type: typing.Literal["workflow_trigger"] = "workflow_trigger"label: strnext_block_label: typing.Optional[str] = Noneoutput_parameter: OutputParametercontinue_on_failure: typing.Optional[bool] = Nonemodel: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = Nonedisable_cache: typing.Optional[bool] = None- ignore_workflow_system_prompt: typing.Optional[bool] = Nonenext_loop_on_failure: typing.Optional[bool] = None- loop_blocks: typing.List["WhileLoopBlockLoopBlocksItem"]- condition: WhileLoopBlockCondition+ workflow_permanent_id: str+ payload: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None+ wait_for_completion: typing.Optional[bool] = None+ browser_session_id: typing.Optional[str] = None+ use_parent_browser_session: typing.Optional[bool] = None+ parameters: typing.Optional[typing.List[WorkflowTriggerBlockParametersItem]] = Noneif IS_PYDANTIC_V2:model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2@@ -775,8 +781,8 @@ class ForLoopBlockLoopBlocksItem_WhileLoop(UniversalBaseModel):extra = pydantic.Extra.allow-class ForLoopBlockLoopBlocksItem_WorkflowTrigger(UniversalBaseModel):- block_type: typing.Literal["workflow_trigger"] = "workflow_trigger"+class ForLoopBlockLoopBlocksItem_WhileLoop(UniversalBaseModel):+ block_type: typing.Literal["while_loop"] = "while_loop"label: strnext_block_label: typing.Optional[str] = Noneoutput_parameter: OutputParameter@@ -784,12 +790,8 @@ class ForLoopBlockLoopBlocksItem_WorkflowTrigger(UniversalBaseModel):model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = Nonedisable_cache: typing.Optional[bool] = Nonenext_loop_on_failure: typing.Optional[bool] = None- workflow_permanent_id: str- payload: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None- wait_for_completion: typing.Optional[bool] = None- browser_session_id: typing.Optional[str] = None- use_parent_browser_session: typing.Optional[bool] = None- parameters: typing.Optional[typing.List[WorkflowTriggerBlockParametersItem]] = None+ loop_blocks: typing.List["ForLoopBlockLoopBlocksItem"]+ condition: WhileLoopBlockConditionif IS_PYDANTIC_V2:model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2@@ -801,6 +803,8 @@ class ForLoopBlockLoopBlocksItem_WorkflowTrigger(UniversalBaseModel):extra = pydantic.Extra.allow+from .context_parameter import ContextParameter # noqa: E402, F401, I001+ForLoopBlockLoopBlocksItem = typing.Union[ForLoopBlockLoopBlocksItem_Action,ForLoopBlockLoopBlocksItem_Code,@@ -828,11 +832,6 @@ ForLoopBlockLoopBlocksItem = typing.Union[ForLoopBlockLoopBlocksItem_WhileLoop,ForLoopBlockLoopBlocksItem_WorkflowTrigger,]-from .context_parameter import ContextParameter # noqa: E402, F401, I001-from .for_loop_block import ForLoopBlock # noqa: E402, F401, I001-from .while_loop_block import WhileLoopBlock # noqa: E402, F401, I001-from .while_loop_block_loop_blocks_item import WhileLoopBlockLoopBlocksItem # noqa: E402, F401, I001-update_forward_refs(ForLoopBlockLoopBlocksItem_Action)update_forward_refs(ForLoopBlockLoopBlocksItem_Code)update_forward_refs(ForLoopBlockLoopBlocksItem_Extraction)diff --git a/skyvern/client/types/for_loop_block_yaml_loop_blocks_item.py b/skyvern/client/types/for_loop_block_yaml_loop_blocks_item.pyindex 1cf196a7e..7a87b74ec 100644--- a/skyvern/client/types/for_loop_block_yaml_loop_blocks_item.py+++ b/skyvern/client/types/for_loop_block_yaml_loop_blocks_item.py@@ -9,6 +9,7 @@ import typing_extensionsfrom ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel, update_forward_refsfrom ..core.serialization import FieldMetadatafrom .branch_condition_yaml import BranchConditionYaml+from .branch_criteria_yaml import BranchCriteriaYamlfrom .extraction_block_yaml_data_schema import ExtractionBlockYamlDataSchemafrom .file_storage_type import FileStorageTypefrom .file_type import FileType@@ -78,6 +79,9 @@ class ForLoopBlockYamlLoopBlocksItem_ForLoop(UniversalBaseModel):extra = pydantic.Extra.allow+from .for_loop_block_yaml import ForLoopBlockYaml # noqa: E402, F401, I001++class ForLoopBlockYamlLoopBlocksItem_Code(UniversalBaseModel):block_type: typing.Literal["code"] = "code"label: str@@ -616,6 +620,26 @@ class ForLoopBlockYamlLoopBlocksItem_WorkflowTrigger(UniversalBaseModel):extra = pydantic.Extra.allow+class ForLoopBlockYamlLoopBlocksItem_WhileLoop(UniversalBaseModel):+ block_type: typing.Literal["while_loop"] = "while_loop"+ label: str+ next_block_label: typing.Optional[str] = None+ continue_on_failure: typing.Optional[bool] = None+ model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None+ next_loop_on_failure: typing.Optional[bool] = None+ loop_blocks: typing.List["ForLoopBlockYamlLoopBlocksItem"]+ condition: BranchCriteriaYaml++ if IS_PYDANTIC_V2:+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2+ else:++ class Config:+ frozen = True+ smart_union = True+ extra = pydantic.Extra.allow++ForLoopBlockYamlLoopBlocksItem = typing.Union[ForLoopBlockYamlLoopBlocksItem_Task,ForLoopBlockYamlLoopBlocksItem_ForLoop,@@ -640,8 +664,8 @@ ForLoopBlockYamlLoopBlocksItem = typing.Union[ForLoopBlockYamlLoopBlocksItem_HttpRequest,ForLoopBlockYamlLoopBlocksItem_Conditional,ForLoopBlockYamlLoopBlocksItem_PrintPage,+ ForLoopBlockYamlLoopBlocksItem_WhileLoop,ForLoopBlockYamlLoopBlocksItem_WorkflowTrigger,]-from .for_loop_block_yaml import ForLoopBlockYaml # noqa: E402, F401, I001-update_forward_refs(ForLoopBlockYamlLoopBlocksItem_ForLoop)+update_forward_refs(ForLoopBlockYamlLoopBlocksItem_WhileLoop)diff --git a/skyvern/client/types/proxy_location.py b/skyvern/client/types/proxy_location.pyindex 948c70a88..2525f6d1d 100644--- a/skyvern/client/types/proxy_location.py+++ b/skyvern/client/types/proxy_location.py@@ -29,6 +29,7 @@ ProxyLocation = typing.Union["RESIDENTIAL_NL","RESIDENTIAL_PH","RESIDENTIAL_KR",+ "RESIDENTIAL_SA","RESIDENTIAL_ISP","NONE",],diff --git a/skyvern/client/types/while_loop_block.py b/skyvern/client/types/while_loop_block.pyindex 637da4566..af4f30334 100644--- a/skyvern/client/types/while_loop_block.py+++ b/skyvern/client/types/while_loop_block.py@@ -11,17 +11,6 @@ from .while_loop_block_condition import WhileLoopBlockConditionclass WhileLoopBlock(UniversalBaseModel):- """- Loop block driven by a runtime condition. Iterates while ``condition`` evaluates truthy.-- Top-of-loop semantics: the condition is evaluated *before* each iteration (including the- first). If the condition is false on the first check, the body never runs and the block- returns success with an empty output list.-- Safety: the loop is capped at ``DEFAULT_MAX_LOOP_ITERATIONS`` (100). Reaching the cap is- treated as a failure so that a misbehaving condition can never spin forever.- """-label: str = pydantic.Field()"""Author-facing identifier for a block; unique within a workflow.@@ -36,7 +25,6 @@ class WhileLoopBlock(UniversalBaseModel):continue_on_failure: typing.Optional[bool] = Nonemodel: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = Nonedisable_cache: typing.Optional[bool] = None- ignore_workflow_system_prompt: typing.Optional[bool] = Nonenext_loop_on_failure: typing.Optional[bool] = Noneloop_blocks: typing.List["WhileLoopBlockLoopBlocksItem"]condition: WhileLoopBlockCondition@@ -53,6 +41,5 @@ class WhileLoopBlock(UniversalBaseModel):from .context_parameter import ContextParameter # noqa: E402, F401, I001from .while_loop_block_loop_blocks_item import WhileLoopBlockLoopBlocksItem # noqa: E402, F401, I001-from .for_loop_block import ForLoopBlock # noqa: E402, F401, I001update_forward_refs(WhileLoopBlock)diff --git a/skyvern/client/types/while_loop_block_loop_blocks_item.py b/skyvern/client/types/while_loop_block_loop_blocks_item.pyindex 4171c1349..fd62a87e0 100644--- a/skyvern/client/types/while_loop_block_loop_blocks_item.py+++ b/skyvern/client/types/while_loop_block_loop_blocks_item.py@@ -288,7 +288,7 @@ class WhileLoopBlockLoopBlocksItem_ForLoop(UniversalBaseModel):model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = Nonedisable_cache: typing.Optional[bool] = Nonenext_loop_on_failure: typing.Optional[bool] = None- loop_blocks: typing.List["ForLoopBlockLoopBlocksItem"]+ loop_blocks: typing.List["WhileLoopBlockLoopBlocksItem"]loop_over: typing.Optional[ForLoopBlockLoopOver] = Noneloop_variable_reference: typing.Optional[str] = Nonecomplete_if_empty: typing.Optional[bool] = None@@ -304,6 +304,9 @@ class WhileLoopBlockLoopBlocksItem_ForLoop(UniversalBaseModel):extra = pydantic.Extra.allow+from .for_loop_block import ForLoopBlock # noqa: E402, F401, I001++class WhileLoopBlockLoopBlocksItem_GotoUrl(UniversalBaseModel):block_type: typing.Literal["goto_url"] = "goto_url"label: str@@ -752,18 +755,21 @@ class WhileLoopBlockLoopBlocksItem_Wait(UniversalBaseModel):extra = pydantic.Extra.allow-class WhileLoopBlockLoopBlocksItem_WhileLoop(UniversalBaseModel):- block_type: typing.Literal["while_loop"] = "while_loop"+class WhileLoopBlockLoopBlocksItem_WorkflowTrigger(UniversalBaseModel):+ block_type: typing.Literal["workflow_trigger"] = "workflow_trigger"label: strnext_block_label: typing.Optional[str] = Noneoutput_parameter: OutputParametercontinue_on_failure: typing.Optional[bool] = Nonemodel: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = Nonedisable_cache: typing.Optional[bool] = None- ignore_workflow_system_prompt: typing.Optional[bool] = Nonenext_loop_on_failure: typing.Optional[bool] = None- loop_blocks: typing.List["WhileLoopBlockLoopBlocksItem"]- condition: WhileLoopBlockCondition+ workflow_permanent_id: str+ payload: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None+ wait_for_completion: typing.Optional[bool] = None+ browser_session_id: typing.Optional[str] = None+ use_parent_browser_session: typing.Optional[bool] = None+ parameters: typing.Optional[typing.List[WorkflowTriggerBlockParametersItem]] = Noneif IS_PYDANTIC_V2:model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2@@ -775,8 +781,8 @@ class WhileLoopBlockLoopBlocksItem_WhileLoop(UniversalBaseModel):extra = pydantic.Extra.allow-class WhileLoopBlockLoopBlocksItem_WorkflowTrigger(UniversalBaseModel):- block_type: typing.Literal["workflow_trigger"] = "workflow_trigger"+class WhileLoopBlockLoopBlocksItem_WhileLoop(UniversalBaseModel):+ block_type: typing.Literal["while_loop"] = "while_loop"label: strnext_block_label: typing.Optional[str] = Noneoutput_parameter: OutputParameter@@ -784,12 +790,8 @@ class WhileLoopBlockLoopBlocksItem_WorkflowTrigger(UniversalBaseModel):model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = Nonedisable_cache: typing.Optional[bool] = Nonenext_loop_on_failure: typing.Optional[bool] = None- workflow_permanent_id: str- payload: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None- wait_for_completion: typing.Optional[bool] = None- browser_session_id: typing.Optional[str] = None- use_parent_browser_session: typing.Optional[bool] = None- parameters: typing.Optional[typing.List[WorkflowTriggerBlockParametersItem]] = None+ loop_blocks: typing.List["WhileLoopBlockLoopBlocksItem"]+ condition: WhileLoopBlockConditionif IS_PYDANTIC_V2:model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2@@ -801,6 +803,8 @@ class WhileLoopBlockLoopBlocksItem_WorkflowTrigger(UniversalBaseModel):extra = pydantic.Extra.allow+from .context_parameter import ContextParameter # noqa: E402, F401, I001+WhileLoopBlockLoopBlocksItem = typing.Union[WhileLoopBlockLoopBlocksItem_Action,WhileLoopBlockLoopBlocksItem_Code,@@ -828,11 +832,6 @@ WhileLoopBlockLoopBlocksItem = typing.Union[WhileLoopBlockLoopBlocksItem_WhileLoop,WhileLoopBlockLoopBlocksItem_WorkflowTrigger,]-from .context_parameter import ContextParameter # noqa: E402, F401, I001-from .for_loop_block import ForLoopBlock # noqa: E402, F401, I001-from .while_loop_block import WhileLoopBlock # noqa: E402, F401, I001-from .for_loop_block_loop_blocks_item import ForLoopBlockLoopBlocksItem # noqa: E402, F401, I001-update_forward_refs(WhileLoopBlockLoopBlocksItem_Action)update_forward_refs(WhileLoopBlockLoopBlocksItem_Code)update_forward_refs(WhileLoopBlockLoopBlocksItem_Extraction)diff --git a/skyvern/client/types/while_loop_block_yaml.py b/skyvern/client/types/while_loop_block_yaml.pyindex f66ab4bdd..76fcb45ee 100644--- a/skyvern/client/types/while_loop_block_yaml.py+++ b/skyvern/client/types/while_loop_block_yaml.py@@ -22,7 +22,6 @@ class WhileLoopBlockYaml(UniversalBaseModel):continue_on_failure: typing.Optional[bool] = Nonemodel: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None- ignore_workflow_system_prompt: typing.Optional[bool] = Nonenext_loop_on_failure: typing.Optional[bool] = Noneloop_blocks: typing.List["WhileLoopBlockYamlLoopBlocksItem"]condition: BranchCriteriaYaml@@ -37,7 +36,6 @@ class WhileLoopBlockYaml(UniversalBaseModel):extra = pydantic.Extra.allow-from .for_loop_block_yaml import ForLoopBlockYaml # noqa: E402, F401, I001from .while_loop_block_yaml_loop_blocks_item import WhileLoopBlockYamlLoopBlocksItem # noqa: E402, F401, I001update_forward_refs(WhileLoopBlockYaml)diff --git a/skyvern/client/types/while_loop_block_yaml_loop_blocks_item.py b/skyvern/client/types/while_loop_block_yaml_loop_blocks_item.pyindex 3422548ee..c604507f9 100644--- a/skyvern/client/types/while_loop_block_yaml_loop_blocks_item.py+++ b/skyvern/client/types/while_loop_block_yaml_loop_blocks_item.py@@ -63,7 +63,7 @@ class WhileLoopBlockYamlLoopBlocksItem_ForLoop(UniversalBaseModel):continue_on_failure: typing.Optional[bool] = Nonemodel: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = Nonenext_loop_on_failure: typing.Optional[bool] = None- loop_blocks: typing.List["ForLoopBlockYamlLoopBlocksItem"]+ loop_blocks: typing.List["WhileLoopBlockYamlLoopBlocksItem"]loop_over_parameter_key: typing.Optional[str] = Noneloop_variable_reference: typing.Optional[str] = Nonecomplete_if_empty: typing.Optional[bool] = None@@ -79,25 +79,7 @@ class WhileLoopBlockYamlLoopBlocksItem_ForLoop(UniversalBaseModel):extra = pydantic.Extra.allow-class WhileLoopBlockYamlLoopBlocksItem_WhileLoop(UniversalBaseModel):- block_type: typing.Literal["while_loop"] = "while_loop"- label: str- next_block_label: typing.Optional[str] = None- continue_on_failure: typing.Optional[bool] = None- model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None- ignore_workflow_system_prompt: typing.Optional[bool] = None- next_loop_on_failure: typing.Optional[bool] = None- loop_blocks: typing.List["WhileLoopBlockYamlLoopBlocksItem"]- condition: BranchCriteriaYaml-- if IS_PYDANTIC_V2:- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2- else:-- class Config:- frozen = True- smart_union = True- extra = pydantic.Extra.allow+from .for_loop_block_yaml import ForLoopBlockYaml # noqa: E402, F401, I001class WhileLoopBlockYamlLoopBlocksItem_Code(UniversalBaseModel):@@ -638,10 +620,29 @@ class WhileLoopBlockYamlLoopBlocksItem_WorkflowTrigger(UniversalBaseModel):extra = pydantic.Extra.allow+class WhileLoopBlockYamlLoopBlocksItem_WhileLoop(UniversalBaseModel):+ block_type: typing.Literal["while_loop"] = "while_loop"+ label: str+ next_block_label: typing.Optional[str] = None+ continue_on_failure: typing.Optional[bool] = None+ model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None+ next_loop_on_failure: typing.Optional[bool] = None+ loop_blocks: typing.List["WhileLoopBlockYamlLoopBlocksItem"]+ condition: BranchCriteriaYaml++ if IS_PYDANTIC_V2:+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2+ else:++ class Config:+ frozen = True+ smart_union = True+ extra = pydantic.Extra.allow++WhileLoopBlockYamlLoopBlocksItem = typing.Union[WhileLoopBlockYamlLoopBlocksItem_Task,WhileLoopBlockYamlLoopBlocksItem_ForLoop,- WhileLoopBlockYamlLoopBlocksItem_WhileLoop,WhileLoopBlockYamlLoopBlocksItem_Code,WhileLoopBlockYamlLoopBlocksItem_TextPrompt,WhileLoopBlockYamlLoopBlocksItem_DownloadToS3,@@ -663,11 +664,8 @@ WhileLoopBlockYamlLoopBlocksItem = typing.Union[WhileLoopBlockYamlLoopBlocksItem_HttpRequest,WhileLoopBlockYamlLoopBlocksItem_Conditional,WhileLoopBlockYamlLoopBlocksItem_PrintPage,+ WhileLoopBlockYamlLoopBlocksItem_WhileLoop,WhileLoopBlockYamlLoopBlocksItem_WorkflowTrigger,]-from .for_loop_block_yaml import ForLoopBlockYaml # noqa: E402, F401, I001-from .while_loop_block_yaml import WhileLoopBlockYaml # noqa: E402, F401, I001-from .for_loop_block_yaml_loop_blocks_item import ForLoopBlockYamlLoopBlocksItem # noqa: E402, F401, I001-update_forward_refs(WhileLoopBlockYamlLoopBlocksItem_ForLoop)update_forward_refs(WhileLoopBlockYamlLoopBlocksItem_WhileLoop)diff --git a/skyvern/client/types/workflow.py b/skyvern/client/types/workflow.pyindex 3a341571f..9b4af933e 100644--- a/skyvern/client/types/workflow.py+++ b/skyvern/client/types/workflow.py@@ -57,6 +57,5 @@ class Workflow(UniversalBaseModel):from .context_parameter import ContextParameter # noqa: E402, F401, I001from .for_loop_block import ForLoopBlock # noqa: E402, F401, I001-from .while_loop_block import WhileLoopBlock # noqa: E402, F401, I001update_forward_refs(Workflow)diff --git a/skyvern/client/types/workflow_create_yaml_request.py b/skyvern/client/types/workflow_create_yaml_request.pyindex 6c565ea55..e30c75e13 100644--- a/skyvern/client/types/workflow_create_yaml_request.py+++ b/skyvern/client/types/workflow_create_yaml_request.py@@ -46,6 +46,5 @@ class WorkflowCreateYamlRequest(UniversalBaseModel):from .for_loop_block_yaml import ForLoopBlockYaml # noqa: E402, F401, I001-from .while_loop_block_yaml import WhileLoopBlockYaml # noqa: E402, F401, I001update_forward_refs(WorkflowCreateYamlRequest)diff --git a/skyvern/client/types/workflow_definition.py b/skyvern/client/types/workflow_definition.pyindex 46e72413a..55d611f8e 100644--- a/skyvern/client/types/workflow_definition.py+++ b/skyvern/client/types/workflow_definition.py@@ -28,6 +28,5 @@ class WorkflowDefinition(UniversalBaseModel):from .context_parameter import ContextParameter # noqa: E402, F401, I001from .for_loop_block import ForLoopBlock # noqa: E402, F401, I001-from .while_loop_block import WhileLoopBlock # noqa: E402, F401, I001update_forward_refs(WorkflowDefinition)diff --git a/skyvern/client/types/workflow_definition_blocks_item.py b/skyvern/client/types/workflow_definition_blocks_item.pyindex 5366365ed..b7f8a85b0 100644--- a/skyvern/client/types/workflow_definition_blocks_item.py+++ b/skyvern/client/types/workflow_definition_blocks_item.py@@ -304,6 +304,7 @@ class WorkflowDefinitionBlocksItem_ForLoop(UniversalBaseModel):extra = pydantic.Extra.allow+from .for_loop_block import ForLoopBlock # noqa: E402, F401, I001from .for_loop_block_loop_blocks_item import ForLoopBlockLoopBlocksItem # noqa: E402, F401, I001@@ -755,18 +756,21 @@ class WorkflowDefinitionBlocksItem_Wait(UniversalBaseModel):extra = pydantic.Extra.allow-class WorkflowDefinitionBlocksItem_WhileLoop(UniversalBaseModel):- block_type: typing.Literal["while_loop"] = "while_loop"+class WorkflowDefinitionBlocksItem_WorkflowTrigger(UniversalBaseModel):+ block_type: typing.Literal["workflow_trigger"] = "workflow_trigger"label: strnext_block_label: typing.Optional[str] = Noneoutput_parameter: OutputParametercontinue_on_failure: typing.Optional[bool] = Nonemodel: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = Nonedisable_cache: typing.Optional[bool] = None- ignore_workflow_system_prompt: typing.Optional[bool] = Nonenext_loop_on_failure: typing.Optional[bool] = None- loop_blocks: typing.List["WhileLoopBlockLoopBlocksItem"]- condition: WhileLoopBlockCondition+ workflow_permanent_id: str+ payload: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None+ wait_for_completion: typing.Optional[bool] = None+ browser_session_id: typing.Optional[str] = None+ use_parent_browser_session: typing.Optional[bool] = None+ parameters: typing.Optional[typing.List[WorkflowTriggerBlockParametersItem]] = Noneif IS_PYDANTIC_V2:model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2@@ -778,13 +782,8 @@ class WorkflowDefinitionBlocksItem_WhileLoop(UniversalBaseModel):extra = pydantic.Extra.allow-from .for_loop_block import ForLoopBlock # noqa: E402, F401, I001-from .while_loop_block import WhileLoopBlock # noqa: E402, F401, I001-from .while_loop_block_loop_blocks_item import WhileLoopBlockLoopBlocksItem # noqa: E402, F401, I001---class WorkflowDefinitionBlocksItem_WorkflowTrigger(UniversalBaseModel):- block_type: typing.Literal["workflow_trigger"] = "workflow_trigger"+class WorkflowDefinitionBlocksItem_WhileLoop(UniversalBaseModel):+ block_type: typing.Literal["while_loop"] = "while_loop"label: strnext_block_label: typing.Optional[str] = Noneoutput_parameter: OutputParameter@@ -792,12 +791,8 @@ class WorkflowDefinitionBlocksItem_WorkflowTrigger(UniversalBaseModel):model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = Nonedisable_cache: typing.Optional[bool] = Nonenext_loop_on_failure: typing.Optional[bool] = None- workflow_permanent_id: str- payload: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None- wait_for_completion: typing.Optional[bool] = None- browser_session_id: typing.Optional[str] = None- use_parent_browser_session: typing.Optional[bool] = None- parameters: typing.Optional[typing.List[WorkflowTriggerBlockParametersItem]] = None+ loop_blocks: typing.List["WorkflowDefinitionBlocksItem"]+ condition: WhileLoopBlockConditionif IS_PYDANTIC_V2:model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2diff --git a/skyvern/client/types/workflow_definition_yaml.py b/skyvern/client/types/workflow_definition_yaml.pyindex 23da01186..b59071b12 100644--- a/skyvern/client/types/workflow_definition_yaml.py+++ b/skyvern/client/types/workflow_definition_yaml.py@@ -27,6 +27,5 @@ class WorkflowDefinitionYaml(UniversalBaseModel):from .for_loop_block_yaml import ForLoopBlockYaml # noqa: E402, F401, I001-from .while_loop_block_yaml import WhileLoopBlockYaml # noqa: E402, F401, I001update_forward_refs(WorkflowDefinitionYaml)diff --git a/skyvern/client/types/workflow_definition_yaml_blocks_item.py b/skyvern/client/types/workflow_definition_yaml_blocks_item.pyindex 452775468..e43eee71b 100644--- a/skyvern/client/types/workflow_definition_yaml_blocks_item.py+++ b/skyvern/client/types/workflow_definition_yaml_blocks_item.py@@ -237,6 +237,7 @@ class WorkflowDefinitionYamlBlocksItem_ForLoop(UniversalBaseModel):extra = pydantic.Extra.allow+from .for_loop_block_yaml import ForLoopBlockYaml # noqa: E402, F401, I001from .for_loop_block_yaml_loop_blocks_item import ForLoopBlockYamlLoopBlocksItem # noqa: E402, F401, I001@@ -596,16 +597,19 @@ class WorkflowDefinitionYamlBlocksItem_Wait(UniversalBaseModel):extra = pydantic.Extra.allow-class WorkflowDefinitionYamlBlocksItem_WhileLoop(UniversalBaseModel):- block_type: typing.Literal["while_loop"] = "while_loop"+class WorkflowDefinitionYamlBlocksItem_WorkflowTrigger(UniversalBaseModel):+ block_type: typing.Literal["workflow_trigger"] = "workflow_trigger"label: strnext_block_label: typing.Optional[str] = Nonecontinue_on_failure: typing.Optional[bool] = Nonemodel: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None- ignore_workflow_system_prompt: typing.Optional[bool] = Nonenext_loop_on_failure: typing.Optional[bool] = None- loop_blocks: typing.List["WhileLoopBlockYamlLoopBlocksItem"]- condition: BranchCriteriaYaml+ workflow_permanent_id: str+ payload: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None+ wait_for_completion: typing.Optional[bool] = None+ browser_session_id: typing.Optional[str] = None+ use_parent_browser_session: typing.Optional[bool] = None+ parameter_keys: typing.Optional[typing.List[str]] = Noneif IS_PYDANTIC_V2:model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2@@ -617,24 +621,15 @@ class WorkflowDefinitionYamlBlocksItem_WhileLoop(UniversalBaseModel):extra = pydantic.Extra.allow-from .for_loop_block_yaml import ForLoopBlockYaml # noqa: E402, F401, I001-from .while_loop_block_yaml import WhileLoopBlockYaml # noqa: E402, F401, I001-from .while_loop_block_yaml_loop_blocks_item import WhileLoopBlockYamlLoopBlocksItem # noqa: E402, F401, I001---class WorkflowDefinitionYamlBlocksItem_WorkflowTrigger(UniversalBaseModel):- block_type: typing.Literal["workflow_trigger"] = "workflow_trigger"+class WorkflowDefinitionYamlBlocksItem_WhileLoop(UniversalBaseModel):+ block_type: typing.Literal["while_loop"] = "while_loop"label: strnext_block_label: typing.Optional[str] = Nonecontinue_on_failure: typing.Optional[bool] = Nonemodel: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = Nonenext_loop_on_failure: typing.Optional[bool] = None- workflow_permanent_id: str- payload: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None- wait_for_completion: typing.Optional[bool] = None- browser_session_id: typing.Optional[str] = None- use_parent_browser_session: typing.Optional[bool] = None- parameter_keys: typing.Optional[typing.List[str]] = None+ loop_blocks: typing.List["WorkflowDefinitionYamlBlocksItem"]+ condition: BranchCriteriaYamlif IS_PYDANTIC_V2:model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2diff --git a/skyvern/client/types/workflow_request.py b/skyvern/client/types/workflow_request.pyindex b21566e65..bfe77684e 100644--- a/skyvern/client/types/workflow_request.py+++ b/skyvern/client/types/workflow_request.py@@ -31,6 +31,5 @@ class WorkflowRequest(UniversalBaseModel):from .for_loop_block_yaml import ForLoopBlockYaml # noqa: E402, F401, I001-from .while_loop_block_yaml import WhileLoopBlockYaml # noqa: E402, F401, I001update_forward_refs(WorkflowRequest)diff --git a/skyvern/forge/sdk/api/llm/config_registry.py b/skyvern/forge/sdk/api/llm/config_registry.pyindex 69984afd7..4ba400098 100644--- a/skyvern/forge/sdk/api/llm/config_registry.py+++ b/skyvern/forge/sdk/api/llm/config_registry.py@@ -185,6 +185,36 @@ if settings.ENABLE_OPENAI:reasoning_effort=settings.GPT5_REASONING_EFFORT,),)+ LLMConfigRegistry.register_config(+ "OPENAI_GPT5_4_MINI",+ LLMConfig(+ "gpt-5.4-mini",+ ["OPENAI_API_KEY"],+ supports_vision=True,+ add_assistant_prefix=False,+ max_completion_tokens=128000,+ temperature=1, # GPT-5 only supports temperature=1+ reasoning_effort=settings.GPT5_REASONING_EFFORT,+ ),+ )+ LLMConfigRegistry.register_config(+ "OPENAI_GPT5_4_MINI_FLEX",+ LLMConfig(+ "gpt-5.4-mini",+ ["OPENAI_API_KEY"],+ supports_vision=True,+ add_assistant_prefix=False,+ max_completion_tokens=128000,+ temperature=1, # GPT-5 only supports temperature=1+ reasoning_effort=settings.GPT5_REASONING_EFFORT,+ litellm_params=LiteLLMParams(+ api_key=settings.OPENAI_API_KEY,+ model_info={"model_name": "gpt-5.4-mini"},+ service_tier="flex",+ timeout=900.0,+ ),+ ),+ )LLMConfigRegistry.register_config("OPENAI_GPT5_4_NANO",LLMConfig(diff --git a/skyvern/forge/sdk/copilot/agent.py b/skyvern/forge/sdk/copilot/agent.pyindex 369291483..0b60a0142 100644--- a/skyvern/forge/sdk/copilot/agent.py+++ b/skyvern/forge/sdk/copilot/agent.py@@ -265,9 +265,17 @@ _MAX_TURNS_REPLY_UNVALIDATED = (_MAX_TURNS_REPLY_TESTED = ("I've reached the maximum number of steps, but I have a tested draft for you. Accept it to save, or discard.")+_UNEXPECTED_ERROR_REPLY_DEFAULT = "An unexpected error occurred. Please try again."+_UNEXPECTED_ERROR_REPLY_UNVALIDATED = (+ "I hit an unexpected issue before I could finish testing. I have a draft workflow you can keep — "+ "accept it to save (note: it hasn't been verified end-to-end), or discard."+)+_UNEXPECTED_ERROR_REPLY_TESTED = (+ "I hit an unexpected issue, but I have a tested draft for you. Accept it to save, or discard."+)-def _build_capacity_exit_result(+def _build_wip_exit_result(ctx: CopilotContext,global_llm_context: str | None,*,@@ -275,8 +283,7 @@ def _build_capacity_exit_result(unvalidated_reply: str,tested_reply: str,) -> AgentResult:- """Capacity-exhausted exits (timeout, max-turns) surface the most recent- successfully-parsed workflow rather than discard the WIP."""+ """Selected non-success exits surface the most recent successfully parsed workflow."""# ``last_test_ok=None`` covers both "test never ran" and "test ran with# ambiguous output"; only the first case earns the carve-out (the REPLY# path is more permissive because its reply text carries the context).@@ -301,7 +308,7 @@ def _build_capacity_exit_result(def _build_timeout_exit_result(ctx: CopilotContext, global_llm_context: str | None) -> AgentResult:- return _build_capacity_exit_result(+ return _build_wip_exit_result(ctx,global_llm_context,default_reply=_TIMEOUT_REPLY_DEFAULT,@@ -311,7 +318,7 @@ def _build_timeout_exit_result(ctx: CopilotContext, global_llm_context: str | Nodef _build_max_turns_exit_result(ctx: CopilotContext, global_llm_context: str | None) -> AgentResult:- return _build_capacity_exit_result(+ return _build_wip_exit_result(ctx,global_llm_context,default_reply=_MAX_TURNS_REPLY_DEFAULT,@@ -320,6 +327,16 @@ def _build_max_turns_exit_result(ctx: CopilotContext, global_llm_context: str |)+def _build_unexpected_error_exit_result(ctx: CopilotContext, global_llm_context: str | None) -> AgentResult:+ return _build_wip_exit_result(+ ctx,+ global_llm_context,+ default_reply=_UNEXPECTED_ERROR_REPLY_DEFAULT,+ unvalidated_reply=_UNEXPECTED_ERROR_REPLY_UNVALIDATED,+ tested_reply=_UNEXPECTED_ERROR_REPLY_TESTED,+ )++def _translate_to_agent_result(result: RunResultStreaming,ctx: CopilotContext,@@ -678,7 +695,7 @@ async def run_copilot_agent()except Exception as e:LOG.error("Copilot agent error", error=str(e), exc_info=True)- return _build_exit_result(ctx, "An unexpected error occurred. Please try again.", global_llm_context)+ return _build_unexpected_error_exit_result(ctx, global_llm_context)finally:_copilot_model_name.reset(model_token)session.close()diff --git a/tests/unit/cli/__init__.py b/tests/unit/cli/__init__.pydeleted file mode 100644index e69de29bb..000000000diff --git a/tests/unit/cli/test_quickstart_compose_env.py b/tests/unit/cli/test_quickstart_compose_env.pydeleted file mode 100644index 0f8ec6987..000000000--- a/tests/unit/cli/test_quickstart_compose_env.py+++ /dev/null@@ -1,52 +0,0 @@-from unittest.mock import patch--from skyvern.cli.quickstart import _COMPOSE_DATABASE_STRING, _bootstrap_compose_env_files---def test_bootstrap_compose_env_files_copies_when_missing(tmp_path, monkeypatch):- monkeypatch.chdir(tmp_path)- (tmp_path / ".env.example").write_text("OPENAI_API_KEY=\n")- (tmp_path / "skyvern-frontend").mkdir()- (tmp_path / "skyvern-frontend" / ".env.example").write_text("VITE_FOO=bar\n")-- _bootstrap_compose_env_files()-- assert (tmp_path / ".env").read_text() == "OPENAI_API_KEY=\n"- assert (tmp_path / "skyvern-frontend" / ".env").read_text() == "VITE_FOO=bar\n"---def test_bootstrap_compose_env_files_does_not_overwrite_existing(tmp_path, monkeypatch):- monkeypatch.chdir(tmp_path)- (tmp_path / ".env.example").write_text("OPENAI_API_KEY=\n")- (tmp_path / ".env").write_text("USER_VALUE=keep\n")-- _bootstrap_compose_env_files()-- assert (tmp_path / ".env").read_text() == "USER_VALUE=keep\n"---def test_bootstrap_rewrites_localhost_database_string_when_user_confirms(tmp_path, monkeypatch):- monkeypatch.chdir(tmp_path)- (tmp_path / ".env").write_text(- 'OPENAI_API_KEY=sk-dummy\nDATABASE_STRING="postgresql+psycopg://skyvern@localhost/skyvern"\nOTHER=keep\n'- )-- with patch("skyvern.cli.quickstart.Confirm.ask", return_value=True):- _bootstrap_compose_env_files()-- new_content = (tmp_path / ".env").read_text()- assert "localhost" not in new_content- assert f'DATABASE_STRING="{_COMPOSE_DATABASE_STRING}"' in new_content- assert "OPENAI_API_KEY=sk-dummy" in new_content- assert "OTHER=keep" in new_content---def test_bootstrap_leaves_database_string_alone_when_user_declines(tmp_path, monkeypatch):- monkeypatch.chdir(tmp_path)- original = 'OPENAI_API_KEY=sk-dummy\nDATABASE_STRING="postgresql+psycopg://skyvern@localhost/skyvern"\n'- (tmp_path / ".env").write_text(original)-- with patch("skyvern.cli.quickstart.Confirm.ask", return_value=False):- _bootstrap_compose_env_files()-- assert (tmp_path / ".env").read_text() == originaldiff --git a/tests/unit/test_copilot_timeout_wip.py b/tests/unit/test_copilot_timeout_wip.pyindex ad8005d4a..95d64cf0d 100644--- a/tests/unit/test_copilot_timeout_wip.py+++ b/tests/unit/test_copilot_timeout_wip.py@@ -11,8 +11,12 @@ from skyvern.forge.sdk.copilot.agent import (_TIMEOUT_REPLY_DEFAULT,_TIMEOUT_REPLY_TESTED,_TIMEOUT_REPLY_UNVALIDATED,+ _UNEXPECTED_ERROR_REPLY_DEFAULT,+ _UNEXPECTED_ERROR_REPLY_TESTED,+ _UNEXPECTED_ERROR_REPLY_UNVALIDATED,_build_max_turns_exit_result,_build_timeout_exit_result,+ _build_unexpected_error_exit_result,)@@ -170,3 +174,64 @@ class TestBuildMaxTurnsExitResult:assert result.updated_workflow is Noneassert result.unvalidated is Falseassert result.user_response == _MAX_TURNS_REPLY_DEFAULT+++class TestBuildUnexpectedErrorExitResult:+ def test_no_workflow_falls_back_to_default_reply(self) -> None:+ ctx = _ctx(last_workflow=None, last_workflow_yaml=None, last_test_ok=None)++ result = _build_unexpected_error_exit_result(ctx, global_llm_context=None)++ assert result.updated_workflow is None+ assert result.workflow_yaml is None+ assert result.unvalidated is False+ assert result.user_response == _UNEXPECTED_ERROR_REPLY_DEFAULT++ def test_untested_workflow_surfaces_as_unvalidated_wip(self) -> None:+ wf = MagicMock(name="wf")+ ctx = _ctx(last_workflow=wf, last_workflow_yaml="version: '1.0'", last_test_ok=None)++ result = _build_unexpected_error_exit_result(ctx, global_llm_context=None)++ assert result.updated_workflow is wf+ assert result.workflow_yaml == "version: '1.0'"+ assert result.unvalidated is True+ assert result.user_response == _UNEXPECTED_ERROR_REPLY_UNVALIDATED++ def test_passing_test_surfaces_as_tested_proposal(self) -> None:+ wf = MagicMock(name="wf")+ ctx = _ctx(last_workflow=wf, last_workflow_yaml="version: '1.0'", last_test_ok=True)++ result = _build_unexpected_error_exit_result(ctx, global_llm_context=None)++ assert result.updated_workflow is wf+ assert result.workflow_yaml == "version: '1.0'"+ assert result.unvalidated is False+ assert result.user_response == _UNEXPECTED_ERROR_REPLY_TESTED++ def test_failed_test_drops_proposal(self) -> None:+ wf = MagicMock(name="wf")+ ctx = _ctx(last_workflow=wf, last_workflow_yaml="version: '1.0'", last_test_ok=False)++ result = _build_unexpected_error_exit_result(ctx, global_llm_context=None)++ assert result.updated_workflow is None+ assert result.workflow_yaml is None+ assert result.unvalidated is False+ assert result.user_response == _UNEXPECTED_ERROR_REPLY_DEFAULT++ def test_suspicious_success_drops_proposal(self) -> None:+ wf = MagicMock(name="wf")+ ctx = _ctx(+ last_workflow=wf,+ last_workflow_yaml="version: '1.0'",+ last_test_ok=None,+ last_test_suspicious_success=True,+ )++ result = _build_unexpected_error_exit_result(ctx, global_llm_context=None)++ assert result.updated_workflow is None+ assert result.workflow_yaml is None+ assert result.unvalidated is False+ assert result.user_response == _UNEXPECTED_ERROR_REPLY_DEFAULTdiff --git a/tests/unit/test_workflow_copilot_route.py b/tests/unit/test_workflow_copilot_route.pyindex 1b2f8e95e..97164d08c 100644--- a/tests/unit/test_workflow_copilot_route.py+++ b/tests/unit/test_workflow_copilot_route.py@@ -24,7 +24,11 @@ import pytestfrom skyvern.config import settingsfrom skyvern.forge import appfrom skyvern.forge.sdk.routes.workflow_copilot import COPILOT_V2_FLAG_KEY, workflow_copilot_chat_post-from skyvern.forge.sdk.schemas.workflow_copilot import WorkflowCopilotChatRequest, WorkflowCopilotStreamResponseUpdate+from skyvern.forge.sdk.schemas.workflow_copilot import (+ WorkflowCopilotChatRequest,+ WorkflowCopilotStreamErrorUpdate,+ WorkflowCopilotStreamResponseUpdate,+)def _make_chat_request() -> WorkflowCopilotChatRequest:@@ -444,6 +448,7 @@ async def test_unvalidated_timeout_wip_overrides_auto_accept(monkeypatch: pytest)assert response_frame is not Noneassert getattr(response_frame, "unvalidated", False) is True+ assert not [f for f in sent_frames if isinstance(f, WorkflowCopilotStreamErrorUpdate)]@pytest.mark.asynciodiff --git a/uv.lock b/uv.lockindex 4623ff628..9a37828cf 100644--- a/uv.lock+++ b/uv.lock@@ -5564,7 +5564,7 @@ wheels = [[[package]]name = "skyvern"-version = "1.0.32"+version = "1.0.31"source = { editable = "." }dependencies = [{ name = "aioboto3" },