Commit Graph

1259 Commits

Author SHA1 Message Date
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
github-actions[bot] 93134e2faa [skip ci] Release new versions 2025-06-18 12:16:44 +00:00
github-actions[bot] 995c494d4a [skip ci] Release new versions 2025-06-16 18:46:47 +00:00
github-actions[bot] 4aaeee2af4 [skip ci] Release new versions 2025-06-13 11:03:18 +00:00
github-actions[bot] 23a9298252 [skip ci] Release new versions 2025-06-13 00:45:36 +00:00
Jakub Dobry e244ba72c0 Add option for a template ready check (#750)
## Description
Add option for a template ready check. You can specify `ready_cmd` which
will be run until it exits with code 0. Max timeout is 5 minutes. After
exit code 0, the template will be marked as ready.

If no ready command is defined, `sleep 20` is assumed when the start
command is present, and `sleep 0` when none is defined. It is also
possible to define ready command without any start command. This might
be helpful if the filesystem contains self-booted services (e.g. using
systemd).

```
ready_cmd = "echo 'Starting ready check'; sleep 40; echo 'Template is ready'"
```

This adds possibility to configure the default 20 seconds wait time for
a start command.

New documentation can be found at `/docs/sandbox-template/ready-cmd`.

## Checklist
- [x] Make sure the https://github.com/e2b-dev/infra/pull/719 is
deployed

---------

Co-authored-by: Vasek Mlejnsky <vasek@e2b.dev>
Co-authored-by: Jakub Novák <jakub@e2b.dev>
2025-06-12 17:42:37 -07:00
dependabot[bot] a41cb79f1d Bump requests from 2.32.2 to 2.32.4 in /apps/web/src/code/python in the pip group across 1 directory (#768)
Bumps the pip group with 1 update in the /apps/web/src/code/python
directory: [requests](https://github.com/psf/requests).

Updates `requests` from 2.32.2 to 2.32.4
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/psf/requests/releases">requests's
releases</a>.</em></p>
<blockquote>
<h2>v2.32.4</h2>
<h2>2.32.4 (2025-06-10)</h2>
<p><strong>Security</strong></p>
<ul>
<li>CVE-2024-47081 Fixed an issue where a maliciously crafted URL and
trusted
environment will retrieve credentials for the wrong hostname/machine
from a
netrc file. (<a
href="https://redirect.github.com/psf/requests/issues/6965">#6965</a>)</li>
</ul>
<p><strong>Improvements</strong></p>
<ul>
<li>Numerous documentation improvements</li>
</ul>
<p><strong>Deprecations</strong></p>
<ul>
<li>Added support for pypy 3.11 for Linux and macOS. (<a
href="https://redirect.github.com/psf/requests/issues/6926">#6926</a>)</li>
<li>Dropped support for pypy 3.9 following its end of support. (<a
href="https://redirect.github.com/psf/requests/issues/6926">#6926</a>)</li>
</ul>
<h2>v2.32.3</h2>
<h2>2.32.3 (2024-05-29)</h2>
<p><strong>Bugfixes</strong></p>
<ul>
<li>Fixed bug breaking the ability to specify custom SSLContexts in
sub-classes of
HTTPAdapter. (<a
href="https://redirect.github.com/psf/requests/issues/6716">#6716</a>)</li>
<li>Fixed issue where Requests started failing to run on Python versions
compiled
without the <code>ssl</code> module. (<a
href="https://redirect.github.com/psf/requests/issues/6724">#6724</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/psf/requests/blob/main/HISTORY.md">requests's
changelog</a>.</em></p>
<blockquote>
<h2>2.32.4 (2025-06-10)</h2>
<p><strong>Security</strong></p>
<ul>
<li>CVE-2024-47081 Fixed an issue where a maliciously crafted URL and
trusted
environment will retrieve credentials for the wrong hostname/machine
from a
netrc file.</li>
</ul>
<p><strong>Improvements</strong></p>
<ul>
<li>Numerous documentation improvements</li>
</ul>
<p><strong>Deprecations</strong></p>
<ul>
<li>Added support for pypy 3.11 for Linux and macOS.</li>
<li>Dropped support for pypy 3.9 following its end of support.</li>
</ul>
<h2>2.32.3 (2024-05-29)</h2>
<p><strong>Bugfixes</strong></p>
<ul>
<li>Fixed bug breaking the ability to specify custom SSLContexts in
sub-classes of
HTTPAdapter. (<a
href="https://redirect.github.com/psf/requests/issues/6716">#6716</a>)</li>
<li>Fixed issue where Requests started failing to run on Python versions
compiled
without the <code>ssl</code> module. (<a
href="https://redirect.github.com/psf/requests/issues/6724">#6724</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/psf/requests/commit/021dc729f0b71a3030cefdbec7fb57a0e80a6cfd"><code>021dc72</code></a>
Polish up release tooling for last manual release</li>
<li><a
href="https://github.com/psf/requests/commit/821770e822a20a21b207b3907ea83878bda1d396"><code>821770e</code></a>
Bump version and add release notes for v2.32.4</li>
<li><a
href="https://github.com/psf/requests/commit/59f8aa2adf1d3d06bcbf7ce6b13743a1639a5401"><code>59f8aa2</code></a>
Add netrc file search information to authentication documentation (<a
href="https://redirect.github.com/psf/requests/issues/6876">#6876</a>)</li>
<li><a
href="https://github.com/psf/requests/commit/5b4b64c3467fd7a3c03f91ee641aaa348b6bed3b"><code>5b4b64c</code></a>
Add more tests to prevent regression of CVE 2024 47081</li>
<li><a
href="https://github.com/psf/requests/commit/7bc45877a86192af77645e156eb3744f95b47dae"><code>7bc4587</code></a>
Add new test to check netrc auth leak (<a
href="https://redirect.github.com/psf/requests/issues/6962">#6962</a>)</li>
<li><a
href="https://github.com/psf/requests/commit/96ba401c1296ab1dda74a2365ef36d88f7d144ef"><code>96ba401</code></a>
Only use hostname to do netrc lookup instead of netloc</li>
<li><a
href="https://github.com/psf/requests/commit/7341690e842a23cf18ded0abd9229765fa88c4e2"><code>7341690</code></a>
Merge pull request <a
href="https://redirect.github.com/psf/requests/issues/6951">#6951</a>
from tswast/patch-1</li>
<li><a
href="https://github.com/psf/requests/commit/6716d7c9f29df636643fa2489f98890216525cb0"><code>6716d7c</code></a>
remove links</li>
<li><a
href="https://github.com/psf/requests/commit/a7e1c745dc23c18e836febd672416ed0c5d8d8ae"><code>a7e1c74</code></a>
Update docs/conf.py</li>
<li><a
href="https://github.com/psf/requests/commit/c799b8167a13416833ad3b4f3298261a477e826f"><code>c799b81</code></a>
docs: fix dead links to kenreitz.org</li>
<li>Additional commits viewable in <a
href="https://github.com/psf/requests/compare/v2.32.2...v2.32.4">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=requests&package-manager=pip&previous-version=2.32.2&new-version=2.32.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions
You can disable automated security fix PRs for this repo from the
[Security Alerts page](https://github.com/e2b-dev/E2B/network/alerts).

</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-10 19:30:00 -07:00
Ben Fornefeld 592543937a Refactor: prebuild sitemap generation instead of statically cached dynamic sitemap (#760)
Since we do not use dynamic data inside the sitemap and we base the
sitemap generation on page files, we do want to avoid a re-build of the
sitemap in request-time, since this environment differs significantly
from a build-time environment. Hence we remove the dynamic sitemap
generation and move sitemap generation logic inside our already present
`prebuild.js` script
2025-06-06 10:51:06 +02:00
Ben Fornefeld 1bdda6099c Remove: api-reference routes and set up SEO redirect (#763)
Since we do not maintain the content behind `/api-reference` routes,
this pr removes the docs pages and setup permanent redirects for SEO
crawlers to find similar content
2025-06-06 08:42:40 +00:00
github-actions[bot] 27e292eedc [skip ci] Release new versions 2025-06-05 15:39:44 +00:00
github-actions[bot] 6c0927e358 [skip ci] Release new versions 2025-06-05 14:15:25 +00:00
Ben Fornefeld 31fce90f6b Fix: path validation for metadata tags resolution (#757)
This pr fixes validating pathnames for SEO metadata tag generation, by
checking against already built time cached sitemap instead of doing
request time glob resolution. path resolutions in vercels request-time
are hard to optimize for & test, since the environment differs quite a
bit from what could be tested locally + this should be faster since the
fetch & sitemap are cached for the build.
2025-06-04 14:17:23 +02:00
Ben Fornefeld 1c063f7cc6 Add: server side metadata generation in root layout (#755)
- adds `generateMetadata` in root layout to generate canonical and
robots meta tags server side
- listens on a custom header which is set by our proxy before rewriting
`/docs` routes, to decide whether the document should have no-index
metadata or index metadata
- adds a middleware which appends a custom header to retrieve the
current pathname for server side canonical tag generation
2025-06-03 17:31:26 +02:00
github-actions[bot] f1afba0d74 [skip ci] Release new versions 2025-06-03 10:13:57 +00:00
Ben Fornefeld 1b9fd7a288 Chore: pass pathname as prop into navigation group to avoid layout shift on initial render (#754)
This pr improves the initial navigation sub groups expanded state, by
passing in the pathname as a prop instead of hooking it in and
determining the state in an effect. This avoid layout shifts when doing
initial page renders, while inside a navigation subgroup item
2025-06-02 17:25:41 +02:00
Mish Ushakov d35f82a9e9 Updated docs on JS/TS kernel (#748)
- Added TypeScript to the JavaScript doc
- Updated the example showing top-level await, esm-style module imports
and promise resolution

---------

Co-authored-by: Vasek Mlejnsky <vasek@e2b.dev>
2025-05-28 20:11:58 +02:00
Mish Ushakov 1af267a324 Updated SDK beta versions in docs (#732)
- updated beta versions of code interpreter, core and desktop SDKs in
the install guide
2025-05-27 02:57:29 -07:00
Mish Ushakov 9d96b066b3 Connecting bucket > connecting storage bucket (#740) 2025-05-26 10:55:57 +02:00
Jakub Dobry 6abed99e81 Update template start command limits in docs (#741)
Network is now available when running a start command. Remove the
network limitation from the documentation.
2025-05-23 05:15:58 -07:00
Ben Fornefeld feeef09e89 Remove: legacy docs from search (#742)
This pr removes the legacy docs from the search indexing script, which
will also remove them from the actual search in runtime. Also it adds
logging to increase build observability.
2025-05-23 05:14:08 -07:00
github-actions[bot] 41ef82cbd2 [skip ci] Release new versions 2025-05-15 17:22:06 +00:00
github-actions[bot] 231e19694d [skip ci] Release new versions 2025-05-15 16:46:57 +00:00
Jakub Novák 90ffca91ff Remove sandbox streams (#731)
# Description

This route isn't used anymore
2025-05-15 05:54:12 -07:00