Feat: Print sandbox inspect url on sandbox spawn
This PR updates the sandbox spawn process to print the inspect URL to the console when a new sandbox is created using e2b sbx spawn or e2b sbx create. This makes it easier for users to access and debug new sandboxes directly after creation.
🦋 Changeset detected
Latest commit: 32a2abbdc49f0002bd9dfd10b493aa0911f87ed1
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 1 package
| Name | Type |
|---|---|
| @e2b/cli | Patch |
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
@ben-fornefeld can you use team slug instead of team ID?
@ben-fornefeld can you use team slug instead of team ID?
that would probably require a re-auth. will check tomorrow!
The auth command needs to be changed in order to retrieve the slug as well as the team id, but currently signed teams will see the their team id in the link (since the slug was not fetched before).
@mishushakov i have an idea how to make this logic not dependent on the client side at all.
i will just check in the dashboard via /dashboard/inspect/$sbxId if the user has access to the sandbox and route him to the correct team / url from there. no need for slug on the client side.
wdyt?
we should try this!
we should try this!
done. tested on the following pr/preview: https://github.com/e2b-dev/dashboard/pull/141
NOTE:
this pr can be reviewed already, but merging needs to be blocked until https://github.com/e2b-dev/dashboard/pull/141 is deployed.