Skip to content

Commit ffd1258

Browse files
authored
Export ReadyCMD class (#992)
for building type-safe wrappers around .setStartCmd/.setReadyCmd <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Expose `ReadyCmd` via JS (`packages/js-sdk/src/index.ts`) and Python (`e2b/__init__.py`) SDK entrypoints, with patch version bumps. > > - **SDK Exports**: > - **JS**: Re-exports `ReadyCmd` from `./template/readycmd` in `packages/js-sdk/src/index.ts`. > - **Python**: Exposes `ReadyCmd` in `e2b/__init__.py` imports and `__all__`. > - **Versioning**: > - `.changeset/early-trainers-repeat.md`: Patch bumps for `@e2b/python-sdk` and `e2b`. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit ff91a3e. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent 06aeae6 commit ffd1258

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@e2b/python-sdk': patch
3+
'e2b': patch
4+
---
5+
6+
export ReadyCmd class

packages/js-sdk/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export default Sandbox
6767
export * from './template'
6868

6969
export {
70+
ReadyCmd,
7071
waitForPort,
7172
waitForURL,
7273
waitForProcess,

packages/python-sdk/e2b/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
)
8686
from .template.main import TemplateBase, TemplateClass
8787
from .template.readycmd import (
88+
ReadyCmd,
8889
wait_for_file,
8990
wait_for_url,
9091
wait_for_port,
@@ -149,6 +150,7 @@
149150
"TemplateBase",
150151
"TemplateClass",
151152
"CopyItem",
153+
"ReadyCmd",
152154
"wait_for_file",
153155
"wait_for_url",
154156
"wait_for_port",

0 commit comments

Comments
 (0)