Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
[skip ci] Release new versions
github-actions[bot]fb6dd8303f50
diff --git a/.changeset/dirty-owls-itch.md b/.changeset/dirty-owls-itch.mddeleted file mode 100644index 7ffb916ad..000000000--- a/.changeset/dirty-owls-itch.md+++ /dev/null@@ -1,6 +0,0 @@-----'e2b': patch-'@e2b/cli': patch------Update nodediff --git a/apps/web/package.json b/apps/web/package.jsonindex 6201369ac..fc6a2956c 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -42,7 +42,7 @@"autoprefixer": "^10.4.7","class-variance-authority": "^0.7.0","clsx": "^1.2.1",- "e2b": "^2.2.1",+ "e2b": "^2.2.2","fast-glob": "^3.3.0","fast-xml-parser": "4.4.1","flexsearch": "^0.7.31",diff --git a/apps/web/src/app/(docs)/docs/sdk-reference/cli/v2.2.7/auth/page.mdx b/apps/web/src/app/(docs)/docs/sdk-reference/cli/v2.2.7/auth/page.mdxnew file mode 100644index 000000000..2c82afa69--- /dev/null+++ b/apps/web/src/app/(docs)/docs/sdk-reference/cli/v2.2.7/auth/page.mdx@@ -0,0 +1,58 @@+## e2b auth+++authentication commands++### Usage++```bash+e2b auth [options] [command]+```+## e2b auth login+++log in to CLI++### Usage++```bash+e2b auth login [options]+```+++## e2b auth logout+++log out of CLI++### Usage++```bash+e2b auth logout [options]+```+++## e2b auth info+++get information about the current user++### Usage++```bash+e2b auth info [options]+```+++## e2b auth configure+++configure user++### Usage++```bash+e2b auth configure [options]+```++diff --git a/apps/web/src/app/(docs)/docs/sdk-reference/cli/v2.2.7/sandbox/page.mdx b/apps/web/src/app/(docs)/docs/sdk-reference/cli/v2.2.7/sandbox/page.mdxnew file mode 100644index 000000000..7ab7f7a1e--- /dev/null+++ b/apps/web/src/app/(docs)/docs/sdk-reference/cli/v2.2.7/sandbox/page.mdx@@ -0,0 +1,135 @@+## e2b sandbox+++work with sandboxes++### Usage++```bash+e2b sandbox [options] [command]+```+## e2b sandbox connect+++connect terminal to already running sandbox++### Usage++```bash+e2b sandbox connect [options] <sandboxID>+```+++## e2b sandbox list+++list all sandboxes, by default it list only running ones++### Usage++```bash+e2b sandbox list [options]+```++### Options+++ - `-s, --state <state>: filter by state, eg. running, paused. Defaults to running `+ - `-m, --metadata <metadata>: filter by metadata, eg. key1=value1 `+ - `-l, --limit <limit>: limit the number of sandboxes returned `+ - `-f, --format <format>: output format, eg. json, pretty `+++## e2b sandbox kill+++kill sandbox++### Usage++```bash+e2b sandbox kill [options] [sandboxIDs...]+```++### Options+++ - `-a, --all: kill all sandboxes `+ - `-s, --state <state>: when used with -a/--all flag, filter by state, eg. running, paused. Defaults to running `+ - `-m, --metadata <metadata>: when used with -a/--all flag, filter by metadata, eg. key1=value1 `+++## e2b sandbox create+++create sandbox and connect terminal to it++### Usage++```bash+e2b sandbox create [options] [template]+```++### 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. `+++## e2b sandbox spawn+++create sandbox and connect terminal to it++### Usage++```bash+e2b sandbox spawn [options] [template]+```++### 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. `+++## e2b sandbox logs+++show logs for sandbox++### Usage++```bash+e2b sandbox logs [options] <sandboxID>+```++### Options+++ - `--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]`+ - `--loggers [loggers]: filter logs by loggers. Specify multiple loggers by separating them with a comma. `+++## e2b sandbox metrics+++show metrics for sandbox++### Usage++```bash+e2b sandbox metrics [options] <sandboxID>+```++### Options+++ - `-f, --follow: keep streaming metrics until the sandbox is closed `+ - `--format <format>: specify format for printing metrics (json, pretty) [default: pretty]`++diff --git a/apps/web/src/app/(docs)/docs/sdk-reference/cli/v2.2.7/template/page.mdx b/apps/web/src/app/(docs)/docs/sdk-reference/cli/v2.2.7/template/page.mdxnew file mode 100644index 000000000..555bc5d70--- /dev/null+++ b/apps/web/src/app/(docs)/docs/sdk-reference/cli/v2.2.7/template/page.mdx@@ -0,0 +1,174 @@+## e2b template+++manage sandbox templates++### Usage++```bash+e2b template [options] [command]+```+## 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.++### Usage++```bash+e2b template build [options] [template]+```++### 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. `+ - `-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. `+ - `--ready-cmd <ready-command>: specify command that will need to exit 0 for the template to be ready. `+ - `-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. `+ - `--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>. `+ - `--no-cache: skip cache when building the template. `+++## e2b template list+++list sandbox templates++### Usage++```bash+e2b template list [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). `+ - `-f, --format <format>: output format, eg. json, pretty `+++## 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++### Usage++```bash+e2b template init [options]+```++### Options+++ - `-p, --path <path>: change root directory where command is executed to <path> directory `+++## e2b template init-v2+++initialize a new sandbox template using the SDK++### Usage++```bash+e2b template init-v2 [options]+```++### Options+++ - `-p, --path <path>: change root directory where command is executed to <path> directory `+ - `-n, --name <name>: template name (alias) `+ - `-l, --language <language>: target language: typescript, python-sync, python-async `+++## e2b template delete+++delete sandbox template and e2b.toml config++### Usage++```bash+e2b template delete [options] [template]+```++### 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. `+ - `-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 `+++## e2b template publish+++publish sandbox template++### Usage++```bash+e2b template publish [options] [template]+```++### 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. `+ - `-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 publish confirmation `+++## e2b template unpublish+++unpublish sandbox template++### Usage++```bash+e2b template unpublish [options] [template]+```++### 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. `+ - `-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 unpublish confirmation `+++## e2b template migrate+++migrate e2b.Dockerfile and e2b.toml to new Template SDK format++### Usage++```bash+e2b template migrate [options]+```++### Options+++ - `-d, --dockerfile <file>: specify path to Dockerfile. Defaults to e2b.Dockerfile `+ - `--config <e2b-toml>: specify path to the E2B config toml. By default E2B tries to find ./e2b.toml in root directory. `+ - `-l, --language <language>: specify target language: typescript, python-sync, python-async `+ - `-p, --path <path>: change root directory where command is executed to <path> directory `++diff --git a/apps/web/src/app/(docs)/docs/sdk-reference/code-interpreter-js-sdk/v2.0.1/charts/page.mdx b/apps/web/src/app/(docs)/docs/sdk-reference/code-interpreter-js-sdk/v2.0.1/charts/page.mdxnew file mode 100644index 000000000..f3176d3b4--- /dev/null+++ b/apps/web/src/app/(docs)/docs/sdk-reference/code-interpreter-js-sdk/v2.0.1/charts/page.mdx@@ -0,0 +1,240 @@+### ChartType++Chart types++#### Enumeration Members++| Enumeration Member | Value |+| ------ | ------ |+| `BAR` | `"bar"` |+| `BOX_AND_WHISKER` | `"box_and_whisker"` |+| `LINE` | `"line"` |+| `PIE` | `"pie"` |+| `SCATTER` | `"scatter"` |+| `SUPERCHART` | `"superchart"` |+| `UNKNOWN` | `"unknown"` |++***++### ScaleType++Ax scale types++#### Enumeration Members++| Enumeration Member | Value |+| ------ | ------ |+| `ASINH` | `"asinh"` |+| `CATEGORICAL` | `"categorical"` |+| `DATETIME` | `"datetime"` |+| `FUNCTION` | `"function"` |+| `FUNCTIONLOG` | `"functionlog"` |+| `LINEAR` | `"linear"` |+| `LOG` | `"log"` |+| `LOGIT` | `"logit"` |+| `SYMLOG` | `"symlog"` |++## Type Aliases++### BarChart++```ts+type BarChart: Chart2D & object;+```++#### Type declaration++| Name | Type |+| ------ | ------ |+| `elements` | `BarData`[] |+| `type` | `ChartType.BAR` |++***++### BarData++```ts+type BarData: object;+```++#### Type declaration++| Name | Type |+| ------ | ------ |+| `group` | `string` |+| `label` | `string` |+| `value` | `string` |++***++### BoxAndWhiskerChart++```ts+type BoxAndWhiskerChart: Chart2D & object;+```++#### Type declaration++| Name | Type |+| ------ | ------ |+| `elements` | `BoxAndWhiskerData`[] |+| `type` | `ChartType.BOX_AND_WHISKER` |++***++### BoxAndWhiskerData++```ts+type BoxAndWhiskerData: object;+```++#### Type declaration++| Name | Type |+| ------ | ------ |+| `first_quartile` | `number` |+| `label` | `string` |+| `max` | `number` |+| `median` | `number` |+| `min` | `number` |+| `outliers` | `number`[] |+| `third_quartile` | `number` |++***++### Chart++```ts+type Chart: object;+```++Represents a chart.++#### Type declaration++| Name | Type |+| ------ | ------ |+| `elements` | `any`[] |+| `title` | `string` |+| `type` | `ChartType` |++***++### ChartTypes++```ts+type ChartTypes:+ | LineChart+ | ScatterChart+ | BarChart+ | PieChart+ | BoxAndWhiskerChart+ | SuperChart;+```++***++### LineChart++```ts+type LineChart: PointChart & object;+```++#### Type declaration++| Name | Type |+| ------ | ------ |+| `type` | `ChartType.LINE` |++***++### PieChart++```ts+type PieChart: Chart & object;+```++#### Type declaration++| Name | Type |+| ------ | ------ |+| `elements` | `PieData`[] |+| `type` | `ChartType.PIE` |++***++### PieData++```ts+type PieData: object;+```++#### Type declaration++| Name | Type |+| ------ | ------ |+| `angle` | `number` |+| `label` | `string` |+| `radius` | `number` |++***++### PointData++```ts+type PointData: object;+```++#### Type declaration++| Name | Type |+| ------ | ------ |+| `label` | `string` |+| `points` | [`number` \| `string`, `number` \| `string`][] |++***++### ScatterChart++```ts+type ScatterChart: PointChart & object;+```++#### Type declaration++| Name | Type |+| ------ | ------ |+| `type` | `ChartType.SCATTER` |++***++### SuperChart++```ts+type SuperChart: Chart & object;+```++#### Type declaration++| Name | Type |+| ------ | ------ |+| `elements` | `Chart`[] |+| `type` | `ChartType.SUPERCHART` |++## Functions++### deserializeChart()++```ts+function deserializeChart(data: any): Chart+```++#### Parameters++| Parameter | Type |+| ------ | ------ |+| `data` | `any` |++#### Returns++`Chart`diff --git a/apps/web/src/app/(docs)/docs/sdk-reference/code-interpreter-js-sdk/v2.0.1/consts/page.mdx b/apps/web/src/app/(docs)/docs/sdk-reference/code-interpreter-js-sdk/v2.0.1/consts/page.mdxnew file mode 100644index 000000000..d1ee2e76a--- /dev/null+++ b/apps/web/src/app/(docs)/docs/sdk-reference/code-interpreter-js-sdk/v2.0.1/consts/page.mdx@@ -0,0 +1,13 @@+### DEFAULT\_TIMEOUT\_MS++```ts+const DEFAULT_TIMEOUT_MS: 60000 = 60_000;+```++***++### JUPYTER\_PORT++```ts+const JUPYTER_PORT: 49999 = 49999;+```diff --git a/apps/web/src/app/(docs)/docs/sdk-reference/code-interpreter-js-sdk/v2.0.1/index/page.mdx b/apps/web/src/app/(docs)/docs/sdk-reference/code-interpreter-js-sdk/v2.0.1/index/page.mdxnew file mode 100644index 000000000..dc55fcc7d--- /dev/null+++ b/apps/web/src/app/(docs)/docs/sdk-reference/code-interpreter-js-sdk/v2.0.1/index/page.mdx@@ -0,0 +1,103 @@+### BarChart++Re-exports BarChart++### BarData++Re-exports BarData++### BoxAndWhiskerChart++Re-exports BoxAndWhiskerChart++### BoxAndWhiskerData++Re-exports BoxAndWhiskerData++### Chart++Re-exports Chart++### ChartType++Re-exports ChartType++### ChartTypes++Re-exports ChartTypes++### Context++Re-exports Context++### CreateCodeContextOpts++Re-exports CreateCodeContextOpts++### default++Renames and re-exports Sandbox++### Execution++Re-exports Execution++### ExecutionError++Re-exports ExecutionError++### LineChart++Re-exports LineChart++### Logs++Re-exports Logs++### MIMEType++Re-exports MIMEType++### OutputMessage++Re-exports OutputMessage++### PieChart++Re-exports PieChart++### PieData++Re-exports PieData++### PointData++Re-exports PointData++### RawData++Re-exports RawData++### Result++Re-exports Result++### RunCodeOpts++Re-exports RunCodeOpts++### Sandbox++Re-exports Sandbox++### ScaleType++Re-exports ScaleType++### ScatterChart++Re-exports ScatterChart++### SuperChart++Re-exports SuperChartdiff --git a/apps/web/src/app/(docs)/docs/sdk-reference/code-interpreter-js-sdk/v2.0.1/messaging/page.mdx b/apps/web/src/app/(docs)/docs/sdk-reference/code-interpreter-js-sdk/v2.0.1/messaging/page.mdxnew file mode 100644index 000000000..4b3c4ed9f--- /dev/null+++ b/apps/web/src/app/(docs)/docs/sdk-reference/code-interpreter-js-sdk/v2.0.1/messaging/page.mdx@@ -0,0 +1,326 @@+### Execution++Represents the result of a cell execution.++#### Constructors++```ts+new Execution(+ results: Result[],+ logs: Logs,+ error?: ExecutionError,+ executionCount?: number): Execution+```++###### Parameters++| Parameter | Type | Default value | Description |+| ------ | ------ | ------ | ------ |+| `results` | `Result`[] | `[]` | List of result of the cell (interactively interpreted last line), display calls (e.g. matplotlib plots). |+| `logs` | `Logs` | `...` | Logs printed to stdout and stderr during execution. |+| `error`? | `ExecutionError` | `undefined` | An Error object if an error occurred, null otherwise. |+| `executionCount`? | `number` | `undefined` | Execution count of the cell. |++###### Returns++`Execution`++#### Properties++| Property | Modifier | Type | Default value | Description |+| ------ | ------ | ------ | ------ | ------ |+| `error?` | `public` | `ExecutionError` | `undefined` | An Error object if an error occurred, null otherwise. |+| `executionCount?` | `public` | `number` | `undefined` | Execution count of the cell. |+| `logs` | `public` | `Logs` | `undefined` | Logs printed to stdout and stderr during execution. |+| `results` | `public` | `Result`[] | `[]` | List of result of the cell (interactively interpreted last line), display calls (e.g. matplotlib plots). |++#### Accessors++### text++```ts+get text(): undefined | string+```++Returns the text representation of the main result of the cell.++###### Returns++`undefined` \| `string`++#### Methods++### toJSON()++```ts+toJSON(): object+```++Returns the serializable representation of the execution result.++###### Returns++`object`++| Name | Type |+| ------ | ------ |+| `error` | `undefined` \| `ExecutionError` |+| `logs` | `Logs` |+| `results` | `Result`[] |++***++### ExecutionError++Represents an error that occurred during the execution of a cell.+The error contains the name of the error, the value of the error, and the traceback.++#### Constructors++```ts+new ExecutionError(+ name: string,+ value: string,+ traceback: string): ExecutionError+```++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `name` | `string` | Name of the error. |+| `value` | `string` | Value of the error. |+| `traceback` | `string` | The raw traceback of the error. |++###### Returns++`ExecutionError`++#### Properties++| Property | Modifier | Type | Description |+| ------ | ------ | ------ | ------ |+| `name` | `public` | `string` | Name of the error. |+| `traceback` | `public` | `string` | The raw traceback of the error. |+| `value` | `public` | `string` | Value of the error. |++***++### OutputMessage++Represents an output message from the sandbox code execution.++#### Constructors++```ts+new OutputMessage(+ line: string,+ timestamp: number,+ error: boolean): OutputMessage+```++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `line` | `string` | The output line. |+| `timestamp` | `number` | Unix epoch in nanoseconds. |+| `error` | `boolean` | Whether the output is an error. |++###### Returns++`OutputMessage`++#### Properties++| Property | Modifier | Type | Description |+| ------ | ------ | ------ | ------ |+| `error` | `readonly` | `boolean` | Whether the output is an error. |+| `line` | `readonly` | `string` | The output line. |+| `timestamp` | `readonly` | `number` | Unix epoch in nanoseconds. |++#### Methods++### toString()++```ts+toString(): string+```++###### Returns++`string`++***++### Result++Represents the data to be displayed as a result of executing a cell in a Jupyter notebook.+The result is similar to the structure returned by ipython kernel: https://ipython.readthedocs.io/en/stable/development/execution.html#execution-semantics++The result can contain multiple types of data, such as text, images, plots, etc. Each type of data is represented+as a string, and the result can contain multiple types of data. The display calls don't have to have text representation,+for the actual result the representation is always present for the result, the other representations are always optional.++#### Constructors++```ts+new Result(rawData: RawData, isMainResult: boolean): Result+```++###### Parameters++| Parameter | Type |+| ------ | ------ |+| `rawData` | `RawData` |+| `isMainResult` | `boolean` |++###### Returns++`Result`++#### Properties++| Property | Modifier | Type | Description |+| ------ | ------ | ------ | ------ |+| `chart?` | `readonly` | `ChartTypes` | Contains the chart data. |+| `data?` | `readonly` | `Record`\<`string`, `unknown`\> | Contains the data from DataFrame. |+| `extra?` | `readonly` | `any` | Extra data that can be included. Not part of the standard types. |+| `html?` | `readonly` | `string` | HTML representation of the data. |+| `isMainResult` | `readonly` | `boolean` | - |+| `javascript?` | `readonly` | `string` | JavaScript representation of the data. |+| `jpeg?` | `readonly` | `string` | JPEG representation of the data. |+| `json?` | `readonly` | `string` | JSON representation of the data. |+| `latex?` | `readonly` | `string` | LaTeX representation of the data. |+| `markdown?` | `readonly` | `string` | Markdown representation of the data. |+| `pdf?` | `readonly` | `string` | PDF representation of the data. |+| `png?` | `readonly` | `string` | PNG representation of the data. |+| `raw` | `readonly` | `RawData` | - |+| `svg?` | `readonly` | `string` | SVG representation of the data. |+| `text?` | `readonly` | `string` | Text representation of the result. |++#### Methods++### formats()++```ts+formats(): string[]+```++Returns all the formats available for the result.++###### Returns++`string`[]++Array of strings representing the formats available for the result.++### toJSON()++```ts+toJSON(): object+```++Returns the serializable representation of the result.++###### Returns++`object`++| Name | Type |+| ------ | ------ |+| `extra`? | `any` |+| `html` | `undefined` \| `string` |+| `javascript` | `undefined` \| `string` |+| `jpeg` | `undefined` \| `string` |+| `json` | `undefined` \| `string` |+| `latex` | `undefined` \| `string` |+| `markdown` | `undefined` \| `string` |+| `pdf` | `undefined` \| `string` |+| `png` | `undefined` \| `string` |+| `svg` | `undefined` \| `string` |+| `text` | `undefined` \| `string` |++## Type Aliases++### Logs++```ts+type Logs: object;+```++Data printed to stdout and stderr during execution, usually by print statements, logs, warnings, subprocesses, etc.++#### Type declaration++| Name | Type | Description |+| ------ | ------ | ------ |+| `stderr` | `string`[] | List of strings printed to stderr by prints, subprocesses, etc. |+| `stdout` | `string`[] | List of strings printed to stdout by prints, subprocesses, etc. |++***++### MIMEType++```ts+type MIMEType: string;+```++Represents a MIME type.++***++### RawData++```ts+type RawData: object & E2BData;+```++Dictionary that maps MIME types to their corresponding representations of the data.++## Functions++### extractError()++```ts+function extractError(res: Response): Promise<undefined | SandboxError>+```++#### Parameters++| Parameter | Type |+| ------ | ------ |+| `res` | `Response` |++#### Returns++`Promise`\<`undefined` \| `SandboxError`\>++***++### parseOutput()++```ts+function parseOutput(+ execution: Execution,+ line: string,+ onStdout?: (output: OutputMessage) => any,+ onStderr?: (output: OutputMessage) => any,+ onResult?: (data: Result) => any,+onError?: (error: ExecutionError) => any): Promise<void>+```++#### Parameters++| Parameter | Type |+| ------ | ------ |+| `execution` | `Execution` |+| `line` | `string` |+| `onStdout`? | (`output`: `OutputMessage`) => `any` |+| `onStderr`? | (`output`: `OutputMessage`) => `any` |+| `onResult`? | (`data`: `Result`) => `any` |+| `onError`? | (`error`: `ExecutionError`) => `any` |++#### Returns++`Promise`\<`void`\>diff --git a/apps/web/src/app/(docs)/docs/sdk-reference/code-interpreter-js-sdk/v2.0.1/sandbox/page.mdx b/apps/web/src/app/(docs)/docs/sdk-reference/code-interpreter-js-sdk/v2.0.1/sandbox/page.mdxnew file mode 100644index 000000000..96eafec57--- /dev/null+++ b/apps/web/src/app/(docs)/docs/sdk-reference/code-interpreter-js-sdk/v2.0.1/sandbox/page.mdx@@ -0,0 +1,312 @@+### Sandbox++E2B cloud sandbox is a secure and isolated cloud environment.++The sandbox allows you to:+- Access Linux OS+- Create, list, and delete files and directories+- Run commands+- Run isolated code+- Access the internet++Check docs here.++Use Sandbox.create to create a new sandbox.++#### Example++```ts+import { Sandbox } from '@e2b/code-interpreter'++const sandbox = await Sandbox.create()+```++#### Methods++### createCodeContext()++```ts+createCodeContext(opts?: CreateCodeContextOpts): Promise<Context>+```++Creates a new context to run code in.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `opts`? | `CreateCodeContextOpts` | options for creating the context. |++###### Returns++`Promise`\<`Context`\>++context object.++### runCode()++###### runCode(code, opts)++```ts+runCode(code: string, opts?: RunCodeOpts & object): Promise<Execution>+```++Run the code as Python.++Specify the `language` or `context` option to run the code as a different language or in a different `Context`.++You can reference previously defined variables, imports, and functions in the code.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `code` | `string` | code to execute. |+| `opts`? | `RunCodeOpts` & `object` | options for executing the code. |++###### Returns++`Promise`\<`Execution`\>++`Execution` result object.++###### runCode(code, opts)++```ts+runCode(code: string, opts?: RunCodeOpts & object): Promise<Execution>+```++Run the code for the specified language.++Specify the `language` or `context` option to run the code as a different language or in a different `Context`.+If no language is specified, Python is used.++You can reference previously defined variables, imports, and functions in the code.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `code` | `string` | code to execute. |+| `opts`? | `RunCodeOpts` & `object` | options for executing the code. |++###### Returns++`Promise`\<`Execution`\>++`Execution` result object.++###### runCode(code, opts)++```ts+runCode(code: string, opts?: RunCodeOpts & object): Promise<Execution>+```++Runs the code in the specified context, if not specified, the default context is used.++Specify the `language` or `context` option to run the code as a different language or in a different `Context`.++You can reference previously defined variables, imports, and functions in the code.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `code` | `string` | code to execute. |+| `opts`? | `RunCodeOpts` & `object` | options for executing the code |++###### Returns++`Promise`\<`Execution`\>++`Execution` result object++## Interfaces++### CreateCodeContextOpts++Options for creating a code context.++#### Properties++### cwd?++```ts+optional cwd: string;+```++Working directory for the context.++###### Default++```ts+/home/user+```++### language?++```ts+optional language: string;+```++Language for the context.++###### Default++```ts+python+```++### requestTimeoutMs?++```ts+optional requestTimeoutMs: number;+```++Timeout for the request in **milliseconds**.++###### Default++```ts+30_000 // 30 seconds+```++***++### RunCodeOpts++Options for running code.++#### Properties++### envs?++```ts+optional envs: Record<string, string>;+```++Custom environment variables for code execution.++###### Default++```ts+{}+```++### onError()?++```ts+optional onError: (error: ExecutionError) => any;+```++Callback for handling the `ExecutionError` object.++###### Parameters++| Parameter | Type |+| ------ | ------ |+| `error` | `ExecutionError` |++###### Returns++`any`++### onResult()?++```ts+optional onResult: (data: Result) => any;+```++Callback for handling the final execution result.++###### Parameters++| Parameter | Type |+| ------ | ------ |+| `data` | `Result` |++###### Returns++`any`++### onStderr()?++```ts+optional onStderr: (output: OutputMessage) => any;+```++Callback for handling stderr messages.++###### Parameters++| Parameter | Type |+| ------ | ------ |+| `output` | `OutputMessage` |++###### Returns++`any`++### onStdout()?++```ts+optional onStdout: (output: OutputMessage) => any;+```++Callback for handling stdout messages.++###### Parameters++| Parameter | Type |+| ------ | ------ |+| `output` | `OutputMessage` |++###### Returns++`any`++### requestTimeoutMs?++```ts+optional requestTimeoutMs: number;+```++Timeout for the request in **milliseconds**.++###### Default++```ts+30_000 // 30 seconds+```++### timeoutMs?++```ts+optional timeoutMs: number;+```++Timeout for the code execution in **milliseconds**.++###### Default++```ts+60_000 // 60 seconds+```++## Type Aliases++### Context++```ts+type Context: object;+```++Represents a context for code execution.++#### Type declaration++| Name | Type | Description |+| ------ | ------ | ------ |+| `cwd` | `string` | The working directory of the context. |+| `id` | `string` | The ID of the context. |+| `language` | `string` | The language of the context. |diff --git a/apps/web/src/app/(docs)/docs/sdk-reference/code-interpreter-python-sdk/v2.1.0/sandbox/page.mdx b/apps/web/src/app/(docs)/docs/sdk-reference/code-interpreter-python-sdk/v2.1.0/sandbox/page.mdxnew file mode 100644index 000000000..8b8082cd6--- /dev/null+++ b/apps/web/src/app/(docs)/docs/sdk-reference/code-interpreter-python-sdk/v2.1.0/sandbox/page.mdx@@ -0,0 +1,722 @@++++++## Sandbox++```python+class Sandbox(BaseSandbox)+```++E2B cloud sandbox is a secure and isolated cloud environment.++The sandbox allows you to:+- Access Linux OS+- Create, list, and delete files and directories+- Run commands+- Run isolated code+- Access the internet++Check docs [here](https://e2b.dev/docs).++Use the `Sandbox.create()` to create a new sandbox.++**Example**:++```python+from e2b_code_interpreter import Sandbox++sandbox = Sandbox.create()+```+++### run\_code++```python+@overload+def run_code(code: str,+ language: Union[Literal["python"], None] = None,+ on_stdout: Optional[OutputHandler[OutputMessage]] = None,+ on_stderr: Optional[OutputHandler[OutputMessage]] = None,+ on_result: Optional[OutputHandler[Result]] = None,+ on_error: Optional[OutputHandler[ExecutionError]] = None,+ envs: Optional[Dict[str, str]] = None,+ timeout: Optional[float] = None,+ request_timeout: Optional[float] = None) -> Execution+```++Runs the code as Python.++Specify the `language` or `context` option to run the code as a different language or in a different `Context`.++You can reference previously defined variables, imports, and functions in the code.++**Arguments**:++- `code`: Code to execute+- `language`: Language to use for code execution. If not defined, the default Python context is used.+- `on_stdout`: Callback for stdout messages+- `on_stderr`: Callback for stderr messages+- `on_result`: Callback for the `Result` object+- `on_error`: Callback for the `ExecutionError` object+- `envs`: Custom environment variables+- `timeout`: Timeout for the code execution in **seconds**+- `request_timeout`: Timeout for the request in **seconds**++**Returns**:++`Execution` result object+++### run\_code++```python+@overload+def run_code(code: str,+ language: Optional[str] = None,+ on_stdout: Optional[OutputHandler[OutputMessage]] = None,+ on_stderr: Optional[OutputHandler[OutputMessage]] = None,+ on_result: Optional[OutputHandler[Result]] = None,+ on_error: Optional[OutputHandler[ExecutionError]] = None,+ envs: Optional[Dict[str, str]] = None,+ timeout: Optional[float] = None,+ request_timeout: Optional[float] = None) -> Execution+```++Runs the code for the specified language.++Specify the `language` or `context` option to run the code as a different language or in a different `Context`.+If no language is specified, Python is used.++You can reference previously defined variables, imports, and functions in the code.++**Arguments**:++- `code`: Code to execute+- `language`: Language to use for code execution. If not defined, the default Python context is used.+- `on_stdout`: Callback for stdout messages+- `on_stderr`: Callback for stderr messages+- `on_result`: Callback for the `Result` object+- `on_error`: Callback for the `ExecutionError` object+- `envs`: Custom environment variables+- `timeout`: Timeout for the code execution in **seconds**+- `request_timeout`: Timeout for the request in **seconds**++**Returns**:++`Execution` result object+++### run\_code++```python+@overload+def run_code(code: str,+ context: Optional[Context] = None,+ on_stdout: Optional[OutputHandler[OutputMessage]] = None,+ on_stderr: Optional[OutputHandler[OutputMessage]] = None,+ on_result: Optional[OutputHandler[Result]] = None,+ on_error: Optional[OutputHandler[ExecutionError]] = None,+ envs: Optional[Dict[str, str]] = None,+ timeout: Optional[float] = None,+ request_timeout: Optional[float] = None) -> Execution+```++Runs the code in the specified context, if not specified, the default context is used.++Specify the `language` or `context` option to run the code as a different language or in a different `Context`.++You can reference previously defined variables, imports, and functions in the code.++**Arguments**:++- `code`: Code to execute+- `context`: Concrete context to run the code in. If not specified, the default context for the language is used. It's mutually exclusive with the language.+- `on_stdout`: Callback for stdout messages+- `on_stderr`: Callback for stderr messages+- `on_result`: Callback for the `Result` object+- `on_error`: Callback for the `ExecutionError` object+- `envs`: Custom environment variables+- `timeout`: Timeout for the code execution in **seconds**+- `request_timeout`: Timeout for the request in **seconds**++**Returns**:++`Execution` result object+++### create\_code\_context++```python+def create_code_context(cwd: Optional[str] = None,+ language: Optional[str] = None,+ request_timeout: Optional[float] = None) -> Context+```++Creates a new context to run code in.++**Arguments**:++- `cwd`: Set the current working directory for the context, defaults to `/home/user`+- `language`: Language of the context. If not specified, defaults to Python+- `request_timeout`: Timeout for the request in **milliseconds**++**Returns**:++Context object+++++++++## ChartType++```python+class ChartType(str, enum.Enum)+```++Chart types+++## ScaleType++```python+class ScaleType(str, enum.Enum)+```++Ax scale types+++## Chart++```python+class Chart()+```++Extracted data from a chart. It's useful for building an interactive charts or custom visualizations.+++++## AsyncSandbox++```python+class AsyncSandbox(BaseAsyncSandbox)+```++E2B cloud sandbox is a secure and isolated cloud environment.++The sandbox allows you to:+- Access Linux OS+- Create, list, and delete files and directories+- Run commands+- Run isolated code+- Access the internet++Check docs [here](https://e2b.dev/docs).++Use the `AsyncSandbox.create()` to create a new sandbox.++**Example**:++```python+from e2b_code_interpreter import AsyncSandbox+sandbox = await AsyncSandbox.create()+```+++### run\_code++```python+@overload+async def run_code(code: str,+ language: Union[Literal["python"], None] = None,+ on_stdout: Optional[OutputHandler[OutputMessage]] = None,+ on_stderr: Optional[OutputHandler[OutputMessage]] = None,+ on_result: Optional[OutputHandler[Result]] = None,+ on_error: Optional[OutputHandler[ExecutionError]] = None,+ envs: Optional[Dict[str, str]] = None,+ timeout: Optional[float] = None,+ request_timeout: Optional[float] = None) -> Execution+```++Runs the code as Python.++Specify the `language` or `context` option to run the code as a different language or in a different `Context`.++You can reference previously defined variables, imports, and functions in the code.++**Arguments**:++- `code`: Code to execute+- `language`: Language to use for code execution. If not defined, the default Python context is used.+- `on_stdout`: Callback for stdout messages+- `on_stderr`: Callback for stderr messages+- `on_result`: Callback for the `Result` object+- `on_error`: Callback for the `ExecutionError` object+- `envs`: Custom environment variables+- `timeout`: Timeout for the code execution in **seconds**+- `request_timeout`: Timeout for the request in **seconds**++**Returns**:++`Execution` result object+++### run\_code++```python+@overload+async def run_code(code: str,+ language: Optional[str] = None,+ on_stdout: Optional[OutputHandler[OutputMessage]] = None,+ on_stderr: Optional[OutputHandler[OutputMessage]] = None,+ on_result: Optional[OutputHandler[Result]] = None,+ on_error: Optional[OutputHandler[ExecutionError]] = None,+ envs: Optional[Dict[str, str]] = None,+ timeout: Optional[float] = None,+ request_timeout: Optional[float] = None) -> Execution+```++Runs the code for the specified language.++Specify the `language` or `context` option to run the code as a different language or in a different `Context`.+If no language is specified, Python is used.++You can reference previously defined variables, imports, and functions in the code.++**Arguments**:++- `code`: Code to execute+- `language`: Language to use for code execution. If not defined, the default Python context is used.+- `on_stdout`: Callback for stdout messages+- `on_stderr`: Callback for stderr messages+- `on_result`: Callback for the `Result` object+- `on_error`: Callback for the `ExecutionError` object+- `envs`: Custom environment variables+- `timeout`: Timeout for the code execution in **seconds**+- `request_timeout`: Timeout for the request in **seconds**++**Returns**:++`Execution` result object+++### run\_code++```python+@overload+async def run_code(code: str,+ context: Optional[Context] = None,+ on_stdout: Optional[OutputHandler[OutputMessage]] = None,+ on_stderr: Optional[OutputHandler[OutputMessage]] = None,+ on_result: Optional[OutputHandler[Result]] = None,+ on_error: Optional[OutputHandler[ExecutionError]] = None,+ envs: Optional[Dict[str, str]] = None,+ timeout: Optional[float] = None,+ request_timeout: Optional[float] = None) -> Execution+```++Runs the code in the specified context, if not specified, the default context is used.++Specify the `language` or `context` option to run the code as a different language or in a different `Context`.++You can reference previously defined variables, imports, and functions in the code.++**Arguments**:++- `code`: Code to execute+- `context`: Concrete context to run the code in. If not specified, the default context for the language is used. It's mutually exclusive with the language.+- `on_stdout`: Callback for stdout messages+- `on_stderr`: Callback for stderr messages+- `on_result`: Callback for the `Result` object+- `on_error`: Callback for the `ExecutionError` object+- `envs`: Custom environment variables+- `timeout`: Timeout for the code execution in **seconds**+- `request_timeout`: Timeout for the request in **seconds**++**Returns**:++`Execution` result object+++### create\_code\_context++```python+async def create_code_context(+ cwd: Optional[str] = None,+ language: Optional[str] = None,+ request_timeout: Optional[float] = None) -> Context+```++Creates a new context to run code in.++**Arguments**:++- `cwd`: Set the current working directory for the context, defaults to `/home/user`+- `language`: Language of the context. If not specified, defaults to Python+- `request_timeout`: Timeout for the request in **milliseconds**++**Returns**:++Context object+++++## OutputMessage++```python+@dataclass+class OutputMessage()+```++Represents an output message from the sandbox code execution.+++### line++The output line.+++### timestamp++Unix epoch in nanoseconds+++### error++Whether the output is an error.+++## ExecutionError++```python+@dataclass+class ExecutionError()+```++Represents an error that occurred during the execution of a cell.+The error contains the name of the error, the value of the error, and the traceback.+++### name++Name of the error.+++### value++Value of the error.+++### traceback++The raw traceback of the error.+++### to\_json++```python+def to_json() -> str+```++Returns the JSON representation of the Error object.+++## MIMEType++```python+class MIMEType(str)+```++Represents a MIME type.+++## Result++```python+@dataclass+class Result()+```++Represents the data to be displayed as a result of executing a cell in a Jupyter notebook.+The result is similar to the structure returned by ipython kernel: https://ipython.readthedocs.io/en/stable/development/execution.html#execution-semantics++The result can contain multiple types of data, such as text, images, plots, etc. Each type of data is represented+as a string, and the result can contain multiple types of data. The display calls don't have to have text representation,+for the actual result the representation is always present for the result, the other representations are always optional.+++### is\_main\_result++Whether this data is the result of the cell. Data can be produced by display calls of which can be multiple in a cell.+++### extra++Extra data that can be included. Not part of the standard types.+++### formats++```python+def formats() -> Iterable[str]+```++Returns all available formats of the result.++**Returns**:++All available formats of the result in MIME types.+++### \_\_str\_\_++```python+def __str__() -> Optional[str]+```++Returns the text representation of the data.++**Returns**:++The text representation of the data.+++### \_repr\_html\_++```python+def _repr_html_() -> Optional[str]+```++Returns the HTML representation of the data.++**Returns**:++The HTML representation of the data.+++### \_repr\_markdown\_++```python+def _repr_markdown_() -> Optional[str]+```++Returns the Markdown representation of the data.++**Returns**:++The Markdown representation of the data.+++### \_repr\_svg\_++```python+def _repr_svg_() -> Optional[str]+```++Returns the SVG representation of the data.++**Returns**:++The SVG representation of the data.+++### \_repr\_png\_++```python+def _repr_png_() -> Optional[str]+```++Returns the base64 representation of the PNG data.++**Returns**:++The base64 representation of the PNG data.+++### \_repr\_jpeg\_++```python+def _repr_jpeg_() -> Optional[str]+```++Returns the base64 representation of the JPEG data.++**Returns**:++The base64 representation of the JPEG data.+++### \_repr\_pdf\_++```python+def _repr_pdf_() -> Optional[str]+```++Returns the PDF representation of the data.++**Returns**:++The PDF representation of the data.+++### \_repr\_latex\_++```python+def _repr_latex_() -> Optional[str]+```++Returns the LaTeX representation of the data.++**Returns**:++The LaTeX representation of the data.+++### \_repr\_json\_++```python+def _repr_json_() -> Optional[dict]+```++Returns the JSON representation of the data.++**Returns**:++The JSON representation of the data.+++### \_repr\_javascript\_++```python+def _repr_javascript_() -> Optional[str]+```++Returns the JavaScript representation of the data.++**Returns**:++The JavaScript representation of the data.+++## Logs++```python+@dataclass(repr=False)+class Logs()+```++Data printed to stdout and stderr during execution, usually by print statements, logs, warnings, subprocesses, etc.+++### stdout++List of strings printed to stdout by prints, subprocesses, etc.+++### stderr++List of strings printed to stderr by prints, subprocesses, etc.+++### to\_json++```python+def to_json() -> str+```++Returns the JSON representation of the Logs object.+++### serialize\_results++```python+def serialize_results(results: List[Result]) -> List[Dict[str, str]]+```++Serializes the results to JSON.+++## Execution++```python+@dataclass(repr=False)+class Execution()+```++Represents the result of a cell execution.+++### results++List of the result of the cell (interactively interpreted last line), display calls (e.g. matplotlib plots).+++### logs++Logs printed to stdout and stderr during execution.+++### error++Error object if an error occurred, None otherwise.+++### execution\_count++Execution count of the cell.+++### text++```python+@property+def text() -> Optional[str]+```++Returns the text representation of the result.++**Returns**:++The text representation of the result.+++### to\_json++```python+def to_json() -> str+```++Returns the JSON representation of the Execution object.+++## Context++```python+@dataclass+class Context()+```++Represents a context for code execution.+++### id++The ID of the context.+++### language++The language of the context.+++### cwd++The working directory of the context.+diff --git a/apps/web/src/app/(docs)/docs/sdk-reference/code-interpreter-python-sdk/v2.1.1/sandbox/page.mdx b/apps/web/src/app/(docs)/docs/sdk-reference/code-interpreter-python-sdk/v2.1.1/sandbox/page.mdxnew file mode 100644index 000000000..8b8082cd6--- /dev/null+++ b/apps/web/src/app/(docs)/docs/sdk-reference/code-interpreter-python-sdk/v2.1.1/sandbox/page.mdx@@ -0,0 +1,722 @@++++++## Sandbox++```python+class Sandbox(BaseSandbox)+```++E2B cloud sandbox is a secure and isolated cloud environment.++The sandbox allows you to:+- Access Linux OS+- Create, list, and delete files and directories+- Run commands+- Run isolated code+- Access the internet++Check docs [here](https://e2b.dev/docs).++Use the `Sandbox.create()` to create a new sandbox.++**Example**:++```python+from e2b_code_interpreter import Sandbox++sandbox = Sandbox.create()+```+++### run\_code++```python+@overload+def run_code(code: str,+ language: Union[Literal["python"], None] = None,+ on_stdout: Optional[OutputHandler[OutputMessage]] = None,+ on_stderr: Optional[OutputHandler[OutputMessage]] = None,+ on_result: Optional[OutputHandler[Result]] = None,+ on_error: Optional[OutputHandler[ExecutionError]] = None,+ envs: Optional[Dict[str, str]] = None,+ timeout: Optional[float] = None,+ request_timeout: Optional[float] = None) -> Execution+```++Runs the code as Python.++Specify the `language` or `context` option to run the code as a different language or in a different `Context`.++You can reference previously defined variables, imports, and functions in the code.++**Arguments**:++- `code`: Code to execute+- `language`: Language to use for code execution. If not defined, the default Python context is used.+- `on_stdout`: Callback for stdout messages+- `on_stderr`: Callback for stderr messages+- `on_result`: Callback for the `Result` object+- `on_error`: Callback for the `ExecutionError` object+- `envs`: Custom environment variables+- `timeout`: Timeout for the code execution in **seconds**+- `request_timeout`: Timeout for the request in **seconds**++**Returns**:++`Execution` result object+++### run\_code++```python+@overload+def run_code(code: str,+ language: Optional[str] = None,+ on_stdout: Optional[OutputHandler[OutputMessage]] = None,+ on_stderr: Optional[OutputHandler[OutputMessage]] = None,+ on_result: Optional[OutputHandler[Result]] = None,+ on_error: Optional[OutputHandler[ExecutionError]] = None,+ envs: Optional[Dict[str, str]] = None,+ timeout: Optional[float] = None,+ request_timeout: Optional[float] = None) -> Execution+```++Runs the code for the specified language.++Specify the `language` or `context` option to run the code as a different language or in a different `Context`.+If no language is specified, Python is used.++You can reference previously defined variables, imports, and functions in the code.++**Arguments**:++- `code`: Code to execute+- `language`: Language to use for code execution. If not defined, the default Python context is used.+- `on_stdout`: Callback for stdout messages+- `on_stderr`: Callback for stderr messages+- `on_result`: Callback for the `Result` object+- `on_error`: Callback for the `ExecutionError` object+- `envs`: Custom environment variables+- `timeout`: Timeout for the code execution in **seconds**+- `request_timeout`: Timeout for the request in **seconds**++**Returns**:++`Execution` result object+++### run\_code++```python+@overload+def run_code(code: str,+ context: Optional[Context] = None,+ on_stdout: Optional[OutputHandler[OutputMessage]] = None,+ on_stderr: Optional[OutputHandler[OutputMessage]] = None,+ on_result: Optional[OutputHandler[Result]] = None,+ on_error: Optional[OutputHandler[ExecutionError]] = None,+ envs: Optional[Dict[str, str]] = None,+ timeout: Optional[float] = None,+ request_timeout: Optional[float] = None) -> Execution+```++Runs the code in the specified context, if not specified, the default context is used.++Specify the `language` or `context` option to run the code as a different language or in a different `Context`.++You can reference previously defined variables, imports, and functions in the code.++**Arguments**:++- `code`: Code to execute+- `context`: Concrete context to run the code in. If not specified, the default context for the language is used. It's mutually exclusive with the language.+- `on_stdout`: Callback for stdout messages+- `on_stderr`: Callback for stderr messages+- `on_result`: Callback for the `Result` object+- `on_error`: Callback for the `ExecutionError` object+- `envs`: Custom environment variables+- `timeout`: Timeout for the code execution in **seconds**+- `request_timeout`: Timeout for the request in **seconds**++**Returns**:++`Execution` result object+++### create\_code\_context++```python+def create_code_context(cwd: Optional[str] = None,+ language: Optional[str] = None,+ request_timeout: Optional[float] = None) -> Context+```++Creates a new context to run code in.++**Arguments**:++- `cwd`: Set the current working directory for the context, defaults to `/home/user`+- `language`: Language of the context. If not specified, defaults to Python+- `request_timeout`: Timeout for the request in **milliseconds**++**Returns**:++Context object+++++++++## ChartType++```python+class ChartType(str, enum.Enum)+```++Chart types+++## ScaleType++```python+class ScaleType(str, enum.Enum)+```++Ax scale types+++## Chart++```python+class Chart()+```++Extracted data from a chart. It's useful for building an interactive charts or custom visualizations.+++++## AsyncSandbox++```python+class AsyncSandbox(BaseAsyncSandbox)+```++E2B cloud sandbox is a secure and isolated cloud environment.++The sandbox allows you to:+- Access Linux OS+- Create, list, and delete files and directories+- Run commands+- Run isolated code+- Access the internet++Check docs [here](https://e2b.dev/docs).++Use the `AsyncSandbox.create()` to create a new sandbox.++**Example**:++```python+from e2b_code_interpreter import AsyncSandbox+sandbox = await AsyncSandbox.create()+```+++### run\_code++```python+@overload+async def run_code(code: str,+ language: Union[Literal["python"], None] = None,+ on_stdout: Optional[OutputHandler[OutputMessage]] = None,+ on_stderr: Optional[OutputHandler[OutputMessage]] = None,+ on_result: Optional[OutputHandler[Result]] = None,+ on_error: Optional[OutputHandler[ExecutionError]] = None,+ envs: Optional[Dict[str, str]] = None,+ timeout: Optional[float] = None,+ request_timeout: Optional[float] = None) -> Execution+```++Runs the code as Python.++Specify the `language` or `context` option to run the code as a different language or in a different `Context`.++You can reference previously defined variables, imports, and functions in the code.++**Arguments**:++- `code`: Code to execute+- `language`: Language to use for code execution. If not defined, the default Python context is used.+- `on_stdout`: Callback for stdout messages+- `on_stderr`: Callback for stderr messages+- `on_result`: Callback for the `Result` object+- `on_error`: Callback for the `ExecutionError` object+- `envs`: Custom environment variables+- `timeout`: Timeout for the code execution in **seconds**+- `request_timeout`: Timeout for the request in **seconds**++**Returns**:++`Execution` result object+++### run\_code++```python+@overload+async def run_code(code: str,+ language: Optional[str] = None,+ on_stdout: Optional[OutputHandler[OutputMessage]] = None,+ on_stderr: Optional[OutputHandler[OutputMessage]] = None,+ on_result: Optional[OutputHandler[Result]] = None,+ on_error: Optional[OutputHandler[ExecutionError]] = None,+ envs: Optional[Dict[str, str]] = None,+ timeout: Optional[float] = None,+ request_timeout: Optional[float] = None) -> Execution+```++Runs the code for the specified language.++Specify the `language` or `context` option to run the code as a different language or in a different `Context`.+If no language is specified, Python is used.++You can reference previously defined variables, imports, and functions in the code.++**Arguments**:++- `code`: Code to execute+- `language`: Language to use for code execution. If not defined, the default Python context is used.+- `on_stdout`: Callback for stdout messages+- `on_stderr`: Callback for stderr messages+- `on_result`: Callback for the `Result` object+- `on_error`: Callback for the `ExecutionError` object+- `envs`: Custom environment variables+- `timeout`: Timeout for the code execution in **seconds**+- `request_timeout`: Timeout for the request in **seconds**++**Returns**:++`Execution` result object+++### run\_code++```python+@overload+async def run_code(code: str,+ context: Optional[Context] = None,+ on_stdout: Optional[OutputHandler[OutputMessage]] = None,+ on_stderr: Optional[OutputHandler[OutputMessage]] = None,+ on_result: Optional[OutputHandler[Result]] = None,+ on_error: Optional[OutputHandler[ExecutionError]] = None,+ envs: Optional[Dict[str, str]] = None,+ timeout: Optional[float] = None,+ request_timeout: Optional[float] = None) -> Execution+```++Runs the code in the specified context, if not specified, the default context is used.++Specify the `language` or `context` option to run the code as a different language or in a different `Context`.++You can reference previously defined variables, imports, and functions in the code.++**Arguments**:++- `code`: Code to execute+- `context`: Concrete context to run the code in. If not specified, the default context for the language is used. It's mutually exclusive with the language.+- `on_stdout`: Callback for stdout messages+- `on_stderr`: Callback for stderr messages+- `on_result`: Callback for the `Result` object+- `on_error`: Callback for the `ExecutionError` object+- `envs`: Custom environment variables+- `timeout`: Timeout for the code execution in **seconds**+- `request_timeout`: Timeout for the request in **seconds**++**Returns**:++`Execution` result object+++### create\_code\_context++```python+async def create_code_context(+ cwd: Optional[str] = None,+ language: Optional[str] = None,+ request_timeout: Optional[float] = None) -> Context+```++Creates a new context to run code in.++**Arguments**:++- `cwd`: Set the current working directory for the context, defaults to `/home/user`+- `language`: Language of the context. If not specified, defaults to Python+- `request_timeout`: Timeout for the request in **milliseconds**++**Returns**:++Context object+++++## OutputMessage++```python+@dataclass+class OutputMessage()+```++Represents an output message from the sandbox code execution.+++### line++The output line.+++### timestamp++Unix epoch in nanoseconds+++### error++Whether the output is an error.+++## ExecutionError++```python+@dataclass+class ExecutionError()+```++Represents an error that occurred during the execution of a cell.+The error contains the name of the error, the value of the error, and the traceback.+++### name++Name of the error.+++### value++Value of the error.+++### traceback++The raw traceback of the error.+++### to\_json++```python+def to_json() -> str+```++Returns the JSON representation of the Error object.+++## MIMEType++```python+class MIMEType(str)+```++Represents a MIME type.+++## Result++```python+@dataclass+class Result()+```++Represents the data to be displayed as a result of executing a cell in a Jupyter notebook.+The result is similar to the structure returned by ipython kernel: https://ipython.readthedocs.io/en/stable/development/execution.html#execution-semantics++The result can contain multiple types of data, such as text, images, plots, etc. Each type of data is represented+as a string, and the result can contain multiple types of data. The display calls don't have to have text representation,+for the actual result the representation is always present for the result, the other representations are always optional.+++### is\_main\_result++Whether this data is the result of the cell. Data can be produced by display calls of which can be multiple in a cell.+++### extra++Extra data that can be included. Not part of the standard types.+++### formats++```python+def formats() -> Iterable[str]+```++Returns all available formats of the result.++**Returns**:++All available formats of the result in MIME types.+++### \_\_str\_\_++```python+def __str__() -> Optional[str]+```++Returns the text representation of the data.++**Returns**:++The text representation of the data.+++### \_repr\_html\_++```python+def _repr_html_() -> Optional[str]+```++Returns the HTML representation of the data.++**Returns**:++The HTML representation of the data.+++### \_repr\_markdown\_++```python+def _repr_markdown_() -> Optional[str]+```++Returns the Markdown representation of the data.++**Returns**:++The Markdown representation of the data.+++### \_repr\_svg\_++```python+def _repr_svg_() -> Optional[str]+```++Returns the SVG representation of the data.++**Returns**:++The SVG representation of the data.+++### \_repr\_png\_++```python+def _repr_png_() -> Optional[str]+```++Returns the base64 representation of the PNG data.++**Returns**:++The base64 representation of the PNG data.+++### \_repr\_jpeg\_++```python+def _repr_jpeg_() -> Optional[str]+```++Returns the base64 representation of the JPEG data.++**Returns**:++The base64 representation of the JPEG data.+++### \_repr\_pdf\_++```python+def _repr_pdf_() -> Optional[str]+```++Returns the PDF representation of the data.++**Returns**:++The PDF representation of the data.+++### \_repr\_latex\_++```python+def _repr_latex_() -> Optional[str]+```++Returns the LaTeX representation of the data.++**Returns**:++The LaTeX representation of the data.+++### \_repr\_json\_++```python+def _repr_json_() -> Optional[dict]+```++Returns the JSON representation of the data.++**Returns**:++The JSON representation of the data.+++### \_repr\_javascript\_++```python+def _repr_javascript_() -> Optional[str]+```++Returns the JavaScript representation of the data.++**Returns**:++The JavaScript representation of the data.+++## Logs++```python+@dataclass(repr=False)+class Logs()+```++Data printed to stdout and stderr during execution, usually by print statements, logs, warnings, subprocesses, etc.+++### stdout++List of strings printed to stdout by prints, subprocesses, etc.+++### stderr++List of strings printed to stderr by prints, subprocesses, etc.+++### to\_json++```python+def to_json() -> str+```++Returns the JSON representation of the Logs object.+++### serialize\_results++```python+def serialize_results(results: List[Result]) -> List[Dict[str, str]]+```++Serializes the results to JSON.+++## Execution++```python+@dataclass(repr=False)+class Execution()+```++Represents the result of a cell execution.+++### results++List of the result of the cell (interactively interpreted last line), display calls (e.g. matplotlib plots).+++### logs++Logs printed to stdout and stderr during execution.+++### error++Error object if an error occurred, None otherwise.+++### execution\_count++Execution count of the cell.+++### text++```python+@property+def text() -> Optional[str]+```++Returns the text representation of the result.++**Returns**:++The text representation of the result.+++### to\_json++```python+def to_json() -> str+```++Returns the JSON representation of the Execution object.+++## Context++```python+@dataclass+class Context()+```++Represents a context for code execution.+++### id++The ID of the context.+++### language++The language of the context.+++### cwd++The working directory of the context.+diff --git a/apps/web/src/app/(docs)/docs/sdk-reference/js-sdk/v2.2.2/commands/page.mdx b/apps/web/src/app/(docs)/docs/sdk-reference/js-sdk/v2.2.2/commands/page.mdxnew file mode 100644index 000000000..01bf40682--- /dev/null+++ b/apps/web/src/app/(docs)/docs/sdk-reference/js-sdk/v2.2.2/commands/page.mdx@@ -0,0 +1,523 @@+### Commands++Module for starting and interacting with commands in the sandbox.++#### Constructors++```ts+new Commands(+ transport: Transport,+ connectionConfig: ConnectionConfig,+ metadata: object): Commands+```++###### Parameters++| Parameter | Type |+| ------ | ------ |+| `transport` | `Transport` |+| `connectionConfig` | `ConnectionConfig` |+| `metadata` | `object` |+| `metadata.version` | `string` |++###### Returns++`Commands`++#### Methods++### connect()++```ts+connect(pid: number, opts?: CommandConnectOpts): Promise<CommandHandle>+```++Connect to a running command.+You can use CommandHandle.wait to wait for the command to finish and get execution results.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `pid` | `number` | process ID of the command to connect to. You can get the list of running commands using Commands.list. |+| `opts`? | `CommandConnectOpts` | connection options. |++###### Returns++`Promise`\<`CommandHandle`\>++`CommandHandle` handle to interact with the running command.++### kill()++```ts+kill(pid: number, opts?: CommandRequestOpts): Promise<boolean>+```++Kill a running command specified by its process ID.+It uses `SIGKILL` signal to kill the command.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `pid` | `number` | process ID of the command. You can get the list of running commands using Commands.list. |+| `opts`? | `CommandRequestOpts` | connection options. |++###### Returns++`Promise`\<`boolean`\>++`true` if the command was killed, `false` if the command was not found.++### list()++```ts+list(opts?: CommandRequestOpts): Promise<ProcessInfo[]>+```++List all running commands and PTY sessions.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `opts`? | `CommandRequestOpts` | connection options. |++###### Returns++`Promise`\<`ProcessInfo`[]\>++list of running commands and PTY sessions.++### run()++###### run(cmd, opts)++```ts+run(cmd: string, opts?: CommandStartOpts & object): Promise<CommandResult>+```++Start a new command and wait until it finishes executing.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `cmd` | `string` | command to execute. |+| `opts`? | `CommandStartOpts` & `object` | options for starting the command. |++###### Returns++`Promise`\<`CommandResult`\>++`CommandResult` result of the command execution.++###### run(cmd, opts)++```ts+run(cmd: string, opts: CommandStartOpts & object): Promise<CommandHandle>+```++Start a new command in the background.+You can use CommandHandle.wait to wait for the command to finish and get its result.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `cmd` | `string` | command to execute. |+| `opts` | `CommandStartOpts` & `object` | options for starting the command |++###### Returns++`Promise`\<`CommandHandle`\>++`CommandHandle` handle to interact with the running command.++###### run(cmd, opts)++```ts+run(cmd: string, opts?: CommandStartOpts & object): Promise<CommandResult | CommandHandle>+```++Start a new command.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `cmd` | `string` | command to execute. |+| `opts`? | `CommandStartOpts` & `object` | options for starting the command. - `opts.background: true` - runs in background, returns `CommandHandle` - `opts.background: false | undefined` - waits for completion, returns `CommandResult` |++###### Returns++`Promise`\<`CommandResult` \| `CommandHandle`\>++Either a `CommandHandle` or a `CommandResult` (depending on `opts.background`).++### sendStdin()++```ts+sendStdin(+ pid: number,+ data: string,+opts?: CommandRequestOpts): Promise<void>+```++Send data to command stdin.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `pid` | `number` | process ID of the command. You can get the list of running commands using Commands.list. |+| `data` | `string` | data to send to the command. |+| `opts`? | `CommandRequestOpts` | connection options. |++###### Returns++`Promise`\<`void`\>++***++### Pty++Module for interacting with PTYs (pseudo-terminals) in the sandbox.++#### Constructors++```ts+new Pty(transport: Transport, connectionConfig: ConnectionConfig): Pty+```++###### Parameters++| Parameter | Type |+| ------ | ------ |+| `transport` | `Transport` |+| `connectionConfig` | `ConnectionConfig` |++###### Returns++`Pty`++#### Methods++### create()++```ts+create(opts: PtyCreateOpts): Promise<CommandHandle>+```++Create a new PTY (pseudo-terminal).++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `opts` | `PtyCreateOpts` | options for creating the PTY. |++###### Returns++`Promise`\<`CommandHandle`\>++handle to interact with the PTY.++### kill()++```ts+kill(pid: number, opts?: Pick<ConnectionOpts, "requestTimeoutMs">): Promise<boolean>+```++Kill a running PTY specified by process ID.+It uses `SIGKILL` signal to kill the PTY.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `pid` | `number` | process ID of the PTY. |+| `opts`? | `Pick`\<`ConnectionOpts`, `"requestTimeoutMs"`\> | connection options. |++###### Returns++`Promise`\<`boolean`\>++`true` if the PTY was killed, `false` if the PTY was not found.++### resize()++```ts+resize(+ pid: number,+ size: object,+opts?: Pick<ConnectionOpts, "requestTimeoutMs">): Promise<void>+```++Resize PTY.+Call this when the terminal window is resized and the number of columns and rows has changed.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `pid` | `number` | process ID of the PTY. |+| `size` | `object` | new size of the PTY. |+| `size.cols` | `number` | - |+| `size.rows`? | `number` | - |+| `opts`? | `Pick`\<`ConnectionOpts`, `"requestTimeoutMs"`\> | connection options. |++###### Returns++`Promise`\<`void`\>++### sendInput()++```ts+sendInput(+ pid: number,+ data: Uint8Array,+opts?: Pick<ConnectionOpts, "requestTimeoutMs">): Promise<void>+```++Send input to a PTY.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `pid` | `number` | process ID of the PTY. |+| `data` | `Uint8Array` | input data to send to the PTY. |+| `opts`? | `Pick`\<`ConnectionOpts`, `"requestTimeoutMs"`\> | connection options. |++###### Returns++`Promise`\<`void`\>++## Interfaces++### CommandRequestOpts++Options for sending a command request.++#### Extended by++- `CommandStartOpts`++#### Properties++### requestTimeoutMs?++```ts+optional requestTimeoutMs: number;+```++Timeout for requests to the API in **milliseconds**.++###### Default++```ts+60_000 // 60 seconds+```++***++### CommandStartOpts++Options for starting a new command.++#### Properties++### background?++```ts+optional background: boolean;+```++If true, starts command in the background and the method returns immediately.+You can use CommandHandle.wait to wait for the command to finish.++### cwd?++```ts+optional cwd: string;+```++Working directory for the command.++###### Default++```ts+// home directory of the user used to start the command+```++### envs?++```ts+optional envs: Record<string, string>;+```++Environment variables used for the command.++This overrides the default environment variables from `Sandbox` constructor.++###### Default++`{}`++### onStderr()?++```ts+optional onStderr: (data: string) => void | Promise<void>;+```++Callback for command stderr output.++###### Parameters++| Parameter | Type |+| ------ | ------ |+| `data` | `string` |++###### Returns++`void` \| `Promise`\<`void`\>++### onStdout()?++```ts+optional onStdout: (data: string) => void | Promise<void>;+```++Callback for command stdout output.++###### Parameters++| Parameter | Type |+| ------ | ------ |+| `data` | `string` |++###### Returns++`void` \| `Promise`\<`void`\>++### requestTimeoutMs?++```ts+optional requestTimeoutMs: number;+```++Timeout for requests to the API in **milliseconds**.++###### Default++```ts+60_000 // 60 seconds+```++### stdin?++```ts+optional stdin: boolean;+```++If true, command stdin is kept open and you can send data to it using Commands.sendStdin or CommandHandle.sendStdin.++###### Default++```ts+false+```++### timeoutMs?++```ts+optional timeoutMs: number;+```++Timeout for the command in **milliseconds**.++###### Default++```ts+60_000 // 60 seconds+```++### user?++```ts+optional user: Username;+```++User to run the command as.++###### Default++`user`++***++### ProcessInfo++Information about a command, PTY session or start command running in the sandbox as process.++#### Properties++### args++```ts+args: string[];+```++Command arguments.++### cmd++```ts+cmd: string;+```++Command that was executed.++### cwd?++```ts+optional cwd: string;+```++Executed command working directory.++### envs++```ts+envs: Record<string, string>;+```++Environment variables used for the command.++### pid++```ts+pid: number;+```++Process ID.++### tag?++```ts+optional tag: string;+```++Custom tag used for identifying special commands like start command in the custom template.++## Type Aliases++### CommandConnectOpts++```ts+type CommandConnectOpts: Pick<CommandStartOpts, "onStderr" | "onStdout" | "timeoutMs"> & CommandRequestOpts;+```++Options for connecting to a command.diff --git a/apps/web/src/app/(docs)/docs/sdk-reference/js-sdk/v2.2.2/errors/page.mdx b/apps/web/src/app/(docs)/docs/sdk-reference/js-sdk/v2.2.2/errors/page.mdxnew file mode 100644index 000000000..df3ca4d39--- /dev/null+++ b/apps/web/src/app/(docs)/docs/sdk-reference/js-sdk/v2.2.2/errors/page.mdx@@ -0,0 +1,216 @@+### AuthenticationError++Thrown when authentication fails.++#### Constructors++```ts+new AuthenticationError(message: string): AuthenticationError+```++###### Parameters++| Parameter | Type |+| ------ | ------ |+| `message` | `string` |++###### Returns++`AuthenticationError`++***++### InvalidArgumentError++Thrown when an invalid argument is provided.++#### Constructors++```ts+new InvalidArgumentError(message: string, stackTrace?: string): InvalidArgumentError+```++###### Parameters++| Parameter | Type |+| ------ | ------ |+| `message` | `string` |+| `stackTrace`? | `string` |++###### Returns++`InvalidArgumentError`++***++### NotEnoughSpaceError++Thrown when there is not enough disk space.++#### Constructors++```ts+new NotEnoughSpaceError(message: string, stackTrace?: string): NotEnoughSpaceError+```++###### Parameters++| Parameter | Type |+| ------ | ------ |+| `message` | `string` |+| `stackTrace`? | `string` |++###### Returns++`NotEnoughSpaceError`++***++### NotFoundError++Thrown when a resource is not found.++#### Constructors++```ts+new NotFoundError(message: string, stackTrace?: string): NotFoundError+```++###### Parameters++| Parameter | Type |+| ------ | ------ |+| `message` | `string` |+| `stackTrace`? | `string` |++###### Returns++`NotFoundError`++***++### RateLimitError++Thrown when the API rate limit is exceeded.++#### Constructors++```ts+new RateLimitError(message: string): RateLimitError+```++###### Parameters++| Parameter | Type |+| ------ | ------ |+| `message` | `string` |++###### Returns++`RateLimitError`++***++### SandboxError++Base class for all sandbox errors.++Thrown when general sandbox errors occur.++#### Extended by++- `TimeoutError`+- `InvalidArgumentError`+- `NotEnoughSpaceError`+- `NotFoundError`+- `TemplateError`+- `RateLimitError`++#### Constructors++```ts+new SandboxError(message?: string, stackTrace?: string): SandboxError+```++###### Parameters++| Parameter | Type |+| ------ | ------ |+| `message`? | `string` |+| `stackTrace`? | `string` |++###### Returns++`SandboxError`++***++### TemplateError++Thrown when the template uses old envd version. It isn't compatible with the new SDK.++#### Constructors++```ts+new TemplateError(message: string, stackTrace?: string): TemplateError+```++###### Parameters++| Parameter | Type |+| ------ | ------ |+| `message` | `string` |+| `stackTrace`? | `string` |++###### Returns++`TemplateError`++***++### TimeoutError++Thrown when a timeout error occurs.++The [unavailable] error type is caused by sandbox timeout.++The [canceled] error type is caused by exceeding request timeout.++The [deadline_exceeded] error type is caused by exceeding the timeout for command execution, watch, etc.++The [unknown] error type is sometimes caused by the sandbox timeout when the request is not processed correctly.++#### Constructors++```ts+new TimeoutError(message: string, stackTrace?: string): TimeoutError+```++###### Parameters++| Parameter | Type |+| ------ | ------ |+| `message` | `string` |+| `stackTrace`? | `string` |++###### Returns++`TimeoutError`++## Functions++### formatSandboxTimeoutError()++```ts+function formatSandboxTimeoutError(message: string): TimeoutError+```++#### Parameters++| Parameter | Type |+| ------ | ------ |+| `message` | `string` |++#### Returns++`TimeoutError`diff --git a/apps/web/src/app/(docs)/docs/sdk-reference/js-sdk/v2.2.2/filesystem/page.mdx b/apps/web/src/app/(docs)/docs/sdk-reference/js-sdk/v2.2.2/filesystem/page.mdxnew file mode 100644index 000000000..03f9a1390--- /dev/null+++ b/apps/web/src/app/(docs)/docs/sdk-reference/js-sdk/v2.2.2/filesystem/page.mdx@@ -0,0 +1,622 @@+### FileType++Sandbox filesystem object type.++#### Enumeration Members++| Enumeration Member | Value | Description |+| ------ | ------ | ------ |+| `DIR` | `"dir"` | Filesystem object is a directory. |+| `FILE` | `"file"` | Filesystem object is a file. |++## Classes++### Filesystem++Module for interacting with the sandbox filesystem.++#### Constructors++```ts+new Filesystem(+ transport: Transport,+ envdApi: EnvdApiClient,+ connectionConfig: ConnectionConfig): Filesystem+```++###### Parameters++| Parameter | Type |+| ------ | ------ |+| `transport` | `Transport` |+| `envdApi` | `EnvdApiClient` |+| `connectionConfig` | `ConnectionConfig` |++###### Returns++`Filesystem`++#### Methods++### exists()++```ts+exists(path: string, opts?: FilesystemRequestOpts): Promise<boolean>+```++Check if a file or a directory exists.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `path` | `string` | path to a file or a directory |+| `opts`? | `FilesystemRequestOpts` | connection options. |++###### Returns++`Promise`\<`boolean`\>++`true` if the file or directory exists, `false` otherwise++### getInfo()++```ts+getInfo(path: string, opts?: FilesystemRequestOpts): Promise<EntryInfo>+```++Get information about a file or directory.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `path` | `string` | path to a file or directory. |+| `opts`? | `FilesystemRequestOpts` | connection options. |++###### Returns++`Promise`\<`EntryInfo`\>++information about the file or directory like name, type, and path.++### list()++```ts+list(path: string, opts?: FilesystemListOpts): Promise<EntryInfo[]>+```++List entries in a directory.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `path` | `string` | path to the directory. |+| `opts`? | `FilesystemListOpts` | connection options. |++###### Returns++`Promise`\<`EntryInfo`[]\>++list of entries in the sandbox filesystem directory.++### makeDir()++```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++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `path` | `string` | path to a new directory. For example '/dirA/dirB' when creating 'dirB'. |+| `opts`? | `FilesystemRequestOpts` | connection options. |++###### Returns++`Promise`\<`boolean`\>++`true` if the directory was created, `false` if it already exists.++### read()++###### read(path, opts)++```ts+read(path: string, opts?: FilesystemRequestOpts & object): Promise<string>+```++Read file content as a `string`.++You can pass `text`, `bytes`, `blob`, or `stream` to `opts.format` to change the return type.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `path` | `string` | path to the file. |+| `opts`? | `FilesystemRequestOpts` & `object` | connection options. |++###### Returns++`Promise`\<`string`\>++file content as string++###### read(path, opts)++```ts+read(path: string, opts?: FilesystemRequestOpts & object): Promise<Uint8Array>+```++Read file content as a `Uint8Array`.++You can pass `text`, `bytes`, `blob`, or `stream` to `opts.format` to change the return type.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `path` | `string` | path to the file. |+| `opts`? | `FilesystemRequestOpts` & `object` | connection options. |++###### Returns++`Promise`\<`Uint8Array`\>++file content as `Uint8Array`++###### read(path, opts)++```ts+read(path: string, opts?: FilesystemRequestOpts & object): Promise<Blob>+```++Read file content as a `Blob`.++You can pass `text`, `bytes`, `blob`, or `stream` to `opts.format` to change the return type.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `path` | `string` | path to the file. |+| `opts`? | `FilesystemRequestOpts` & `object` | connection options. |++###### Returns++`Promise`\<`Blob`\>++file content as `Blob`++###### read(path, opts)++```ts+read(path: string, opts?: FilesystemRequestOpts & object): Promise<ReadableStream<Uint8Array>>+```++Read file content as a `ReadableStream`.++You can pass `text`, `bytes`, `blob`, or `stream` to `opts.format` to change the return type.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `path` | `string` | path to the file. |+| `opts`? | `FilesystemRequestOpts` & `object` | connection options. |++###### Returns++`Promise`\<`ReadableStream`\<`Uint8Array`\>\>++file content as `ReadableStream`++### remove()++```ts+remove(path: string, opts?: FilesystemRequestOpts): Promise<void>+```++Remove a file or directory.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `path` | `string` | path to a file or directory. |+| `opts`? | `FilesystemRequestOpts` | connection options. |++###### Returns++`Promise`\<`void`\>++### rename()++```ts+rename(+ oldPath: string,+ newPath: string,+opts?: FilesystemRequestOpts): Promise<EntryInfo>+```++Rename a file or directory.++###### Parameters++| 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++`Promise`\<`EntryInfo`\>++information about renamed file or directory.++### watchDir()++```ts+watchDir(+ path: string,+ onEvent: (event: FilesystemEvent) => void | Promise<void>,+opts?: WatchOpts & object): Promise<WatchHandle>+```++Start watching a directory for filesystem events.++###### Parameters++| 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` & `object` | connection options. |++###### Returns++`Promise`\<`WatchHandle`\>++`WatchHandle` object for stopping watching directory.++### write()++###### write(path, data, opts)++```ts+write(+ path: string,+ data: string | ArrayBuffer | Blob | ReadableStream<any>,+opts?: FilesystemRequestOpts): Promise<WriteInfo>+```++Write content to a file.++Writing to a file that doesn't exist creates the file.++Writing to a file that already exists overwrites the file.++Writing to a file at path that doesn't exist creates the necessary directories.++###### Parameters++| 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++`Promise`\<`WriteInfo`\>++information about the written file++###### write(files, opts)++```ts+write(files: WriteEntry[], opts?: FilesystemRequestOpts): Promise<WriteInfo[]>+```++###### Parameters++| Parameter | Type |+| ------ | ------ |+| `files` | `WriteEntry`[] |+| `opts`? | `FilesystemRequestOpts` |++###### Returns++`Promise`\<`WriteInfo`[]\>++## Interfaces++### EntryInfo++Sandbox filesystem object information.++#### Properties++### group++```ts+group: string;+```++Group owner of the filesystem object.++### mode++```ts+mode: number;+```++File mode and permission bits.++### modifiedTime?++```ts+optional modifiedTime: Date;+```++Last modification time of the filesystem object.++### name++```ts+name: string;+```++Name of the filesystem object.++### owner++```ts+owner: string;+```++Owner of the filesystem object.++### path++```ts+path: string;+```++Path to the filesystem object.++### permissions++```ts+permissions: string;+```++String representation of file permissions (e.g. 'rwxr-xr-x').++### size++```ts+size: number;+```++Size of the filesystem object in bytes.++### symlinkTarget?++```ts+optional symlinkTarget: string;+```++If the filesystem object is a symlink, this is the target of the symlink.++### type?++```ts+optional type: FileType;+```++Type of the filesystem object.++***++### FilesystemListOpts++Options for the sandbox filesystem operations.++#### Properties++### depth?++```ts+optional depth: number;+```++Depth of the directory to list.++### requestTimeoutMs?++```ts+optional requestTimeoutMs: number;+```++Timeout for requests to the API in **milliseconds**.++###### Default++```ts+60_000 // 60 seconds+```++### user?++```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.++***++### FilesystemRequestOpts++Options for the sandbox filesystem operations.++#### Extended by++- `FilesystemListOpts`+- `WatchOpts`++#### Properties++### requestTimeoutMs?++```ts+optional requestTimeoutMs: number;+```++Timeout for requests to the API in **milliseconds**.++###### Default++```ts+60_000 // 60 seconds+```++### user?++```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.++***++### WatchOpts++Options for watching a directory.++#### Properties++### onExit()?++```ts+optional onExit: (err?: Error) => void | Promise<void>;+```++Callback to call when the watch operation stops.++###### Parameters++| Parameter | Type |+| ------ | ------ |+| `err`? | `Error` |++###### Returns++`void` \| `Promise`\<`void`\>++### recursive?++```ts+optional recursive: boolean;+```++Watch the directory recursively++### requestTimeoutMs?++```ts+optional requestTimeoutMs: number;+```++Timeout for requests to the API in **milliseconds**.++###### Default++```ts+60_000 // 60 seconds+```++### timeoutMs?++```ts+optional timeoutMs: number;+```++Timeout for the watch operation in **milliseconds**.+You can pass `0` to disable the timeout.++###### Default++```ts+60_000 // 60 seconds+```++### user?++```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.++***++### WriteInfo++Sandbox filesystem object information.++#### Extended by++- `EntryInfo`++#### Properties++### name++```ts+name: string;+```++Name of the filesystem object.++### path++```ts+path: string;+```++Path to the filesystem object.++### type?++```ts+optional type: FileType;+```++Type of the filesystem object.++## Type Aliases++### WriteEntry++```ts+type WriteEntry: object;+```++#### Type declaration++| Name | Type |+| ------ | ------ |+| `data` | `string` \| `ArrayBuffer` \| `Blob` \| `ReadableStream` |+| `path` | `string` |diff --git a/apps/web/src/app/(docs)/docs/sdk-reference/js-sdk/v2.2.2/sandbox/page.mdx b/apps/web/src/app/(docs)/docs/sdk-reference/js-sdk/v2.2.2/sandbox/page.mdxnew file mode 100644index 000000000..ca82c7ce3--- /dev/null+++ b/apps/web/src/app/(docs)/docs/sdk-reference/js-sdk/v2.2.2/sandbox/page.mdx@@ -0,0 +1,678 @@+### Sandbox++E2B cloud sandbox is a secure and isolated cloud environment.++The sandbox allows you to:+- Access Linux OS+- Create, list, and delete files and directories+- Run commands+- Run isolated code+- Access the internet++Check docs here.++Use Sandbox.create to create a new sandbox.++#### Example++```ts+import { Sandbox } from 'e2b'++const sandbox = await Sandbox.create()+```++#### Properties++| Property | Modifier | Type | Description |+| ------ | ------ | ------ | ------ |+| `commands` | `readonly` | `Commands` | Module for running commands in the sandbox |+| `files` | `readonly` | `Filesystem` | Module for interacting with the sandbox filesystem |+| `pty` | `readonly` | `Pty` | Module for interacting with the sandbox pseudo-terminals |+| `sandboxDomain` | `readonly` | `string` | Domain where the sandbox is hosted. |+| `sandboxId` | `readonly` | `string` | Unique identifier of the sandbox. |++#### Methods++### betaPause()++```ts+betaPause(opts?: ConnectionOpts): Promise<boolean>+```++**`Beta`**++This feature is in beta and may change in the future.++Pause a sandbox by its ID.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `opts`? | `ConnectionOpts` | connection options. |++###### Returns++`Promise`\<`boolean`\>++sandbox ID that can be used to resume the sandbox.++### connect()++```ts+connect(opts?: SandboxBetaCreateOpts): Promise<Sandbox>+```++Connect to a sandbox. If the sandbox is paused, it will be automatically resumed.+Sandbox must be either running or be paused.++With sandbox ID you can connect to the same sandbox from different places or environments (serverless functions, etc).++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `opts`? | `SandboxBetaCreateOpts` | connection options. |++###### Returns++`Promise`\<`Sandbox`\>++A running sandbox instance++###### Example++```ts+const sandbox = await Sandbox.create()+await sandbox.betaPause()++// Connect to the same sandbox.+const sameSandbox = await sandbox.connect()+```++### downloadUrl()++```ts+downloadUrl(path: string, opts?: SandboxUrlOpts): Promise<string>+```++Get the URL to download a file from the sandbox.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `path` | `string` | path to the file in the sandbox. |+| `opts`? | `SandboxUrlOpts` | download url options. |++###### Returns++`Promise`\<`string`\>++URL for downloading file.++### getHost()++```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++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `port` | `number` | number of the port in the sandbox. |++###### Returns++`string`++host address of the sandbox port.++###### Example++```ts+const sandbox = await Sandbox.create()+// Start an HTTP server+await sandbox.commands.exec('python3 -m http.server 3000')+// Get the hostname of the HTTP server+const serverURL = sandbox.getHost(3000)+```++### getInfo()++```ts+getInfo(opts?: Pick<SandboxOpts, "requestTimeoutMs">): Promise<SandboxInfo>+```++Get sandbox information like sandbox ID, template, metadata, started at/end at date.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `opts`? | `Pick`\<`SandboxOpts`, `"requestTimeoutMs"`\> | connection options. |++###### Returns++`Promise`\<`SandboxInfo`\>++information about the sandbox++### getMetrics()++```ts+getMetrics(opts?: SandboxMetricsOpts): Promise<SandboxMetrics[]>+```++Get the metrics of the sandbox.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `opts`? | `SandboxMetricsOpts` | connection options. |++###### Returns++`Promise`\<`SandboxMetrics`[]\>++List of sandbox metrics containing CPU, memory and disk usage information.++### isRunning()++```ts+isRunning(opts?: Pick<ConnectionOpts, "requestTimeoutMs">): Promise<boolean>+```++Check if the sandbox is running.++###### Parameters++| Parameter | Type |+| ------ | ------ |+| `opts`? | `Pick`\<`ConnectionOpts`, `"requestTimeoutMs"`\> |++###### Returns++`Promise`\<`boolean`\>++`true` if the sandbox is running, `false` otherwise.++###### Example++```ts+const sandbox = await Sandbox.create()+await sandbox.isRunning() // Returns true++await sandbox.kill()+await sandbox.isRunning() // Returns false+```++### kill()++```ts+kill(opts?: Pick<SandboxOpts, "requestTimeoutMs">): Promise<void>+```++Kill the sandbox.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `opts`? | `Pick`\<`SandboxOpts`, `"requestTimeoutMs"`\> | connection options. |++###### Returns++`Promise`\<`void`\>++### setTimeout()++```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.++This method can extend or reduce the sandbox timeout set when creating the sandbox or from the last call to `.setTimeout`.+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.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `timeoutMs` | `number` | timeout in **milliseconds**. |+| `opts`? | `Pick`\<`SandboxOpts`, `"requestTimeoutMs"`\> | connection options. |++###### Returns++`Promise`\<`void`\>++### uploadUrl()++```ts+uploadUrl(path?: string, opts?: SandboxUrlOpts): Promise<string>+```++Get the URL to upload a file to the sandbox.++You have to send a POST request to this URL with the file as multipart/form-data.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `path`? | `string` | path to the file in the sandbox. |+| `opts`? | `SandboxUrlOpts` | download url options. |++###### Returns++`Promise`\<`string`\>++URL for uploading file.++### betaCreate()++###### betaCreate(this, opts)++```ts+static betaCreate<S>(this: S, opts?: SandboxBetaCreateOpts): Promise<InstanceType<S>>+```++**`Beta`**++This feature is in beta and may change in the future.++Create a new sandbox from the default `base` sandbox template.++###### Type Parameters++| Type Parameter |+| ------ |+| `S` *extends* *typeof* `Sandbox` |++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `this` | `S` | - |+| `opts`? | `SandboxBetaCreateOpts` | connection options. |++###### Returns++`Promise`\<`InstanceType`\<`S`\>\>++sandbox instance for the new sandbox.++###### Example++```ts+const sandbox = await Sandbox.betaCreate()+```++###### Constructs++Sandbox++###### betaCreate(this, template, opts)++```ts+static betaCreate<S>(+ this: S,+ template: string,+opts?: SandboxBetaCreateOpts): Promise<InstanceType<S>>+```++**`Beta`**++This feature is in beta and may change in the future.++Create a new sandbox from the specified sandbox template.++###### Type Parameters++| Type Parameter |+| ------ |+| `S` *extends* *typeof* `Sandbox` |++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `this` | `S` | - |+| `template` | `string` | sandbox template name or ID. |+| `opts`? | `SandboxBetaCreateOpts` | connection options. |++###### Returns++`Promise`\<`InstanceType`\<`S`\>\>++sandbox instance for the new sandbox.++###### Example++```ts+const sandbox = await Sandbox.betaCreate('<template-name-or-id>')+```++###### Constructs++Sandbox++### betaPause()++```ts+static betaPause(sandboxId: string, opts?: SandboxApiOpts): Promise<boolean>+```++Pause the sandbox specified by sandbox ID.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `sandboxId` | `string` | sandbox ID. |+| `opts`? | `SandboxApiOpts` | connection options. |++###### Returns++`Promise`\<`boolean`\>++`true` if the sandbox got paused, `false` if the sandbox was already paused.++### connect()++```ts+static connect<S>(+ this: S,+ sandboxId: string,+opts?: SandboxConnectOpts): Promise<InstanceType<S>>+```++Connect to a sandbox. If the sandbox is paused, it will be automatically resumed.+Sandbox must be either running or be paused.++With sandbox ID you can connect to the same sandbox from different places or environments (serverless functions, etc).++###### Type Parameters++| Type Parameter |+| ------ |+| `S` *extends* *typeof* `Sandbox` |++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `this` | `S` | - |+| `sandboxId` | `string` | sandbox ID. |+| `opts`? | `SandboxConnectOpts` | connection options. |++###### Returns++`Promise`\<`InstanceType`\<`S`\>\>++A running sandbox instance++###### Example++```ts+const sandbox = await Sandbox.create()+const sandboxId = sandbox.sandboxId++// Connect to the same sandbox.+const sameSandbox = await Sandbox.connect(sandboxId)+```++### create()++###### create(this, opts)++```ts+static create<S>(this: S, opts?: SandboxOpts): Promise<InstanceType<S>>+```++Create a new sandbox from the default `base` sandbox template.++###### Type Parameters++| Type Parameter |+| ------ |+| `S` *extends* *typeof* `Sandbox` |++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `this` | `S` | - |+| `opts`? | `SandboxOpts` | connection options. |++###### Returns++`Promise`\<`InstanceType`\<`S`\>\>++sandbox instance for the new sandbox.++###### Example++```ts+const sandbox = await Sandbox.create()+```++###### Constructs++Sandbox++###### create(this, template, opts)++```ts+static create<S>(+ this: S,+ template: string,+opts?: SandboxOpts): Promise<InstanceType<S>>+```++Create a new sandbox from the specified sandbox template.++###### Type Parameters++| Type Parameter |+| ------ |+| `S` *extends* *typeof* `Sandbox` |++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `this` | `S` | - |+| `template` | `string` | sandbox template name or ID. |+| `opts`? | `SandboxOpts` | connection options. |++###### Returns++`Promise`\<`InstanceType`\<`S`\>\>++sandbox instance for the new sandbox.++###### Example++```ts+const sandbox = await Sandbox.create('<template-name-or-id>')+```++###### Constructs++Sandbox++### getFullInfo()++```ts+static getFullInfo(sandboxId: string, opts?: SandboxApiOpts): Promise<object>+```++###### Parameters++| Parameter | Type |+| ------ | ------ |+| `sandboxId` | `string` |+| `opts`? | `SandboxApiOpts` |++###### Returns++`Promise`\<`object`\>++| Name | Type | Default value |+| ------ | ------ | ------ |+| `cpuCount` | `number` | res.data.cpuCount |+| `endAt` | `Date` | - |+| `envdAccessToken` | `undefined` \| `string` | res.data.envdAccessToken |+| `envdVersion` | `string` | res.data.envdVersion |+| `memoryMB` | `number` | res.data.memoryMB |+| `metadata` | `object` | - |+| `name`? | `string` | res.data.alias |+| `sandboxDomain` | `undefined` \| `string` | - |+| `sandboxId` | `string` | res.data.sandboxID |+| `startedAt` | `Date` | - |+| `state` | `"running"` \| `"paused"` | res.data.state |+| `templateId` | `string` | res.data.templateID |++### getInfo()++```ts+static getInfo(sandboxId: string, opts?: SandboxApiOpts): Promise<SandboxInfo>+```++Get sandbox information like sandbox ID, template, metadata, started at/end at date.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `sandboxId` | `string` | sandbox ID. |+| `opts`? | `SandboxApiOpts` | connection options. |++###### Returns++`Promise`\<`SandboxInfo`\>++sandbox information.++### getMetrics()++```ts+static getMetrics(sandboxId: string, opts?: SandboxMetricsOpts): Promise<SandboxMetrics[]>+```++Get the metrics of the sandbox.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `sandboxId` | `string` | sandbox ID. |+| `opts`? | `SandboxMetricsOpts` | sandbox metrics options. |++###### Returns++`Promise`\<`SandboxMetrics`[]\>++List of sandbox metrics containing CPU, memory and disk usage information.++### kill()++```ts+static kill(sandboxId: string, opts?: SandboxApiOpts): Promise<boolean>+```++Kill the sandbox specified by sandbox ID.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `sandboxId` | `string` | sandbox ID. |+| `opts`? | `SandboxApiOpts` | connection options. |++###### Returns++`Promise`\<`boolean`\>++`true` if the sandbox was found and killed, `false` otherwise.++### list()++```ts+static list(opts?: SandboxListOpts): SandboxPaginator+```++List all sandboxes.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `opts`? | `SandboxListOpts` | connection options. |++###### Returns++`SandboxPaginator`++paginator for listing sandboxes.++### setTimeout()++```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.++This method can extend or reduce the sandbox timeout set when creating the sandbox or from the last call to Sandbox.setTimeout.++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.++###### Parameters++| Parameter | Type | Description |+| ------ | ------ | ------ |+| `sandboxId` | `string` | sandbox ID. |+| `timeoutMs` | `number` | timeout in **milliseconds**. |+| `opts`? | `SandboxApiOpts` | connection options. |++###### Returns++`Promise`\<`void`\>++## Interfaces++### SandboxUrlOpts++Options for sandbox upload/download URL generation.++#### Properties++### user?++```ts+optional user: Username;+```++User that will be used to access the file.++### useSignatureExpiration?++```ts+optional useSignatureExpiration: number;+```++Use signature expiration for the URL.+Optional parameter to set the expiration time for the signature in seconds.diff --git a/packages/cli/package.json b/packages/cli/package.jsonindex 1e07bc011..2232ab98f 100644--- a/packages/cli/package.json+++ b/packages/cli/package.json@@ -1,6 +1,6 @@{"name": "@e2b/cli",- "version": "2.2.6",+ "version": "2.2.7","description": "CLI for managing e2b sandbox templates","homepage": "https://e2b.dev","license": "MIT",@@ -86,7 +86,7 @@"commander": "^11.1.0","console-table-printer": "^2.11.2","dockerfile-ast": "^0.6.1",- "e2b": "^2.0.3",+ "e2b": "^2.2.2","handlebars": "^4.7.8","inquirer": "^9.2.12","open": "^9.1.0",diff --git a/packages/js-sdk/package.json b/packages/js-sdk/package.jsonindex f47e8fedc..9140fe7bc 100644--- a/packages/js-sdk/package.json+++ b/packages/js-sdk/package.json@@ -1,6 +1,6 @@{"name": "e2b",- "version": "2.2.1",+ "version": "2.2.2","description": "E2B SDK that give agents cloud environments","homepage": "https://e2b.dev","license": "MIT",@@ -102,4 +102,4 @@"browserslist": ["defaults"]-}\ No newline at end of file+}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 602b94ef4..ca85bf152 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -118,8 +118,8 @@ importers:specifier: ^1.2.1version: 1.2.1e2b:- specifier: ^2.2.1- version: 2.2.1+ specifier: ^2.2.2+ version: 2.2.2fast-glob:specifier: ^3.3.0version: 3.3.1@@ -275,8 +275,8 @@ importers:specifier: ^0.6.1version: 0.6.1e2b:- specifier: ^2.0.3- version: 2.0.3+ specifier: ^2.2.2+ version: 2.2.2handlebars:specifier: ^4.7.8version: 4.7.8@@ -440,7 +440,7 @@ importers:version: 3.1.1(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])vitest-browser-react:specifier: ^0.1.1- version: 0.1.1(@types/[email protected])(@types/[email protected])(@vitest/[email protected]([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected](@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected]))+ version: 0.1.1(@types/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected]([email protected]))([email protected])([email protected])packages/python-sdk: {}@@ -3997,13 +3997,9 @@ packages:resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==}engines: {node: '>= 0.4'}- resolution: {integrity: sha512-YDI4LPrbq0CZPdB0EP/qK2pCB61a/a4KK94VqSKP5tLfY/kiaViZCsjNGPWEYsfjCcwQU5MFmrzhwgy/C0uO2A==}- engines: {node: '>=18'}-- resolution: {integrity: sha512-uPpK1mcSY4Bn/CKEs8nMiNMCA8Ay2DmIum7VBdV1QTCY35y3XbyAODr0Pb3yj8cGlhL/TfLlscBZ6vInyhXU+w==}- engines: {node: '>=18'}+ resolution: {integrity: sha512-LKtmoT1jCXxWZ3z7+b4w0fyJcD94sPsdORM2gZdxMr8ISjqpTUWpdNCbypZixxLoswcwIm4WvMueWlFQHiNryA==}+ engines: {node: '>=20'}resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}@@ -12283,16 +12279,7 @@ snapshots:es-errors: 1.3.0gopd: 1.2.0- dependencies:- '@bufbuild/protobuf': 2.6.2- '@connectrpc/connect': 2.0.0-rc.3(@bufbuild/[email protected])- '@connectrpc/connect-web': 2.0.0-rc.3(@bufbuild/[email protected])(@connectrpc/[email protected](@bufbuild/[email protected]))- compare-versions: 6.1.1- openapi-fetch: 0.9.8- platform: 1.3.6-dependencies:'@bufbuild/protobuf': 2.6.2'@connectrpc/connect': 2.0.0-rc.3(@bufbuild/[email protected])@@ -12605,7 +12592,7 @@ snapshots:debug: 4.4.0([email protected])enhanced-resolve: 5.18.1eslint: 8.57.1- eslint-module-utils: 2.8.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected]))([email protected])+ eslint-module-utils: 2.8.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected])eslint-plugin-import: 2.28.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])fast-glob: 3.3.2get-tsconfig: 4.7.0@@ -12617,7 +12604,7 @@ snapshots:- eslint-import-resolver-webpack- supports-color- [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected]))([email protected]):+ [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected]):dependencies:debug: 3.2.7optionalDependencies:@@ -12638,7 +12625,7 @@ snapshots:doctrine: 2.1.0eslint: 8.57.1eslint-import-resolver-node: 0.3.9- eslint-module-utils: 2.8.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected]))([email protected])+ eslint-module-utils: 2.8.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected])has: 1.0.3is-core-module: 2.13.0is-glob: 4.0.3@@ -16985,7 +16972,7 @@ snapshots:terser: 5.44.0yaml: 2.5.1- [email protected](@types/[email protected])(@types/[email protected])(@vitest/[email protected]([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected](@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])):+ [email protected](@types/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected]([email protected]))([email protected])([email protected]):dependencies:'@vitest/browser': 3.1.1([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))([email protected])react: 18.3.1