Commit Graph

4243 Commits

Author SHA1 Message Date
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
Mish Ushakov 0526a5db1f UX updates 2024-12-06 23:31:29 +01:00
Mish Ushakov d13580ecf8 vercel build again sorre 2024-12-06 22:34:03 +01:00
Mish Ushakov d169d26ee5 removed scrolling and made footer less ugly 2024-12-06 22:28:57 +01:00
Mish Ushakov f3fb49029c fixes vercel no-unused vars build 2024-12-06 21:42:46 +01:00
Mish Ushakov d5816fe439 added developer panel 2024-12-06 21:37:37 +01:00
github-actions[bot] e8fa4be096 [skip ci] Release new versions 2024-12-06 04:41:39 +00:00
Jakub Novák 101bea58ee Update httpx version in dependencies (#496)
# Description

The version was too strict
@e2b/python-sdk@1.0.5
2024-12-05 20:37:14 -08:00
Jakub Novak 7999815887 Update httpx version in dependencies 2024-12-05 20:30:39 -08:00
Vasek Mlejnsky 7881b52adc Revert root route traffic to the new landing page (#495)
This PR fixes what #493 messed up
2024-12-05 18:52:32 -08:00
Vasek Mlejnsky 593f58b105 Merge branch 'main' into new-landing-page-hosting 2024-12-05 18:34:36 -08:00
Vasek Mlejnsky d502d3427a Use custom domain for LP hostname 2024-12-05 18:30:32 -08:00
Vasek Mlejnsky 9dd6d3fdd1 Revert the hack for removing webflow branding 2024-12-05 18:14:45 -08:00
Vasek Mlejnsky b416c63e94 Redirect the root URL route to new Webflow hosting (#493)
This PR changes the target hostname for the root route (`/`) for
https://e2b.dev to reflect our new landing page hosting.

This is the first step towards removing the reverse proxy handling from
our public web app.
2024-12-05 18:07:07 -08:00
Vasek Mlejnsky 10a7bc9105 ignore eslint line 2024-12-05 18:02:33 -08:00
Vasek Mlejnsky 52b2583ddb remove webflow badge 2024-12-05 18:00:45 -08:00
Vasek Mlejnsky ff8f0abf9e Redirect landing page to new webflow hosting 2024-12-05 16:34:38 -08:00
Jakub Novák 786fcd8e81 Adds "added by" and "added at" columns to the table, changes to API header (#490)
- Adds "added by" and "added at" columns to the table
- Changes to API /teams/:id/users headers

Blocked by https://github.com/e2b-dev/billing/pull/25
2024-12-05 14:19:26 -08:00
Jakub Novák 96441e35f5 Merge branch 'main' into teams-improved-users 2024-12-05 14:11:18 -08:00
Jakub Novák 3d4751f7ca Merge branch 'main' into updated-templates-view 2024-12-05 14:11:02 -08:00
Mish Ushakov 88fa042e07 removed unused components in table 2024-12-05 22:47:52 +01:00
Mish Ushakov 21becc625d changed style of visibility cell in templates view 2024-12-05 22:45:09 +01:00
Mish Ushakov b5cbb72b6b empty table col width 2024-12-05 22:24:04 +01:00
Mish Ushakov 7efa824af2 reverted Template Name > Aliases 2024-12-05 22:12:11 +01:00
Mish Ushakov 506191a765 stop propogation on publish button 2024-12-05 21:01:13 +01:00
Mish Ushakov 1bb820cf9a send both headers 2024-12-05 19:48:51 +01:00
Mish Ushakov 686f569822 user.addedAt toLocaleString 2024-12-05 17:33:29 +01:00
0div d59e05cdab Assert that the returned sandbox info objects are sorted by start time (#489)
# Description
This PR is meant to test the changes found in `APIStore.GetSandboxes`
https://github.com/e2b-dev/infra/pull/211
2024-12-04 10:43:47 -08:00