From d6b7be2b45009c14a0953f636ac6a4a3967319be Mon Sep 17 00:00:00 2001 From: Tony Deng Date: Wed, 1 Oct 2025 16:51:46 -0700 Subject: [PATCH 1/2] add default for execute api --- src/runloop_api_client/resources/devboxes/devboxes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runloop_api_client/resources/devboxes/devboxes.py b/src/runloop_api_client/resources/devboxes/devboxes.py index 4a8bffe9e..6d2e8e1cc 100644 --- a/src/runloop_api_client/resources/devboxes/devboxes.py +++ b/src/runloop_api_client/resources/devboxes/devboxes.py @@ -718,7 +718,7 @@ def execute( id: str, *, command: str, - command_id: str, + command_id: str = str(uuid7()), optimistic_timeout: Optional[int] | Omit = omit, shell_name: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -2161,7 +2161,7 @@ async def execute( id: str, *, command: str, - command_id: str, + command_id: str = str(uuid7()), optimistic_timeout: Optional[int] | Omit = omit, shell_name: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. From 18fefcb307b3f9f32e1d016a727a0fed96788c97 Mon Sep 17 00:00:00 2001 From: Tony Deng Date: Wed, 1 Oct 2025 17:14:12 -0700 Subject: [PATCH 2/2] comment to explain deprecation --- src/runloop_api_client/resources/devboxes/devboxes.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/runloop_api_client/resources/devboxes/devboxes.py b/src/runloop_api_client/resources/devboxes/devboxes.py index 6d2e8e1cc..78d15b510 100644 --- a/src/runloop_api_client/resources/devboxes/devboxes.py +++ b/src/runloop_api_client/resources/devboxes/devboxes.py @@ -897,6 +897,7 @@ def execute_async( ) @typing_extensions.deprecated("deprecated") + # Use execute, executeAsync, or executeAndAwaitCompletion instead def execute_sync( self, id: str, @@ -915,6 +916,9 @@ def execute_sync( Execute a bash command in the Devbox shell, await the command completion and return the output. + .. deprecated:: + Use execute, executeAsync, or executeAndAwaitCompletion instead. + Args: command: The command to execute via the Devbox shell. By default, commands are run from the user home directory unless shell_name is specified. If shell_name is @@ -2341,6 +2345,7 @@ async def execute_async( ) @typing_extensions.deprecated("deprecated") + # Use execute, executeAsync, or executeAndAwaitCompletion instead async def execute_sync( self, id: str, @@ -2359,6 +2364,9 @@ async def execute_sync( Execute a bash command in the Devbox shell, await the command completion and return the output. + .. deprecated:: + Use execute, executeAsync, or executeAndAwaitCompletion instead. + Args: command: The command to execute via the Devbox shell. By default, commands are run from the user home directory unless shell_name is specified. If shell_name is