Commit Graph

629 Commits

Author SHA1 Message Date
Jakub Novák b42ab2a86b Add pipeline for linting and formatting (#883)
Setup linting and formatting in all packages
2025-08-31 12:06:00 -07:00
Jakub Novák a5f4802ec5 Add migration guide to docs (#870)
Adds migration guide for SDK v2
Adds mentions about auto pause

https://e2b-web-git-migration-guide-v2.e2b-preview.dev/docs/migration/v2

---------

Co-authored-by: Vasek Mlejnsky <vasek@e2b.dev>
2025-08-28 01:21:43 -07:00
github-actions[bot] 663d832ddc [skip ci] Release new versions 2025-08-22 09:45:46 +00:00
github-actions[bot] 4eb3a2d322 [skip ci] Release new versions 2025-08-21 20:08:42 +00:00
Jakub Novák 400bb86e41 Fix docs build (#866)
```
Type error: Property 'some' does not exist on type 'SandboxPaginator'.
  10 | export async function verifySandbox(apiKey: string, sandboxId: string) {
  11 |   const sandboxes = await Sandbox.list({ apiKey })
> 12 |   return sandboxes.some((sandbox) => sandbox.sandboxId === sandboxId)
     |                    ^
  13 | }
  ```
2025-08-21 09:39:54 -07:00
github-actions[bot] 774dfd7667 [skip ci] Release new versions 2025-08-21 15:51:16 +00:00
Jakub Novák 74457ff1dd SDK v2 - Changeset and docs (#862)
SDK v2 release
2025-08-21 08:45:25 -07:00
Alessio Fanelli 1fbad37d1b Fix wrong import (#859)
It's Sandbox, not sandbox
2025-08-19 00:25:47 -07:00
0div a6073cede1 Update sandbox lifecycle docs with REST API (#856)
Add section to sandbox [lifecyle docs](https://e2b.dev/docs/sandbox)
about the new RESTful API.

---------

Co-authored-by: Tg Ft <tgft@Tgs-Mac-mini.local>
2025-08-18 00:09:02 -07:00
Vasek Mlejnsky 6da92a5a67 Fix wrong number in rate limits (#858) 2025-08-17 14:01:39 +00:00
Jiri Sveceny 22df213ffb BYOC Docs page (#853)
Added doc page related to the Bring Your Own Cloud offering.
2025-08-07 17:13:26 -07:00
github-actions[bot] e140ec3717 [skip ci] Release new versions 2025-08-06 21:14:31 +00:00
github-actions[bot] 7540839268 [skip ci] Release new versions 2025-08-06 10:32:14 +00:00
Tomas Valenta 0bace983b1 Increase default request timeout (#847)
Increase the default request timeout to 60 seconds. This is the value in
the current beta, and with the merge, we want to keep it that way, to
minimize possible negative migration impact.
2025-08-06 03:27:19 -07:00
github-actions[bot] 9d2b3c92a7 [skip ci] Release new versions 2025-08-04 12:40:16 +00:00
Jiri Sveceny c0a41722e5 Secured sandbox auto signature (#845)
Some users report that JS/Python types lack a `useSignature` attribute,
which only works when `secure=true` is set for the sandbox. This change
removes the `useSignatrue` parameter and makes all upload/download URL
requests signed if `secure` was provided, making sure the function will
work for all possible cases.

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Ben Fornefeld <50748440+ben-fornefeld@users.noreply.github.com>
2025-08-04 12:34:59 +00:00
Vasek Mlejnsky beb1e2cdd8 Fix typo (#844) 2025-08-02 17:23:31 +00:00
Vasek Mlejnsky 2c3b01b3cb Add rate limits page (#843)
Adds page with details about rate limits.

---------

Co-authored-by: Tomas Valenta <valenta.and.thomas@gmail.com>
2025-08-02 01:14:08 +00:00
0div 4d7eda4f51 Sort SDK version for dropdown using semver package (#839)
Sorting the versions lexicographically was not ordering by latest
correctly, now using `semver` package to sort them:
```ts
> versions = [
  '1.9.0',  '1.8.0',
  '1.7.0',  '1.6.0',
  '1.5.0',  '1.4.0',
  '1.3.0',  '1.2.0',
  '1.12.0', '1.11.0',
  '1.10.0', '1.1.0',
  '1.0.0'
]

> versions.sort((a, b) => semver.rcompare(a, b))
[
  '1.12.0', '1.11.0',
  '1.10.0', '1.9.0',
  '1.8.0',  '1.7.0',
  '1.6.0',  '1.5.0',
  '1.4.0',  '1.3.0',
  '1.2.0',  '1.1.0',
  '1.0.0'
]
```
2025-07-31 14:01:15 -07:00
Tomas Valenta 761f74ebaa Remove new tags from Metrics and Persistence (#838) 2025-07-31 10:33:01 -07:00
github-actions[bot] 64a5d52dd5 [skip ci] Release new versions 2025-07-31 10:43:16 +00:00
github-actions[bot] 0c6cfed137 [skip ci] Release new versions 2025-07-31 09:57:39 +00:00
github-actions[bot] 115407cf1e [skip ci] Release new versions 2025-07-31 09:44:55 +00:00
Jakub Novák f123091e9a Allow to block network from SDK (#834)
# Description

This pull request introduces the ability to control internet access for
sandboxes, enhancing security for sensitive workloads.
2025-07-31 02:34:57 -07:00
github-actions[bot] 76d62ed070 [skip ci] Release new versions 2025-07-30 19:25:33 +00:00
Jakub Novák e34d69525f Expose sandbox metrics in SDKs and CLI (#828)
# Description

Expose sandbox metrics in SDKs and CLI


```
e2b sbx mt il98ycmohc6enybi79uf8

Metrics for sandbox il98ycmohc6enybi79uf8:

[2025-07-25 14:05:55Z]  CPU:  8.27% /  2 Cores | Memory:    31 / 484   MiB | Disk:  1445 / 2453  MiB
[2025-07-25 14:06:00Z]  CPU:   0.5% /  2 Cores | Memory:    32 / 484   MiB | Disk:  1445 / 2453  MiB
[2025-07-25 14:06:05Z]  CPU:   0.1% /  2 Cores | Memory:    32 / 484   MiB | Disk:  1445 / 2453  MiB
[2025-07-25 14:06:10Z]  CPU:   0.3% /  2 Cores | Memory:    32 / 484   MiB | Disk:  1445 / 2453  MiB

```

---------

Co-authored-by: Tomas Valenta <valenta.and.thomas@gmail.com>
2025-07-30 12:17:30 -07:00
Jakub Novák 14d7ff645b Update documentation title for file and directory metadata (#832)
This pull request updates the title of a navigation route in the
`docRoutes` configuration to improve clarity and consistency.

From:
<img width="342" height="288" alt="image"
src="https://github.com/user-attachments/assets/be4f237f-d329-468e-b5fc-098704eb1ae8"
/>

To:
<img width="381" height="254" alt="image"
src="https://github.com/user-attachments/assets/73d0cadb-3dd1-45f1-a94e-c050556bb4c6"
/>
2025-07-29 16:06:30 +00:00
github-actions[bot] 7f26f5536e [skip ci] Release new versions 2025-07-29 10:44:36 +00:00
Mish Ushakov edeafb1cdd Adds files.getInfo / files.get_info methods to retrieve information about directory/files (#724)
**Changelog**

- Adds `files.getInfo`, `files.get_info` methods to the SDKs.
- Adds tests for the new methods
- Adds documentation for the above.

**Examples**

JavaScript

```js
import { Sandbox } from '@e2b/code-interpreter'

const sandbox = await Sandbox.create()

// Create a new file
await sandbox.files.write('test_file.txt', 'Hello, world!')

// Get information about the file
const info = await sandbox.files.getInfo('test_file.txt')

console.log(info)
// {
//   name: 'test_file.txt',
//   type: 'file',
//   path: '/home/user/test_file.txt'
// }
```

Python

```py
from e2b_code_interpreter import Sandbox

sandbox = Sandbox()

# Create a new file
sandbox.files.write('test_file', 'Hello, world!')

# Get information about the file
info = sandbox.files.get_info('test_file')

print(info)
# EntryInfo(name='test_file.txt', type=<FileType.FILE: 'file'>, path='/home/user/test_file.txt')
```

---------

Co-authored-by: Jakub Novak <jakub@e2b.dev>
2025-07-29 03:39:42 -07:00
0div 625f6d830f Update sandbox env var markdown doc file (#831)
Remove the erroneous note about scoped command env vars.
2025-07-28 19:36:52 -07:00
github-actions[bot] 37d69be891 [skip ci] Release new versions 2025-07-28 15:23:07 +00:00
Jakub Dobry c28f471013 Add note about Debian based images limitation (#825) 2025-07-25 03:13:07 -07:00
Jakub Novák 3b26f71b44 Update dependencies (#824)
# Description

Fixes: 
https://github.com/e2b-dev/E2B/security/dependabot/184
https://github.com/e2b-dev/E2B/security/dependabot/182
https://github.com/e2b-dev/E2B/security/dependabot/178
https://github.com/e2b-dev/E2B/security/dependabot/183
https://github.com/e2b-dev/E2B/security/dependabot/176
https://github.com/e2b-dev/E2B/security/dependabot/175
https://github.com/e2b-dev/E2B/security/dependabot/174
https://github.com/e2b-dev/E2B/security/dependabot/173
2025-07-24 06:21:03 -07:00
github-actions[bot] 37ec33654d [skip ci] Release new versions 2025-07-18 15:23:52 +00:00
github-actions[bot] e7538fb5cc [skip ci] Release new versions 2025-07-18 11:20:02 +00:00
github-actions[bot] 5f207ffa95 [skip ci] Release new versions 2025-07-17 13:16:31 +00:00
github-actions[bot] 5cf6c145a5 [skip ci] Release new versions 2025-07-10 13:45:42 +00:00
github-actions[bot] 8b8cf0084f [skip ci] Release new versions 2025-07-09 14:49:53 +00:00
github-actions[bot] 083d5eefa8 [skip ci] Release new versions 2025-07-09 14:08:34 +00:00
0div 9b4861d2ea Add sandbox metadata docs and update env var tests (#804)
# Description
- [x] update env var docs to include new default sandbox metadata env
vars
- [x] update js-sdk tests
- [x] update python tests

# Test
```sh
$ [packages/js-sdk] pnpm test env

$ [packages/python-sdk] poetry run pytest --verbose -x tests/async/sandbox_async/commands/test_env_vars.py

$ [packages/python-sdk] poetry run pytest --verbose -x tests/sync/sandbox_sync/commands/test_env_vars.py
```
2025-07-03 14:44:27 -07:00
github-actions[bot] 3547878756 [skip ci] Release new versions 2025-07-03 18:31:46 +00:00
Vasek Mlejnsky e5b4fc2513 Remove migration guide (#805)
Removes the old SDK migration guide for migrating from v0 to v1.
2025-07-03 12:59:32 +02:00
github-actions[bot] 69eacc71bb [skip ci] Release new versions 2025-06-27 20:24:58 +00:00
github-actions[bot] 9704e2ff03 [skip ci] Release new versions 2025-06-24 17:08:34 +00:00
Mish Ushakov 72924e294f Redirect /docs/getting-help > /docs/support (#794)
- Adds a redirect from the old path to the updated doc
2025-06-23 15:11:25 -07:00
Jiri Sveceny aa13185e7b Await for get uploadUrl and downloadUrl (#793)
After merge of https://github.com/e2b-dev/E2B/pull/790 api for
`.downloadUrl` and `.uploadUrl` are assync.
This pr updates docs.
2025-06-23 22:31:00 +02:00
Jiri Sveceny 3d68fceffd Added docs for pre-signed URLs (#783)
Showcase of secured sandbox with pre-generated signed urls for file
upload/download

<img width="891" alt="image"
src="https://github.com/user-attachments/assets/0a56979b-bf45-4560-9492-291ef5fee9e4"
/>
<img width="891" alt="image"
src="https://github.com/user-attachments/assets/ccb60051-5667-46c3-9704-b782ea9f8d10"
/>
2025-06-23 11:00:38 -07:00
github-actions[bot] 884e6b3917 [skip ci] Release new versions 2025-06-23 16:58:16 +00:00
github-actions[bot] 40c73100bc [skip ci] Release new versions 2025-06-20 02:52:52 +00:00
Vasek Mlejnsky 39a35ac507 Fix outdated code snippet (#787) 2025-06-19 16:33:14 +00:00