Commit Graph

4370 Commits

Author SHA1 Message Date
Vasek Mlejnsky 07b3077b18 Resolve merge conflict 2024-12-17 11:46:36 -08:00
Vasek Mlejnsky 99fa5af914 docs: update code snippets for persistence 2024-12-17 11:44:12 -08:00
Tomas Valenta 83871371b1 Merge branch 'docs-persistence' 2024-12-17 03:40:06 -08:00
Tomas Valenta 77c9a52fa6 Add docs about persistence (#507)
This PR adds docs about Sandbox's persistence
2024-12-17 03:38:58 -08:00
Tomas Valenta e81a6dc06d Update package versions 2024-12-17 03:38:43 -08:00
github-actions[bot] 27d2afd038 [skip ci] Release new versions 2024-12-17 10:39:35 +00:00
Mish Ushakov fc8086dcf5 Changed template ls command to sync with latest API changes (#508)
- Added createdBy, createdAt columns
- Hidden 'buildCount', 'lastSpawnedAt', 'spawnCount', 'updatedAt'
columns
- Sync API spec and ts schema to latest

---------

Co-authored-by: Mish Ushakov <mishushakov@users.noreply.github.com>
Co-authored-by: Jakub Novák <jakub@e2b.dev>
@e2b/cli@1.0.9
2024-12-17 11:35:20 +01:00
Vasek Mlejnsky ff7cf4ecae Update docs 2024-12-17 00:44:10 -08:00
Vasek Mlejnsky 53b1d30c2a Update docs 2024-12-16 21:48:44 -08:00
Vasek Mlejnsky a5fa60b58f fix grammar 2024-12-16 19:08:41 -08:00
Vasek Mlejnsky 51d328fe67 Add docs about persistence 2024-12-16 19:03:24 -08:00
Mish Ushakov c64e30a58d Fixes the label in template section and toast opacity (#498)
Fixes: Visible > Public
Toast opacity to 100:

<img width="428" alt="Screenshot 2024-12-10 at 10 12 50"
src="https://github.com/user-attachments/assets/b6f303ad-c2d0-4fae-a9ff-d142b47493ca">

---------

Co-authored-by: Mish Ushakov <mishushakov@users.noreply.github.com>
2024-12-16 22:38:25 +01:00
0div 724fbc63cc remove WriteData type in python-sdk 2024-12-12 17:13:09 -08:00
0div 502c414ce4 remove WriteData type in js-sdk 2024-12-12 17:08:22 -08:00
0div 1708cc0609 Update apps/web/src/app/(docs)/docs/filesystem/upload/page.mdx
Co-authored-by: Vasek Mlejnsky <vasek@e2b.dev>
2024-12-12 16:11:52 -08:00
0div d0fc09a0d4 Update apps/web/src/app/(docs)/docs/filesystem/upload/page.mdx
Co-authored-by: Vasek Mlejnsky <vasek@e2b.dev>
2024-12-12 16:10:21 -08:00
0div e73ad23bb3 Update apps/web/src/app/(docs)/docs/filesystem/upload/page.mdx
Co-authored-by: Vasek Mlejnsky <vasek@e2b.dev>
2024-12-12 16:10:11 -08:00
0div 424baec371 Update apps/web/src/app/(docs)/docs/filesystem/upload/page.mdx
Co-authored-by: Vasek Mlejnsky <vasek@e2b.dev>
2024-12-12 16:10:02 -08:00
0div d3b99fe7a6 Update apps/web/src/app/(docs)/docs/filesystem/upload/page.mdx
Co-authored-by: Vasek Mlejnsky <vasek@e2b.dev>
2024-12-12 16:09:53 -08:00
0div e730810fdd Update apps/web/src/app/(docs)/docs/filesystem/read-write/page.mdx
Co-authored-by: Vasek Mlejnsky <vasek@e2b.dev>
2024-12-12 16:08:14 -08:00
0div b867fe4d6a Update apps/web/src/app/(docs)/docs/filesystem/read-write/page.mdx
Co-authored-by: Vasek Mlejnsky <vasek@e2b.dev>
2024-12-12 16:07:53 -08:00
0div 0e2a684a2c fix indentation in upload docs 2024-12-12 16:06:10 -08:00
0div bbeeb044cc upadte upload docs and improve read-write-docs 2024-12-12 15:58:15 -08:00
0div 741b32935a add minor changeset 2024-12-12 15:25:07 -08:00
0div 93dc1f9d25 update docs 2024-12-12 15:21:16 -08:00
0div 4ca24147f6 fixed typing syntax and watch tests 2024-12-12 15:18:06 -08:00
0div cf262aeb89 fix errors.ts comment 2024-12-12 14:55:17 -08:00
0div 97d0cc1ef5 merge main 2024-12-12 14:54:24 -08:00
0div f02eeac2b9 Make stdout and stderr handle decode errors gracefully (#505)
# Description
The `sbx.commands.run` method can generate a `stdout` with badly encoded
`UTF-8` bytes, which can cause this kind of errors:
```py
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe2 in position 8191: unexpected end of data
```

see more here:
https://linear.app/e2b/issue/E2B-1291/unicodedecodeerror-in-python-sdk-when-using-curl-command

To address this we update the `decode` error handler to replace with the
unicode replacement char.

# Test
```sh
 poetry run pytest -s -n 4 -k "tests/sync/sandbox_sync/commands/test_run"
 ```
2024-12-12 13:32:32 -08:00
0div bff11dc02e add the same fixes to python async 2024-12-11 17:29:46 -08:00
0div 3c525220d9 make stdout and stderr decode handle errors by replacing with unicode replacement char; add tests 2024-12-11 17:07:36 -08:00
Vasek Mlejnsky a72b361597 Correct free disk space text (#502)
Corrects the text in docs regarding the free disks space
2024-12-11 08:49:00 -08:00
Vasek Mlejnsky 065d5c5172 Update free disk space text 2024-12-11 08:44:18 -08:00
never not exploring 5f022cc6de Redirect to localhost instead of e2b.dev after sign in with oauth in dev environment (#499)
this pr fixes the following in a local development environment:

- supabase auth redirect after oauth sign in
- forgot password flow


this is accomplished by adding a new environment variable
`NEXT_PUBLIC_BASE_URL` which prevents checking something like
`process.env.NODE_ENV` and conditionally hardcoding the urls in the code
itself. this way, for potential changes to these values, we can utilise
this mechanic in other places where it may be required in the near
future without traversing the codebase manually.

i already set `NEXT_PUBLIC_BASE_URL` in the vercel production
environment to: `https://e2b.dev`
2024-12-10 19:01:18 +01:00
Ben Fornefeld 145a564669 improve: replace environment variable with document location origin 2024-12-10 18:55:56 +01:00
Ben Fornefeld 640d632ddc fix: redirectTo prop on supabase auth component 2024-12-10 18:04:27 +01:00
Jakub Novak 4537e2a63c Fix team added by field names 2024-12-09 17:23:13 +01:00
github-actions[bot] 1c077831c6 [skip ci] Release new versions 2024-12-09 16:14:32 +00:00
Jakub Novak aac8ea2c82 Add changeset @e2b/cli@1.0.8 2024-12-09 17:11:18 +01:00
Jakub Novak ed731d2d53 Follow shortcut naming convention 2024-12-09 17:10:45 +01:00
github-actions[bot] 52feefc27b [skip ci] Release new versions 2024-12-09 16:03:25 +00:00
Jakub Novak 66b8729bdd Add changeset @e2b/cli@1.0.7 2024-12-09 17:00:06 +01:00
Jakub Novák 784f2ad36a Template management in dashboard (#483)
- Adds more info to templates section
- Publish/unpublish templates
- Delete templates
- Requires latest infra backend to test
2024-12-09 07:54:12 -08:00
Mish Ushakov 6252eab409 fixes breaking conflict 2024-12-09 15:24:10 +01:00
Mish Ushakov 4765dd5608 Merge branch 'main' into updated-templates-view 2024-12-09 15:14:12 +01:00
Jakub Novák 407f330de9 Added publish/unpublish commands to the CLI (#484)
Adds publish/unpublish commands to the CLI to allow changing the
visibility of templates. Publishing a template makes it visible to other
teams using E2B, while setting it private (default) only makes it
visible within your own team.

example usage:

``` 
e2b template publish <template>
```

```
e2b template unpublish <template>
```
2024-12-09 00:51:31 -08:00
Mish Ushakov 4a6e884890 Added developer panel (#497)
- Click on team dropdown > Developer
- Setting alternative API URL
- Setting alternative Billing URL
- Resetting the above to defaults (provided by env variable)
2024-12-07 00:36:19 +01:00
Vasek Mlejnsky 7360cfd187 Hide billing URL in developer settings for now 2024-12-06 15:22:21 -08:00
Vasek Mlejnsky 03725423fa Fix typo 2024-12-06 15:13:26 -08:00
Vasek Mlejnsky d35d99d11a Update language for API URL settings and style the code appropriately 2024-12-06 15:12:57 -08:00