Skip to content

Commit f986282

Browse files
fix: clean up PTY and lifecycle hook OpenAPI descriptions (#9502)
1 parent 71ce0bf commit f986282

6 files changed

Lines changed: 20 additions & 26 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 119
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai/runloop-3ed5d8482ad69c2c52b9387f0c16e9a5053115b6e4c64ff59a32a0ab3498d7e2.yml
3-
openapi_spec_hash: b48f3fb201ee657d669d937ca92c55bf
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai/runloop-7235763cbdfd60834a897f356688d758b598a1dd723623330ea398dea2abea68.yml
3+
openapi_spec_hash: 01b9dbab4b732e4b83952debd108e404
44
config_hash: 444e00951b440bf92e7548b2807584a4

src/runloop_api_client/resources/pty.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ def control(
137137
"""Applies a PTY control operation to an existing session.
138138
139139
The action field selects
140-
the operation; the other fields in PtyControlParameters are interpreted only
141-
when they are relevant to the chosen action.
140+
the operation; the other fields in PtyControlParams are interpreted only when
141+
they are relevant to the chosen action.
142142
143143
resize: cols and rows are required and must each be in 1..=1000. A 0 or
144144
out-of-range value returns 400. The new winsize is applied to the PTY master and
@@ -302,8 +302,8 @@ async def control(
302302
"""Applies a PTY control operation to an existing session.
303303
304304
The action field selects
305-
the operation; the other fields in PtyControlParameters are interpreted only
306-
when they are relevant to the chosen action.
305+
the operation; the other fields in PtyControlParams are interpreted only when
306+
they are relevant to the chosen action.
307307
308308
resize: cols and rows are required and must each be in 1..=1000. A 0 or
309309
out-of-range value returns 400. The new winsize is applied to the PTY master and

src/runloop_api_client/types/shared/lifecycle_configuration.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,12 @@ class LifecycleConfiguration(BaseModel):
2626
lifecycle_hooks: Optional[LifecycleHooks] = None
2727
"""Lifecycle hooks for Devbox suspend.
2828
29-
suspend_commands run sequentially as the configured Devbox user through the
30-
rage/vmagent suspend path before the Devbox suspends; failures are logged but do
31-
not block suspending. The suspend_deadline_ms budget defaults to 30000 ms, may
32-
not exceed 60000 ms, and covers broker drain plus suspend_commands. If the
33-
deadline is exceeded, suspend work is abandoned, the timeout is logged, and the
34-
Devbox still proceeds to suspend by shutting down vmagent and killing the VM.
35-
Resume hooks and resume deadline settings are persistence/internal only and
36-
hidden from the public API reference. launch_commands still run on every
37-
startup, including after resume.
29+
suspend_commands run sequentially as the configured Devbox user before the
30+
Devbox suspends; failures are logged but do not block suspending. The
31+
suspend_deadline_ms budget defaults to 30000 ms, may not exceed 60000 ms, and
32+
covers broker drain plus suspend_commands. If the deadline is exceeded, suspend
33+
work is abandoned, the timeout is logged, and the Devbox still proceeds to
34+
suspend. launch_commands still run on every startup, including after resume.
3835
"""
3936

4037
resume_triggers: Optional[ResumeTriggers] = None

src/runloop_api_client/types/shared/lifecycle_hooks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class LifecycleHooks(BaseModel):
1111
"""Lifecycle hooks for Devbox suspend.
1212
13-
suspend_commands run sequentially as the configured Devbox user through the rage/vmagent suspend path before the Devbox suspends; failures are logged but do not block suspending. The suspend_deadline_ms budget defaults to 30000 ms, may not exceed 60000 ms, and covers broker drain plus suspend_commands. If the deadline is exceeded, suspend work is abandoned, the timeout is logged, and the Devbox still proceeds to suspend by shutting down vmagent and killing the VM. Resume hooks and resume deadline settings are persistence/internal only and hidden from the public API reference. launch_commands still run on every startup, including after resume.
13+
suspend_commands run sequentially as the configured Devbox user before the Devbox suspends; failures are logged but do not block suspending. The suspend_deadline_ms budget defaults to 30000 ms, may not exceed 60000 ms, and covers broker drain plus suspend_commands. If the deadline is exceeded, suspend work is abandoned, the timeout is logged, and the Devbox still proceeds to suspend. launch_commands still run on every startup, including after resume.
1414
"""
1515

1616
suspend_commands: Optional[List[str]] = None

src/runloop_api_client/types/shared_params/lifecycle_configuration.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,12 @@ class LifecycleConfiguration(TypedDict, total=False):
2828
lifecycle_hooks: Optional[LifecycleHooks]
2929
"""Lifecycle hooks for Devbox suspend.
3030
31-
suspend_commands run sequentially as the configured Devbox user through the
32-
rage/vmagent suspend path before the Devbox suspends; failures are logged but do
33-
not block suspending. The suspend_deadline_ms budget defaults to 30000 ms, may
34-
not exceed 60000 ms, and covers broker drain plus suspend_commands. If the
35-
deadline is exceeded, suspend work is abandoned, the timeout is logged, and the
36-
Devbox still proceeds to suspend by shutting down vmagent and killing the VM.
37-
Resume hooks and resume deadline settings are persistence/internal only and
38-
hidden from the public API reference. launch_commands still run on every
39-
startup, including after resume.
31+
suspend_commands run sequentially as the configured Devbox user before the
32+
Devbox suspends; failures are logged but do not block suspending. The
33+
suspend_deadline_ms budget defaults to 30000 ms, may not exceed 60000 ms, and
34+
covers broker drain plus suspend_commands. If the deadline is exceeded, suspend
35+
work is abandoned, the timeout is logged, and the Devbox still proceeds to
36+
suspend. launch_commands still run on every startup, including after resume.
4037
"""
4138

4239
resume_triggers: Optional[ResumeTriggers]

src/runloop_api_client/types/shared_params/lifecycle_hooks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
class LifecycleHooks(TypedDict, total=False):
1414
"""Lifecycle hooks for Devbox suspend.
1515
16-
suspend_commands run sequentially as the configured Devbox user through the rage/vmagent suspend path before the Devbox suspends; failures are logged but do not block suspending. The suspend_deadline_ms budget defaults to 30000 ms, may not exceed 60000 ms, and covers broker drain plus suspend_commands. If the deadline is exceeded, suspend work is abandoned, the timeout is logged, and the Devbox still proceeds to suspend by shutting down vmagent and killing the VM. Resume hooks and resume deadline settings are persistence/internal only and hidden from the public API reference. launch_commands still run on every startup, including after resume.
16+
suspend_commands run sequentially as the configured Devbox user before the Devbox suspends; failures are logged but do not block suspending. The suspend_deadline_ms budget defaults to 30000 ms, may not exceed 60000 ms, and covers broker drain plus suspend_commands. If the deadline is exceeded, suspend work is abandoned, the timeout is logged, and the Devbox still proceeds to suspend. launch_commands still run on every startup, including after resume.
1717
"""
1818

1919
suspend_commands: Optional[SequenceNotStr[str]]

0 commit comments

Comments
 (0)