runloop-api-client 2.0.0__py3-none-any.whl → 3.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- runloop_api_client/_client.py +0 -38
- runloop_api_client/_version.py +1 -1
- runloop_api_client/pagination.py +0 -75
- runloop_api_client/resources/__init__.py +0 -14
- runloop_api_client/resources/devboxes/devboxes.py +12 -64
- runloop_api_client/resources/devboxes/executions.py +8 -40
- runloop_api_client/resources/devboxes/logs.py +2 -20
- runloop_api_client/sdk/__init__.py +2 -12
- runloop_api_client/sdk/_types.py +8 -18
- runloop_api_client/sdk/async_.py +1 -242
- runloop_api_client/sdk/async_devbox.py +4 -138
- runloop_api_client/sdk/devbox.py +4 -138
- runloop_api_client/sdk/sync.py +1 -272
- runloop_api_client/types/__init__.py +0 -8
- runloop_api_client/types/devbox_async_execution_detail_view.py +0 -3
- runloop_api_client/types/devbox_execute_async_params.py +7 -18
- runloop_api_client/types/devbox_execute_params.py +1 -10
- runloop_api_client/types/devbox_execute_sync_params.py +1 -10
- runloop_api_client/types/devbox_execution_detail_view.py +0 -5
- runloop_api_client/types/devboxes/devbox_logs_list_view.py +0 -3
- runloop_api_client/types/devboxes/execution_execute_async_params.py +1 -10
- runloop_api_client/types/devboxes/execution_execute_sync_params.py +1 -10
- runloop_api_client/types/devboxes/log_list_params.py +0 -3
- runloop_api_client/types/scope_entry_view.py +0 -1
- runloop_api_client/types/scope_entry_view_param.py +0 -1
- runloop_api_client/types/shared/__init__.py +0 -2
- runloop_api_client/types/shared/mount.py +1 -4
- runloop_api_client/types/shared_params/__init__.py +0 -2
- runloop_api_client/types/shared_params/mount.py +1 -2
- {runloop_api_client-2.0.0.dist-info → runloop_api_client-3.0.0.dist-info}/METADATA +1 -1
- {runloop_api_client-2.0.0.dist-info → runloop_api_client-3.0.0.dist-info}/RECORD +33 -46
- runloop_api_client/resources/agents.py +0 -740
- runloop_api_client/sdk/agent.py +0 -86
- runloop_api_client/sdk/async_agent.py +0 -86
- runloop_api_client/types/agent_create_params.py +0 -26
- runloop_api_client/types/agent_devbox_counts_view.py +0 -24
- runloop_api_client/types/agent_list_params.py +0 -33
- runloop_api_client/types/agent_list_public_params.py +0 -30
- runloop_api_client/types/agent_list_view.py +0 -21
- runloop_api_client/types/agent_view.py +0 -35
- runloop_api_client/types/shared/agent_mount.py +0 -31
- runloop_api_client/types/shared/agent_source.py +0 -75
- runloop_api_client/types/shared_params/agent_mount.py +0 -31
- runloop_api_client/types/shared_params/agent_source.py +0 -78
- {runloop_api_client-2.0.0.dist-info → runloop_api_client-3.0.0.dist-info}/WHEEL +0 -0
- {runloop_api_client-2.0.0.dist-info → runloop_api_client-3.0.0.dist-info}/licenses/LICENSE +0 -0
runloop_api_client/_client.py
CHANGED
|
@@ -39,7 +39,6 @@ if TYPE_CHECKING:
|
|
|
39
39
|
from .resources import (
|
|
40
40
|
pty,
|
|
41
41
|
axons,
|
|
42
|
-
agents,
|
|
43
42
|
apikeys,
|
|
44
43
|
objects,
|
|
45
44
|
secrets,
|
|
@@ -52,7 +51,6 @@ if TYPE_CHECKING:
|
|
|
52
51
|
network_policies,
|
|
53
52
|
)
|
|
54
53
|
from .resources.pty import PtyResource, AsyncPtyResource
|
|
55
|
-
from .resources.agents import AgentsResource, AsyncAgentsResource
|
|
56
54
|
from .resources.apikeys import ApikeysResource, AsyncApikeysResource
|
|
57
55
|
from .resources.objects import ObjectsResource, AsyncObjectsResource
|
|
58
56
|
from .resources.secrets import SecretsResource, AsyncSecretsResource
|
|
@@ -153,12 +151,6 @@ class Runloop(SyncAPIClient):
|
|
|
153
151
|
|
|
154
152
|
return AccountsResource(self)
|
|
155
153
|
|
|
156
|
-
@cached_property
|
|
157
|
-
def agents(self) -> AgentsResource:
|
|
158
|
-
from .resources.agents import AgentsResource
|
|
159
|
-
|
|
160
|
-
return AgentsResource(self)
|
|
161
|
-
|
|
162
154
|
@cached_property
|
|
163
155
|
def axons(self) -> AxonsResource:
|
|
164
156
|
from .resources.axons import AxonsResource
|
|
@@ -441,12 +433,6 @@ class AsyncRunloop(AsyncAPIClient):
|
|
|
441
433
|
|
|
442
434
|
return AsyncAccountsResource(self)
|
|
443
435
|
|
|
444
|
-
@cached_property
|
|
445
|
-
def agents(self) -> AsyncAgentsResource:
|
|
446
|
-
from .resources.agents import AsyncAgentsResource
|
|
447
|
-
|
|
448
|
-
return AsyncAgentsResource(self)
|
|
449
|
-
|
|
450
436
|
@cached_property
|
|
451
437
|
def axons(self) -> AsyncAxonsResource:
|
|
452
438
|
from .resources.axons import AsyncAxonsResource
|
|
@@ -656,12 +642,6 @@ class RunloopWithRawResponse:
|
|
|
656
642
|
|
|
657
643
|
return AccountsResourceWithRawResponse(self._client.accounts)
|
|
658
644
|
|
|
659
|
-
@cached_property
|
|
660
|
-
def agents(self) -> agents.AgentsResourceWithRawResponse:
|
|
661
|
-
from .resources.agents import AgentsResourceWithRawResponse
|
|
662
|
-
|
|
663
|
-
return AgentsResourceWithRawResponse(self._client.agents)
|
|
664
|
-
|
|
665
645
|
@cached_property
|
|
666
646
|
def axons(self) -> axons.AxonsResourceWithRawResponse:
|
|
667
647
|
from .resources.axons import AxonsResourceWithRawResponse
|
|
@@ -741,12 +721,6 @@ class AsyncRunloopWithRawResponse:
|
|
|
741
721
|
|
|
742
722
|
return AsyncAccountsResourceWithRawResponse(self._client.accounts)
|
|
743
723
|
|
|
744
|
-
@cached_property
|
|
745
|
-
def agents(self) -> agents.AsyncAgentsResourceWithRawResponse:
|
|
746
|
-
from .resources.agents import AsyncAgentsResourceWithRawResponse
|
|
747
|
-
|
|
748
|
-
return AsyncAgentsResourceWithRawResponse(self._client.agents)
|
|
749
|
-
|
|
750
724
|
@cached_property
|
|
751
725
|
def axons(self) -> axons.AsyncAxonsResourceWithRawResponse:
|
|
752
726
|
from .resources.axons import AsyncAxonsResourceWithRawResponse
|
|
@@ -826,12 +800,6 @@ class RunloopWithStreamedResponse:
|
|
|
826
800
|
|
|
827
801
|
return AccountsResourceWithStreamingResponse(self._client.accounts)
|
|
828
802
|
|
|
829
|
-
@cached_property
|
|
830
|
-
def agents(self) -> agents.AgentsResourceWithStreamingResponse:
|
|
831
|
-
from .resources.agents import AgentsResourceWithStreamingResponse
|
|
832
|
-
|
|
833
|
-
return AgentsResourceWithStreamingResponse(self._client.agents)
|
|
834
|
-
|
|
835
803
|
@cached_property
|
|
836
804
|
def axons(self) -> axons.AxonsResourceWithStreamingResponse:
|
|
837
805
|
from .resources.axons import AxonsResourceWithStreamingResponse
|
|
@@ -911,12 +879,6 @@ class AsyncRunloopWithStreamedResponse:
|
|
|
911
879
|
|
|
912
880
|
return AsyncAccountsResourceWithStreamingResponse(self._client.accounts)
|
|
913
881
|
|
|
914
|
-
@cached_property
|
|
915
|
-
def agents(self) -> agents.AsyncAgentsResourceWithStreamingResponse:
|
|
916
|
-
from .resources.agents import AsyncAgentsResourceWithStreamingResponse
|
|
917
|
-
|
|
918
|
-
return AsyncAgentsResourceWithStreamingResponse(self._client.agents)
|
|
919
|
-
|
|
920
882
|
@cached_property
|
|
921
883
|
def axons(self) -> axons.AsyncAxonsResourceWithStreamingResponse:
|
|
922
884
|
from .resources.axons import AsyncAxonsResourceWithStreamingResponse
|
runloop_api_client/_version.py
CHANGED
runloop_api_client/pagination.py
CHANGED
|
@@ -12,8 +12,6 @@ __all__ = [
|
|
|
12
12
|
"AsyncDevboxesCursorIDPage",
|
|
13
13
|
"SyncDiskSnapshotsCursorIDPage",
|
|
14
14
|
"AsyncDiskSnapshotsCursorIDPage",
|
|
15
|
-
"SyncAgentsCursorIDPage",
|
|
16
|
-
"AsyncAgentsCursorIDPage",
|
|
17
15
|
"SyncAxonsCursorIDPage",
|
|
18
16
|
"AsyncAxonsCursorIDPage",
|
|
19
17
|
"SyncObjectsCursorIDPage",
|
|
@@ -44,11 +42,6 @@ class DiskSnapshotsCursorIDPageItem(Protocol):
|
|
|
44
42
|
id: str
|
|
45
43
|
|
|
46
44
|
|
|
47
|
-
@runtime_checkable
|
|
48
|
-
class AgentsCursorIDPageItem(Protocol):
|
|
49
|
-
id: str
|
|
50
|
-
|
|
51
|
-
|
|
52
45
|
@runtime_checkable
|
|
53
46
|
class AxonsCursorIDPageItem(Protocol):
|
|
54
47
|
id: str
|
|
@@ -278,74 +271,6 @@ class AsyncDiskSnapshotsCursorIDPage(BaseAsyncPage[_T], BasePage[_T], Generic[_T
|
|
|
278
271
|
return PageInfo(params={"starting_after": item.id})
|
|
279
272
|
|
|
280
273
|
|
|
281
|
-
class SyncAgentsCursorIDPage(BaseSyncPage[_T], BasePage[_T], Generic[_T]):
|
|
282
|
-
agents: List[_T]
|
|
283
|
-
has_more: Optional[bool] = None
|
|
284
|
-
total_count: Optional[int] = None
|
|
285
|
-
|
|
286
|
-
@override
|
|
287
|
-
def _get_page_items(self) -> List[_T]:
|
|
288
|
-
agents = self.agents
|
|
289
|
-
if not agents:
|
|
290
|
-
return []
|
|
291
|
-
return agents
|
|
292
|
-
|
|
293
|
-
@override
|
|
294
|
-
def has_next_page(self) -> bool:
|
|
295
|
-
has_more = self.has_more
|
|
296
|
-
if has_more is not None and has_more is False:
|
|
297
|
-
return False
|
|
298
|
-
|
|
299
|
-
return super().has_next_page()
|
|
300
|
-
|
|
301
|
-
@override
|
|
302
|
-
def next_page_info(self) -> Optional[PageInfo]:
|
|
303
|
-
agents = self.agents
|
|
304
|
-
if not agents:
|
|
305
|
-
return None
|
|
306
|
-
|
|
307
|
-
item = cast(Any, agents[-1])
|
|
308
|
-
if not isinstance(item, AgentsCursorIDPageItem) or item.id is None: # pyright: ignore[reportUnnecessaryComparison]
|
|
309
|
-
# TODO emit warning log
|
|
310
|
-
return None
|
|
311
|
-
|
|
312
|
-
return PageInfo(params={"starting_after": item.id})
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
class AsyncAgentsCursorIDPage(BaseAsyncPage[_T], BasePage[_T], Generic[_T]):
|
|
316
|
-
agents: List[_T]
|
|
317
|
-
has_more: Optional[bool] = None
|
|
318
|
-
total_count: Optional[int] = None
|
|
319
|
-
|
|
320
|
-
@override
|
|
321
|
-
def _get_page_items(self) -> List[_T]:
|
|
322
|
-
agents = self.agents
|
|
323
|
-
if not agents:
|
|
324
|
-
return []
|
|
325
|
-
return agents
|
|
326
|
-
|
|
327
|
-
@override
|
|
328
|
-
def has_next_page(self) -> bool:
|
|
329
|
-
has_more = self.has_more
|
|
330
|
-
if has_more is not None and has_more is False:
|
|
331
|
-
return False
|
|
332
|
-
|
|
333
|
-
return super().has_next_page()
|
|
334
|
-
|
|
335
|
-
@override
|
|
336
|
-
def next_page_info(self) -> Optional[PageInfo]:
|
|
337
|
-
agents = self.agents
|
|
338
|
-
if not agents:
|
|
339
|
-
return None
|
|
340
|
-
|
|
341
|
-
item = cast(Any, agents[-1])
|
|
342
|
-
if not isinstance(item, AgentsCursorIDPageItem) or item.id is None: # pyright: ignore[reportUnnecessaryComparison]
|
|
343
|
-
# TODO emit warning log
|
|
344
|
-
return None
|
|
345
|
-
|
|
346
|
-
return PageInfo(params={"starting_after": item.id})
|
|
347
|
-
|
|
348
|
-
|
|
349
274
|
class SyncAxonsCursorIDPage(BaseSyncPage[_T], BasePage[_T], Generic[_T]):
|
|
350
275
|
axons: List[_T]
|
|
351
276
|
has_more: Optional[bool] = None
|
|
@@ -16,14 +16,6 @@ from .axons import (
|
|
|
16
16
|
AxonsResourceWithStreamingResponse,
|
|
17
17
|
AsyncAxonsResourceWithStreamingResponse,
|
|
18
18
|
)
|
|
19
|
-
from .agents import (
|
|
20
|
-
AgentsResource,
|
|
21
|
-
AsyncAgentsResource,
|
|
22
|
-
AgentsResourceWithRawResponse,
|
|
23
|
-
AsyncAgentsResourceWithRawResponse,
|
|
24
|
-
AgentsResourceWithStreamingResponse,
|
|
25
|
-
AsyncAgentsResourceWithStreamingResponse,
|
|
26
|
-
)
|
|
27
19
|
from .apikeys import (
|
|
28
20
|
ApikeysResource,
|
|
29
21
|
AsyncApikeysResource,
|
|
@@ -112,12 +104,6 @@ __all__ = [
|
|
|
112
104
|
"AsyncAccountsResourceWithRawResponse",
|
|
113
105
|
"AccountsResourceWithStreamingResponse",
|
|
114
106
|
"AsyncAccountsResourceWithStreamingResponse",
|
|
115
|
-
"AgentsResource",
|
|
116
|
-
"AsyncAgentsResource",
|
|
117
|
-
"AgentsResourceWithRawResponse",
|
|
118
|
-
"AsyncAgentsResourceWithRawResponse",
|
|
119
|
-
"AgentsResourceWithStreamingResponse",
|
|
120
|
-
"AsyncAgentsResourceWithStreamingResponse",
|
|
121
107
|
"AxonsResource",
|
|
122
108
|
"AsyncAxonsResource",
|
|
123
109
|
"AxonsResourceWithRawResponse",
|
|
@@ -981,7 +981,6 @@ class DevboxesResource(SyncAPIResource):
|
|
|
981
981
|
command_id: str | None = None,
|
|
982
982
|
last_n: str | Omit = omit,
|
|
983
983
|
optimistic_timeout: Optional[int] | Omit = omit,
|
|
984
|
-
shell_name: Optional[str] | Omit = omit,
|
|
985
984
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
986
985
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
987
986
|
extra_headers: Headers | None = None,
|
|
@@ -998,10 +997,8 @@ class DevboxesResource(SyncAPIResource):
|
|
|
998
997
|
support.
|
|
999
998
|
|
|
1000
999
|
Args:
|
|
1001
|
-
command: The command to execute via the Devbox shell.
|
|
1002
|
-
|
|
1003
|
-
specified the command is run from the directory based on the recent state of the
|
|
1004
|
-
persistent shell.
|
|
1000
|
+
command: The command to execute via the Devbox shell. Commands are run from the user home
|
|
1001
|
+
directory in a fresh login shell.
|
|
1005
1002
|
|
|
1006
1003
|
command_id: The command ID in UUIDv7 string format for idempotency and tracking.
|
|
1007
1004
|
A fresh UUID is generated per call if not provided.
|
|
@@ -1011,10 +1008,6 @@ class DevboxesResource(SyncAPIResource):
|
|
|
1011
1008
|
optimistic_timeout: Timeout in seconds to wait for command completion, up to 25 seconds. Defaults to
|
|
1012
1009
|
25 seconds. Operation is not killed.
|
|
1013
1010
|
|
|
1014
|
-
shell_name: The name of the persistent shell to create or use if already created. When using
|
|
1015
|
-
a persistent shell, the command will run from the directory at the end of the
|
|
1016
|
-
previous command and environment variables will be preserved.
|
|
1017
|
-
|
|
1018
1011
|
extra_headers: Send extra headers
|
|
1019
1012
|
|
|
1020
1013
|
extra_query: Add additional query parameters to the request
|
|
@@ -1038,7 +1031,6 @@ class DevboxesResource(SyncAPIResource):
|
|
|
1038
1031
|
"command": command,
|
|
1039
1032
|
"command_id": command_id,
|
|
1040
1033
|
"optimistic_timeout": optimistic_timeout,
|
|
1041
|
-
"shell_name": shell_name,
|
|
1042
1034
|
},
|
|
1043
1035
|
devbox_execute_params.DevboxExecuteParams,
|
|
1044
1036
|
),
|
|
@@ -1061,7 +1053,6 @@ class DevboxesResource(SyncAPIResource):
|
|
|
1061
1053
|
command_id: str | None = None,
|
|
1062
1054
|
last_n: str | Omit = omit,
|
|
1063
1055
|
optimistic_timeout: Optional[int] | Omit = omit,
|
|
1064
|
-
shell_name: Optional[str] | Omit = omit,
|
|
1065
1056
|
polling_config: PollingConfig | None = None,
|
|
1066
1057
|
# The following are forwarded to the initial execute request
|
|
1067
1058
|
extra_headers: Headers | None = None,
|
|
@@ -1088,7 +1079,6 @@ class DevboxesResource(SyncAPIResource):
|
|
|
1088
1079
|
command_id=command_id,
|
|
1089
1080
|
last_n=last_n,
|
|
1090
1081
|
optimistic_timeout=optimistic_timeout,
|
|
1091
|
-
shell_name=shell_name,
|
|
1092
1082
|
extra_headers=extra_headers,
|
|
1093
1083
|
extra_query=extra_query,
|
|
1094
1084
|
extra_body=extra_body,
|
|
@@ -1129,7 +1119,6 @@ class DevboxesResource(SyncAPIResource):
|
|
|
1129
1119
|
*,
|
|
1130
1120
|
command: str,
|
|
1131
1121
|
attach_stdin: Optional[bool] | Omit = omit,
|
|
1132
|
-
shell_name: Optional[str] | Omit = omit,
|
|
1133
1122
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1134
1123
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1135
1124
|
extra_headers: Headers | None = None,
|
|
@@ -1143,18 +1132,12 @@ class DevboxesResource(SyncAPIResource):
|
|
|
1143
1132
|
execution that can be used to track the command's progress.
|
|
1144
1133
|
|
|
1145
1134
|
Args:
|
|
1146
|
-
command: The command to execute via the Devbox shell.
|
|
1147
|
-
|
|
1148
|
-
specified the command is run from the directory based on the recent state of the
|
|
1149
|
-
persistent shell.
|
|
1135
|
+
command: The command to execute via the Devbox shell. Commands are run from the user home
|
|
1136
|
+
directory in a fresh login shell.
|
|
1150
1137
|
|
|
1151
1138
|
attach_stdin: Whether to attach stdin streaming for async commands. Not valid for execute_sync
|
|
1152
1139
|
endpoint. Defaults to false if not specified.
|
|
1153
1140
|
|
|
1154
|
-
shell_name: The name of the persistent shell to create or use if already created. When using
|
|
1155
|
-
a persistent shell, the command will run from the directory at the end of the
|
|
1156
|
-
previous command and environment variables will be preserved.
|
|
1157
|
-
|
|
1158
1141
|
extra_headers: Send extra headers
|
|
1159
1142
|
|
|
1160
1143
|
extra_query: Add additional query parameters to the request
|
|
@@ -1173,7 +1156,6 @@ class DevboxesResource(SyncAPIResource):
|
|
|
1173
1156
|
{
|
|
1174
1157
|
"command": command,
|
|
1175
1158
|
"attach_stdin": attach_stdin,
|
|
1176
|
-
"shell_name": shell_name,
|
|
1177
1159
|
},
|
|
1178
1160
|
devbox_execute_async_params.DevboxExecuteAsyncParams,
|
|
1179
1161
|
),
|
|
@@ -1195,7 +1177,6 @@ class DevboxesResource(SyncAPIResource):
|
|
|
1195
1177
|
*,
|
|
1196
1178
|
command: str,
|
|
1197
1179
|
attach_stdin: Optional[bool] | Omit = omit,
|
|
1198
|
-
shell_name: Optional[str] | Omit = omit,
|
|
1199
1180
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1200
1181
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1201
1182
|
extra_headers: Headers | None = None,
|
|
@@ -1213,18 +1194,12 @@ class DevboxesResource(SyncAPIResource):
|
|
|
1213
1194
|
Use execute, execute_async, or execute_and_await_completion instead.
|
|
1214
1195
|
|
|
1215
1196
|
Args:
|
|
1216
|
-
command: The command to execute via the Devbox shell.
|
|
1217
|
-
|
|
1218
|
-
specified the command is run from the directory based on the recent state of the
|
|
1219
|
-
persistent shell.
|
|
1197
|
+
command: The command to execute via the Devbox shell. Commands are run from the user home
|
|
1198
|
+
directory in a fresh login shell.
|
|
1220
1199
|
|
|
1221
1200
|
attach_stdin: Whether to attach stdin streaming for async commands. Not valid for execute_sync
|
|
1222
1201
|
endpoint. Defaults to false if not specified.
|
|
1223
1202
|
|
|
1224
|
-
shell_name: The name of the persistent shell to create or use if already created. When using
|
|
1225
|
-
a persistent shell, the command will run from the directory at the end of the
|
|
1226
|
-
previous command and environment variables will be preserved.
|
|
1227
|
-
|
|
1228
1203
|
extra_headers: Send extra headers
|
|
1229
1204
|
|
|
1230
1205
|
extra_query: Add additional query parameters to the request
|
|
@@ -1245,7 +1220,6 @@ class DevboxesResource(SyncAPIResource):
|
|
|
1245
1220
|
{
|
|
1246
1221
|
"command": command,
|
|
1247
1222
|
"attach_stdin": attach_stdin,
|
|
1248
|
-
"shell_name": shell_name,
|
|
1249
1223
|
},
|
|
1250
1224
|
devbox_execute_sync_params.DevboxExecuteSyncParams,
|
|
1251
1225
|
),
|
|
@@ -2819,7 +2793,6 @@ class AsyncDevboxesResource(AsyncAPIResource):
|
|
|
2819
2793
|
command_id: str | None = None,
|
|
2820
2794
|
last_n: str | Omit = omit,
|
|
2821
2795
|
optimistic_timeout: Optional[int] | Omit = omit,
|
|
2822
|
-
shell_name: Optional[str] | Omit = omit,
|
|
2823
2796
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
2824
2797
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
2825
2798
|
extra_headers: Headers | None = None,
|
|
@@ -2836,10 +2809,8 @@ class AsyncDevboxesResource(AsyncAPIResource):
|
|
|
2836
2809
|
support.
|
|
2837
2810
|
|
|
2838
2811
|
Args:
|
|
2839
|
-
command: The command to execute via the Devbox shell.
|
|
2840
|
-
|
|
2841
|
-
specified the command is run from the directory based on the recent state of the
|
|
2842
|
-
persistent shell.
|
|
2812
|
+
command: The command to execute via the Devbox shell. Commands are run from the user home
|
|
2813
|
+
directory in a fresh login shell.
|
|
2843
2814
|
|
|
2844
2815
|
command_id: The command ID in UUIDv7 string format for idempotency and tracking.
|
|
2845
2816
|
A fresh UUID is generated per call if not provided.
|
|
@@ -2849,10 +2820,6 @@ class AsyncDevboxesResource(AsyncAPIResource):
|
|
|
2849
2820
|
optimistic_timeout: Timeout in seconds to wait for command completion, up to 25 seconds. Defaults to
|
|
2850
2821
|
25 seconds. Operation is not killed.
|
|
2851
2822
|
|
|
2852
|
-
shell_name: The name of the persistent shell to create or use if already created. When using
|
|
2853
|
-
a persistent shell, the command will run from the directory at the end of the
|
|
2854
|
-
previous command and environment variables will be preserved.
|
|
2855
|
-
|
|
2856
2823
|
extra_headers: Send extra headers
|
|
2857
2824
|
|
|
2858
2825
|
extra_query: Add additional query parameters to the request
|
|
@@ -2876,7 +2843,6 @@ class AsyncDevboxesResource(AsyncAPIResource):
|
|
|
2876
2843
|
"command": command,
|
|
2877
2844
|
"command_id": command_id,
|
|
2878
2845
|
"optimistic_timeout": optimistic_timeout,
|
|
2879
|
-
"shell_name": shell_name,
|
|
2880
2846
|
},
|
|
2881
2847
|
devbox_execute_params.DevboxExecuteParams,
|
|
2882
2848
|
),
|
|
@@ -2899,7 +2865,6 @@ class AsyncDevboxesResource(AsyncAPIResource):
|
|
|
2899
2865
|
command_id: str | None = None,
|
|
2900
2866
|
last_n: str | Omit = omit,
|
|
2901
2867
|
optimistic_timeout: Optional[int] | Omit = omit,
|
|
2902
|
-
shell_name: Optional[str] | Omit = omit,
|
|
2903
2868
|
polling_config: PollingConfig | None = None,
|
|
2904
2869
|
# The following are forwarded to the initial execute request
|
|
2905
2870
|
extra_headers: Headers | None = None,
|
|
@@ -2925,7 +2890,6 @@ class AsyncDevboxesResource(AsyncAPIResource):
|
|
|
2925
2890
|
command_id=command_id,
|
|
2926
2891
|
last_n=last_n,
|
|
2927
2892
|
optimistic_timeout=optimistic_timeout,
|
|
2928
|
-
shell_name=shell_name,
|
|
2929
2893
|
extra_headers=extra_headers,
|
|
2930
2894
|
extra_query=extra_query,
|
|
2931
2895
|
extra_body=extra_body,
|
|
@@ -2966,7 +2930,6 @@ class AsyncDevboxesResource(AsyncAPIResource):
|
|
|
2966
2930
|
*,
|
|
2967
2931
|
command: str,
|
|
2968
2932
|
attach_stdin: Optional[bool] | Omit = omit,
|
|
2969
|
-
shell_name: Optional[str] | Omit = omit,
|
|
2970
2933
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
2971
2934
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
2972
2935
|
extra_headers: Headers | None = None,
|
|
@@ -2980,18 +2943,12 @@ class AsyncDevboxesResource(AsyncAPIResource):
|
|
|
2980
2943
|
execution that can be used to track the command's progress.
|
|
2981
2944
|
|
|
2982
2945
|
Args:
|
|
2983
|
-
command: The command to execute via the Devbox shell.
|
|
2984
|
-
|
|
2985
|
-
specified the command is run from the directory based on the recent state of the
|
|
2986
|
-
persistent shell.
|
|
2946
|
+
command: The command to execute via the Devbox shell. Commands are run from the user home
|
|
2947
|
+
directory in a fresh login shell.
|
|
2987
2948
|
|
|
2988
2949
|
attach_stdin: Whether to attach stdin streaming for async commands. Not valid for execute_sync
|
|
2989
2950
|
endpoint. Defaults to false if not specified.
|
|
2990
2951
|
|
|
2991
|
-
shell_name: The name of the persistent shell to create or use if already created. When using
|
|
2992
|
-
a persistent shell, the command will run from the directory at the end of the
|
|
2993
|
-
previous command and environment variables will be preserved.
|
|
2994
|
-
|
|
2995
2952
|
extra_headers: Send extra headers
|
|
2996
2953
|
|
|
2997
2954
|
extra_query: Add additional query parameters to the request
|
|
@@ -3010,7 +2967,6 @@ class AsyncDevboxesResource(AsyncAPIResource):
|
|
|
3010
2967
|
{
|
|
3011
2968
|
"command": command,
|
|
3012
2969
|
"attach_stdin": attach_stdin,
|
|
3013
|
-
"shell_name": shell_name,
|
|
3014
2970
|
},
|
|
3015
2971
|
devbox_execute_async_params.DevboxExecuteAsyncParams,
|
|
3016
2972
|
),
|
|
@@ -3032,7 +2988,6 @@ class AsyncDevboxesResource(AsyncAPIResource):
|
|
|
3032
2988
|
*,
|
|
3033
2989
|
command: str,
|
|
3034
2990
|
attach_stdin: Optional[bool] | Omit = omit,
|
|
3035
|
-
shell_name: Optional[str] | Omit = omit,
|
|
3036
2991
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
3037
2992
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
3038
2993
|
extra_headers: Headers | None = None,
|
|
@@ -3050,18 +3005,12 @@ class AsyncDevboxesResource(AsyncAPIResource):
|
|
|
3050
3005
|
Use execute, execute_async, or execute_and_await_completion instead.
|
|
3051
3006
|
|
|
3052
3007
|
Args:
|
|
3053
|
-
command: The command to execute via the Devbox shell.
|
|
3054
|
-
|
|
3055
|
-
specified the command is run from the directory based on the recent state of the
|
|
3056
|
-
persistent shell.
|
|
3008
|
+
command: The command to execute via the Devbox shell. Commands are run from the user home
|
|
3009
|
+
directory in a fresh login shell.
|
|
3057
3010
|
|
|
3058
3011
|
attach_stdin: Whether to attach stdin streaming for async commands. Not valid for execute_sync
|
|
3059
3012
|
endpoint. Defaults to false if not specified.
|
|
3060
3013
|
|
|
3061
|
-
shell_name: The name of the persistent shell to create or use if already created. When using
|
|
3062
|
-
a persistent shell, the command will run from the directory at the end of the
|
|
3063
|
-
previous command and environment variables will be preserved.
|
|
3064
|
-
|
|
3065
3014
|
extra_headers: Send extra headers
|
|
3066
3015
|
|
|
3067
3016
|
extra_query: Add additional query parameters to the request
|
|
@@ -3082,7 +3031,6 @@ class AsyncDevboxesResource(AsyncAPIResource):
|
|
|
3082
3031
|
{
|
|
3083
3032
|
"command": command,
|
|
3084
3033
|
"attach_stdin": attach_stdin,
|
|
3085
|
-
"shell_name": shell_name,
|
|
3086
3034
|
},
|
|
3087
3035
|
devbox_execute_sync_params.DevboxExecuteSyncParams,
|
|
3088
3036
|
),
|
|
@@ -158,7 +158,6 @@ class ExecutionsResource(SyncAPIResource):
|
|
|
158
158
|
*,
|
|
159
159
|
command: str,
|
|
160
160
|
attach_stdin: Optional[bool] | Omit = omit,
|
|
161
|
-
shell_name: Optional[str] | Omit = omit,
|
|
162
161
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
163
162
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
164
163
|
extra_headers: Headers | None = None,
|
|
@@ -172,18 +171,12 @@ class ExecutionsResource(SyncAPIResource):
|
|
|
172
171
|
execution that can be used to track the command's progress.
|
|
173
172
|
|
|
174
173
|
Args:
|
|
175
|
-
command: The command to execute via the Devbox shell.
|
|
176
|
-
|
|
177
|
-
specified the command is run from the directory based on the recent state of the
|
|
178
|
-
persistent shell.
|
|
174
|
+
command: The command to execute via the Devbox shell. Commands are run from the user home
|
|
175
|
+
directory in a fresh login shell.
|
|
179
176
|
|
|
180
177
|
attach_stdin: Whether to attach stdin streaming for async commands. Not valid for execute_sync
|
|
181
178
|
endpoint. Defaults to false if not specified.
|
|
182
179
|
|
|
183
|
-
shell_name: The name of the persistent shell to create or use if already created. When using
|
|
184
|
-
a persistent shell, the command will run from the directory at the end of the
|
|
185
|
-
previous command and environment variables will be preserved.
|
|
186
|
-
|
|
187
180
|
extra_headers: Send extra headers
|
|
188
181
|
|
|
189
182
|
extra_query: Add additional query parameters to the request
|
|
@@ -202,7 +195,6 @@ class ExecutionsResource(SyncAPIResource):
|
|
|
202
195
|
{
|
|
203
196
|
"command": command,
|
|
204
197
|
"attach_stdin": attach_stdin,
|
|
205
|
-
"shell_name": shell_name,
|
|
206
198
|
},
|
|
207
199
|
execution_execute_async_params.ExecutionExecuteAsyncParams,
|
|
208
200
|
),
|
|
@@ -223,7 +215,6 @@ class ExecutionsResource(SyncAPIResource):
|
|
|
223
215
|
*,
|
|
224
216
|
command: str,
|
|
225
217
|
attach_stdin: Optional[bool] | Omit = omit,
|
|
226
|
-
shell_name: Optional[str] | Omit = omit,
|
|
227
218
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
228
219
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
229
220
|
extra_headers: Headers | None = None,
|
|
@@ -238,18 +229,12 @@ class ExecutionsResource(SyncAPIResource):
|
|
|
238
229
|
execution.
|
|
239
230
|
|
|
240
231
|
Args:
|
|
241
|
-
command: The command to execute via the Devbox shell.
|
|
242
|
-
|
|
243
|
-
specified the command is run from the directory based on the recent state of the
|
|
244
|
-
persistent shell.
|
|
232
|
+
command: The command to execute via the Devbox shell. Commands are run from the user home
|
|
233
|
+
directory in a fresh login shell.
|
|
245
234
|
|
|
246
235
|
attach_stdin: Whether to attach stdin streaming for async commands. Not valid for execute_sync
|
|
247
236
|
endpoint. Defaults to false if not specified.
|
|
248
237
|
|
|
249
|
-
shell_name: The name of the persistent shell to create or use if already created. When using
|
|
250
|
-
a persistent shell, the command will run from the directory at the end of the
|
|
251
|
-
previous command and environment variables will be preserved.
|
|
252
|
-
|
|
253
238
|
extra_headers: Send extra headers
|
|
254
239
|
|
|
255
240
|
extra_query: Add additional query parameters to the request
|
|
@@ -270,7 +255,6 @@ class ExecutionsResource(SyncAPIResource):
|
|
|
270
255
|
{
|
|
271
256
|
"command": command,
|
|
272
257
|
"attach_stdin": attach_stdin,
|
|
273
|
-
"shell_name": shell_name,
|
|
274
258
|
},
|
|
275
259
|
execution_execute_sync_params.ExecutionExecuteSyncParams,
|
|
276
260
|
),
|
|
@@ -694,7 +678,6 @@ class AsyncExecutionsResource(AsyncAPIResource):
|
|
|
694
678
|
*,
|
|
695
679
|
command: str,
|
|
696
680
|
attach_stdin: Optional[bool] | Omit = omit,
|
|
697
|
-
shell_name: Optional[str] | Omit = omit,
|
|
698
681
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
699
682
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
700
683
|
extra_headers: Headers | None = None,
|
|
@@ -708,18 +691,12 @@ class AsyncExecutionsResource(AsyncAPIResource):
|
|
|
708
691
|
execution that can be used to track the command's progress.
|
|
709
692
|
|
|
710
693
|
Args:
|
|
711
|
-
command: The command to execute via the Devbox shell.
|
|
712
|
-
|
|
713
|
-
specified the command is run from the directory based on the recent state of the
|
|
714
|
-
persistent shell.
|
|
694
|
+
command: The command to execute via the Devbox shell. Commands are run from the user home
|
|
695
|
+
directory in a fresh login shell.
|
|
715
696
|
|
|
716
697
|
attach_stdin: Whether to attach stdin streaming for async commands. Not valid for execute_sync
|
|
717
698
|
endpoint. Defaults to false if not specified.
|
|
718
699
|
|
|
719
|
-
shell_name: The name of the persistent shell to create or use if already created. When using
|
|
720
|
-
a persistent shell, the command will run from the directory at the end of the
|
|
721
|
-
previous command and environment variables will be preserved.
|
|
722
|
-
|
|
723
700
|
extra_headers: Send extra headers
|
|
724
701
|
|
|
725
702
|
extra_query: Add additional query parameters to the request
|
|
@@ -738,7 +715,6 @@ class AsyncExecutionsResource(AsyncAPIResource):
|
|
|
738
715
|
{
|
|
739
716
|
"command": command,
|
|
740
717
|
"attach_stdin": attach_stdin,
|
|
741
|
-
"shell_name": shell_name,
|
|
742
718
|
},
|
|
743
719
|
execution_execute_async_params.ExecutionExecuteAsyncParams,
|
|
744
720
|
),
|
|
@@ -759,7 +735,6 @@ class AsyncExecutionsResource(AsyncAPIResource):
|
|
|
759
735
|
*,
|
|
760
736
|
command: str,
|
|
761
737
|
attach_stdin: Optional[bool] | Omit = omit,
|
|
762
|
-
shell_name: Optional[str] | Omit = omit,
|
|
763
738
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
764
739
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
765
740
|
extra_headers: Headers | None = None,
|
|
@@ -774,18 +749,12 @@ class AsyncExecutionsResource(AsyncAPIResource):
|
|
|
774
749
|
execution.
|
|
775
750
|
|
|
776
751
|
Args:
|
|
777
|
-
command: The command to execute via the Devbox shell.
|
|
778
|
-
|
|
779
|
-
specified the command is run from the directory based on the recent state of the
|
|
780
|
-
persistent shell.
|
|
752
|
+
command: The command to execute via the Devbox shell. Commands are run from the user home
|
|
753
|
+
directory in a fresh login shell.
|
|
781
754
|
|
|
782
755
|
attach_stdin: Whether to attach stdin streaming for async commands. Not valid for execute_sync
|
|
783
756
|
endpoint. Defaults to false if not specified.
|
|
784
757
|
|
|
785
|
-
shell_name: The name of the persistent shell to create or use if already created. When using
|
|
786
|
-
a persistent shell, the command will run from the directory at the end of the
|
|
787
|
-
previous command and environment variables will be preserved.
|
|
788
|
-
|
|
789
758
|
extra_headers: Send extra headers
|
|
790
759
|
|
|
791
760
|
extra_query: Add additional query parameters to the request
|
|
@@ -806,7 +775,6 @@ class AsyncExecutionsResource(AsyncAPIResource):
|
|
|
806
775
|
{
|
|
807
776
|
"command": command,
|
|
808
777
|
"attach_stdin": attach_stdin,
|
|
809
|
-
"shell_name": shell_name,
|
|
810
778
|
},
|
|
811
779
|
execution_execute_sync_params.ExecutionExecuteSyncParams,
|
|
812
780
|
),
|