Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
* Add nested navigation on a per module and submodule basis * Improve js-sdk api ref with typedoc markdown options * Levarage auto anchor link generation with h2 and h3s for cli sdk * Some css styling
0div5ad23d03c293
diff --git a/apps/web/prebuild.js b/apps/web/prebuild.jsindex 4b743dc5c..857fef507 100644--- a/apps/web/prebuild.js+++ b/apps/web/prebuild.js@@ -31,6 +31,64 @@ function buildDirectoryHierarchy(dirPath) {const filesCreated = new Set()+function formatModuleTitle(title) {+ // Replace underscore with space for _sync and _async suffixes+ if (title.endsWith('_sync')) {+ title = title.replace('_sync', '')+ } else if (title.endsWith('_async')) {+ title = title.replace('_async', ' async')+ }+ return title.charAt(0).toUpperCase() + title.slice(1).toLowerCase()+}++function toAnchorLink(title) {+ // Add dashes between words for camelCase+ title = title.replace(/([a-z])([A-Z])/g, '$1-$2')+ return '#' + title.toLowerCase().replace(/ /g, '-')+}++function getSubModules(pkg, href, dirPath) {+ console.log('[submodules] pkg', pkg)+ try {+ const filePath = dirPath + '/page.mdx'+ if (!fs.existsSync(filePath)) {+ return null+ }++ const content = fs.readFileSync(filePath, 'utf8')+ const lines = content.split('\n')++ const subModules = []+ for (let i = 0; i < lines.length; i++) {+ const line = lines[i]+ if (pkg === 'js-sdk') {+ if (line.startsWith('### ')) {+ const title = line.slice(3).trim()+ if (title) {+ subModules.push({+ title: title,+ href: href + toAnchorLink(title),+ })+ }+ }+ } else if (pkg === 'python-sdk' || pkg === 'cli') {+ if (line.startsWith('## ')) {+ const title = line.slice(2).trim()+ if (title) {+ subModules.push({+ title: title,+ href: href + toAnchorLink(title),+ })+ }+ }+ }+ }+ return subModules.length > 0 ? subModules : null+ } catch (err) {+ return null+ }+}+function buildRoutes(dirName, dir, basePath = '', depth = 1) {const entries = fs.readdirSync(dir, { withFileTypes: true })const parentDirName = path.basename(path.dirname(dir))@@ -41,7 +99,9 @@ function buildRoutes(dirName, dir, basePath = '', depth = 1) {if (entry.isDirectory()) {let route = {- title: depth === 1 ? entry.name.toLocaleUpperCase() : entry.name,+ title:+ (depth === 1 ? entry.name.toLocaleUpperCase() : entry.name) ++ ' Reference',}const entryName = entry.nameconst childPath = path.join(dir, entry.name)@@ -50,18 +110,39 @@ function buildRoutes(dirName, dir, basePath = '', depth = 1) {if (links.length > 0) {route.href = '/docs/api-reference/' + relativePath// SDK level+ if (depth === 1) {+ const latestVersion = Object.keys(hierarchy[entryName]).reverse()[0]+ const latestModules = Object.keys(+ hierarchy[entryName][latestVersion]+ )++ route.items = latestModules.map((module) => ({+ title: formatModuleTitle(module),+ href: `/docs/api-reference/${entryName}/${latestVersion}/${module}`,+ links: getSubModules(+ entryName,+ `/docs/api-reference/${entryName}/${latestVersion}/${module}`,+ path.join(+ __dirname,+ `./src/app/(docs)/docs/api-reference/${entryName}/${latestVersion}/${module}`+ )+ ),+ }))+ }+if (depth === 2) {const mdxFilePath = path.join(dir, 'page.mdx')if (filesCreated.has(mdxFilePath)) return route// Generate SDK version TOC markdown file+ const latestVersion = Object.keys(hierarchy[dirName]).reverse()[0]let mdxContent = `# ${dirName}\n\n## ${entryName}\n\n${links.map((link) =>`- [${link.title.charAt(0).toUpperCase() +link.title.slice(1).toLowerCase()- }](./${dirName}/${entryName}/${link.title})`+ }](./${dirName}/${latestVersion}/${link.title})`).join('\n')}`@@ -69,7 +150,7 @@ function buildRoutes(dirName, dir, basePath = '', depth = 1) {hierarchy[dirName] &&Object.keys(hierarchy[dirName]).length > 1) {- const versions = Object.keys(hierarchy[dirName])+ const versions = Object.keys(hierarchy[dirName]).reverse()const versionLinks = `<div className="versions-dropdown">${versions[0]} ▼<div className="dropdown-content">@@ -132,12 +213,7 @@ function generateApiRefRoutes() {return routes}-const apiRefRoutes = [- {- title: 'References',- items: generateApiRefRoutes(),- },-]+const apiRefRoutes = generateApiRefRoutes()fs.writeFileSync(path.join(__dirname, ApiRefRoutesFilePath),diff --git a/apps/web/src/app/(docs)/docs/api-reference/cli/page.mdx b/apps/web/src/app/(docs)/docs/api-reference/cli/page.mdxindex 1c8c67601..3575f2293 100644--- a/apps/web/src/app/(docs)/docs/api-reference/cli/page.mdx+++ b/apps/web/src/app/(docs)/docs/api-reference/cli/page.mdx@@ -1,15 +1,19 @@-<a href="/docs/api-reference/cli/v1.0.0" class="version-link">[v1.0.0]</a>- <a href="/docs/api-reference/cli/v1.0.1" class="version-link">[v1.0.1]</a>- <a href="/docs/api-reference/cli/v1.0.2" class="version-link">[v1.0.2]</a>- <a href="/docs/api-reference/cli/v1.0.3" class="version-link">[v1.0.3]</a>- <a href="/docs/api-reference/cli/v1.0.4" class="version-link">[v1.0.4]</a>- <a href="/docs/api-reference/cli/v1.0.5" class="version-link">[v1.0.5]</a>+<div className="versions-dropdown">+ v1.0.5 ▼+ <div className="dropdown-content">+ <a href="/docs/api-reference/cli/v1.0.4" className="version-link">v1.0.4</a>+ <a href="/docs/api-reference/cli/v1.0.3" className="version-link">v1.0.3</a>+ <a href="/docs/api-reference/cli/v1.0.2" className="version-link">v1.0.2</a>+ <a href="/docs/api-reference/cli/v1.0.1" className="version-link">v1.0.1</a>+ <a href="/docs/api-reference/cli/v1.0.0" className="version-link">v1.0.0</a>+ </div>+ </div># cli## v1.0.0-- [Auth](./cli/v1.0.0/auth)-- [Sandbox](./cli/v1.0.0/sandbox)-- [Template](./cli/v1.0.0/template)\ No newline at end of file+- [Auth reference](./cli/v1.0.5/auth Reference)+- [Sandbox reference](./cli/v1.0.5/sandbox Reference)+- [Template reference](./cli/v1.0.5/template Reference)\ No newline at end of filediff --git a/apps/web/src/app/(docs)/docs/api-reference/cli/v1.0.5/auth/page.mdx b/apps/web/src/app/(docs)/docs/api-reference/cli/v1.0.5/auth/page.mdxindex 5e547262c..2c82afa69 100644--- a/apps/web/src/app/(docs)/docs/api-reference/cli/v1.0.5/auth/page.mdx+++ b/apps/web/src/app/(docs)/docs/api-reference/cli/v1.0.5/auth/page.mdx@@ -1,55 +1,55 @@-# e2b auth+## e2b authauthentication commands-## Usage+### Usage```bashe2b auth [options] [command]```-# e2b auth login+## e2b auth loginlog in to CLI-## Usage+### Usage```bashe2b auth login [options]```-# e2b auth logout+## e2b auth logoutlog out of CLI-## Usage+### Usage```bashe2b auth logout [options]```-# e2b auth info+## e2b auth infoget information about the current user-## Usage+### Usage```bashe2b auth info [options]```-# e2b auth configure+## e2b auth configureconfigure user-## Usage+### Usage```bashe2b auth configure [options]diff --git a/apps/web/src/app/(docs)/docs/api-reference/cli/v1.0.5/sandbox/page.mdx b/apps/web/src/app/(docs)/docs/api-reference/cli/v1.0.5/sandbox/page.mdxindex fc8e99343..d4b87498b 100644--- a/apps/web/src/app/(docs)/docs/api-reference/cli/v1.0.5/sandbox/page.mdx+++ b/apps/web/src/app/(docs)/docs/api-reference/cli/v1.0.5/sandbox/page.mdx@@ -1,89 +1,89 @@-# e2b sandbox+## e2b sandboxwork with sandboxes-## Usage+### Usage```bashe2b sandbox [options] [command]```-# e2b sandbox connect+## e2b sandbox connectconnect terminal to already running sandbox-## Usage+### Usage```bashe2b sandbox connect [options] <sandboxID>```-# e2b sandbox list+## e2b sandbox listlist all running sandboxes-## Usage+### Usage```bashe2b sandbox list [options]```-# e2b sandbox kill+## e2b sandbox killkill sandbox-## Usage+### Usage```bashe2b sandbox kill [options] [sandboxID]```-## Options+### Options- `-a, --all: kill all running sandboxes `-# e2b sandbox spawn+## e2b sandbox spawnspawn sandbox and connect terminal to it-## Usage+### Usage```bashe2b sandbox spawn [options] [template]```-## Options+### Options- - `-p, --path <path>: change root directory where command is executed to <path> directory `- - `--config <e2b-toml>: specify path to the E2B config toml. By default E2B tries to find ./e2b.toml in root directory. `+ - `-p, --path <path>: change root directory where command is executed to <path> directory `+ - `--config <e2b-toml>: specify path to the E2B config toml. By default E2B tries to find ./e2b.toml in root directory. `-# e2b sandbox logs+## e2b sandbox logsshow logs for sandbox-## Usage+### Usage```bashe2b sandbox logs [options] <sandboxID>```-## Options+### Options- - `--level <level>: filter logs by level (DEBUG, INFO, WARN, ERROR). The logs with the higher levels will be also shown. [default: INFO]`+ - `--level <level>: filter logs by level (DEBUG, INFO, WARN, ERROR). The logs with the higher levels will be also shown. [default: INFO]`- `-f, --follow: keep streaming logs until the sandbox is closed `- - `--format <format>: specify format for printing logs (json, pretty) [default: pretty]`+ - `--format <format>: specify format for printing logs (json, pretty) [default: pretty]`- `--loggers [loggers]: filter logs by loggers. Specify multiple loggers by separating them with a comma. `diff --git a/apps/web/src/app/(docs)/docs/api-reference/cli/v1.0.5/template/page.mdx b/apps/web/src/app/(docs)/docs/api-reference/cli/v1.0.5/template/page.mdxindex 48d3dcb2e..0958b5fa3 100644--- a/apps/web/src/app/(docs)/docs/api-reference/cli/v1.0.5/template/page.mdx+++ b/apps/web/src/app/(docs)/docs/api-reference/cli/v1.0.5/template/page.mdx@@ -1,88 +1,88 @@-# e2b template+## e2b templatemanage sandbox templates-## Usage+### Usage```bashe2b template [options] [command]```-# e2b template build+## e2b template build-build sandbox template defined by ./e2b.Dockerfile or ./Dockerfile in root directory. By default the root directory is the current working directory. This command also creates e2b.toml config.+build sandbox template defined by ./e2b.Dockerfile or ./Dockerfile in root directory. By default the root directory is the current working directory. This command also creates e2b.toml config.-## Usage+### Usage```bashe2b template build [options] [template]```-## Options+### Options- - `-p, --path <path>: change root directory where command is executed to <path> directory `- - `-d, --dockerfile <file>: specify path to Dockerfile. By default E2B tries to find e2b.Dockerfile or Dockerfile in root directory. `+ - `-p, --path <path>: change root directory where command is executed to <path> directory `+ - `-d, --dockerfile <file>: specify path to Dockerfile. By default E2B tries to find e2b.Dockerfile or Dockerfile in root directory. `- `-n, --name <template-name>: specify sandbox template name. You can use the template name to start the sandbox with SDK. The template name must be lowercase and contain only letters, numbers, dashes and underscores. `- `-c, --cmd <start-command>: specify command that will be executed when the sandbox is started. `- `-t, --team <team-id>: specify the team ID that the operation will be associated with. You can find team ID in the team settings in the E2B dashboard (https://e2b.dev/dashboard?tab=team). `- - `--config <e2b-toml>: specify path to the E2B config toml. By default E2B tries to find ./e2b.toml in root directory. `+ - `--config <e2b-toml>: specify path to the E2B config toml. By default E2B tries to find ./e2b.toml in root directory. `- `--cpu-count <cpu-count>: specify the number of CPUs that will be used to run the sandbox. The default value is 2. `- `--memory-mb <memory-mb>: specify the amount of memory in megabytes that will be used to run the sandbox. Must be an even number. The default value is 512. `- `--build-arg <args...>: specify additional build arguments for the build command. The format should be <varname>=<value>. `-# e2b template list+## e2b template listlist sandbox templates-## Usage+### Usage```bashe2b template list [options]```-## Options+### Options- `-t, --team <team-id>: specify the team ID that the operation will be associated with. You can find team ID in the team settings in the E2B dashboard (https://e2b.dev/dashboard?tab=team). `-# e2b template init+## e2b template init-create basic E2B Dockerfile (./e2b.Dockerfile) in root directory. You can then run e2b template build to build sandbox template from this Dockerfile+create basic E2B Dockerfile (./e2b.Dockerfile) in root directory. You can then run e2b template build to build sandbox template from this Dockerfile-## Usage+### Usage```bashe2b template init [options]```-## Options+### Options- - `-p, --path <path>: change root directory where command is executed to <path> directory `+ - `-p, --path <path>: change root directory where command is executed to <path> directory `-# e2b template delete+## e2b template delete-delete sandbox template and e2b.toml config+delete sandbox template and e2b.toml config-## Usage+### Usage```bashe2b template delete [options] [template]```-## Options+### Options- - `-p, --path <path>: change root directory where command is executed to <path> directory `- - `--config <e2b-toml>: specify path to the E2B config toml. By default E2B tries to find ./e2b.toml in root directory. `+ - `-p, --path <path>: change root directory where command is executed to <path> directory `+ - `--config <e2b-toml>: specify path to the E2B config toml. By default E2B tries to find ./e2b.toml in root directory. `- `-s, --select: select sandbox template from interactive list `- `-t, --team <team-id>: specify the team ID that the operation will be associated with. You can find team ID in the team settings in the E2B dashboard (https://e2b.dev/dashboard?tab=team). `- `-y, --yes: skip manual delete confirmation `diff --git a/apps/web/src/app/(docs)/docs/api-reference/js-sdk/page.mdx b/apps/web/src/app/(docs)/docs/api-reference/js-sdk/page.mdxindex 10f6b374a..f308d16e4 100644--- a/apps/web/src/app/(docs)/docs/api-reference/js-sdk/page.mdx+++ b/apps/web/src/app/(docs)/docs/api-reference/js-sdk/page.mdx@@ -1,14 +1,19 @@-<a href="/docs/api-reference/js-sdk/v1.0.0" class="version-link">[v1.0.0]</a>- <a href="/docs/api-reference/js-sdk/v1.0.1" class="version-link">[v1.0.1]</a>- <a href="/docs/api-reference/js-sdk/v1.0.2" class="version-link">[v1.0.2]</a>- <a href="/docs/api-reference/js-sdk/v1.0.3" class="version-link">[v1.0.3]</a>- <a href="/docs/api-reference/js-sdk/v1.0.4" class="version-link">[v1.0.4]</a>+<div className="versions-dropdown">+ v1.0.5 ▼+ <div className="dropdown-content">+ <a href="/docs/api-reference/js-sdk/v1.0.4" className="version-link">v1.0.4</a>+ <a href="/docs/api-reference/js-sdk/v1.0.3" className="version-link">v1.0.3</a>+ <a href="/docs/api-reference/js-sdk/v1.0.2" className="version-link">v1.0.2</a>+ <a href="/docs/api-reference/js-sdk/v1.0.1" className="version-link">v1.0.1</a>+ <a href="/docs/api-reference/js-sdk/v1.0.0" className="version-link">v1.0.0</a>+ </div>+ </div># js-sdk## v1.0.0-- [Errors](./js-sdk/v1.0.0/errors)-- [Filesystem](./js-sdk/v1.0.0/filesystem)-- [Sandbox](./js-sdk/v1.0.0/sandbox)\ No newline at end of file+- [Errors reference](./js-sdk/v1.0.5/errors Reference)+- [Filesystem reference](./js-sdk/v1.0.5/filesystem Reference)+- [Sandbox reference](./js-sdk/v1.0.5/sandbox Reference)\ No newline at end of filediff --git a/apps/web/src/app/(docs)/docs/api-reference/js-sdk/v1.0.5/errors/page.mdx b/apps/web/src/app/(docs)/docs/api-reference/js-sdk/v1.0.5/errors/page.mdxindex f989f00a5..0eae57a6b 100644--- a/apps/web/src/app/(docs)/docs/api-reference/js-sdk/v1.0.5/errors/page.mdx+++ b/apps/web/src/app/(docs)/docs/api-reference/js-sdk/v1.0.5/errors/page.mdx@@ -1,5 +1,3 @@-# errors-## Classes### AuthenticationError@@ -10,11 +8,15 @@ Thrown when authentication fails.##### new AuthenticationError()-> **new AuthenticationError**(`message`): `AuthenticationError`+```ts+new AuthenticationError(message: any): AuthenticationError+```###### Parameters-• **message**: `any`+| Parameter | Type |+| ------ | ------ |+| `message` | `any` |###### Returns@@ -34,11 +36,15 @@ Thrown when an invalid argument is provided.##### new InvalidArgumentError()-> **new InvalidArgumentError**(`message`): `InvalidArgumentError`+```ts+new InvalidArgumentError(message: string): InvalidArgumentError+```###### Parameters-• **message**: `string`+| Parameter | Type |+| ------ | ------ |+| `message` | `string` |###### Returns@@ -58,11 +64,15 @@ Thrown when there is not enough disk space.##### new NotEnoughSpaceError()-> **new NotEnoughSpaceError**(`message`): `NotEnoughSpaceError`+```ts+new NotEnoughSpaceError(message: string): NotEnoughSpaceError+```###### Parameters-• **message**: `string`+| Parameter | Type |+| ------ | ------ |+| `message` | `string` |###### Returns@@ -82,11 +92,15 @@ Thrown when a resource is not found.##### new NotFoundError()-> **new NotFoundError**(`message`): `NotFoundError`+```ts+new NotFoundError(message: string): NotFoundError+```###### Parameters-• **message**: `string`+| Parameter | Type |+| ------ | ------ |+| `message` | `string` |###### Returns@@ -106,11 +120,15 @@ Thrown when the API rate limit is exceeded.##### new RateLimitError()-> **new RateLimitError**(`message`): `RateLimitError`+```ts+new RateLimitError(message: any): RateLimitError+```###### Parameters-• **message**: `any`+| Parameter | Type |+| ------ | ------ |+| `message` | `any` |###### Returns@@ -142,11 +160,15 @@ Thrown when general sandbox errors occur.##### new SandboxError()-> **new SandboxError**(`message`): `SandboxError`+```ts+new SandboxError(message: any): SandboxError+```###### Parameters-• **message**: `any`+| Parameter | Type |+| ------ | ------ |+| `message` | `any` |###### Returns@@ -166,11 +188,15 @@ Thrown when the template uses old envd version. It isn't compatible with the new##### new TemplateError()-> **new TemplateError**(`message`): `TemplateError`+```ts+new TemplateError(message: string): TemplateError+```###### Parameters-• **message**: `string`+| Parameter | Type |+| ------ | ------ |+| `message` | `string` |###### Returns@@ -198,11 +224,15 @@ The [unknown] error type is sometimes caused by the sandbox timeout when the req##### new TimeoutError()-> **new TimeoutError**(`message`): `TimeoutError`+```ts+new TimeoutError(message: string): TimeoutError+```###### Parameters-• **message**: `string`+| Parameter | Type |+| ------ | ------ |+| `message` | `string` |###### Returns@@ -216,11 +246,15 @@ errors.ts:32### formatSandboxTimeoutError()-> **formatSandboxTimeoutError**(`message`): `TimeoutError`+```ts+function formatSandboxTimeoutError(message: string): TimeoutError+```#### Parameters-• **message**: `string`+| Parameter | Type |+| ------ | ------ |+| `message` | `string` |#### Returnsdiff --git a/apps/web/src/app/(docs)/docs/api-reference/js-sdk/v1.0.5/filesystem/page.mdx b/apps/web/src/app/(docs)/docs/api-reference/js-sdk/v1.0.5/filesystem/page.mdxindex e1a6f8be2..e2a0bbd7a 100644--- a/apps/web/src/app/(docs)/docs/api-reference/js-sdk/v1.0.5/filesystem/page.mdx+++ b/apps/web/src/app/(docs)/docs/api-reference/js-sdk/v1.0.5/filesystem/page.mdx@@ -1,5 +1,3 @@-# sandbox/filesystem-## Enumerations### FileType@@ -8,25 +6,10 @@ Sandbox filesystem object type.#### Enumeration Members-##### DIR--> **DIR**: `"dir"`--Filesystem object is a directory.--###### Defined in--sandbox/filesystem/index.ts:54--##### FILE--> **FILE**: `"file"`--Filesystem object is a file.--###### Defined in--sandbox/filesystem/index.ts:50+| Enumeration Member | Value | Description | Defined in |+| ------ | ------ | ------ | ------ |+| `DIR` | `"dir"` | Filesystem object is a directory. | sandbox/filesystem/index.ts:54 |+| `FILE` | `"file"` | Filesystem object is a file. | sandbox/filesystem/index.ts:50 |## Classes@@ -38,15 +21,20 @@ Module for interacting with the sandbox filesystem.##### new Filesystem()-> **new Filesystem**(`transport`, `envdApi`, `connectionConfig`): `Filesystem`+```ts+new Filesystem(+ transport: Transport,+ envdApi: EnvdApiClient,+ connectionConfig: ConnectionConfig): Filesystem+```###### Parameters-• **transport**: `Transport`--• **envdApi**: `EnvdApiClient`--• **connectionConfig**: `ConnectionConfig`+| Parameter | Type |+| ------ | ------ |+| `transport` | `Transport` |+| `envdApi` | `EnvdApiClient` |+| `connectionConfig` | `ConnectionConfig` |###### Returns@@ -60,19 +48,18 @@ sandbox/filesystem/index.ts:103##### exists()-> **exists**(`path`, `opts`?): `Promise`\<`boolean`\>+```ts+exists(path: string, opts?: FilesystemRequestOpts): Promise<boolean>+```Check if a file or a directory exists.###### Parameters-• **path**: `string`--path to a file or a directory--• **opts?**: `FilesystemRequestOpts`--connection options.+| Parameter | Type | Description |+| ------ | ------ | ------ |+| `path` | `string` | path to a file or a directory |+| `opts`? | `FilesystemRequestOpts` | connection options. |###### Returns@@ -86,19 +73,18 @@ sandbox/filesystem/index.ts:401##### list()-> **list**(`path`, `opts`?): `Promise`\<`EntryInfo`[]\>+```ts+list(path: string, opts?: FilesystemRequestOpts): Promise<EntryInfo[]>+```List entries in a directory.###### Parameters-• **path**: `string`--path to the directory.--• **opts?**: `FilesystemRequestOpts`--connection options.+| Parameter | Type | Description |+| ------ | ------ | ------ |+| `path` | `string` | path to the directory. |+| `opts`? | `FilesystemRequestOpts` | connection options. |###### Returns@@ -112,19 +98,18 @@ sandbox/filesystem/index.ts:272##### makeDir()-> **makeDir**(`path`, `opts`?): `Promise`\<`boolean`\>+```ts+makeDir(path: string, opts?: FilesystemRequestOpts): Promise<boolean>+```Create a new directory and all directories along the way if needed on the specified path.###### Parameters-• **path**: `string`--path to a new directory. For example '/dirA/dirB' when creating 'dirB'.--• **opts?**: `FilesystemRequestOpts`--connection options.+| Parameter | Type | Description |+| ------ | ------ | ------ |+| `path` | `string` | path to a new directory. For example '/dirA/dirB' when creating 'dirB'. |+| `opts`? | `FilesystemRequestOpts` | connection options. |###### Returns@@ -140,7 +125,9 @@ sandbox/filesystem/index.ts:310###### read(path, opts)-> **read**(`path`, `opts`?): `Promise`\<`string`\>+```ts+read(path: string, opts?: FilesystemRequestOpts & object): Promise<string>+```Read file content as a `string`.@@ -148,13 +135,10 @@ You can pass `text`, `bytes`, `blob`, or `stream` to `opts.format` to change the###### Parameters-• **path**: `string`--path to the file.--• **opts?**: `FilesystemRequestOpts` & `object`--connection options.+| Parameter | Type | Description |+| ------ | ------ | ------ |+| `path` | `string` | path to the file. |+| `opts`? | `FilesystemRequestOpts` & `object` | connection options. |###### Returns@@ -168,7 +152,9 @@ sandbox/filesystem/index.ts:122###### read(path, opts)-> **read**(`path`, `opts`?): `Promise`\<`Uint8Array`\>+```ts+read(path: string, opts?: FilesystemRequestOpts & object): Promise<Uint8Array>+```Read file content as a `Uint8Array`.@@ -176,13 +162,10 @@ You can pass `text`, `bytes`, `blob`, or `stream` to `opts.format` to change the###### Parameters-• **path**: `string`--path to the file.--• **opts?**: `FilesystemRequestOpts` & `object`--connection options.+| Parameter | Type | Description |+| ------ | ------ | ------ |+| `path` | `string` | path to the file. |+| `opts`? | `FilesystemRequestOpts` & `object` | connection options. |###### Returns@@ -196,7 +179,9 @@ sandbox/filesystem/index.ts:137###### read(path, opts)-> **read**(`path`, `opts`?): `Promise`\<`Blob`\>+```ts+read(path: string, opts?: FilesystemRequestOpts & object): Promise<Blob>+```Read file content as a `Blob`.@@ -204,13 +189,10 @@ You can pass `text`, `bytes`, `blob`, or `stream` to `opts.format` to change the###### Parameters-• **path**: `string`--path to the file.--• **opts?**: `FilesystemRequestOpts` & `object`--connection options.+| Parameter | Type | Description |+| ------ | ------ | ------ |+| `path` | `string` | path to the file. |+| `opts`? | `FilesystemRequestOpts` & `object` | connection options. |###### Returns@@ -224,7 +206,9 @@ sandbox/filesystem/index.ts:152###### read(path, opts)-> **read**(`path`, `opts`?): `Promise`\<`ReadableStream`\<`Uint8Array`\>\>+```ts+read(path: string, opts?: FilesystemRequestOpts & object): Promise<ReadableStream<Uint8Array>>+```Read file content as a `ReadableStream`.@@ -232,13 +216,10 @@ You can pass `text`, `bytes`, `blob`, or `stream` to `opts.format` to change the###### Parameters-• **path**: `string`--path to the file.--• **opts?**: `FilesystemRequestOpts` & `object`--connection options.+| Parameter | Type | Description |+| ------ | ------ | ------ |+| `path` | `string` | path to the file. |+| `opts`? | `FilesystemRequestOpts` & `object` | connection options. |###### Returns@@ -252,19 +233,18 @@ sandbox/filesystem/index.ts:167##### remove()-> **remove**(`path`, `opts`?): `Promise`\<`void`\>+```ts+remove(path: string, opts?: FilesystemRequestOpts): Promise<void>+```Remove a file or directory.###### Parameters-• **path**: `string`--path to a file or directory.--• **opts?**: `FilesystemRequestOpts`--connection options.+| Parameter | Type | Description |+| ------ | ------ | ------ |+| `path` | `string` | path to a file or directory. |+| `opts`? | `FilesystemRequestOpts` | connection options. |###### Returns@@ -276,23 +256,22 @@ sandbox/filesystem/index.ts:379##### rename()-> **rename**(`oldPath`, `newPath`, `opts`?): `Promise`\<`EntryInfo`\>+```ts+rename(+ oldPath: string,+ newPath: string,+opts?: FilesystemRequestOpts): Promise<EntryInfo>+```Rename a file or directory.###### Parameters-• **oldPath**: `string`--path to the file or directory to rename.--• **newPath**: `string`--new path for the file or directory.--• **opts?**: `FilesystemRequestOpts`--connection options.+| Parameter | Type | Description |+| ------ | ------ | ------ |+| `oldPath` | `string` | path to the file or directory to rename. |+| `newPath` | `string` | new path for the file or directory. |+| `opts`? | `FilesystemRequestOpts` | connection options. |###### Returns@@ -306,23 +285,22 @@ sandbox/filesystem/index.ts:341##### watchDir()-> **watchDir**(`path`, `onEvent`, `opts`?): `Promise`\<`WatchHandle`\>+```ts+watchDir(+ path: string,+ onEvent: (event: FilesystemEvent) => void | Promise<void>,+opts?: WatchOpts): Promise<WatchHandle>+```Start watching a directory for filesystem events.###### Parameters-• **path**: `string`--path to directory to watch.--• **onEvent**--callback to call when an event in the directory occurs.--• **opts?**: `WatchOpts`--connection options.+| Parameter | Type | Description |+| ------ | ------ | ------ |+| `path` | `string` | path to directory to watch. |+| `onEvent` | (`event`: `FilesystemEvent`) => `void` \| `Promise`\<`void`\> | callback to call when an event in the directory occurs. |+| `opts`? | `WatchOpts` | connection options. |###### Returns@@ -336,7 +314,12 @@ sandbox/filesystem/index.ts:432##### write()-> **write**(`path`, `data`, `opts`?): `Promise`\<`EntryInfo`\>+```ts+write(+ path: string,+ data: string | ArrayBuffer | Blob | ReadableStream<any>,+opts?: FilesystemRequestOpts): Promise<EntryInfo>+```Write content to a file.@@ -348,17 +331,11 @@ Writing to a file at path that doesn't exist creates the necessary directories.###### Parameters-• **path**: `string`--path to file.--• **data**: `string` \| `ArrayBuffer` \| `Blob` \| `ReadableStream`\<`any`\>--data to write to the file. Data can be a string, `ArrayBuffer`, `Blob`, or `ReadableStream`.--• **opts?**: `FilesystemRequestOpts`--connection options.+| Parameter | Type | Description |+| ------ | ------ | ------ |+| `path` | `string` | path to file. |+| `data` | `string` \| `ArrayBuffer` \| `Blob` \| `ReadableStream`\<`any`\> | data to write to the file. Data can be a string, `ArrayBuffer`, `Blob`, or `ReadableStream`. |+| `opts`? | `FilesystemRequestOpts` | connection options. |###### Returns@@ -380,7 +357,9 @@ Sandbox filesystem object information.##### name-> **name**: `string`+```ts+name: string;+```Name of the filesystem object.@@ -390,7 +369,9 @@ sandbox/filesystem/index.ts:32##### path-> **path**: `string`+```ts+path: string;+```Path to the filesystem object.@@ -400,7 +381,9 @@ sandbox/filesystem/index.ts:40##### type?-> `optional` **type**: `FileType`+```ts+optional type: FileType;+```Type of the filesystem object.@@ -422,7 +405,9 @@ Options for the sandbox filesystem operations.##### requestTimeoutMs?-> `optional` **requestTimeoutMs**: `number`+```ts+optional requestTimeoutMs: number;+```Timeout for requests to the API in **milliseconds**.@@ -438,7 +423,9 @@ connectionConfig.ts:42##### user?-> `optional` **user**: `Username`+```ts+optional user: Username;+```User to use for the operation in the sandbox.This affects the resolution of relative paths and ownership of the created filesystem objects.@@ -457,13 +444,17 @@ Options for watching a directory.##### onExit()?-> `optional` **onExit**: (`err`?) => `void` \| `Promise`\<`void`\>+```ts+optional onExit: (err?: Error) => void | Promise<void>;+```Callback to call when the watch operation stops.###### Parameters-• **err?**: `Error`+| Parameter | Type |+| ------ | ------ |+| `err`? | `Error` |###### Returns@@ -475,7 +466,9 @@ sandbox/filesystem/index.ts:92##### requestTimeoutMs?-> `optional` **requestTimeoutMs**: `number`+```ts+optional requestTimeoutMs: number;+```Timeout for requests to the API in **milliseconds**.@@ -491,7 +484,9 @@ connectionConfig.ts:42##### timeoutMs?-> `optional` **timeoutMs**: `number`+```ts+optional timeoutMs: number;+```Timeout for the watch operation in **milliseconds**.You can pass `0` to disable the timeout.@@ -508,7 +503,9 @@ sandbox/filesystem/index.ts:88##### user?-> `optional` **user**: `Username`+```ts+optional user: Username;+```User to use for the operation in the sandbox.This affects the resolution of relative paths and ownership of the created filesystem objects.diff --git a/apps/web/src/app/(docs)/docs/api-reference/js-sdk/v1.0.5/page.mdx b/apps/web/src/app/(docs)/docs/api-reference/js-sdk/v1.0.5/page.mdxnew file mode 100644index 000000000..61e14ae2f--- /dev/null+++ b/apps/web/src/app/(docs)/docs/api-reference/js-sdk/v1.0.5/page.mdx@@ -0,0 +1,5 @@+# JS-SDK v1.0.5++- [Errors](./v1.0.5/errors)+- [Filesystem](./v1.0.5/filesystem)+- [Sandbox](./v1.0.5/sandbox)\ No newline at end of filediff --git a/apps/web/src/app/(docs)/docs/api-reference/js-sdk/v1.0.5/sandbox/page.mdx b/apps/web/src/app/(docs)/docs/api-reference/js-sdk/v1.0.5/sandbox/page.mdxindex 6c4cae338..6154f942b 100644--- a/apps/web/src/app/(docs)/docs/api-reference/js-sdk/v1.0.5/sandbox/page.mdx+++ b/apps/web/src/app/(docs)/docs/api-reference/js-sdk/v1.0.5/sandbox/page.mdx@@ -1,5 +1,3 @@-# sandbox-## Classes### Sandbox@@ -27,59 +25,28 @@ const sandbox = await Sandbox.create()#### Properties-##### commands--> `readonly` **commands**: `Commands`--Module for running commands in the sandbox--###### Defined in--sandbox/index.ts:74--##### files--> `readonly` **files**: `Filesystem`--Module for interacting with the sandbox filesystem--###### Defined in--sandbox/index.ts:70--##### pty--> `readonly` **pty**: `Pty`--Module for interacting with the sandbox pseudo-terminals--###### Defined in--sandbox/index.ts:78--##### sandboxId--> `readonly` **sandboxId**: `string`--Unique identifier of the sandbox.--###### Defined in--sandbox/index.ts:83+| Property | Modifier | Type | Description | Defined in |+| ------ | ------ | ------ | ------ | ------ |+| `commands` | `readonly` | `Commands` | Module for running commands in the sandbox | sandbox/index.ts:74 |+| `files` | `readonly` | `Filesystem` | Module for interacting with the sandbox filesystem | sandbox/index.ts:70 |+| `pty` | `readonly` | `Pty` | Module for interacting with the sandbox pseudo-terminals | sandbox/index.ts:78 |+| `sandboxId` | `readonly` | `string` | Unique identifier of the sandbox. | sandbox/index.ts:83 |#### Methods##### downloadUrl()-> **downloadUrl**(`path`): `string`+```ts+downloadUrl(path: string): string+```Get the URL to download a file from the sandbox.###### Parameters-• **path**: `string`--path to the file to download.+| Parameter | Type | Description |+| ------ | ------ | ------ |+| `path` | `string` | path to the file to download. |###### Returns@@ -93,16 +60,18 @@ sandbox/index.ts:339##### getHost()-> **getHost**(`port`): `string`+```ts+getHost(port: number): string+```Get the host address for the specified sandbox port.You can then use this address to connect to the sandbox port from outside the sandbox via HTTP or WebSocket.###### Parameters-• **port**: `number`--number of the port in the sandbox.+| Parameter | Type | Description |+| ------ | ------ | ------ |+| `port` | `number` | number of the port in the sandbox. |###### Returns@@ -126,13 +95,17 @@ sandbox/index.ts:237##### isRunning()-> **isRunning**(`opts`?): `Promise`\<`boolean`\>+```ts+isRunning(opts?: Pick<ConnectionOpts, "requestTimeoutMs">): Promise<boolean>+```Check if the sandbox is running.###### Parameters-• **opts?**: `Pick`\<`ConnectionOpts`, `"requestTimeoutMs"`\>+| Parameter | Type |+| ------ | ------ |+| `opts`? | `Pick`\<`ConnectionOpts`, `"requestTimeoutMs"`\> |###### Returns@@ -156,15 +129,17 @@ sandbox/index.ts:259##### kill()-> **kill**(`opts`?): `Promise`\<`void`\>+```ts+kill(opts?: Pick<SandboxOpts, "requestTimeoutMs">): Promise<void>+```Kill the sandbox.###### Parameters-• **opts?**: `Pick`\<`SandboxOpts`, `"requestTimeoutMs"`\>--connection options.+| Parameter | Type | Description |+| ------ | ------ | ------ |+| `opts`? | `Pick`\<`SandboxOpts`, `"requestTimeoutMs"`\> | connection options. |###### Returns@@ -176,7 +151,9 @@ sandbox/index.ts:310##### setTimeout()-> **setTimeout**(`timeoutMs`, `opts`?): `Promise`\<`void`\>+```ts+setTimeout(timeoutMs: number, opts?: Pick<SandboxOpts, "requestTimeoutMs">): Promise<void>+```Set the timeout of the sandbox.After the timeout expires the sandbox will be automatically killed.@@ -186,13 +163,10 @@ Maximum time a sandbox can be kept alive is 24 hours (86_400_000 milliseconds) f###### Parameters-• **timeoutMs**: `number`--timeout in **milliseconds**.--• **opts?**: `Pick`\<`SandboxOpts`, `"requestTimeoutMs"`\>--connection options.+| Parameter | Type | Description |+| ------ | ------ | ------ |+| `timeoutMs` | `number` | timeout in **milliseconds**. |+| `opts`? | `Pick`\<`SandboxOpts`, `"requestTimeoutMs"`\> | connection options. |###### Returns@@ -204,7 +178,9 @@ sandbox/index.ts:290##### uploadUrl()-> **uploadUrl**(`path`?): `string`+```ts+uploadUrl(path?: string): string+```Get the URL to upload a file to the sandbox.@@ -212,9 +188,9 @@ You have to send a POST request to this URL with the file as multipart/form-data###### Parameters-• **path?**: `string`--the directory where to upload the file, defaults to user's home directory.+| Parameter | Type | Description |+| ------ | ------ | ------ |+| `path`? | `string` | the directory where to upload the file, defaults to user's home directory. |###### Returns@@ -228,26 +204,29 @@ sandbox/index.ts:328##### connect()-> `static` **connect**\<`S`\>(`this`, `sandboxId`, `opts`?): `Promise`\<`InstanceType`\<`S`\>\>+```ts+static connect<S>(+ this: S,+ sandboxId: string,+opts?: Omit<SandboxOpts, "timeoutMs" | "metadata" | "envs">): Promise<InstanceType<S>>+```Connect to an existing sandbox.With sandbox ID you can connect to the same sandbox from different places or environments (serverless functions, etc).###### Type Parameters-• **S** *extends* *typeof* `Sandbox`+| Type Parameter |+| ------ |+| `S` *extends* *typeof* `Sandbox` |###### Parameters-• **this**: `S`--• **sandboxId**: `string`--sandbox ID.--• **opts?**: `Omit`\<`SandboxOpts`, `"timeoutMs"` \| `"metadata"` \| `"envs"`\>--connection options.+| Parameter | Type | Description |+| ------ | ------ | ------ |+| `this` | `S` | - |+| `sandboxId` | `string` | sandbox ID. |+| `opts`? | `Omit`\<`SandboxOpts`, `"timeoutMs"` \| `"metadata"` \| `"envs"`\> | connection options. |###### Returns@@ -273,21 +252,24 @@ sandbox/index.ts:209###### create(this, opts)-> `static` **create**\<`S`\>(`this`, `opts`?): `Promise`\<`InstanceType`\<`S`\>\>+```ts+static create<S>(this: S, opts?: SandboxOpts): Promise<InstanceType<S>>+```Create a new sandbox from the default `base` sandbox template.###### Type Parameters-• **S** *extends* *typeof* `Sandbox`+| Type Parameter |+| ------ |+| `S` *extends* *typeof* `Sandbox` |###### Parameters-• **this**: `S`--• **opts?**: `SandboxOpts`--connection options.+| Parameter | Type | Description |+| ------ | ------ | ------ |+| `this` | `S` | - |+| `opts`? | `SandboxOpts` | connection options. |###### Returns@@ -311,25 +293,28 @@ sandbox/index.ts:143###### create(this, template, opts)-> `static` **create**\<`S`\>(`this`, `template`, `opts`?): `Promise`\<`InstanceType`\<`S`\>\>+```ts+static create<S>(+ this: S,+ template: string,+opts?: SandboxOpts): Promise<InstanceType<S>>+```Create a new sandbox from the specified sandbox template.###### Type Parameters-• **S** *extends* *typeof* `Sandbox`+| Type Parameter |+| ------ |+| `S` *extends* *typeof* `Sandbox` |###### Parameters-• **this**: `S`--• **template**: `string`--sandbox template name or ID.--• **opts?**: `SandboxOpts`--connection options.+| Parameter | Type | Description |+| ------ | ------ | ------ |+| `this` | `S` | - |+| `template` | `string` | sandbox template name or ID. |+| `opts`? | `SandboxOpts` | connection options. |###### Returns@@ -353,19 +338,18 @@ sandbox/index.ts:162##### kill()-> `static` **kill**(`sandboxId`, `opts`?): `Promise`\<`boolean`\>+```ts+static kill(sandboxId: string, opts?: SandboxApiOpts): Promise<boolean>+```Kill the sandbox specified by sandbox ID.###### Parameters-• **sandboxId**: `string`--sandbox ID.--• **opts?**: `SandboxApiOpts`--connection options.+| Parameter | Type | Description |+| ------ | ------ | ------ |+| `sandboxId` | `string` | sandbox ID. |+| `opts`? | `SandboxApiOpts` | connection options. |###### Returns@@ -379,15 +363,17 @@ sandbox/sandboxApi.ts:55##### list()-> `static` **list**(`opts`?): `Promise`\<`SandboxInfo`[]\>+```ts+static list(opts?: SandboxApiOpts): Promise<SandboxInfo[]>+```List all running sandboxes.###### Parameters-• **opts?**: `SandboxApiOpts`--connection options.+| Parameter | Type | Description |+| ------ | ------ | ------ |+| `opts`? | `SandboxApiOpts` | connection options. |###### Returns@@ -401,7 +387,12 @@ sandbox/sandboxApi.ts:90##### setTimeout()-> `static` **setTimeout**(`sandboxId`, `timeoutMs`, `opts`?): `Promise`\<`void`\>+```ts+static setTimeout(+ sandboxId: string,+ timeoutMs: number,+opts?: SandboxApiOpts): Promise<void>+```Set the timeout of the specified sandbox.After the timeout expires the sandbox will be automatically killed.@@ -412,17 +403,11 @@ Maximum time a sandbox can be kept alive is 24 hours (86_400_000 milliseconds) f###### Parameters-• **sandboxId**: `string`--sandbox ID.--• **timeoutMs**: `number`--timeout in **milliseconds**.--• **opts?**: `SandboxApiOpts`--connection options.+| Parameter | Type | Description |+| ------ | ------ | ------ |+| `sandboxId` | `string` | sandbox ID. |+| `timeoutMs` | `number` | timeout in **milliseconds**. |+| `opts`? | `SandboxApiOpts` | connection options. |###### Returns@@ -442,7 +427,9 @@ Options for creating a new Sandbox.##### accessToken?-> `optional` **accessToken**: `string`+```ts+optional accessToken: string;+```E2B access token to use for authentication.@@ -458,7 +445,9 @@ connectionConfig.ts:24##### apiKey?-> `optional` **apiKey**: `string`+```ts+optional apiKey: string;+```E2B API key to use for authentication.@@ -474,7 +463,9 @@ connectionConfig.ts:18##### debug?-> `optional` **debug**: `boolean`+```ts+optional debug: boolean;+```**`Internal`**@@ -490,7 +481,9 @@ connectionConfig.ts:36##### domain?-> `optional` **domain**: `string`+```ts+optional domain: string;+```Domain to use for the API.@@ -504,7 +497,9 @@ connectionConfig.ts:30##### envs?-> `optional` **envs**: `Record`\<`string`, `string`\>+```ts+optional envs: Record<string, string>;+```Custom environment variables for the sandbox.@@ -523,7 +518,9 @@ sandbox/index.ts:32##### logger?-> `optional` **logger**: `Logger`+```ts+optional logger: Logger;+```Logger to use for logging messages. It can accept any object that implements `Logger` interface—for example, console.@@ -533,7 +530,9 @@ connectionConfig.ts:46##### metadata?-> `optional` **metadata**: `Record`\<`string`, `string`\>+```ts+optional metadata: Record<string, string>;+```Custom metadata for the sandbox.@@ -549,7 +548,9 @@ sandbox/index.ts:23##### requestTimeoutMs?-> `optional` **requestTimeoutMs**: `number`+```ts+optional requestTimeoutMs: number;+```Timeout for requests to the API in **milliseconds**.@@ -565,7 +566,9 @@ connectionConfig.ts:42##### timeoutMs?-> `optional` **timeoutMs**: `number`+```ts+optional timeoutMs: number;+```Timeout for the sandbox in **milliseconds**.Maximum time a sandbox can be kept alive is 24 hours (86_400_000 milliseconds) for Pro users and 1 hour (3_600_000 milliseconds) for Hobby users.diff --git a/apps/web/src/app/(docs)/docs/api-reference/python-sdk/page.mdx b/apps/web/src/app/(docs)/docs/api-reference/python-sdk/page.mdxindex 44a3a6d35..16c2f43fb 100644--- a/apps/web/src/app/(docs)/docs/api-reference/python-sdk/page.mdx+++ b/apps/web/src/app/(docs)/docs/api-reference/python-sdk/page.mdx@@ -1,13 +1,17 @@-<a href="/docs/api-reference/python-sdk/v1.0.0" class="version-link">[v1.0.0]</a>- <a href="/docs/api-reference/python-sdk/v1.0.1" class="version-link">[v1.0.1]</a>- <a href="/docs/api-reference/python-sdk/v1.0.2" class="version-link">[v1.0.2]</a>- <a href="/docs/api-reference/python-sdk/v1.0.3" class="version-link">[v1.0.3]</a>+<div className="versions-dropdown">+ v1.0.3 ▼+ <div className="dropdown-content">+ <a href="/docs/api-reference/python-sdk/v1.0.2" className="version-link">v1.0.2</a>+ <a href="/docs/api-reference/python-sdk/v1.0.1" className="version-link">v1.0.1</a>+ <a href="/docs/api-reference/python-sdk/v1.0.0" className="version-link">v1.0.0</a>+ </div>+ </div># python-sdk## v1.0.0-- [Exceptions](./python-sdk/v1.0.0/exceptions)-- [Sandbox_async](./python-sdk/v1.0.0/sandbox_async)-- [Sandbox_sync](./python-sdk/v1.0.0/sandbox_sync)\ No newline at end of file+- [Exceptions reference](./python-sdk/v1.0.3/exceptions Reference)+- [Sandbox_async reference](./python-sdk/v1.0.3/sandbox_async Reference)+- [Sandbox_sync reference](./python-sdk/v1.0.3/sandbox_sync Reference)\ No newline at end of filediff --git a/apps/web/src/styles/tailwind.css b/apps/web/src/styles/tailwind.cssindex b40f7e162..bad7e7608 100644--- a/apps/web/src/styles/tailwind.css+++ b/apps/web/src/styles/tailwind.css@@ -1,216 +1,220 @@@layer base {- :root {- --shiki-color-text: theme('colors.white');- --shiki-token-constant: theme('colors.brand.300');- --shiki-token-string: theme('colors.brand.300');- --shiki-token-comment: theme('colors.zinc.500');- --shiki-token-keyword: theme('colors.sky.300');- --shiki-token-parameter: theme('colors.pink.300');- --shiki-token-function: theme('colors.violet.300');- --shiki-token-string-expression: theme('colors.brand.300');- --shiki-token-punctuation: theme('colors.zinc.200');- }-- code[class*='language-'] .Code-line_highlighted {- position: relative;- /* holds highlight element */- z-index: 1;- /* force above the highlight defined below */- }-- code[class*='language-'] .Code-line_highlighted:before {- content: '';- position: absolute;- left: -16px;- /* align nicely with code border */- top: -5px;- bottom: -5px;- /* breathing space */- border-left: 3px solid theme('colors.brand.500');- width: 300px;- /* arbitrary value, looks nice */- /* TODO: Theme colors */- background: linear-gradient(to right, hsl(240, 3%, 21%), #1d1d20);- pointer-events: none;- z-index: -1;- /* force below code */- }-- [inert] ::-webkit-scrollbar {- display: none;- }-- #sidebar::-webkit-scrollbar-track {- border-radius: 10px;- }-- #sidebar::-webkit-scrollbar-thumb {- border-radius: 10px;- }-- .dropdown-content {- display: none;- flex-direction: column;- position: absolute;- background-color: rgb(30, 41, 59);- z-index: 1;- }-- .versions-dropdown {- color: rgb(229, 123, 0);- font-size: 1.3em;- font-weight: 600;- cursor: pointer;- margin-bottom: 1em !important;- p {- margin-bottom: 0px !important;- }- }-- .versions-dropdown:hover .dropdown-content {- display: flex;- }-- .version-link {- text-decoration: none !important;- }-- .version-link:hover {- color: white !important;- }-- .supabase-auth-ui_ui-button {- @apply rounded-lg;- }-- div button.supabase-auth-ui_ui-button.auth-button {- @apply rounded-full bg-zinc-800 border-zinc-700 hover:border-zinc-500 transition hover:bg-zinc-800 text-sm text-zinc-100;- }-- .supabase-auth-ui_ui-message.auth-message {- @apply text-sm rounded-2xl;- }-- .supabase-auth-ui_ui-divider.auth-divider {- @apply border-zinc-900/5;- }-- #auth-sign-up button,- #auth-forgot-password button,- #auth-update-password button,- #auth-sign-in button {- border: none;- @apply text-base font-medium transition;- @apply bg-zinc-900 py-1 px-3 rounded-full text-white hover:bg-zinc-700 dark:bg-brand-400/10 dark:text-brand-400 dark:ring-1 dark:ring-inset dark:ring-brand-400/20 dark:hover:bg-brand-400/10 dark:hover:text-brand-300 dark:hover:ring-brand-300;- }-- #auth-forgot-password label,- #auth-update-password label,- #auth-sign-up label,- #auth-sign-in label {- @apply text-sm font-medium text-zinc-500 transition;- }-- #auth-update-password input,- #auth-forgot-password input,- #auth-sign-up input,- #auth-sign-in input {- @apply rounded-full bg-zinc-900 text-zinc-200 border-zinc-700 hover:border-zinc-500 transition text-sm;- }+ :root {+ --shiki-color-text: theme('colors.white');+ --shiki-token-constant: theme('colors.brand.300');+ --shiki-token-string: theme('colors.brand.300');+ --shiki-token-comment: theme('colors.zinc.500');+ --shiki-token-keyword: theme('colors.sky.300');+ --shiki-token-parameter: theme('colors.pink.300');+ --shiki-token-function: theme('colors.violet.300');+ --shiki-token-string-expression: theme('colors.brand.300');+ --shiki-token-punctuation: theme('colors.zinc.200');+ }++ code[class*='language-'] .Code-line_highlighted {+ position: relative;+ /* holds highlight element */+ z-index: 1;+ /* force above the highlight defined below */+ }++ code[class*='language-'] .Code-line_highlighted:before {+ content: '';+ position: absolute;+ left: -16px;+ /* align nicely with code border */+ top: -5px;+ bottom: -5px;+ /* breathing space */+ border-left: 3px solid theme('colors.brand.500');+ width: 300px;+ /* arbitrary value, looks nice */+ /* TODO: Theme colors */+ background: linear-gradient(to right, hsl(240, 3%, 21%), #1d1d20);+ pointer-events: none;+ z-index: -1;+ /* force below code */+ }++ [inert] ::-webkit-scrollbar {+ display: none;+ }++ #sidebar::-webkit-scrollbar-track {+ border-radius: 10px;+ }++ #sidebar::-webkit-scrollbar-thumb {+ border-radius: 10px;+ }++ .api-ref h1 {+ color: red !important;+ }++ .dropdown-content {+ display: none;+ flex-direction: column;+ position: absolute;+ background-color: rgb(30, 41, 59);+ z-index: 1;+ }++ .versions-dropdown {+ color: rgb(229, 123, 0);+ font-size: 1.3em;+ font-weight: 600;+ cursor: pointer;+ margin-bottom: 1em !important;+ p {+ margin-bottom: 0px !important;+ }+ }++ .versions-dropdown:hover .dropdown-content {+ display: flex;+ }++ .version-link {+ text-decoration: none !important;+ }++ .version-link:hover {+ color: white !important;+ }++ .supabase-auth-ui_ui-button {+ @apply rounded-lg;+ }++ div button.supabase-auth-ui_ui-button.auth-button {+ @apply rounded-full bg-zinc-800 border-zinc-700 hover:border-zinc-500 transition hover:bg-zinc-800 text-sm text-zinc-100;+ }++ .supabase-auth-ui_ui-message.auth-message {+ @apply text-sm rounded-2xl;+ }++ .supabase-auth-ui_ui-divider.auth-divider {+ @apply border-zinc-900/5;+ }++ #auth-sign-up button,+ #auth-forgot-password button,+ #auth-update-password button,+ #auth-sign-in button {+ border: none;+ @apply text-base font-medium transition;+ @apply bg-zinc-900 py-1 px-3 rounded-full text-white hover:bg-zinc-700 dark:bg-brand-400/10 dark:text-brand-400 dark:ring-1 dark:ring-inset dark:ring-brand-400/20 dark:hover:bg-brand-400/10 dark:hover:text-brand-300 dark:hover:ring-brand-300;+ }++ #auth-forgot-password label,+ #auth-update-password label,+ #auth-sign-up label,+ #auth-sign-in label {+ @apply text-sm font-medium text-zinc-500 transition;+ }++ #auth-update-password input,+ #auth-forgot-password input,+ #auth-sign-up input,+ #auth-sign-in input {+ @apply rounded-full bg-zinc-900 text-zinc-200 border-zinc-700 hover:border-zinc-500 transition text-sm;+ }}/* Shadcn */@layer base {- :root {- --background: 0 0% 100%;- --foreground: 222.2 84% 4.9%;+ :root {+ --background: 0 0% 100%;+ --foreground: 222.2 84% 4.9%;- --card: 0 0% 100%;- --card-foreground: 222.2 84% 4.9%;+ --card: 0 0% 100%;+ --card-foreground: 222.2 84% 4.9%;- --popover: 0 0% 100%;- --popover-foreground: 222.2 84% 4.9%;+ --popover: 0 0% 100%;+ --popover-foreground: 222.2 84% 4.9%;- --primary: 222.2 47.4% 11.2%;- --primary-foreground: 210 40% 98%;+ --primary: 222.2 47.4% 11.2%;+ --primary-foreground: 210 40% 98%;- --secondary: 210 40% 96.1%;- --secondary-foreground: 222.2 47.4% 11.2%;+ --secondary: 210 40% 96.1%;+ --secondary-foreground: 222.2 47.4% 11.2%;- --muted: 210 40% 96.1%;- --muted-foreground: 215.4 16.3% 46.9%;+ --muted: 210 40% 96.1%;+ --muted-foreground: 215.4 16.3% 46.9%;- --accent: 210 40% 96.1%;- --accent-foreground: 222.2 47.4% 11.2%;+ --accent: 210 40% 96.1%;+ --accent-foreground: 222.2 47.4% 11.2%;- --destructive: 0 84.2% 60.2%;- --destructive-foreground: 210 40% 98%;+ --destructive: 0 84.2% 60.2%;+ --destructive-foreground: 210 40% 98%;- --border: 214.3 31.8% 91.4%;- --input: 214.3 31.8% 91.4%;- --ring: 222.2 84% 4.9%;+ --border: 214.3 31.8% 91.4%;+ --input: 214.3 31.8% 91.4%;+ --ring: 222.2 84% 4.9%;- --radius: 0.5rem;+ --radius: 0.5rem;- --sidebar-nav-width: 275px;- }+ --sidebar-nav-width: 275px;+ }- .dark {- --background: 222.2 84% 4.9%;- --foreground: 210 40% 98%;+ .dark {+ --background: 222.2 84% 4.9%;+ --foreground: 210 40% 98%;- --card: 222.2 84% 4.9%;- --card-foreground: 210 40% 98%;+ --card: 222.2 84% 4.9%;+ --card-foreground: 210 40% 98%;- --popover: 222.2 84% 4.9%;- --popover-foreground: 210 40% 98%;+ --popover: 222.2 84% 4.9%;+ --popover-foreground: 210 40% 98%;- --primary: 210 40% 98%;- --primary-foreground: 222.2 47.4% 11.2%;+ --primary: 210 40% 98%;+ --primary-foreground: 222.2 47.4% 11.2%;- --secondary: 217.2 32.6% 17.5%;- --secondary-foreground: 210 40% 98%;+ --secondary: 217.2 32.6% 17.5%;+ --secondary-foreground: 210 40% 98%;- --muted: 217.2 32.6% 17.5%;- --muted-foreground: 215 20.2% 65.1%;+ --muted: 217.2 32.6% 17.5%;+ --muted-foreground: 215 20.2% 65.1%;- --accent: 217.2 32.6% 17.5%;- --accent-foreground: 210 40% 98%;+ --accent: 217.2 32.6% 17.5%;+ --accent-foreground: 210 40% 98%;- --destructive: 0 62.8% 30.6%;- --destructive-foreground: 210 40% 98%;+ --destructive: 0 62.8% 30.6%;+ --destructive-foreground: 210 40% 98%;- --border: 217.2 32.6% 17.5%;- --input: 217.2 32.6% 17.5%;- --ring: 212.7 26.8% 83.9%;- }+ --border: 217.2 32.6% 17.5%;+ --input: 217.2 32.6% 17.5%;+ --ring: 212.7 26.8% 83.9%;+ }}/* Shadcn */@layer base {- * {- @apply border-border;- }+ * {+ @apply border-border;+ }- body {- @apply bg-background text-foreground;- }+ body {+ @apply bg-background text-foreground;+ }}@layer utilities {- .animation-delay-200 {- animation-delay: 0.2s;- }+ .animation-delay-200 {+ animation-delay: 0.2s;+ }- .animation-delay-400 {- animation-delay: 0.4s;- }+ .animation-delay-400 {+ animation-delay: 0.4s;+ }}.circle {- @apply relative top-[-1px] mx-[2px] h-[5px] w-[5px] rounded-full bg-gray-500;+ @apply relative top-[-1px] mx-[2px] h-[5px] w-[5px] rounded-full bg-gray-500;}@tailwind base;@tailwind components;-@tailwind utilities;\ No newline at end of file+@tailwind utilities;