Skip to content

Commit d36e230

Browse files
🌿 Fern Regeneration -- May 27, 2025 (#55)
* SDK regeneration * add timeout --------- Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: Cooper Miller <kcoopermiller9@gmail.com>
1 parent 47e16cc commit d36e230

7 files changed

Lines changed: 49 additions & 24 deletions

File tree

poetry.lock

Lines changed: 24 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "scrapybara"
33

44
[tool.poetry]
55
name = "scrapybara"
6-
version = "2.5.1"
6+
version = "2.5.2"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,14 @@ client.instance.bash(
490490
<dl>
491491
<dd>
492492

493+
**timeout:** `typing.Optional[float]`
494+
495+
</dd>
496+
</dl>
497+
498+
<dl>
499+
<dd>
500+
493501
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
494502

495503
</dd>

src/scrapybara/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -887,6 +887,7 @@ def bash(
887887
restart: Optional[bool] = OMIT,
888888
list_sessions: Optional[bool] = OMIT,
889889
check_session: Optional[int] = OMIT,
890+
timeout: Optional[float] = None,
890891
request_options: Optional[RequestOptions] = None,
891892
) -> Optional[Any]:
892893
return self._client.instance.bash(
@@ -896,6 +897,7 @@ def bash(
896897
restart=restart,
897898
list_sessions=list_sessions,
898899
check_session=check_session,
900+
timeout=timeout,
899901
request_options=request_options
900902
)
901903

@@ -1411,6 +1413,7 @@ async def bash(
14111413
restart: Optional[bool] = OMIT,
14121414
list_sessions: Optional[bool] = OMIT,
14131415
check_session: Optional[int] = OMIT,
1416+
timeout: Optional[float] = None,
14141417
request_options: Optional[RequestOptions] = None,
14151418
) -> Optional[Any]:
14161419
return await self._client.instance.bash(
@@ -1420,6 +1423,7 @@ async def bash(
14201423
restart=restart,
14211424
list_sessions=list_sessions,
14221425
check_session=check_session,
1426+
timeout=timeout,
14231427
request_options=request_options
14241428
)
14251429

src/scrapybara/core/client_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def get_headers(self) -> typing.Dict[str, str]:
1616
headers: typing.Dict[str, str] = {
1717
"X-Fern-Language": "Python",
1818
"X-Fern-SDK-Name": "scrapybara",
19-
"X-Fern-SDK-Version": "2.5.1",
19+
"X-Fern-SDK-Version": "2.5.2",
2020
}
2121
headers["x-api-key"] = self.api_key
2222
return headers

src/scrapybara/instance/client.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ def bash(
217217
restart: typing.Optional[bool] = OMIT,
218218
list_sessions: typing.Optional[bool] = OMIT,
219219
check_session: typing.Optional[int] = OMIT,
220+
timeout: typing.Optional[float] = OMIT,
220221
request_options: typing.Optional[RequestOptions] = None,
221222
) -> BashResponse:
222223
"""
@@ -234,6 +235,8 @@ def bash(
234235
235236
check_session : typing.Optional[int]
236237
238+
timeout : typing.Optional[float]
239+
237240
request_options : typing.Optional[RequestOptions]
238241
Request-specific configuration.
239242
@@ -262,6 +265,7 @@ def bash(
262265
"restart": restart,
263266
"list_sessions": list_sessions,
264267
"check_session": check_session,
268+
"timeout": timeout,
265269
},
266270
headers={
267271
"content-type": "application/json",
@@ -988,6 +992,7 @@ async def bash(
988992
restart: typing.Optional[bool] = OMIT,
989993
list_sessions: typing.Optional[bool] = OMIT,
990994
check_session: typing.Optional[int] = OMIT,
995+
timeout: typing.Optional[float] = OMIT,
991996
request_options: typing.Optional[RequestOptions] = None,
992997
) -> BashResponse:
993998
"""
@@ -1005,6 +1010,8 @@ async def bash(
10051010
10061011
check_session : typing.Optional[int]
10071012
1013+
timeout : typing.Optional[float]
1014+
10081015
request_options : typing.Optional[RequestOptions]
10091016
Request-specific configuration.
10101017
@@ -1041,6 +1048,7 @@ async def main() -> None:
10411048
"restart": restart,
10421049
"list_sessions": list_sessions,
10431050
"check_session": check_session,
1051+
"timeout": timeout,
10441052
},
10451053
headers={
10461054
"content-type": "application/json",

src/scrapybara/tools/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ class BashToolParameters(BaseModel):
169169
restart: Optional[bool] = Field(False, description="Whether to restart the shell")
170170
list_sessions: Optional[bool] = Field(None, description="Whether to list all bash sessions")
171171
check_session: Optional[int] = Field(None, description="Session ID to check status")
172+
timeout: Optional[float] = Field(None, description="Timeout for the command")
172173

173174

174175
class BashTool(Tool):
@@ -193,6 +194,7 @@ def __call__(self, **kwargs: Any) -> Any:
193194
session=params.session,
194195
restart=params.restart,
195196
list_sessions=params.list_sessions,
196-
check_session=params.check_session
197+
check_session=params.check_session,
198+
timeout=params.timeout,
197199
)
198200

0 commit comments

Comments
 (0)