Commit Graph

678 Commits

Author SHA1 Message Date
github-actions[bot] 2822c7bec0 [skip ci] Release new versions 2025-04-10 16:09:43 +00:00
Mish Ushakov f4e0026583 Updates SandboxApiOpts type with added headers field (#677)
- Minor type fix
2025-04-10 18:04:25 +02:00
0div e0c1bc752d Make codegen robust and deterministic for js and python SDKs (#664)
# Description 

This PR allows to codegen without worrying about your environment and
dependencies for consistent outcomes in what code is generated from
openapi and envd protobuf spec. Will generate files for `js-sdk` and
`python-sdk`

- [x] create Docker image with all the pinned deps needed to codegen
- [x] create codegen script using this container with mapped volumes
- [x] adapt Makefiles to this new approach
- [x] adapt where we install the connect-python protobuf binary for this
to work

# Test

```sh
make codegen # this command is similar to `make generate` but w/o the hassle

Generating SDK code from openapi and envd spec
cd packages/js-sdk && pnpm generate

> e2b@1.2.1 generate /workspace/packages/js-sdk
> python ./../../spec/remove_extra_tags.py sandboxes templates && openapi-typescript ../../spec/openapi_generated.yml -x api_key --arr
ay-length --alphabetize --output src/api/schema.gen.ts

 openapi-typescript 7.6.1
🚀 ../../spec/openapi_generated.yml → src/api/schema.gen.ts [44.2ms]
cd packages/js-sdk && pnpm generate-envd-api

> e2b@1.2.1 generate-envd-api /workspace/packages/js-sdk
> openapi-typescript ../../spec/envd/envd.yaml -x api_key --array-length --alphabetize --output src/envd/schema.gen.ts

 openapi-typescript 7.6.1
🚀 ../../spec/envd/envd.yaml → src/envd/schema.gen.ts [22.7ms]

[...]

cd packages/python-sdk && make generate-api

All done!  🍰 
```

---------

Co-authored-by: Jiri Sveceny <jiri.sveceny@icloud.com>
2025-04-07 17:00:31 +02:00
Jakub Novák e9f39b07f1 Remove order check from SDK. (#675)
# Description

The test was moved to integration tests directly in infra repo
2025-04-07 07:00:57 -07:00
Jakub Novák 2aada562d1 Update esbuild to 0.25.0 (#673)
# Description

https://github.com/e2b-dev/E2B/security/dependabot/147
2025-04-07 15:54:56 +02:00
github-actions[bot] b02f93e7f4 [skip ci] Release new versions 2025-04-05 20:21:53 +00:00
github-actions[bot] ac81f95529 [skip ci] Release new versions 2025-04-05 19:43:23 +00:00
Jakub Novák 74a6944140 Fix test for closed ports (#668)
# Description

The response from backend for port is actual integer
2025-04-05 20:38:38 +01:00
Mish Ushakov cf128195a5 (Workers) Patch connect-es fetch transport to always use redirect: follow (#671)
backports the changes from beta branch (#669)
2025-04-05 20:31:34 +01:00
github-actions[bot] e8fadf947b [skip ci] Release new versions 2025-04-03 23:12:36 +00:00
Mish Ushakov 1bdf809e8b Make possible to pass custom headers in the SDKs (#656)
This feature allows passing custom headers in the Python and JS SDK. One
use-case for it currently is passing custom authorization (Supabase)
headers with the request.
2025-04-04 00:08:12 +01:00
Mish 7638231277 fix "sandbox id" naming consistency (uppercase) 2025-03-28 11:02:16 +01:00
Mish c0efd6f322 added additional test coverage for getInfo, updated doc 2025-03-24 16:59:37 +01:00
github-actions[bot] 8fdb429998 [skip ci] Release new versions 2025-03-24 13:33:20 +00:00
Mish Ushakov d4f4352aa3 Add getInfo/get_info methods to the SDKs (#625)
- Rebased version of #517
2025-03-24 14:26:18 +01:00
github-actions[bot] 5d8b719b21 [skip ci] Release new versions 2025-03-24 11:45:11 +00:00
Jiri Sveceny 85c4505b9f Change default domain in sdks from e2b.dev to e2b.app (#635) 2025-03-24 12:40:22 +01:00
github-actions[bot] b6b0ac6f97 [skip ci] Release new versions 2025-03-21 15:02:41 +00:00
Jakub Novák 5c4d07536f Add filtering option for listing sandboxes (#532)
# Description

Allow users to filter out sandbox based on metadata

---------

Co-authored-by: Mish Ushakov <10400064+mishushakov@users.noreply.github.com>
2025-03-21 15:57:48 +01:00
github-actions[bot] b402327b6d [skip ci] Release new versions 2025-03-20 09:56:31 +00:00
Jakub Novák 2904f3e80b Fix failing write test (#621)
# Description

Sandbox is closed before the test ends, which resulted in error. The
clean up is meant for local testing only
2025-03-20 02:51:42 -07:00
0div d26ff435d6 Fix release test for multi-file write support (#615)
The previous [release
workflow]([Release](https://github.com/e2b-dev/E2B/commit/b3fe5e6777357a7d814c7dbe4525a18f3f83288f/checks))
errored after merging this [old
PR](https://github.com/e2b-dev/E2B/pull/451), here are the fixes:
- [x] use `WatchOpts` instead of `FilesystemOpts` to avoid TS errors in
js-sdk filesystem method
- [x] fix python-sdk watch test.
2025-03-19 16:07:37 -07:00
0div a8e88de846 fix merge conflict with main 2025-03-18 09:09:13 -07:00
Jakub Novák 71415ed9e5 Fix flaky tests - Increase the timeout for pinging the server (#612)
Also changed the ports, so if you run locally there's no port collision
2025-03-18 08:26:25 -07:00
0div e905d9be34 Test sandbox closed port error (#597)
this PR adds tests in js and python SDKs for closed port errors
enhancement #265
2025-03-14 02:19:27 -07:00
0div dad913efcf pin typdoc and typedoc-markdown to non-breaking versions in js-sdk 2025-03-13 11:21:15 -07:00
Jakub Novak 26b2fe5de1 Fix browser test 2025-02-10 18:13:01 -08:00
Jakub Novak cc8447be05 Bump knip 2025-02-05 10:29:41 -08:00
Jakub Novak 3bbc0b9547 Update packages 2025-02-05 10:22:20 -08:00
Jakub Novak 67787e5b0b Bump packages 2025-02-05 09:45:55 -08:00
Jakub Novak c7b9fc20b4 Update vitest 2025-02-04 22:21:17 -08:00
github-actions[bot] cd45aa4aae [skip ci] Release new versions 2025-02-05 05:27:07 +00:00
Jakub Novak cff68d213b Fix check order 2025-02-04 21:22:40 -08:00
Jakub Novak c68fa4495b If in browser don't use process 2025-02-04 16:12:29 -08:00
github-actions[bot] dde83b7986 [skip ci] Release new versions 2025-01-28 19:58:38 +00:00
Jakub Novak 8c52e73cdd Lint 2025-01-28 11:28:49 -08:00
Jakub Novak 359d17d0c4 Fix versions to match updated envd version 2025-01-28 11:28:35 -08:00
Jakub Dobrý 51e8f186e6 Cleanup tests only in debug 2025-01-28 11:28:19 -08:00
Jakub Dobrý 29dc1a98dd Add recursive watch envd version check 2025-01-28 11:27:10 -08:00
Jakub Dobrý ea8f4ffb33 Run js tests cleanup using onTestFinished 2025-01-28 11:26:32 -08:00
Jakub Dobrý 6596eda139 Test for recursive folder creation, add newline after code to docs 2025-01-28 11:26:32 -08:00
Jakub Dobrý c8914c2114 Improve recursive watch tests and folders naming 2025-01-28 11:26:32 -08:00
Jakub Dobrý d35880c74e Improve watchDir jsSDK default value 2025-01-28 11:26:31 -08:00
Jakub Dobrý 25c4539de6 Add watch dir recursive option (missing python client regeneration) 2025-01-28 11:25:42 -08:00
Jakub Novak 323c221832 Add TS test 2025-01-22 20:57:43 -08:00
Jakub Novak 9282976628 Add envd version 2025-01-22 20:50:48 -08:00
0div 7beccd7d21 Boilerplate for integration tests (within js-sdk) (#519)
# Description 
- [x] nextjs integration test template
- [x] `pnpm test:integration`
- [x] set of stress tests
- [x] adapt vitest workspace
2025-01-17 17:19:42 -08:00
Jakub Novák fae8d02859 Generate only relevant api routes for the client in SDKs (#542)
# Description

No need to generate to generate for endpoints not relevant to the SDKs
(e.g. admin endpoints)
2025-01-17 14:26:00 -08:00
Jakub Novak 238887b03d Add retry block to host and stdin tests 2025-01-17 14:24:01 -08:00
Jakub Novak 594bb174d2 Generate only relevant api routes for the client in SDKs 2025-01-17 11:01:40 -08:00