Skip to content

Add: application layer for sandbox details/inspect view #78

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 22 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
ee91f66
remove: envd gen + chore: fix test ts issues
ben-fornefeld Jun 12, 2025
331e06c
chore: move/rename server context
ben-fornefeld Jun 13, 2025
f6a6439
add: fs context,store & events-manager
ben-fornefeld Jun 13, 2025
9e65ccc
update: e2b sdk to fix isolatedModules errors
ben-fornefeld Jun 13, 2025
56595d2
chore: rename feature folder
ben-fornefeld Jun 13, 2025
741040c
chore: rename context
ben-fornefeld Jun 13, 2025
3b3feab
add: sandbox context
ben-fornefeld Jun 13, 2025
76f8dd4
chore: re-organize files
ben-fornefeld Jun 13, 2025
eac0758
refactor: move sandbox connection to sandbox context
ben-fornefeld Jun 13, 2025
6ac5bb0
chore: syntax
ben-fornefeld Jun 13, 2025
a0670c8
improve: watchHandle event handling
ben-fornefeld Jun 13, 2025
11a5b24
add: mermaid overview chart
ben-fornefeld Jun 13, 2025
e39eeb0
refactor: mermaid chart
ben-fornefeld Jun 13, 2025
1082071
chore: cleanup mermaid chart
ben-fornefeld Jun 13, 2025
29e8729
refactor: sandbox inspect application layer to use a single watch han…
ben-fornefeld Jun 18, 2025
891c4cf
refactor: prepare state layer for react
ben-fornefeld Jun 18, 2025
193a794
refactor: server side sandbox connection handling
ben-fornefeld Jun 20, 2025
c6e58e6
chore: reduce watch route timeout to 10 min
ben-fornefeld Jun 20, 2025
2c2bee6
chore: re-organize/comment pools
ben-fornefeld Jun 20, 2025
8a8f077
fix: correctly close SandboxPool connections in WatchDirPool and callers
ben-fornefeld Jun 20, 2025
25ea6c3
refactor: inspect context to correctly populate store based on seedEn…
ben-fornefeld Jun 20, 2025
b562c00
feat: add E2B_DOMAIN to environment configuration and enhance watch r…
ben-fornefeld Jun 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ SUPABASE_SERVICE_ROLE_KEY=your_supabase_service_role_key
### Visit: https://github.com/e2b-dev/infra/blob/main/README.md for a self-hosting guide
INFRA_API_URL=https://api.e2b.dev

### Default domain for the E2B SDK
### Used for Sandbox Details Page
E2B_DOMAIN=e2b.dev

### KV database configuration
KV_REST_API_TOKEN=
KV_REST_API_URL=
Expand Down
48 changes: 13 additions & 35 deletions bun.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
"": {
"name": "@e2b/dashboard",
"dependencies": {
"@bufbuild/buf": "^1.54.0",
"@bufbuild/protobuf": "^2.5.2",
"@bufbuild/protoc-gen-es": "^2.5.2",
"@connectrpc/connect": "^2.0.2",
"@connectrpc/protoc-gen-connect-es": "^1.6.1",
"@fumadocs/mdx-remote": "^1.2.0",
"@google-cloud/storage": "^7.15.2",
"@hookform/resolvers": "^3.10.0",
Expand Down Expand Up @@ -49,6 +44,7 @@
"clsx": "^2.1.1",
"cmdk": "^1.0.4",
"date-fns": "^4.1.0",
"e2b": "^1.5.3",
"fast-xml-parser": "^4.5.1",
"fumadocs-core": "^15.0.6",
"fumadocs-mdx": "^11.5.3",
Expand Down Expand Up @@ -357,28 +353,8 @@

"@braintree/sanitize-url": ["@braintree/[email protected]", "", {}, "sha512-i1L7noDNxtFyL5DmZafWy1wRVhGehQmzZaz1HiN5e7iylJMSZR7ekOV7NsIqa5qBldlLrsKv4HbgFUVlQrz8Mw=="],

"@bufbuild/buf": ["@bufbuild/[email protected]", "", { "optionalDependencies": { "@bufbuild/buf-darwin-arm64": "1.54.0", "@bufbuild/buf-darwin-x64": "1.54.0", "@bufbuild/buf-linux-aarch64": "1.54.0", "@bufbuild/buf-linux-armv7": "1.54.0", "@bufbuild/buf-linux-x64": "1.54.0", "@bufbuild/buf-win32-arm64": "1.54.0", "@bufbuild/buf-win32-x64": "1.54.0" }, "bin": { "buf": "bin/buf", "protoc-gen-buf-breaking": "bin/protoc-gen-buf-breaking", "protoc-gen-buf-lint": "bin/protoc-gen-buf-lint" } }, "sha512-UkjZmVslA7YAxhUQVxE2O4HX4qD7aMspjkuG3vsjnvmAkiV6Jhz47z3focCuPI28e59H20TiQNhc9Y3fkffWPw=="],

"@bufbuild/buf-darwin-arm64": ["@bufbuild/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-MkwlxcuHH8YO2wyQ2nGAv5SwBRCR4PtA8zcQb7AR6q93Cgy314ac8blGjfpenprjI3kAAhxc9BQK4t+/hkIS/A=="],

"@bufbuild/buf-darwin-x64": ["@bufbuild/[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-59Z+6BxvVwBbcpLOAwD8TLobngb9YUvUZ1nnP1IyIJnay/tIY+yfmgAdgMwm3VUZlbaFlURGmD34UAwEsxodGQ=="],

"@bufbuild/buf-linux-aarch64": ["@bufbuild/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-cUbvujfoAQGsnRH/+UfKxt0Hfe6PGHjM/gLiC2Kgv8fcoIWjPJMBBgdl/TLbq1QrVcCXSvMc16hW5ias7Jdyfw=="],

"@bufbuild/buf-linux-armv7": ["@bufbuild/[email protected]", "", { "os": "linux", "cpu": "arm" }, "sha512-xdKjzPsOo6E2eth3uGIRoVG9TpPVHOUucr0MeCRVhM2hb5gbM8KQLn6iDxVGbQFq6eL2qe+B0b8k9HfuwzirWA=="],

"@bufbuild/buf-linux-x64": ["@bufbuild/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-ZnfaE5GLAhyvR/ponDgG+s6FbtMEm+RaS2f0EoBLORYC7sK/Elfmw2Q0XcjHyEl83u4hELCqej9T0eUxbgxtow=="],

"@bufbuild/buf-win32-arm64": ["@bufbuild/[email protected]", "", { "os": "win32", "cpu": "arm64" }, "sha512-N5YlX8c6p+KZIWYmx03viYF/FLuY5GyzHgor17nuJUYhF1xFyIJL8v4mhqcQ8Pq0xua9IyRwmSxHJKyrdNatcg=="],

"@bufbuild/buf-win32-x64": ["@bufbuild/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-PepTA9RcLCjukQhFPFBqKXF9mVwct+ZSBeuLjFuUVcHovdGUZXspNTb5LnuIDjWXx2fcALs0xb/FNUNd6pNjbA=="],

"@bufbuild/protobuf": ["@bufbuild/[email protected]", "", {}, "sha512-foZ7qr0IsUBjzWIq+SuBLfdQCpJ1j8cTuNNT4owngTHoN5KsJb8L9t65fzz7SCeSWzescoOil/0ldqiL041ABg=="],

"@bufbuild/protoc-gen-es": ["@bufbuild/[email protected]", "", { "dependencies": { "@bufbuild/protobuf": "^2.5.2", "@bufbuild/protoplugin": "2.5.2" }, "bin": { "protoc-gen-es": "bin/protoc-gen-es" } }, "sha512-G9rvJ3CH1MXxUTppBJLdhc+wS2m6LR1Tvi0sGoDDChmiqJVkOhIeYrqtGMqqLqiE44I7uJGDaYcn1PG3aIGJUg=="],

"@bufbuild/protoplugin": ["@bufbuild/[email protected]", "", { "dependencies": { "@bufbuild/protobuf": "2.5.2", "@typescript/vfs": "^1.5.2", "typescript": "5.4.5" } }, "sha512-7d/NUae/ugs/qgHEYOwkVWGDE3Bf/xjuGviVFs38+MLRdwiHNTiuvzPVwuIPo/1wuZCZn3Nax1cg1owLuY72xw=="],

"@chevrotain/cst-dts-gen": ["@chevrotain/[email protected]", "", { "dependencies": { "@chevrotain/gast": "11.0.3", "@chevrotain/types": "11.0.3", "lodash-es": "4.17.21" } }, "sha512-BvIKpRLeS/8UbfxXxgC33xOumsacaeCKAjAeLyOn7Pcp95HiRbrpl14S+9vaZLolnbssPIUuiUd8IvgkRyt6NQ=="],

"@chevrotain/gast": ["@chevrotain/[email protected]", "", { "dependencies": { "@chevrotain/types": "11.0.3", "lodash-es": "4.17.21" } }, "sha512-+qNfcoNk70PyS/uxmj3li5NiECO+2YKZZQMbmjTqRI3Qchu8Hig/Q9vgkHpI3alNjr7M+a2St5pw5w5F6NL5/Q=="],
Expand All @@ -391,9 +367,9 @@

"@chromatic-com/storybook": ["@chromatic-com/[email protected]", "", { "dependencies": { "chromatic": "^11.15.0", "filesize": "^10.0.12", "jsonfile": "^6.1.0", "react-confetti": "^6.1.0", "strip-ansi": "^7.1.0" }, "peerDependencies": { "storybook": "^8.2.0 || ^8.3.0-0 || ^8.4.0-0 || ^8.5.0-0 || ^8.6.0-0" } }, "sha512-FDmn5Ry2DzQdik+eq2sp/kJMMT36Ewe7ONXUXM2Izd97c7r6R/QyGli8eyh/F0iyqVvbLveNYFyF0dBOJNwLqw=="],

"@connectrpc/connect": ["@connectrpc/[email protected].2", "", { "peerDependencies": { "@bufbuild/protobuf": "^2.2.0" } }, "sha512-xZuylIUNvNlH52e/4eQsZvY4QZyDJRtEFEDnn/yBrv5Xi5ZZI/p8X+GAHH35ucVaBvv9u7OzHZo8+tEh1EFTxA=="],
"@connectrpc/connect": ["@connectrpc/[email protected].0-rc.3", "", { "peerDependencies": { "@bufbuild/protobuf": "^2.2.0" } }, "sha512-ARBt64yEyKbanyRETTjcjJuHr2YXorzQo0etyS5+P6oSeW8xEuzajA9g+zDnMcj1hlX2dQE93foIWQGfpru7gQ=="],

"@connectrpc/protoc-gen-connect-es": ["@connectrpc/protoc-gen-connect-[email protected]", "", { "dependencies": { "@bufbuild/protobuf": "^1.10.0", "@bufbuild/protoplugin": "^1.10.0" }, "peerDependencies": { "@bufbuild/protoc-gen-es": "^1.10.0", "@connectrpc/connect": "1.6.1" }, "optionalPeers": ["@bufbuild/protoc-gen-es", "@connectrpc/connect"], "bin": { "protoc-gen-connect-es": "bin/protoc-gen-connect-es" } }, "sha512-0fHcaADd+GKM0I/koIQpmKg7b+QL18bXlggTUYEAlMFzsd4zN/ApG3235hdUcRyhrAOAItTXxh8ZAV/nNd43Gg=="],
"@connectrpc/connect-web": ["@connectrpc/connect-[email protected]", "", { "peerDependencies": { "@bufbuild/protobuf": "^2.2.0", "@connectrpc/connect": "2.0.0-rc.3" } }, "sha512-w88P8Lsn5CCsA7MFRl2e6oLY4J/5toiNtJns/YJrlyQaWOy3RO8pDgkz+iIkG98RPMhj2thuBvsd3Cn4DKKCkw=="],

"@csstools/color-helpers": ["@csstools/[email protected]", "", {}, "sha512-JqWH1vsgdGcw2RR6VliXXdA0/59LttzlU8UlRT/iUUsEeWfYq8I+K0yhihEUTTHLRm1EXvpsCx3083EU15ecsA=="],

Expand Down Expand Up @@ -1581,6 +1557,8 @@

"commondir": ["[email protected]", "", {}, "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg=="],

"compare-versions": ["[email protected]", "", {}, "sha512-4hm4VPpIecmlg59CHXnRDnqGplJFrbLG4aFEl5vl6cK1u76ws3LLvX7ikFnTDl5vo39sjWD6AaDPYodJp/NNHg=="],

"compute-scroll-into-view": ["[email protected]", "", {}, "sha512-VRhuHOLoKYOy4UbilLbUzbYg93XLjv2PncJC50EuTWPA3gaja1UjBsUP/D/9/juV3vQFr6XBEzn9KCAHdUvOHw=="],

"concat-map": ["[email protected]", "", {}, "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg=="],
Expand Down Expand Up @@ -1797,6 +1775,8 @@

"duplexify": ["[email protected]", "", { "dependencies": { "end-of-stream": "^1.4.1", "inherits": "^2.0.3", "readable-stream": "^3.1.1", "stream-shift": "^1.0.2" } }, "sha512-M3BmBhwJRZsSx38lZyhE53Csddgzl5R7xGJNk7CVddZD6CcmwMCH8J+7AprIrQKH7TonKxaCjcv27Qmf+sQ+oA=="],

"e2b": ["[email protected]", "", { "dependencies": { "@bufbuild/protobuf": "^2.2.2", "@connectrpc/connect": "2.0.0-rc.3", "@connectrpc/connect-web": "2.0.0-rc.3", "compare-versions": "^6.1.0", "openapi-fetch": "^0.9.7", "platform": "^1.3.6" } }, "sha512-DscfuCl8VS/J6LCM12325eQNk04HZ8BSVOplz0cMV6Ea4l1Ihy7NSfQLHCS3Db927kYyXLo3RxX1NWGgsmmYkg=="],

"eastasianwidth": ["[email protected]", "", {}, "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA=="],

"ecdsa-sig-formatter": ["[email protected]", "", { "dependencies": { "safe-buffer": "^5.0.1" } }, "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ=="],
Expand Down Expand Up @@ -2729,6 +2709,8 @@

"pkg-types": ["[email protected]", "", { "dependencies": { "confbox": "^0.2.1", "exsolve": "^1.0.1", "pathe": "^2.0.3" } }, "sha512-wmJwA+8ihJixSoHKxZJRBQG1oY8Yr9pGLzRmSsNms0iNWyHHAlZCa7mmKiFR10YPZuz/2k169JiS/inOjBCZ2A=="],

"platform": ["[email protected]", "", {}, "sha512-fnWVljUchTro6RiCFvCXBbNhJc2NijN7oIQxbwsyL0buWJPG85v81ehlHI9fXrJsMNgTofEoWIQeClKpgxFLrg=="],

"pluralize": ["[email protected]", "", {}, "sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA=="],

"pnp-webpack-plugin": ["[email protected]", "", { "dependencies": { "ts-pnp": "^1.1.6" } }, "sha512-2Rb3vm+EXble/sMXNSu6eoBx8e79gKqhNq9F5ZWW6ERNCTE/Q0wQNne5541tE5vKjfM8hpNCYL+LGc1YTfI0dg=="],
Expand Down Expand Up @@ -3419,12 +3401,6 @@

"@babel/traverse/globals": ["[email protected]", "", {}, "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA=="],

"@bufbuild/protoplugin/typescript": ["[email protected]", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ=="],

"@connectrpc/protoc-gen-connect-es/@bufbuild/protobuf": ["@bufbuild/[email protected]", "", {}, "sha512-wJ8ReQbHxsAfXhrf9ixl0aYbZorRuOWpBNzm8pL8ftmSxQx/wnJD5Eg861NwJU/czy2VXFIebCeZnZrI9rktIQ=="],

"@connectrpc/protoc-gen-connect-es/@bufbuild/protoplugin": ["@bufbuild/[email protected]", "", { "dependencies": { "@bufbuild/protobuf": "1.10.1", "@typescript/vfs": "^1.4.0", "typescript": "4.5.2" } }, "sha512-LaSbfwabAFIvbVnbn8jWwElRoffCIxhVraO8arliVwWupWezHLXgqPHEYLXZY/SsAR+/YsFBQJa8tAGtNPJyaQ=="],

"@esbuild-kit/core-utils/esbuild": ["[email protected]", "", { "optionalDependencies": { "@esbuild/android-arm": "0.18.20", "@esbuild/android-arm64": "0.18.20", "@esbuild/android-x64": "0.18.20", "@esbuild/darwin-arm64": "0.18.20", "@esbuild/darwin-x64": "0.18.20", "@esbuild/freebsd-arm64": "0.18.20", "@esbuild/freebsd-x64": "0.18.20", "@esbuild/linux-arm": "0.18.20", "@esbuild/linux-arm64": "0.18.20", "@esbuild/linux-ia32": "0.18.20", "@esbuild/linux-loong64": "0.18.20", "@esbuild/linux-mips64el": "0.18.20", "@esbuild/linux-ppc64": "0.18.20", "@esbuild/linux-riscv64": "0.18.20", "@esbuild/linux-s390x": "0.18.20", "@esbuild/linux-x64": "0.18.20", "@esbuild/netbsd-x64": "0.18.20", "@esbuild/openbsd-x64": "0.18.20", "@esbuild/sunos-x64": "0.18.20", "@esbuild/win32-arm64": "0.18.20", "@esbuild/win32-ia32": "0.18.20", "@esbuild/win32-x64": "0.18.20" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA=="],

"@eslint-community/eslint-utils/eslint-visitor-keys": ["[email protected]", "", {}, "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag=="],
Expand Down Expand Up @@ -3767,6 +3743,8 @@

"duplexify/readable-stream": ["[email protected]", "", { "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", "util-deprecate": "^1.0.1" } }, "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA=="],

"e2b/openapi-fetch": ["[email protected]", "", { "dependencies": { "openapi-typescript-helpers": "^0.0.8" } }, "sha512-zM6elH0EZStD/gSiNlcPrzXcVQ/pZo3BDvC6CDwRDUt1dDzxlshpmQnpD6cZaJ39THaSmwVCxxRrPKNM1hHrDg=="],

"elliptic/bn.js": ["[email protected]", "", {}, "sha512-k8TVBiPkPJT9uHLdOKfFpqcfprwBFOAAXXozRubr7R7PfIuKvQlzcI4M0pALeqXN09vdaMbUdUj+pass+uULAg=="],

"error-ex/is-arrayish": ["[email protected]", "", {}, "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg=="],
Expand Down Expand Up @@ -4059,8 +4037,6 @@

"wrap-ansi-cjs/strip-ansi": ["[email protected]", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="],

"@connectrpc/protoc-gen-connect-es/@bufbuild/protoplugin/typescript": ["[email protected]", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw=="],

"@esbuild-kit/core-utils/esbuild/@esbuild/android-arm": ["@esbuild/[email protected]", "", { "os": "android", "cpu": "arm" }, "sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw=="],

"@esbuild-kit/core-utils/esbuild/@esbuild/android-arm64": ["@esbuild/[email protected]", "", { "os": "android", "cpu": "arm64" }, "sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ=="],
Expand Down Expand Up @@ -4397,6 +4373,8 @@

"d3-sankey/d3-shape/d3-path": ["[email protected]", "", {}, "sha512-VLaYcn81dtHVTjEHd8B+pbe9yHWpXKZUC87PzoFmsFrJqgFwDe/qxfp5MlfsfM1V5E/iVt0MmEbWQ7FVIXh/bg=="],

"e2b/openapi-fetch/openapi-typescript-helpers": ["[email protected]", "", {}, "sha512-1eNjQtbfNi5Z/kFhagDIaIRj6qqDzhjNJKz8cmMW0CVdGwT6e1GLbAfgI0d28VTJa1A8jz82jm/4dG8qNoNS8g=="],

"eslint-plugin-import/tsconfig-paths/json5": ["[email protected]", "", { "dependencies": { "minimist": "^1.2.0" }, "bin": { "json5": "lib/cli.js" } }, "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA=="],

"eslint/chalk/supports-color": ["[email protected]", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="],
Expand Down
9 changes: 2 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"<<<<<< Gen": "",
"generate:infra": "bunx openapi-typescript https://raw.githubusercontent.com/e2b-dev/infra/main/spec/openapi.yml -o ./src/types/infra-api.d.ts",
"generate:supabase": "bunx supabase@latest gen types typescript --schema public > src/types/database.types.ts --project-id $SUPABASE_PROJECT_ID",
"generate:envd": "buf generate --template ./spec/envd/buf.gen.yaml",
"<<<<<< Scripts": "",
"scripts:check-app-env": "bun scripts/check-app-env.ts",
"scripts:build-storybook": "bun scripts/build-storybook.ts",
Expand All @@ -40,7 +39,6 @@
"test:ui:integration": "bun scripts:check-app-env && vitest --ui src/__test__/integration/"
},
"dependencies": {
"@connectrpc/connect": "^2.0.2",
"@fumadocs/mdx-remote": "^1.2.0",
"@google-cloud/storage": "^7.15.2",
"@hookform/resolvers": "^3.10.0",
Expand Down Expand Up @@ -81,6 +79,7 @@
"clsx": "^2.1.1",
"cmdk": "^1.0.4",
"date-fns": "^4.1.0",
"e2b": "^1.5.3",
"fast-xml-parser": "^4.5.1",
"fumadocs-core": "^15.0.6",
"fumadocs-mdx": "^11.5.3",
Expand Down Expand Up @@ -160,11 +159,7 @@
"tailwindcss-animate": "^1.0.7",
"tsx": "^4.19.2",
"typescript": "5.7.3",
"vitest": "^3.0.7",
"@bufbuild/buf": "^1.54.0",
"@bufbuild/protobuf": "^2.5.2",
"@bufbuild/protoc-gen-es": "^2.5.2",
"@connectrpc/protoc-gen-connect-es": "^1.6.1"
"vitest": "^3.0.7"
},
"resolutions": {
"whatwg-url": "^13",
Expand Down
21 changes: 0 additions & 21 deletions spec/envd/buf.gen.yaml

This file was deleted.

124 changes: 0 additions & 124 deletions spec/envd/filesystem/filesystem.proto

This file was deleted.

12 changes: 6 additions & 6 deletions src/__test__/integration/middleware.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ describe('Middleware Integration Tests', () => {
expect(redirectCalls.length).toBeGreaterThan(0)

if (redirectCalls.length > 0) {
const redirectUrl = redirectCalls[0][0].toString()
const redirectUrl = redirectCalls[0]![0].toString()
expect(redirectUrl).toContain(AUTH_URLS.SIGN_IN)
}
})
Expand Down Expand Up @@ -214,7 +214,7 @@ describe('Middleware Integration Tests', () => {
const redirectCalls = vi.mocked(NextResponse.redirect).mock.calls
expect(redirectCalls.length).toBeGreaterThan(0)
if (redirectCalls.length > 0) {
expect(redirectCalls[0][0].toString()).toContain('default-team')
expect(redirectCalls[0]![0].toString()).toContain('default-team')
}
})
})
Expand Down Expand Up @@ -243,7 +243,7 @@ describe('Middleware Integration Tests', () => {
const redirectCalls = vi.mocked(NextResponse.redirect).mock.calls
expect(redirectCalls.length).toBeGreaterThan(0)
if (redirectCalls.length > 0) {
const url = redirectCalls[0][0].toString()
const url = redirectCalls[0]![0].toString()
expect(url).toContain(PROTECTED_URLS.DASHBOARD)
expect(url).not.toContain('tampered-team-id')
}
Expand Down Expand Up @@ -318,7 +318,7 @@ describe('Middleware Integration Tests', () => {
const redirectCalls = vi.mocked(NextResponse.redirect).mock.calls
expect(redirectCalls.length).toBeGreaterThan(0)
if (redirectCalls.length > 0) {
expect(redirectCalls[0][0].toString()).toContain('default-team')
expect(redirectCalls[0]![0].toString()).toContain('default-team')
}
})

Expand Down Expand Up @@ -354,7 +354,7 @@ describe('Middleware Integration Tests', () => {
const redirectCalls = vi.mocked(NextResponse.redirect).mock.calls
expect(redirectCalls.length).toBeGreaterThan(0)
if (redirectCalls.length > 0) {
expect(redirectCalls[0][0].toString()).toContain(
expect(redirectCalls[0]![0].toString()).toContain(
PROTECTED_URLS.NEW_TEAM
)
}
Expand Down Expand Up @@ -394,7 +394,7 @@ describe('Middleware Integration Tests', () => {
const redirectCalls = vi.mocked(NextResponse.redirect).mock.calls
expect(redirectCalls.length).toBeGreaterThan(0)
if (redirectCalls.length > 0) {
expect(redirectCalls[0][0].toString()).toContain('/')
expect(redirectCalls[0]![0].toString()).toContain('/')
}
})
})
Expand Down
Loading
Loading