Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

New version of docs (#206)

Vasek Mlejnsky104bbf39609a
diff --git a/.eslintrc.cjs b/.eslintrc.cjs
index 49c784568..ed689ac67 100644
--- a/.eslintrc.cjs
+++ b/.eslintrc.cjs
@@ -1,52 +1,22 @@
-// to be compatible with prettier.config.cjs
-const prettierCompatRules = {
- quotes: ['error', 'single', { avoidEscape: true }],
- semi: ['error', 'never'],
- 'max-len': [
- 'error',
- {
- code: 90,
- ignoreComments: true,
- ignoreStrings: true,
- ignoreTemplateLiterals: true,
- },
- ],
-}
-
module.exports = {
env: {
node: true,
browser: true,
es6: true,
},
- extends: [
- 'eslint:recommended',
- 'plugin:@typescript-eslint/recommended',
- 'prettier', // disables eslint rules that conflict with prettier
- ],
- parser: '@typescript-eslint/parser',
+ extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
+ parser: "@typescript-eslint/parser",
parserOptions: {
- ecmaVersion: 'latest',
- sourceType: 'module',
+ ecmaVersion: "latest",
+ sourceType: "module",
},
- ignorePatterns: ['dist/', 'node_modules/', '*.gen.ts'],
- plugins: ['@typescript-eslint', 'prettier', 'unused-imports'],
+ ignorePatterns: ["dist/", "node_modules/", "*.gen.ts"],
+ plugins: ["@typescript-eslint", "unused-imports"],
rules: {
- ...prettierCompatRules,
- 'prettier/prettier': ['error'],
- '@typescript-eslint/member-ordering': 'error',
- '@typescript-eslint/ban-ts-comment': 'off', // "move fast" mode
- '@typescript-eslint/no-explicit-any': 'off', // "move fast" mode
- 'linebreak-style': ['error', 'unix'],
- 'unused-imports/no-unused-imports': 'error',
- // 'unused-imports/no-unused-vars': [
- // 'warn',
- // {
- // args: 'none',
- // argsIgnorePattern: '^_',
- // vars: 'all',
- // varsIgnorePattern: '^_',
- // },
- // ],
+ "@typescript-eslint/member-ordering": "error",
+ "@typescript-eslint/ban-ts-comment": "off", // "move fast" mode
+ "@typescript-eslint/no-explicit-any": "off", // "move fast" mode
+ "linebreak-style": ["error", "unix"],
+ "unused-imports/no-unused-imports": "error",
},
-}
+};
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 4f0a1e658..fc3aea539 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -148,7 +148,7 @@ jobs:
run: |
pnpm config set auto-install-peers true
pnpm config set exclude-links-from-lockfile true
-
+
- name: Install dependencies
run: pnpm install --frozen-lockfile
diff --git a/apps/docs/.eslintrc.json b/apps/docs/.eslintrc.json
index 4bb997f31..79007ae0f 100644
--- a/apps/docs/.eslintrc.json
+++ b/apps/docs/.eslintrc.json
@@ -5,7 +5,6 @@
{
"files": ["src/code/**/*.js"],
"rules": {
- "prettier/prettier": "off",
"@typescript-eslint/no-unused-vars": "off",
"no-useless-escape": "off"
}
diff --git a/apps/docs/package.json b/apps/docs/package.json
index f2771307a..5a79aca29 100644
--- a/apps/docs/package.json
+++ b/apps/docs/package.json
@@ -68,6 +68,7 @@
"@types/mdx": "^2.0.8",
"eslint-config-next": "13.4.19",
"knip": "^2.25.2",
- "sharp": "^0.32.0"
+ "sharp": "^0.32.0",
+ "tailwind-scrollbar": "^3.0.5"
}
}
\ No newline at end of file
diff --git a/apps/docs/prettier.config.js b/apps/docs/prettier.config.js
deleted file mode 100644
index 290a41156..000000000
--- a/apps/docs/prettier.config.js
+++ /dev/null
@@ -1,8 +0,0 @@
-// eslint-disable-next-line @typescript-eslint/no-var-requires
-const root = require('../../prettier.config.cjs')
-
-/** @type {import('prettier').Options} */
-module.exports = {
- ...root,
- plugins: ['prettier-plugin-tailwindcss'],
-}
diff --git a/apps/docs/src/app/agents/clone-repo/page.mdx b/apps/docs/src/app/agents/clone-repo/page.mdx
deleted file mode 100644
index 7cda170b2..000000000
--- a/apps/docs/src/app/agents/clone-repo/page.mdx
+++ /dev/null
@@ -1,10 +0,0 @@
-export const metadata = {
- title: 'E2B Documentation - Cloud for AI Agents Apps',
- description: 'AI Agents - Clone Repo',
-}
-
-# Clone GitHub Repository
-Every AI Playgrounds comes in with a preinstalled `git`.
-This makes it easy to clone any repository from GitHub (and even run it) and let your agent work inside repo.
-
-<CodeGroupAutoload path="agents/clone_repo" isRunnable={true} />
\ No newline at end of file
diff --git a/apps/docs/src/app/agents/deps/page.mdx b/apps/docs/src/app/agents/deps/page.mdx
deleted file mode 100644
index 97f521a8e..000000000
--- a/apps/docs/src/app/agents/deps/page.mdx
+++ /dev/null
@@ -1,14 +0,0 @@
-export const metadata = {
- title: 'E2B Documentation - Cloud for AI Agents Apps',
- description: 'AI Agents - Install Dependencies',
-}
-
-# Install Dependencies
-
-You can install dependencies, libraries, and packages right inside the AI Playgrounds using the [`process()`](/playgrounds/process) method.
-
-This is especially useful when you want to run code generated by LLM that requires additional dependencies.
-
-## Install Python packages
-
-## Install NPM packages
diff --git a/apps/docs/src/app/agents/exec/page.mdx b/apps/docs/src/app/agents/exec/page.mdx
deleted file mode 100644
index 056ee383e..000000000
--- a/apps/docs/src/app/agents/exec/page.mdx
+++ /dev/null
@@ -1,10 +0,0 @@
-export const metadata = {
- title: 'E2B Documentation - Cloud for AI Agents Apps',
- description: 'AI Agents - Execute Code',
-}
-
-# Execute Code
-AI Playgrounds are great for executing any code produced by an LLM.
-This makes it a great fit for AI agents that work with code - like GitHub Copilot, for example.
-
-<CodeGroupAutoload path="agents/code_exec" isRunnable={true} />
\ No newline at end of file
diff --git a/apps/docs/src/app/agents/shell-commands/page.mdx b/apps/docs/src/app/agents/shell-commands/page.mdx
deleted file mode 100644
index cf6946e3c..000000000
--- a/apps/docs/src/app/agents/shell-commands/page.mdx
+++ /dev/null
@@ -1,10 +0,0 @@
-export const metadata = {
- title: 'E2B Documentation - Cloud for AI Agents Apps',
- description: 'AI Agents - Run Any Shell Commands',
-}
-
-# Run Any Shell Commands
-AI Agents can run any shell commands - that means starting any processes, installing libraries, and more.
-Running a shell command is the most basic primitive that you can use to control the AI playgrounds.
-
-<CodeGroupAutoload path="agents/start_process" isRunnable={true} />
\ No newline at end of file
diff --git a/apps/docs/src/app/getting-help/page.mdx b/apps/docs/src/app/getting-help/page.mdx
index 71992e3f9..ea8893613 100644
--- a/apps/docs/src/app/getting-help/page.mdx
+++ b/apps/docs/src/app/getting-help/page.mdx
@@ -1,6 +1,6 @@
# Getting help
-If you have any questions, issues, or feature request please reach out on of the following channels: {{ className: 'lead' }}
+If you have any questions, issues, or feature requests, please reach out on of the following channels: {{ className: 'lead' }}
- Talk to us on our [Discord server](https://discord.gg/U7KEcGErtQ)
- Open an issue on [our GitHub](https://github.com/e2b-dev/e2b)
- Reach out on [Twitter / X](https://twitter.com/e2b_dev)
\ No newline at end of file
diff --git a/apps/docs/src/app/getting-started/api-key/page.mdx b/apps/docs/src/app/getting-started/api-key/page.mdx
index c911b92ff..342dfe8b0 100644
--- a/apps/docs/src/app/getting-started/api-key/page.mdx
+++ b/apps/docs/src/app/getting-started/api-key/page.mdx
@@ -4,9 +4,11 @@ import APIKey from './APIKey'
<APIKey/>
-Follow the [Basics](/playgrounds/overview) to start using the SDK.
-
## Use API key
-<CodeGroupAutoload path="api_key/api_key" isRunnable={false}/>
+To use the API key, you can:
+- **Set the API key as the `E2B_API_KEY` environment variable**
+- Or pass it directly to the `Session` constructor like this:
+ <CodeGroupAutoload path="api_key/api_key" isRunnable={false}/>
+
diff --git a/apps/docs/src/app/getting-started/basics/page.mdx b/apps/docs/src/app/getting-started/basics/page.mdx
deleted file mode 100644
index 0822c2f3b..000000000
--- a/apps/docs/src/app/getting-started/basics/page.mdx
+++ /dev/null
@@ -1,99 +0,0 @@
-export const metadata = {
- title: 'E2B Documentation - Cloud for AI Agents Apps',
- description: 'E2B SDK Usage',
-}
-
-{/* I think this stopped working work after adding Nextjs rewrites */}
-export const sections = [
- { title: 'Create Playground', id: 'create-ai-playground' },
- { title: 'Use Filesystem', id: 'filesystem' },
-]
-
-
-# Basic Usage
-Following code snippets should get you going fast with primitives in our SDK.
-{/* For more real-life scenarios head to the [Examples section](./examples/overview). {{ className: 'lead' }} */}
-
-There are two main primitives in our SDK that you use to interact with the cloud playground:
-- [Filesystem](/getting-started/basics#filesystem)
-- [Process](/getting-started/basics#process)
-
-## Create AI Playground
-
-<CodeGroupAutoload path="basics/init" isRunnable={false} />
-
-
-## Get playground URL
-Each playground is accessible from the internet via a unique URL of that playground.
-
-<CodeGroupAutoload path="basics/get_url" isRunnable={true} />
-
-### Get URL for a specific port inside playground
-Below is an example showing how to get a URL for a port 3000. If there's any server inside the playground listening on port 3000 this would be its URL.
-
-<CodeGroupAutoload path="basics/get_url_port" isRunnable={true} />
-
-## Scan open ports inside playground
-The following example continuously scan open ports inside the playground and prints new ones to the console.
-
-<CodeGroupAutoload path="basics/scan_ports" isRunnable={true} />
-
-
-## Filesystem
-
-Here are the basic operations you can do with the filesystem inside a cloud playground:
-- [List directory](/getting-started/basics#list-directory-content)
-- [Create directory](/getting-started/basics#create-directory)
-- [Write to file](/getting-started/basics#write-to-file)
-- [Read file](/getting-started/basics#read-file)
-- [Watch directory for changes](/getting-started/basics#watch-directory-for-changes)
-
-
-## List directory content
-<CodeGroupAutoload path="basics/fs_ls" isRunnable={true} />
-
-## Create directory
-
-A creation of a directory will fail if any directory on the path doesn't exist yet.
-For example, if you want to create a directory `/home/user/new_dir` and `/home/user` doesn't exist yet, you will get an error.
-
-<CodeGroupAutoload path="basics/fs_mkdir" isRunnable={false} />
-
-## Write to file
-When writing to a file that doesn't exist, it will get created.
-
-When writing to a file that already exists, it will get overwritten.
-
-When writing to a file that's in a directory that doesn't exist, you'll get an error.
-
-<CodeGroupAutoload path="basics/fs_write" isRunnable={false} />
-
-## Read file
-<CodeGroupAutoload path="basics/fs_read" isRunnable={true} />
-
-## Watch directory for changes
-<CodeGroupAutoload path="basics/fs_watch" isRunnable={false} />
-
-
-## Process
-Here are the basic operations you can do with the process inside a cloud playground:
-- [Start process](/getting-started/basics#start-process)
-- [Stop process](/getting-started/basics#stop-process)
-- [Stream stdout](/getting-started/basics#stream-stdout)
-- [Send stdin](/getting-started/basics#send-stdin)
-- [Stream stderr](/getting-started/basics#stream-stderr)
-
-## Start process
-<CodeGroupAutoload path="basics/process_start" isRunnable={true} />
-
-## Stop process
-<CodeGroupAutoload path="basics/process_stop" isRunnable={false} />
-
-## Stream stdout
-<CodeGroupAutoload path="basics/process_stream_stdout" isRunnable={false} />
-
-## Send stdin
-<CodeGroupAutoload path="basics/process_write_stdin" isRunnable={true} />
-
-## Stream stderr
-<CodeGroupAutoload path="basics/process_stream_stderr" isRunnable={false} />
diff --git a/apps/docs/src/app/getting-started/installation/page.mdx b/apps/docs/src/app/getting-started/installation/page.mdx
index 7d0a3f151..984c301ca 100644
--- a/apps/docs/src/app/getting-started/installation/page.mdx
+++ b/apps/docs/src/app/getting-started/installation/page.mdx
@@ -1,11 +1,11 @@
-export const metadata = {
- title: 'E2B Documentation - Cloud for AI Agents Apps',
- description: 'SDK Installation',
-}
+import { Libraries } from '@/components/Libraries'
# Installation
-We offer SDKs for **JavaScript**, **TypeScript**, and **Python**. The SDKs are runnable both from backend environments (e.g.: servers) and frontend environments (e.g.: webapps).
+We offer SDKs for [JavaScript / TypeScript](https://www.npmjs.com/package/@e2b/sdk), and [Python](https://pypi.org/project/e2b/).
+
+<Libraries/>
+
You can install them using the following commands:
<CodeGroup isRunnable={false}>
@@ -17,4 +17,11 @@ pip install e2b
```
</CodeGroup>
-Once installed head over to the [Basics](/getting-started/basics) section. {{ className: 'lead' }}
+
+## Next steps
+
+1. [Get your API key](/getting-started/api-key)
+1. [Follow the "Hello World" example](/guides/)
+1. [Check out the official guides](/guides/overview)
+1. [Explore the Sandbox API](/sandbox/overview)
+1. [Explore integrations with AI frameworks and LLMs](/integrations/overview)
diff --git a/apps/docs/src/app/getting-started/sdk-logging/page.mdx b/apps/docs/src/app/getting-started/sdk-logging/page.mdx
deleted file mode 100644
index b3b7fd159..000000000
--- a/apps/docs/src/app/getting-started/sdk-logging/page.mdx
+++ /dev/null
@@ -1,15 +0,0 @@
-export const metadata = {
- title: 'E2B Documentation - Cloud for AI Agents Apps',
- description: 'SDK Logging',
-}
-
-# Logging
-
-<LanguageSpecificText>
- ```js {{ language: 'js', text: "E2B package logs only warnings & errors to the console by default. Below is an example of how to fully customize the logging levels.\n\nFeel free to override the logger with your own implementation with debug, info, warn, and error methods." }}
- ```
- ```python {{ language: 'python', text: "E2B package uses the standard Python logging module You can configure the logging level, handlers and format as you would with any other Python application. \n\nBelow is an example of how to configure the logging module to log to the console." }}
- ```
-</LanguageSpecificText>
-
-<CodeGroupAutoload path="logging/e2b_logging" isRunnable={false} />
diff --git a/apps/docs/src/app/getting-started/sdk-multiple-processes/page.mdx b/apps/docs/src/app/getting-started/sdk-multiple-processes/page.mdx
deleted file mode 100644
index 57aa0d287..000000000
--- a/apps/docs/src/app/getting-started/sdk-multiple-processes/page.mdx
+++ /dev/null
@@ -1,18 +0,0 @@
-export const metadata = {
- title: 'E2B Documentation - Cloud for AI Agents Apps',
- description: 'SDK Multiple Processes',
-}
-
-# Multiple Processes
-
-The SDK supports starting multiple processes in the playground. You don't have to use any special parameters to enable this.
-
-## Background Processes
-
-If you want to start a long running process (for example a server) in the background you should use `session.process.start` to start the process but after that you should not `await` for the process to finish.
-
-After you start this background process you can continue to use the SDK.
-
-At any time you can kill the background process by calling the `kill()` method on the `Process` object and then retrieve the output of the process by accessing the `output` property of the `Process` object.
-
-<CodeGroupAutoload path="processes/background_processes" />
diff --git a/apps/docs/src/app/getting-started/sdk-timeouts/page.mdx b/apps/docs/src/app/getting-started/sdk-timeouts/page.mdx
deleted file mode 100644
index b2b6ad4c5..000000000
--- a/apps/docs/src/app/getting-started/sdk-timeouts/page.mdx
+++ /dev/null
@@ -1,20 +0,0 @@
-export const metadata = {
- title: 'E2B Documentation - Cloud for AI Agents Apps',
- description: 'SDK Timeouts',
-}
-
-# Timeouts
-
-The SDK has a number of timeouts that can be configured to control how long the SDK will wait for a response from the E2B API. **The default is 60 seconds.**
-
-### Timeout creating session
-
-<CodeGroupAutoload path="timeout/timeout_session" />
-
-
-### Timeout process
-<CodeGroupAutoload path="timeout/timeout_process" />
-
-### Timeout filesystem operations
-
-<CodeGroupAutoload path="timeout/timeout_filesystem" />
\ No newline at end of file
diff --git a/apps/docs/src/app/not-found.tsx b/apps/docs/src/app/not-found.tsx
index 0aaab524e..d7f588626 100644
--- a/apps/docs/src/app/not-found.tsx
+++ b/apps/docs/src/app/not-found.tsx
@@ -15,7 +15,7 @@ export default function NotFound() {
</p>
<Button
href="/"
- arrow="right"
+ arrow="left"
className="mt-8"
>
Back to docs
diff --git a/apps/docs/src/app/page.mdx b/apps/docs/src/app/page.mdx
index 5762d8a4b..94846877b 100644
--- a/apps/docs/src/app/page.mdx
+++ b/apps/docs/src/app/page.mdx
@@ -5,13 +5,8 @@ import { Button } from '@/components/Button'
import { ButtonLoginToken } from '@/components/ButtonLoginToken'
import { useSignIn } from '@/utils/useSignIn'
-{/* // export const metadata = {
-// title: 'E2B Documentation - Sandbox Runtime for LLMs',
-// description:
-// 'Sandboxed cloud environments for AI agents & apps with a single line of code',
-// } */}
-{/* <HeroPattern /> */}
+<HeroPattern />
# Runtime Sandbox for Large Language Models
@@ -82,7 +77,7 @@ session.close()
### 🎉 Build your AI app
-Now you can let your AI app control the sandbox by using our [Sandbox API](/playgrounds/overview).
+Now you can let your AI app control the sandbox by using our [Sandbox API](/sandbox/overview).
{/* - [Run any code](/agents/exec) and terminal command in a sandboxed environment
- [Start any process](/playgrounds/process) (even long-running such as a database)
diff --git a/apps/docs/src/app/playgrounds/cwd/page.mdx b/apps/docs/src/app/playgrounds/cwd/page.mdx
deleted file mode 100644
index d03a804ee..000000000
--- a/apps/docs/src/app/playgrounds/cwd/page.mdx
+++ /dev/null
@@ -1,29 +0,0 @@
-export const metadata = {
- title: 'E2B Documentation - Cloud for AI Agents Apps',
- description: 'AI Playgrounds Working Directory',
-}
-
-export const sections = [
- { title: 'Filesystem', id: 'filesystem' },
- { title: 'Process', id: 'process' },
-]
-
-# Current Working Directory
-
-### Current working directory for whole session
-
-You can set working directory either for session. If not set, it will default to home directory - `/home/user`.
-
-<CodeGroupAutoload path="cwd/session" />
-
-### Current Working Directory Filesystem
-
-All filesystem operations are relative to current working directory.
-
-<CodeGroupAutoload path="cwd/filesystem"/>
-
-### Process
-
-If you set working directory for session, all processes will inherit it. You can override it for each process.
-
-<CodeGroupAutoload path="cwd/process"/>
diff --git a/apps/docs/src/app/playgrounds/limitations/page.mdx b/apps/docs/src/app/playgrounds/limitations/page.mdx
deleted file mode 100644
index 2f21d1c19..000000000
--- a/apps/docs/src/app/playgrounds/limitations/page.mdx
+++ /dev/null
@@ -1,37 +0,0 @@
-export const metadata = {
- title: 'E2B Documentation - Cloud for AI Agents Apps',
- description: 'AI Playgrounds Limiations',
-}
-
-
-# AI Playground Limitations
-
-export const sections = [
- { title: 'Available Resources', id: 'available-resources' },
- { title: 'Customization', id: 'customization' },
-]
-
-### Available resources
-- 4 vCPU {{ className: 'lead' }}
-- 1GB RAM {{ className: 'lead' }}
-- 2.5GB storage {{ className: 'lead' }}
-
-If you need more resources, please [contact us](mailto:[email protected]) with your use case.
-
-### Customization
-We're working on completely customizable playgrounds. In the meantime,
-we currently offer playgrounds with following preinstalled binaires:
-- Nodejs
-- Bash
-- Python3
-- Java
-- Go
-- Rust
-- PHP
-- Perl
-- DotNET
-
-Each playground will have preinstalled binaries for the given runtime. So for example, the `Perl` playground will have preinstalled runtime to run `Perl` scripts, similarly `Python3` playground will have preinstalled runtime to run `Python3` scripts,
-similarly `Go` playground will have preinstalled runtime to run `Go` scripts and so on.
-
-However, you're free to install any other binaries, libraries, packagets, etc on your playground once you start it.
diff --git a/apps/docs/src/app/playgrounds/overview/page.mdx b/apps/docs/src/app/playgrounds/overview/page.mdx
deleted file mode 100644
index b0b55b860..000000000
--- a/apps/docs/src/app/playgrounds/overview/page.mdx
+++ /dev/null
@@ -1,26 +0,0 @@
-export const metadata = {
- title: 'E2B Documentation - Cloud for AI Agents Apps',
- description:
- 'Sandboxed cloud environments for AI agents & apps with a single line of code',
-}
-
-# AI Playgrounds
-
-**AI Playground is a sandboxed cloud environment for your AI agent or AI app.**
-The AI playground is like a free sandbox where your AI agent or app can safely operate with filesystem, use any tools, run code, access the internet, and more.
-You can think about the playground as a small virtual machine for your AI.
-
-Each active instance of your AI agent or app gets its own AI playground. You can create as many AI playgrounds as you want. AI playgrounds are created on-demand and are destroyed when not in use.
-
-The AI playgrounds run on E2B's cloud infrastructure. Use our [SDK](/getting-started/installation) to create and control the AI playground.
-
-{/* ## Use cases
-- Use case 1
-- Use case 2
-- Use case 3 */}
-
-## Create AI Playground
-
-Here's a quick code example showing how to create an AI Playground.
-
-<CodeGroupAutoload path="basics/init" />
diff --git a/apps/docs/src/app/playgrounds/timeouts/page.mdx b/apps/docs/src/app/playgrounds/timeouts/page.mdx
deleted file mode 100644
index 41eef1673..000000000
--- a/apps/docs/src/app/playgrounds/timeouts/page.mdx
+++ /dev/null
@@ -1,24 +0,0 @@
-export const metadata = {
- title: 'E2B Documentation - Cloud for AI Agents Apps',
- description: 'AI Playgrounds Timeouts',
-}
-
-export const sections = [
- { title: 'Timeouts', id: 'timeouts' },
-]
-
-# Timeouts
-
-The SDK has a number of timeouts that can be configured to control how long the SDK will wait for a response from the E2B API. **The default is 60 seconds.**
-
-### Timeout creating session
-
-<CodeGroupAutoload path="timeout/timeout_session" />
-
-
-### Timeout process
-<CodeGroupAutoload path="timeout/timeout_process" />
-
-### Timeout filesystem operations
-
-<CodeGroupAutoload path="timeout/timeout_filesystem" />
\ No newline at end of file
diff --git a/apps/docs/src/app/pricing/page.mdx b/apps/docs/src/app/pricing/page.mdx
index f146e49f5..b2dafe212 100644
--- a/apps/docs/src/app/pricing/page.mdx
+++ b/apps/docs/src/app/pricing/page.mdx
@@ -1,11 +1,6 @@
-export const metadata = {
- title: 'E2B Pricing & Fees',
- description: '',
-}
-
# Pricing
**E2B is currently in beta and free to use.** {{ className: 'lead' }}
-We're going to offer both free and premium tiers in the future. Pricing will be based on usage of our [cloud playgrounds](/playgrounds/overview) through the SDK.
+We're going to offer both free and premium tiers in the future. Pricing will be based on usage of our [LLM sandboxes](/sandbox/overview) through the SDK.
Our goal is to offer a free tier for hobbyists and personal projects and a premium tier for companies or projects with high usage. Similarly to for example [Supabase](https://supabase.com/pricing) or [Vercel](https://vercel.com/pricing).
diff --git a/apps/docs/src/app/sandbox/cwd/page.mdx b/apps/docs/src/app/sandbox/cwd/page.mdx
new file mode 100644
index 000000000..d1b675da8
--- /dev/null
+++ b/apps/docs/src/app/sandbox/cwd/page.mdx
@@ -0,0 +1,21 @@
+# Current Working Directory
+
+You can set working directory either for the whole session, a filesystem operation, or a new process.
+
+## Session
+
+If the current working directory for the session is not set, it will default to home directory - `/home/user`.
+
+<CodeGroupAutoload path="cwd/session" />
+
+## Filesystem
+
+All filesystem operations with relative paths are relative to the current working directory.
+
+<CodeGroupAutoload path="cwd/filesystem"/>
+
+## Process
+
+If you set working directory for session, all processes will inherit it. You can override it for each process.
+
+<CodeGroupAutoload path="cwd/process"/>
diff --git a/apps/docs/src/app/playgrounds/debugging/page.mdx b/apps/docs/src/app/sandbox/debugging/page.mdx
similarity index 100%
rename from apps/docs/src/app/playgrounds/debugging/page.mdx
rename to apps/docs/src/app/sandbox/debugging/page.mdx
diff --git a/apps/docs/src/app/playgrounds/execute/page.mdx b/apps/docs/src/app/sandbox/execute/page.mdx
similarity index 61%
rename from apps/docs/src/app/playgrounds/execute/page.mdx
rename to apps/docs/src/app/sandbox/execute/page.mdx
index 3647ab385..fde983391 100644
--- a/apps/docs/src/app/playgrounds/execute/page.mdx
+++ b/apps/docs/src/app/sandbox/execute/page.mdx
@@ -1,23 +1,18 @@
-export const metadata = {
- title: 'E2B Documentation - Cloud for AI Agents & Apps',
- description: 'AI Playgrounds Code Execution',
-}
-
# Code Execution
-You can use E2B SDK to execute code generated by your AI agent and LLM inside the AI playground - a sandboxed cloud environment. {{ className: 'lead' }}
+You can use E2B SDK to safely execute code generated byt LLM inside the sandbox. {{ className: 'lead' }}
There are 2 ways to run code with E2B SDK. {{ className: 'lead' }}
### 1. Use the `runCode`/`run_code` methods in JS and Python SDK to run the LLM-generated code {{ className: 'lead' }}
-This approach is very stragithforward and you don't need to worry about managing the playground's lifecycle or the process lifecycle.
+This approach is very stragithforward and you don't need to worry about managing the sandbox lifecycle or the process lifecycle.
<CodeGroupAutoload
path="code_exec/run_code"
isRunnable={true}
/>
-### 2. Run the LLM-generated code using the low-level [session.process](/playgrounds/process) module {{ className: 'lead' }}
+### 2. Run the LLM-generated code using the low-level [session.process](/sandbox/process) module {{ className: 'lead' }}
This approach gives you more control about the underlying session and the running process. You can for example stream stdout and stderr, or kill the process that's running the code.
diff --git a/apps/docs/src/app/playgrounds/filesystem/page.mdx b/apps/docs/src/app/sandbox/filesystem/page.mdx
similarity index 52%
rename from apps/docs/src/app/playgrounds/filesystem/page.mdx
rename to apps/docs/src/app/sandbox/filesystem/page.mdx
index 351a3707c..39014d5f6 100644
--- a/apps/docs/src/app/playgrounds/filesystem/page.mdx
+++ b/apps/docs/src/app/sandbox/filesystem/page.mdx
@@ -1,18 +1,3 @@
-export const metadata = {
- title: 'E2B Documentation - Cloud for AI Agents Apps',
- description: 'AI Playgrounds Filesystem',
-}
-
-export const sections = [
- { title: 'List directory', id: 'list-directory' },
- { title: 'Create directory', id: 'create-directory' },
- { title: 'Write to file', id: 'write-to-file' },
- { title: 'Read from file', id: 'read-file' },
- { title: 'Write bytes', id: 'write-bytes' },
- { title: 'Read bytes', id: 'read-bytes' },
- { title: 'Watch directory for changes', id: 'watch-directory-for-changes' },
-]
-
## List directory
<CodeGroupAutoload
@@ -23,7 +8,7 @@ export const sections = [
## Create directory
A creation of a directory will fail if any directory on the path doesn't exist yet.
-For example, if you want to create a directory `/home/user/new_dir` and `/home/user` doesn't exist yet, you will get an error.
+For example, if you want to create a directory `/home/user/new_dir` and `/home/user` doesn't exist yet, you'll get an error.
<CodeGroupAutoload
path="basics/fs_mkdir"
@@ -32,9 +17,9 @@ For example, if you want to create a directory `/home/user/new_dir` and `/home/u
## Write to file
-When writing to a file that doesn't exist, it will get created.
+When writing to a file that doesn't exist, the file will get created.
-When writing to a file that already exists, it will get overwritten.
+When writing to a file that already exists, the file will get overwritten.
When writing to a file that's in a directory that doesn't exist, you'll get an error.
@@ -68,5 +53,5 @@ When writing to a file that's in a directory that doesn't exist, you'll get an e
<CodeGroupAutoload
path="basics/fs_watch"
- isRunnable={false}
+ isRunnable={true}
/>
diff --git a/apps/docs/src/app/sandbox/overview/page.mdx b/apps/docs/src/app/sandbox/overview/page.mdx
new file mode 100644
index 000000000..c062fb839
--- /dev/null
+++ b/apps/docs/src/app/sandbox/overview/page.mdx
@@ -0,0 +1,25 @@
+# Overview
+
+The E2B's LLM sandboxes are isolated cloud environments for your AI apps. These LLM sandboxes are an ideal fit for building AI assistants like coding copilots, code interpreters, AI data analysts, AI browser assistant, and similar.
+
+Using the sandboxes allows for a secure way to run the unpredictable LLM-generated code and safe LLM tool usage without the potential harm to you and your users.
+
+Additionally, each running instance of your AI app can have its own separate sandbox without you worrying about any infrastructure, networking, or security.
+
+## How sandboxes work under the hood
+
+When you create a new sandbox session, we start a small VM in our cloud. This VM is running a Ubuntu OS and itt takes about 400-600ms to start it.
+
+Inside this sanbdox, your AI app can run any code, start any program program, access the internet to download or upload data, use the filesystem, start a web server, and more.
+
+To start and control the LLM sandbox, use the [E2B SDK](/getting-started/installation) for Python or JavaScript.
+
+<CodeGroupAutoload
+ title="Starting LLM Sandbox"
+ path="basics/init"
+/>
+
+{/*
+## Next steps
+
+TODO */}
\ No newline at end of file
diff --git a/apps/docs/src/app/playgrounds/process/page.mdx b/apps/docs/src/app/sandbox/process/page.mdx
similarity index 71%
rename from apps/docs/src/app/playgrounds/process/page.mdx
rename to apps/docs/src/app/sandbox/process/page.mdx
index d1cc9aaa2..7f4a4028e 100644
--- a/apps/docs/src/app/playgrounds/process/page.mdx
+++ b/apps/docs/src/app/sandbox/process/page.mdx
@@ -1,21 +1,6 @@
-export const metadata = {
- title: 'E2B Documentation - Cloud for AI Agents & Apps',
- description: 'AI Playgrounds Running Processes',
-}
-
-export const sections = [
- {title: 'Start process', id: 'start-process'},
- {title: 'Stop process', id: 'stop-process'},
- {title: 'Stream stdout', id: 'stream-stdout'},
- {title: 'Stream stderr', id: 'stream-stderr'},
- {title: 'On process exit', id: 'on-process-exit'},
- {title: 'Send stdin', id: 'send-stdin'},
- {title: 'Set environment variables', id: 'set-environment-variables'},
-]
-
-## Process
-
-Here are the basic operations you can do with the process inside a cloud playground:
+# Starting process inside sandbox
+
+Here are the basic operations you can do with the process inside a LLM sandbox:
- [Start process](/playgrounds/process#start-process)
- [Stop process](/playgrounds/process#stop-process)
diff --git a/apps/docs/src/app/sandbox/resources/page.mdx b/apps/docs/src/app/sandbox/resources/page.mdx
new file mode 100644
index 000000000..ee7601b17
--- /dev/null
+++ b/apps/docs/src/app/sandbox/resources/page.mdx
@@ -0,0 +1,8 @@
+# Sandbox Resources
+
+### Available resources
+- 4 vCPU {{ className: 'lead' }}
+- 1GB RAM {{ className: 'lead' }}
+- 2.5GB storage {{ className: 'lead' }}
+
+If you need more resources, please [contact us](mailto:[email protected]) with your use case.
diff --git a/apps/docs/src/app/sandbox/timeouts/page.mdx b/apps/docs/src/app/sandbox/timeouts/page.mdx
new file mode 100644
index 000000000..5975b0c30
--- /dev/null
+++ b/apps/docs/src/app/sandbox/timeouts/page.mdx
@@ -0,0 +1,12 @@
+# Timeouts
+
+The SDK has a number of timeouts that can be configured to control how long the SDK will wait for a response from the E2B servers. **The default is 60 seconds.**
+
+## Timeout creating session
+<CodeGroupAutoload path="timeout/timeout_session" />
+
+## Timeout process
+<CodeGroupAutoload path="timeout/timeout_process" />
+
+## Timeout filesystem operations
+<CodeGroupAutoload path="timeout/timeout_filesystem" />
\ No newline at end of file
diff --git a/apps/docs/src/app/sandbox/url/page.mdx b/apps/docs/src/app/sandbox/url/page.mdx
new file mode 100644
index 000000000..f1923296f
--- /dev/null
+++ b/apps/docs/src/app/sandbox/url/page.mdx
@@ -0,0 +1,4 @@
+# Sandbox URL
+Each sandbox is accessible from the internet via a unique URL of that sandbox.
+
+<CodeGroupAutoload path="basics/get_url" isRunnable={true} />
\ No newline at end of file
diff --git a/apps/docs/src/code/js/agents/code_exec.js b/apps/docs/src/code/js/agents/code_exec.js
index 49916661f..c6779c738 100644
--- a/apps/docs/src/code/js/agents/code_exec.js
+++ b/apps/docs/src/code/js/agents/code_exec.js
@@ -5,7 +5,6 @@ const session = await Session.create({
// Select the right runtime
// 'Node', 'Bash', 'Python3', 'Java', 'Go', 'Rust', 'PHP', 'Perl', 'DotNET'
id: 'Nodejs',
- apiKey: process.env.E2B_API_KEY,
})
// 2. Save the JavaScript code to a file inside the playground
diff --git a/apps/docs/src/code/js/api_key/api_key.js b/apps/docs/src/code/js/api_key/api_key.js
index a0c5d6269..c4e2295a0 100644
--- a/apps/docs/src/code/js/api_key/api_key.js
+++ b/apps/docs/src/code/js/api_key/api_key.js
@@ -1,14 +1,7 @@
import { Session } from '@e2b/sdk'
-// You can pass an API key explicitly
const explicitAPIKey = await Session.create({
id: 'Nodejs',
- apiKey: process.env.E2B_API_KEY,
+ apiKey: 'YOUR_API_KEY',
})
await explicitAPIKey.close()
-
-// If you don't pass an API key, the SDK will look for it in the E2B_API_KEY environment variable
-const APIKeyFromEnvVariable = await Session.create({
- id: 'Nodejs',
-})
-await APIKeyFromEnvVariable.close()
diff --git a/apps/docs/src/code/js/basics/fs_ls.js b/apps/docs/src/code/js/basics/fs_ls.js
index c10e9b55c..001c039be 100644
--- a/apps/docs/src/code/js/basics/fs_ls.js
+++ b/apps/docs/src/code/js/basics/fs_ls.js
@@ -2,7 +2,6 @@ import { Session } from '@e2b/sdk'
const session = await Session.create({
id: 'Nodejs',
- apiKey: process.env.E2B_API_KEY,
})
const dirContent = await session.filesystem.list('/') // $HighlightLine
diff --git a/apps/docs/src/code/js/basics/fs_mkdir.js b/apps/docs/src/code/js/basics/fs_mkdir.js
index e6018da8a..cfaed52a0 100644
--- a/apps/docs/src/code/js/basics/fs_mkdir.js
+++ b/apps/docs/src/code/js/basics/fs_mkdir.js
@@ -1,9 +1,6 @@
import { Session } from '@e2b/sdk'
-const session = await Session.create({
- id: 'Nodejs',
- apiKey: process.env.E2B_API_KEY,
-})
+const session = await Session.create({ id: 'Nodejs' })
// `filesystem.make_dir()` will fail if any directory in the path doesn't exist
// Create a new directory '/dir'
diff --git a/apps/docs/src/code/js/basics/fs_read.js b/apps/docs/src/code/js/basics/fs_read.js
index 6d108b754..893d405ef 100644
--- a/apps/docs/src/code/js/basics/fs_read.js
+++ b/apps/docs/src/code/js/basics/fs_read.js
@@ -1,9 +1,6 @@
import { Session } from '@e2b/sdk'
-const session = await Session.create({
- id: 'Nodejs',
- apiKey: process.env.E2B_API_KEY,
-})
+const session = await Session.create({ id: 'Nodejs' })
const fileContent = await session.filesystem.read('/etc/hosts') // $HighlightLine
console.log(fileContent)
diff --git a/apps/docs/src/code/js/basics/fs_read_bytes.js b/apps/docs/src/code/js/basics/fs_read_bytes.js
index 82836dd07..0a3886029 100644
--- a/apps/docs/src/code/js/basics/fs_read_bytes.js
+++ b/apps/docs/src/code/js/basics/fs_read_bytes.js
@@ -1,10 +1,7 @@
import fs from 'fs'
import { Session } from '@e2b/sdk'
-const session = await Session.create({
- id: 'Nodejs',
- apiKey: process.env.E2B_API_KEY,
-})
+const session = await Session.create({ id: 'Nodejs' })
// File bytes will read file's content as bytes
// `fileBytes` as a Uint8Array
diff --git a/apps/docs/src/code/js/basics/fs_watch.js b/apps/docs/src/code/js/basics/fs_watch.js
index 500326b5c..8bd61f51e 100644
--- a/apps/docs/src/code/js/basics/fs_watch.js
+++ b/apps/docs/src/code/js/basics/fs_watch.js
@@ -1,15 +1,12 @@
import { Session } from '@e2b/sdk'
-const session = await Session.create({
- id: 'Nodejs',
- apiKey: process.env.E2B_API_KEY,
-})
+const session = await Session.create({ id: 'Nodejs' })
// Start filesystem watcher for the /home directory
const watcher = session.filesystem.watchDir('/home') // $HighlightLine
-watcher.addEventListener(event => {
- console.log('Filesystem event', event)
-})
+watcher.addEventListener(event => { // $HighlightLine
+ console.log('Filesystem event', event) // $HighlightLine
+}) // $HighlightLine
await watcher.start() // $HighlightLine
// Create files in the /home directory inside the playground
diff --git a/apps/docs/src/code/js/basics/fs_write.js b/apps/docs/src/code/js/basics/fs_write.js
index 7500e97bb..d650f0e50 100644
--- a/apps/docs/src/code/js/basics/fs_write.js
+++ b/apps/docs/src/code/js/basics/fs_write.js
@@ -1,9 +1,6 @@
import { Session } from '@e2b/sdk'
-const session = await Session.create({
- id: 'Nodejs',
- apiKey: process.env.E2B_API_KEY,
-})
+const session = await Session.create({ id: 'Nodejs' })
// `filesystem.write()` will:
// - create the file if it doesn't exist
diff --git a/apps/docs/src/code/js/basics/fs_write_bytes.js b/apps/docs/src/code/js/basics/fs_write_bytes.js
index 542202556..151e49971 100644
--- a/apps/docs/src/code/js/basics/fs_write_bytes.js
+++ b/apps/docs/src/code/js/basics/fs_write_bytes.js
@@ -1,9 +1,6 @@
import { Session } from '@e2b/sdk'
-const session = await Session.create({
- id: 'Nodejs',
- apiKey: process.env.E2B_API_KEY,
-})
+const session = await Session.create({ id: 'Nodejs' })
// Let's convert string to bytes for testing purposes
const encoder = new TextEncoder('utf-8')
diff --git a/apps/docs/src/code/js/basics/get_url.js b/apps/docs/src/code/js/basics/get_url.js
index 8bf54bab4..32acdf4f0 100644
--- a/apps/docs/src/code/js/basics/get_url.js
+++ b/apps/docs/src/code/js/basics/get_url.js
@@ -1,9 +1,6 @@
import { Session } from '@e2b/sdk'
-const session = await Session.create({
- id: 'Nodejs',
- apiKey: process.env.E2B_API_KEY,
-})
+const session = await Session.create({ id: 'Nodejs' })
const url = session.getHostname() // $HighlightLine
console.log('https://' + url)
diff --git a/apps/docs/src/code/js/basics/get_url_port.js b/apps/docs/src/code/js/basics/get_url_port.js
index ace906dee..b79e66562 100644
--- a/apps/docs/src/code/js/basics/get_url_port.js
+++ b/apps/docs/src/code/js/basics/get_url_port.js
@@ -1,9 +1,6 @@
import { Session } from '@e2b/sdk'
-const session = await Session.create({
- id: 'Nodejs',
- apiKey: process.env.E2B_API_KEY,
-})
+const session = await Session.create({ id: 'Nodejs' })
const url = session.getHostname(3000) // $HighlightLine
console.log('https://' + url)
diff --git a/apps/docs/src/code/js/basics/init.js b/apps/docs/src/code/js/basics/init.js
index e09965ebc..de70efbb6 100644
--- a/apps/docs/src/code/js/basics/init.js
+++ b/apps/docs/src/code/js/basics/init.js
@@ -1,9 +1,7 @@
import { Session } from '@e2b/sdk'
const session = await Session.create({
- // We're working on custom environments
id: 'Nodejs', // or 'Bash', 'Python3', 'Java', 'Go', 'Rust', 'PHP', 'Perl', 'DotNET'
- apiKey: process.env.E2B_API_KEY,
})
await session.close()
diff --git a/apps/docs/src/code/js/basics/process_exit.js b/apps/docs/src/code/js/basics/process_exit.js
index d35988dd8..20215d199 100644
--- a/apps/docs/src/code/js/basics/process_exit.js
+++ b/apps/docs/src/code/js/basics/process_exit.js
@@ -2,7 +2,6 @@ import { Session } from '@e2b/sdk'
const session = await Session.create({
id: 'Nodejs',
- apiKey: process.env.E2B_API_KEY,
onExit: () => console.log('[session]', 'process ended'), // $HighlightLine
})
diff --git a/apps/docs/src/code/js/basics/process_start.js b/apps/docs/src/code/js/basics/process_start.js
index 02d35e096..a453912e4 100644
--- a/apps/docs/src/code/js/basics/process_start.js
+++ b/apps/docs/src/code/js/basics/process_start.js
@@ -1,13 +1,9 @@
import { Session } from '@e2b/sdk'
-const session = await Session.create({
- id: 'Nodejs',
- apiKey: process.env.E2B_API_KEY,
-})
+const session = await Session.create({ id: 'Nodejs' })
const npmInit = await session.process.start({
- // $HighlightLine
- cmd: 'npm init -y',
+ cmd: 'npm init -y', // $HighlightLine
})
await npmInit.wait()
diff --git a/apps/docs/src/code/js/basics/process_stop.js b/apps/docs/src/code/js/basics/process_stop.js
index 22538dc87..b2b4309aa 100644
--- a/apps/docs/src/code/js/basics/process_stop.js
+++ b/apps/docs/src/code/js/basics/process_stop.js
@@ -2,7 +2,6 @@ import { Session } from '@e2b/sdk'
const session = await Session.create({
id: 'Nodejs',
- apiKey: process.env.E2B_API_KEY,
})
const npmInit = await session.process.start({
diff --git a/apps/docs/src/code/js/basics/process_stream_stderr.js b/apps/docs/src/code/js/basics/process_stream_stderr.js
index e416369e6..ec48e825d 100644
--- a/apps/docs/src/code/js/basics/process_stream_stderr.js
+++ b/apps/docs/src/code/js/basics/process_stream_stderr.js
@@ -2,7 +2,6 @@ import { Session } from '@e2b/sdk'
const session = await Session.create({
id: 'Nodejs',
- apiKey: process.env.E2B_API_KEY,
})
// This command will fail and output to stderr because Golang isn't installed in the cloud playground
diff --git a/apps/docs/src/code/js/basics/process_stream_stdout.js b/apps/docs/src/code/js/basics/process_stream_stdout.js
index 9cb8cdda6..9b9a42589 100644
--- a/apps/docs/src/code/js/basics/process_stream_stdout.js
+++ b/apps/docs/src/code/js/basics/process_stream_stdout.js
@@ -2,7 +2,6 @@ import { Session } from '@e2b/sdk'
const session = await Session.create({
id: 'Nodejs',
- apiKey: process.env.E2B_API_KEY,
onStdout: output => console.log('session', output.line), // $HighlightLine
})
diff --git a/apps/docs/src/code/js/basics/process_write_stdin.js b/apps/docs/src/code/js/basics/process_write_stdin.js
index 7f35ed1c8..5300fe93d 100644
--- a/apps/docs/src/code/js/basics/process_write_stdin.js
+++ b/apps/docs/src/code/js/basics/process_write_stdin.js
@@ -1,9 +1,6 @@
import { Session } from '@e2b/sdk'
-const session = await Session.create({
- id: 'Nodejs',
- apiKey: process.env.E2B_API_KEY,
-})
+const session = await Session.create({ id: 'Nodejs' })
// This example will print back the string we send to the process using `sendStdin()`
diff --git a/apps/docs/src/code/js/basics/scan_ports.js b/apps/docs/src/code/js/basics/scan_ports.js
index 95db2912b..8879b97dd 100644
--- a/apps/docs/src/code/js/basics/scan_ports.js
+++ b/apps/docs/src/code/js/basics/scan_ports.js
@@ -22,7 +22,6 @@ function printNewPortAndURL(openPorts, session) {
const session = await Session.create({
id: 'Python3',
- apiKey: process.env.E2B_API_KEY,
onScanPorts: openPorts => printNewPortAndURL(openPorts, session), // $HighlightLine
})
diff --git a/apps/docs/src/code/js/basics/set_env_vars.js b/apps/docs/src/code/js/basics/set_env_vars.js
index 8399be298..71ab1123a 100644
--- a/apps/docs/src/code/js/basics/set_env_vars.js
+++ b/apps/docs/src/code/js/basics/set_env_vars.js
@@ -2,7 +2,6 @@ import { Session } from '@e2b/sdk'
const session = await Session.create({
id: 'Nodejs',
- apiKey: process.env.E2B_API_KEY,
envVars: { FOO: 'Hello' }, // $HighlightLine
})
diff --git a/apps/docs/src/code/js/cwd/filesystem.js b/apps/docs/src/code/js/cwd/filesystem.js
index 685c16f47..d72e50810 100644
--- a/apps/docs/src/code/js/cwd/filesystem.js
+++ b/apps/docs/src/code/js/cwd/filesystem.js
@@ -2,15 +2,13 @@ import { Session } from '@e2b/sdk'
const session = await Session.create({
id: 'Nodejs',
- apiKey: process.env.E2B_API_KEY,
cwd: '/home/user/code', // $HighlightLine
})
await session.filesystem.write('hello.txt', 'Welcome to E2B!') // $HighlightLine
const proc = await session.process.start({ cmd: 'cat /home/user/code/hello.txt' })
await proc.wait()
-const out = proc.output.stdout
-console.log(out)
+console.log(proc.output.stdout)
// output: "Welcome to E2B!"
await session.filesystem.write('../hello.txt', 'We hope you have a great day!') // $HighlightLine
diff --git a/apps/docs/src/code/js/cwd/process.js b/apps/docs/src/code/js/cwd/process.js
index e284ef7bd..daf60e997 100644
--- a/apps/docs/src/code/js/cwd/process.js
+++ b/apps/docs/src/code/js/cwd/process.js
@@ -2,7 +2,6 @@ import { Session } from '@e2b/sdk'
const session = await Session.create({
id: 'Nodejs',
- apiKey: process.env.E2B_API_KEY,
cwd: '/code', // $HighlightLine
})
diff --git a/apps/docs/src/code/js/cwd/session.js b/apps/docs/src/code/js/cwd/session.js
index ca0628322..1b61b14d5 100644
--- a/apps/docs/src/code/js/cwd/session.js
+++ b/apps/docs/src/code/js/cwd/session.js
@@ -2,7 +2,6 @@ import { Session } from '@e2b/sdk'
const session = await Session.create({
id: 'Nodejs',
- apiKey: process.env.E2B_API_KEY,
cwd: '/code', // $HighlightLine
})
diff --git a/apps/docs/src/code/js/timeout/timeout_filesystem.js b/apps/docs/src/code/js/timeout/timeout_filesystem.js
index f0b6269ab..0bdc21a4a 100644
--- a/apps/docs/src/code/js/timeout/timeout_filesystem.js
+++ b/apps/docs/src/code/js/timeout/timeout_filesystem.js
@@ -1,17 +1,16 @@
import { Session } from '@e2b/sdk'
-const session = await Session.create({
- id: 'Nodejs',
- apiKey: process.env.E2B_API_KEY,
-})
+const session = await Session.create({ id: 'Nodejs' })
-// Timeout for the write operation
+// Timeout 3s for the write operation
await session.filesystem.write('hello.txt', 'Hello World!', { timeout: 3000 }) // $HighlightLine
-// Timeout for the list operation
+// Timeout 3s for the list operation
const files = await session.filesystem.list('.', { timeout: 3000 }) // $HighlightLine
+console.log(files)
-// Timeout for the read operation
+// Timeout 3s for the read operation
const content = await session.filesystem.read('hello.txt', { timeout: 3000 }) // $HighlightLine
+console.log(content)
await session.close()
diff --git a/apps/docs/src/code/js/timeout/timeout_process.js b/apps/docs/src/code/js/timeout/timeout_process.js
index efb77bd45..341646956 100644
--- a/apps/docs/src/code/js/timeout/timeout_process.js
+++ b/apps/docs/src/code/js/timeout/timeout_process.js
@@ -1,11 +1,8 @@
import { Session } from '@e2b/sdk'
-const session = await Session.create({
- id: 'Nodejs',
- apiKey: process.env.E2B_API_KEY,
-})
+const session = await Session.create({ id: 'Nodejs' })
-// Timeout for the process to start
+// Timeout 3s for the process to start
const npmInit = await session.process.start({
cmd: 'npm init -y',
timeout: 3000, // $HighlightLine
diff --git a/apps/docs/src/code/js/timeout/timeout_session.js b/apps/docs/src/code/js/timeout/timeout_session.js
index 4cdbfe726..03c6d359a 100644
--- a/apps/docs/src/code/js/timeout/timeout_session.js
+++ b/apps/docs/src/code/js/timeout/timeout_session.js
@@ -1,9 +1,8 @@
import { Session } from '@e2b/sdk'
-// Timeout for the session to open
+// Timeout 3s for the session to open
const session = await Session.create({
id: 'Nodejs',
- apiKey: process.env.E2B_API_KEY,
timeout: 3000, // $HighlightLine
})
diff --git a/apps/docs/src/code/python/agents/code_exec.py b/apps/docs/src/code/python/agents/code_exec.py
index afc113fdd..db90c769a 100644
--- a/apps/docs/src/code/python/agents/code_exec.py
+++ b/apps/docs/src/code/python/agents/code_exec.py
@@ -1,45 +1,37 @@
-from os import getenv
from e2b import Session
-E2B_API_KEY = getenv("E2B_API_KEY")
-
def print_out(output):
print(output.line)
-def main():
- # 1. Start the playground session
- session = Session.create(
- # Select the right runtime
- # 'Node', 'Bash', 'Python3', 'Java', 'Go', 'Rust', 'PHP', 'Perl', 'DotNET'
- id="Nodejs",
- api_key=E2B_API_KEY,
- )
-
- # 2. Save the JavaScript code to a file inside the playground
- code = """
- const fs = require('fs');
- const dirContent = fs.readdirSync('/');
- dirContent.forEach((item) => {
- console.log('Root dir item inside playground:', item);
- });
- """
- session.filesystem.write('/code/index.js', code)
-
-
- # 3. Start the execution of the JavaScript file we saved
- proc = session.process.start( # $HighlightLine
- cmd="node /code/index.js", # $HighlightLine
- # 4. Stream stdout, stderr
- on_stdout=print_out, # $HighlightLine
- on_stderr=print_out, # $HighlightLine
- ) # $HighlightLine
-
- # 4. Wait for the process to finish
- proc.wait()
-
- # 5. Or you can access output after the process has finished
- output = proc.output
-
- session.close()
-
-main()
\ No newline at end of file
+# 1. Start the playground session
+session = Session.create(
+ # Select the right runtime
+ # 'Node', 'Bash', 'Python3', 'Java', 'Go', 'Rust', 'PHP', 'Perl', 'DotNET'
+ id="Nodejs",
+)
+
+# 2. Save the JavaScript code to a file inside the playground
+code = """
+ const fs = require('fs');
+ const dirContent = fs.readdirSync('/');
+ dirContent.forEach((item) => {
+ console.log('Root dir item inside playground:', item);
+ });
+"""
+session.filesystem.write('/code/index.js', code)
+
+# 3. Start the execution of the JavaScript file we saved
+proc = session.process.start( # $HighlightLine
+ cmd="node /code/index.js", # $HighlightLine
+ # 4. Stream stdout, stderr
+ on_stdout=print_out, # $HighlightLine
+ on_stderr=print_out, # $HighlightLine
+) # $HighlightLine
+
+# 4. Wait for the process to finish
+proc.wait()
+
+# 5. Or you can access output after the process has finished
+output = proc.output
+
+session.close()
\ No newline at end of file
diff --git a/apps/docs/src/code/python/api_key/api_key.py b/apps/docs/src/code/python/api_key/api_key.py
index 663a934a7..ec558e1a7 100644
--- a/apps/docs/src/code/python/api_key/api_key.py
+++ b/apps/docs/src/code/python/api_key/api_key.py
@@ -1,18 +1,6 @@
-from os import getenv
-
from e2b import Session
-E2B_API_KEY = getenv("E2B_API_KEY")
-
-
def main():
- # You can pass an API key explicitly
- explicit_api_key = Session.create(id="Nodejs", api_key=E2B_API_KEY)
+ explicit_api_key = Session(id="Nodejs", api_key="YOUR_API_KEY")
explicit_api_key.close()
-
- # If you don't pass an API key, the SDK will look for it in the E2B_API_KEY environment variable
- api_key_from_env_variable = Session.create(id="Nodejs")
- api_key_from_env_variable.close()
-
-
main()
diff --git a/apps/docs/src/code/python/basics/fs_ls.py b/apps/docs/src/code/python/basics/fs_ls.py
index f0bbebeca..b8b2583ea 100644
--- a/apps/docs/src/code/python/basics/fs_ls.py
+++ b/apps/docs/src/code/python/basics/fs_ls.py
@@ -1,16 +1,10 @@
-from os import getenv
from e2b import Session
-E2B_API_KEY = getenv("E2B_API_KEY")
+session = Session.create(id="Nodejs")
-def main():
- session = Session.create(id="Nodejs", api_key=E2B_API_KEY)
+# List the root directory
+content = session.filesystem.list("/") # $HighlightLine
+for item in content:
+ print(f"Is '{item.name}' directory?", item.is_dir)
- # List the root directory
- content = session.filesystem.list("/") # $HighlightLine
- for item in content:
- print(item.name, "Is directory?", item.is_dir)
-
- session.close()
-
-main()
+session.close()
diff --git a/apps/docs/src/code/python/basics/fs_mkdir.py b/apps/docs/src/code/python/basics/fs_mkdir.py
index 2e02b53c4..4527be58a 100644
--- a/apps/docs/src/code/python/basics/fs_mkdir.py
+++ b/apps/docs/src/code/python/basics/fs_mkdir.py
@@ -1,16 +1,10 @@
-from os import getenv
from e2b import Session
-E2B_API_KEY = getenv("E2B_API_KEY")
+session = Session.create(id="Nodejs")
-def main():
- session = Session.create(id="Nodejs", api_key=E2B_API_KEY)
+# `filesystem.make_dir()` will fail if any directory in the path doesn't exist
- # `filesystem.make_dir()` will fail if any directory in the path doesn't exist
+# Create a new directory '/dir'
+session.filesystem.make_dir("/dir") # $HighlightLine
- # Create a new directory '/dir'
- session.filesystem.make_dir("/dir") # $HighlightLine
-
- session.close()
-
-main()
+session.close()
\ No newline at end of file
diff --git a/apps/docs/src/code/python/basics/fs_read.py b/apps/docs/src/code/python/basics/fs_read.py
index 289737e22..8514f3182 100644
--- a/apps/docs/src/code/python/basics/fs_read.py
+++ b/apps/docs/src/code/python/basics/fs_read.py
@@ -1,18 +1,13 @@
from os import getenv
from e2b import Session
-E2B_API_KEY = getenv("E2B_API_KEY")
+session = Session.create(id="Nodejs")
-def main():
- session = Session.create(id="Nodejs", api_key=E2B_API_KEY)
+# Read the '/etc/hosts' file
+file_content = session.filesystem.read('/etc/hosts') # $HighlightLine
- # Read the '/etc/hosts' file
- file_content = session.filesystem.read('/etc/hosts') # $HighlightLine
+# Prints something like:
+# 127.0.0.1 localhost
+print(file_content)
- # Prints something like:
- # 127.0.0.1 localhost
- print(file_content)
-
- session.close()
-
-main()
+session.close()
diff --git a/apps/docs/src/code/python/basics/fs_read_bytes.py b/apps/docs/src/code/python/basics/fs_read_bytes.py
index a128ed971..18304c823 100644
--- a/apps/docs/src/code/python/basics/fs_read_bytes.py
+++ b/apps/docs/src/code/python/basics/fs_read_bytes.py
@@ -1,23 +1,17 @@
-from os import getenv
from e2b import Session
-E2B_API_KEY = getenv("E2B_API_KEY")
+session = Session.create(id="Nodejs")
-def main():
- session = Session.create(id="Nodejs", api_key=E2B_API_KEY)
+# File bytes will read file's content as bytes
+# `file_bytes` as a bytearray
+file_bytes = session.filesystem.read_bytes('/etc/hosts') # $HighlightLine
- # File bytes will read file's content as bytes
- # `file_bytes` as a bytearray
- file_bytes = session.filesystem.read_bytes('/etc/hosts') # $HighlightLine
+# The output will look similar to this:
+# b'127.0.0.1\tlocalhost\n::1\tlocalhost ip6-localhost ip6-loopback\nfe00::0\tip6-localnet\nff00::0\tip6-mcastprefix\nff02::1\tip6-allnodes\nff02::2\tip6-allrouters\n172.17.0.17\t77c7a543226b\n'
+print(file_bytes)
- # The output will look similar to this:
- # b'127.0.0.1\tlocalhost\n::1\tlocalhost ip6-localhost ip6-loopback\nfe00::0\tip6-localnet\nff00::0\tip6-mcastprefix\nff02::1\tip6-allnodes\nff02::2\tip6-allrouters\n172.17.0.17\t77c7a543226b\n'
- print(file_bytes)
+# We can save those bytes to a file locally like this:
+with open('./hosts.txt', 'wb') as f:
+ f.write(file_bytes)
- # We can save those bytes to a file locally like this:
- with open('./hosts.txt', 'wb') as f:
- f.write(file_bytes)
-
- session.close()
-
-main()
+session.close()
diff --git a/apps/docs/src/code/python/basics/fs_watch.py b/apps/docs/src/code/python/basics/fs_watch.py
index 9ba0d7f30..10abfdd29 100644
--- a/apps/docs/src/code/python/basics/fs_watch.py
+++ b/apps/docs/src/code/python/basics/fs_watch.py
@@ -1,30 +1,24 @@
import time
-from os import getenv
from e2b import Session
-E2B_API_KEY = getenv("E2B_API_KEY")
-
watcher = None
def create_watcher(session): # $HighlightLine
- # Start filesystem watcher for the /home directory # $HighlightLine
+ # Start filesystem watcher for the /home directory
watcher = session.filesystem.watch_dir("/home") # $HighlightLine
watcher.add_event_listener(lambda event: print(event)) # $HighlightLine
watcher.start() # $HighlightLine
-def main():
- session = Session.create(id="Nodejs", api_key=E2B_API_KEY)
-
- create_watcher(session) # $HighlightLine
+session = Session.create(id="Nodejs")
- # Create files in the /home directory inside the playground
- # We'll receive notifications for these events through the watcher we created above.
- for i in range(10):
- # `filesystem.write()` will trigger two events:
- # 1. 'Create' when the file is created
- # 2. 'Write' when the file is written to
- session.filesystem.write(f"/home/file{i}.txt", f"Hello World {i}!")
- time.sleep(1)
+create_watcher(session) # $HighlightLine
- session.close()
+# Create files in the /home directory inside the playground
+# We'll receive notifications for these events through the watcher we created above.
+for i in range(10):
+ # `filesystem.write()` will trigger two events:
+ # 1. 'Create' when the file is created
+ # 2. 'Write' when the file is written to
+ session.filesystem.write(f"/home/file{i}.txt", f"Hello World {i}!")
+ time.sleep(1)
-main()
+session.close()
\ No newline at end of file
diff --git a/apps/docs/src/code/python/basics/fs_write.py b/apps/docs/src/code/python/basics/fs_write.py
index 13827cbd2..2f42f017e 100644
--- a/apps/docs/src/code/python/basics/fs_write.py
+++ b/apps/docs/src/code/python/basics/fs_write.py
@@ -1,22 +1,16 @@
-from os import getenv
from e2b import Session
-E2B_API_KEY = getenv("E2B_API_KEY")
+session = Session.create(id="Nodejs")
-def main():
- session = Session.create(id="Nodejs", api_key=E2B_API_KEY)
+# `filesystem.write()` will:
+# - create the file if it doesn't exist
+# - fail if any directory in the path doesn't exist
+# - overwrite the file if it exists
- # `filesystem.write()` will:
- # - create the file if it doesn't exist
- # - fail if any directory in the path doesn't exist
- # - overwrite the file if it exists
+# Write the content of the file '/hello.txt'
+session.filesystem.write("/hello.txt", "Hello World!") # $HighlightLine
- # Write the content of the file '/hello.txt'
- session.filesystem.write("/hello.txt", "Hello World!") # $HighlightLine
+# The following would fail because '/dir' doesn't exist
+# session.filesystem.write("/dir/hello.txt", "Hello World!")
- # The following would fail because '/dir' doesn't exist
- # session.filesystem.write("/dir/hello.txt", "Hello World!")
-
- session.close()
-
-main()
+session.close()
diff --git a/apps/docs/src/code/python/basics/fs_write_bytes.py b/apps/docs/src/code/python/basics/fs_write_bytes.py
index b75618091..e7f8261ce 100644
--- a/apps/docs/src/code/python/basics/fs_write_bytes.py
+++ b/apps/docs/src/code/python/basics/fs_write_bytes.py
@@ -1,20 +1,15 @@
from os import getenv
from e2b import Session
-E2B_API_KEY = getenv("E2B_API_KEY")
+session = Session.create(id="Nodejs")
-def main():
- session = Session.create(id="Nodejs", api_key=E2B_API_KEY)
+content_in_bytes = bytearray(b"Hello world")
- content_in_bytes = bytearray(b"Hello world")
+# `write_bytes` will write bytearray to a file inside the playground.
+session.filesystem.write_bytes('/file', content_in_bytes) # $HighlightLine
- # `write_bytes` will write bytearray to a file inside the playground.
- session.filesystem.write_bytes('/file', content_in_bytes) # $HighlightLine
+# We can read the file back to verify the content
+file_content = session.filesystem.read('/file')
+print(file_content)
- # We can read the file back to verify the content
- file_content = session.filesystem.read('/file')
- print(file_content)
-
- session.close()
-
-main()
+session.close()
diff --git a/apps/docs/src/code/python/basics/get_url.py b/apps/docs/src/code/python/basics/get_url.py
index fce26530b..63943ee0a 100644
--- a/apps/docs/src/code/python/basics/get_url.py
+++ b/apps/docs/src/code/python/basics/get_url.py
@@ -1,12 +1,6 @@
-from os import getenv
from e2b import Session
-E2B_API_KEY = getenv("E2B_API_KEY")
-
-def main():
- session = Session.create(id="Nodejs", api_key=E2B_API_KEY)
- url = session.get_hostname() # $HighlightLine
- print("https://" + url)
- session.close()
-
-main()
+session = Session.create(id="Nodejs")
+url = session.get_hostname() # $HighlightLine
+print("https://" + url)
+session.close()
diff --git a/apps/docs/src/code/python/basics/get_url_port.py b/apps/docs/src/code/python/basics/get_url_port.py
index f5ed86eb2..2e24a9229 100644
--- a/apps/docs/src/code/python/basics/get_url_port.py
+++ b/apps/docs/src/code/python/basics/get_url_port.py
@@ -1,14 +1,8 @@
-from os import getenv
from e2b import Session
-E2B_API_KEY = getenv("E2B_API_KEY")
+session = Session.create(id="Nodejs")
-def main():
- session = Session.create(id="Nodejs", api_key=E2B_API_KEY)
+url = session.get_hostname(3000) # $HighlightLine
+print("https://" + url)
- url = session.get_hostname(3000) # $HighlightLine
- print("https://" + url)
-
- session.close()
-
-main()
+session.close()
diff --git a/apps/docs/src/code/python/basics/init.py b/apps/docs/src/code/python/basics/init.py
index aadbc1055..83dc85713 100644
--- a/apps/docs/src/code/python/basics/init.py
+++ b/apps/docs/src/code/python/basics/init.py
@@ -1,13 +1,11 @@
from os import getenv
from e2b import Session
-E2B_API_KEY = getenv("E2B_API_KEY")
def main():
# `id` can also be one of:
# 'Nodejs', 'Bash', 'Python3', 'Java', 'Go', 'Rust', 'PHP', 'Perl', 'DotNET'
- # We're working on custom environments.
- session = Session.create(id="Nodejs", api_key=E2B_API_KEY)
+ session = Session(id="Nodejs")
session.close()
main()
\ No newline at end of file
diff --git a/apps/docs/src/code/python/basics/process_exit.py b/apps/docs/src/code/python/basics/process_exit.py
index 3d86023a0..c3320e847 100644
--- a/apps/docs/src/code/python/basics/process_exit.py
+++ b/apps/docs/src/code/python/basics/process_exit.py
@@ -1,26 +1,19 @@
-from os import getenv
from e2b import Session
-E2B_API_KEY = getenv("E2B_API_KEY")
+session = Session.create(
+ id="Nodejs",
+ on_exit=lambda: print("[session]", "process ended"), # $HighlightLine
+)
-def main():
- session = Session.create(
- id="Nodejs",
- api_key=E2B_API_KEY,
- on_exit=lambda: print("[session]", "process ended"), # $HighlightLine
- )
+proc = session.process.start('echo "Hello World!"')
+proc.wait()
+# output: [session] process ended
- proc = session.process.start('echo "Hello World!"')
- proc.wait()
- # output: [session] process ended
+proc_with_custom_handler = session.process.start(
+ 'echo "Hello World!"',
+ on_exit=lambda: print("[process]", "process ended"), # $HighlightLine
+)
+proc_with_custom_handler.wait()
+# output: [process] process ended
- proc_with_custom_handler = session.process.start(
- 'echo "Hello World!"',
- on_exit=lambda: print("[process]", "process ended"), # $HighlightLine
- )
- proc_with_custom_handler.wait()
- # output: [process] process ended
-
- session.close()
-
-main()
+session.close()
diff --git a/apps/docs/src/code/python/basics/process_start.py b/apps/docs/src/code/python/basics/process_start.py
index c01f79ccf..b988f2792 100644
--- a/apps/docs/src/code/python/basics/process_start.py
+++ b/apps/docs/src/code/python/basics/process_start.py
@@ -1,15 +1,9 @@
-from os import getenv
from e2b import Session
-E2B_API_KEY = getenv("E2B_API_KEY")
+session = Session.create(id="Nodejs")
-def main():
- session = Session.create(id="Nodejs", api_key=E2B_API_KEY)
+npm_init = session.process.start("npm init -y") # $HighlightLine
+npm_init.wait()
+print(npm_init.stdout)
- npm_init = session.process.start("npm init -y") # $HighlightLine
- npm_init.wait()
- print(npm_init.stdout)
-
- session.close()
-
-main()
+session.close()
\ No newline at end of file
diff --git a/apps/docs/src/code/python/basics/process_stop.py b/apps/docs/src/code/python/basics/process_stop.py
index 7cdc5ece5..102cffd4e 100644
--- a/apps/docs/src/code/python/basics/process_stop.py
+++ b/apps/docs/src/code/python/basics/process_stop.py
@@ -1,16 +1,11 @@
-from os import getenv
from e2b import Session
-E2B_API_KEY = getenv("E2B_API_KEY")
+session = Session.create(id="Nodejs")
-def main():
- session = Session.create(id="Nodejs", api_key=E2B_API_KEY)
+npm_init = session.process.start("npm init -y")
+npm_init.kill() # $HighlightLine
- npm_init = session.process.start("npm init -y")
- npm_init.kill() # $HighlightLine
- # There will be no output because we immediately kill the `npm_init` process
- print(npm_init.stdout)
+# There will be no output because we immediately kill the `npm_init` process
+print(npm_init.stdout)
- session.close()
-
-main()
+session.close()
diff --git a/apps/docs/src/code/python/basics/process_stream_stderr.py b/apps/docs/src/code/python/basics/process_stream_stderr.py
index 4eef0d142..f2f756b23 100644
--- a/apps/docs/src/code/python/basics/process_stream_stderr.py
+++ b/apps/docs/src/code/python/basics/process_stream_stderr.py
@@ -1,27 +1,20 @@
-from os import getenv
from e2b import Session
-E2B_API_KEY = getenv("E2B_API_KEY")
+session = Session.create(
+ id="Nodejs",
+ on_stderr=lambda output: print("[session]", output.line), # $HighlightLine
+)
-def main():
- session = Session.create(
- id="Nodejs",
- api_key=E2B_API_KEY,
- on_stderr=lambda output: print("[session]", output.line), # $HighlightLine
- )
+# This command will fail and output to stderr because Golang isn't installed in the cloud playground
+proc = session.process.start("go version")
+proc.wait()
+# output: [session] /bin/bash: line 1: go: command not found
- # This command will fail and output to stderr because Golang isn't installed in the cloud playground
- proc = session.process.start("go version")
- proc.wait()
- # output: [session] /bin/bash: line 1: go: command not found
+proc_with_custom_handler = session.process.start(
+ "go version",
+ on_stderr=lambda output: print("[process]", output.line), # $HighlightLine
+)
+proc_with_custom_handler.wait()
+# output: [process] /bin/bash: line 1: go: command not found
- proc_with_custom_handler = session.process.start(
- "go version",
- on_stderr=lambda output: print("[process]", output.line), # $HighlightLine
- )
- proc_with_custom_handler.wait()
- # output: [process] /bin/bash: line 1: go: command not found
-
- session.close()
-
-main()
+session.close()
\ No newline at end of file
diff --git a/apps/docs/src/code/python/basics/process_stream_stdout.py b/apps/docs/src/code/python/basics/process_stream_stdout.py
index e96ead4a0..579f80b50 100644
--- a/apps/docs/src/code/python/basics/process_stream_stdout.py
+++ b/apps/docs/src/code/python/basics/process_stream_stdout.py
@@ -1,26 +1,19 @@
-from os import getenv
from e2b import Session
-E2B_API_KEY = getenv("E2B_API_KEY")
+session = Session.create(
+ id="Nodejs",
+ on_stdout=lambda output: print("session", output.line), # $HighlightLine
+)
-def main():
- session = Session.create(
- id="Nodejs",
- api_key=E2B_API_KEY,
- on_stdout=lambda output: print("session", output.line), # $HighlightLine
- )
+proc = session.process.start('echo "Hello World!"')
+proc.wait()
+# output: session Hello World!
- proc = session.process.start('echo "Hello World!"')
- proc.wait()
- # output: session Hello World!
+proc_with_custom_handler = session.process.start(
+ 'echo "Hello World!"',
+ on_stdout=lambda output: print("process", output.line), # $HighlightLine
+)
+proc_with_custom_handler.wait()
+# output: process Hello World!
- proc_with_custom_handler = session.process.start(
- 'echo "Hello World!"',
- on_stdout=lambda output: print("process", output.line), # $HighlightLine
- )
- proc_with_custom_handler.wait()
- # output: process Hello World!
-
- session.close()
-
-main()
+session.close()
\ No newline at end of file
diff --git a/apps/docs/src/code/python/basics/process_write_stdin.py b/apps/docs/src/code/python/basics/process_write_stdin.py
index eb70dee74..4d3698591 100644
--- a/apps/docs/src/code/python/basics/process_write_stdin.py
+++ b/apps/docs/src/code/python/basics/process_write_stdin.py
@@ -1,20 +1,14 @@
-from os import getenv
from e2b import Session
-E2B_API_KEY = getenv("E2B_API_KEY")
+session = Session.create(id="Nodejs")
-def main():
- session = Session.create(id="Nodejs", api_key=E2B_API_KEY)
+# This example will print back the string we send to the process using `send_stdin()`
- # This example will print back the string we send to the process using `send_stdin()`
+proc = session.process.start(
+ "while IFS= read -r line; do echo \"$line\"; sleep 1; done",
+ on_stdout=print,
+)
+proc.send_stdin("AI Playground\n") # $HighlightLine
+proc.kill()
- proc = session.process.start(
- "while IFS= read -r line; do echo \"$line\"; sleep 1; done",
- on_stdout=print,
- )
- proc.send_stdin("AI Playground\n") # $HighlightLine
- proc.kill()
-
- session.close()
-
-main()
+session.close()
diff --git a/apps/docs/src/code/python/basics/scan_ports.py b/apps/docs/src/code/python/basics/scan_ports.py
index 2b26b5c3c..98d09b677 100644
--- a/apps/docs/src/code/python/basics/scan_ports.py
+++ b/apps/docs/src/code/python/basics/scan_ports.py
@@ -1,9 +1,6 @@
import time
-from os import getenv
from e2b import Session
-E2B_API_KEY = getenv("E2B_API_KEY")
-
# List of ports that have already been printed
printed_ports = []
@@ -22,19 +19,15 @@ def print_new_port_and_url(open_ports, session):
port_url = f"https://{host}"
print(port, port_url)
-def main():
- session = Session.create(
- id="Python3",
- api_key=E2B_API_KEY,
- on_scan_ports=lambda open_ports: print_new_port_and_url(open_ports, session) # $HighlightLine
- )
-
- # Start a new server on port 8000 inside the playground.
- proc = session.process.start("python3 -m http.server 8000")
+session = Session.create(
+ id="Python3",
+ on_scan_ports=lambda open_ports: print_new_port_and_url(open_ports, session) # $HighlightLine
+)
- # Wait 10 seconds and then kill the server and close the session.
- time.sleep(10)
- proc.kill()
- session.close()
+# Start a new server on port 8000 inside the playground.
+proc = session.process.start("python3 -m http.server 8000")
-main()
+# Wait 10 seconds and then kill the server and close the session.
+time.sleep(10)
+proc.kill()
+session.close()
diff --git a/apps/docs/src/code/python/basics/set_env_vars.py b/apps/docs/src/code/python/basics/set_env_vars.py
index 0a4245761..2cee26940 100644
--- a/apps/docs/src/code/python/basics/set_env_vars.py
+++ b/apps/docs/src/code/python/basics/set_env_vars.py
@@ -1,24 +1,17 @@
-from os import getenv
from e2b import Session
-E2B_API_KEY = getenv("E2B_API_KEY")
+session = Session.create(
+ id="Nodejs",
+ env_vars={"FOO": "Hello"} # $HighlightLine
+)
-def main():
- session = Session.create(
- id="Nodejs",
- api_key=E2B_API_KEY,
- env_vars={"FOO": "Hello"} # $HighlightLine
- )
+proc = session.process.start(
+ "echo $FOO $BAR!",
+ env_vars={"BAR": "World"}, # $HighlightLine
+)
+proc.wait()
- proc = session.process.start(
- "echo $FOO $BAR!",
- env_vars={"BAR": "World"}, # $HighlightLine
- )
- proc.proc()
- print(proc.output.stdout)
- # output: Hello World!
+print(proc.output.stdout)
+# output: Hello World!
- session.close()
-
-
-main()
\ No newline at end of file
+session.close()
\ No newline at end of file
diff --git a/apps/docs/src/code/python/cwd/filesystem.py b/apps/docs/src/code/python/cwd/filesystem.py
index 6a30f32af..6604bf679 100644
--- a/apps/docs/src/code/python/cwd/filesystem.py
+++ b/apps/docs/src/code/python/cwd/filesystem.py
@@ -1,26 +1,19 @@
-from os import getenv
from e2b import Session
-E2B_API_KEY = getenv("E2B_API_KEY")
+session = Session.create(
+ id="Python3",
+ cwd="/home/user/code" # $HighlightLine
+)
+session.filesystem.write("hello.txt", "Welcome to E2B!") # $HighlightLine
+proc = session.process.start("cat /home/user/code/hello.txt")
+proc.wait()
+print(proc.output.stdout)
+# output: "Welcome to E2B!"
-def main():
- session = Session.create(
- id="Python3", cwd="/home/user/code" # $HighlightLine
- )
- session.filesystem.write("hello.txt", "Welcome to E2B!") # $HighlightLine
- proc = session.process.start("cat /home/user/code/hello.txt")
- proc.wait()
- print(proc.output.stdout)
- # output: "Welcome to E2B!"
+session.filesystem.write("../hello.txt", "We hope you have a great day!") # $HighlightLine
+proc2 = session.process.start("cat /home/user/hello.txt")
+proc2.wait()
+print(proc2.output.stdout)
+# output: "We hope you have a great day!"
- session.filesystem.write(
- "../hello.txt", "We hope you have a great day!"
- ) # $HighlightLine
- proc2 = session.process.start("cat /home/user/hello.txt")
- proc2.wait()
- print(proc2.output.stdout)
- # output: "We hope you have a great day!"
-
- session.close()
-
-main()
+session.close()
diff --git a/apps/docs/src/code/python/cwd/process.py b/apps/docs/src/code/python/cwd/process.py
index d33d675fa..77c137ce7 100644
--- a/apps/docs/src/code/python/cwd/process.py
+++ b/apps/docs/src/code/python/cwd/process.py
@@ -1,20 +1,15 @@
-from os import getenv
from e2b import Session
-E2B_API_KEY = getenv("E2B_API_KEY")
+session = Session.create(id="Python3", cwd="/code") # $HighlightLine
+session_cwd = session.process.start("pwd") # $HighlightLine
+session_cwd.wait()
+print(session_cwd.output.stdout)
+# output: "/code"
-def main():
- session = Session.create(id="Python3", cwd="/code") # $HighlightLine
- session_cwd = session.process.start("pwd") # $HighlightLine
- session_cwd
- print(session_cwd.output.stdout)
- # output: "/code"
+process_cwd = session.process.start("pwd", cwd="/home") # $HighlightLine
+process_cwd.wait()
+print(process_cwd.output.stdout)
+# output: "/home"
- process_cwd = session.process.start("pwd", cwd="/home") # $HighlightLine
- process_cwd.wait()
- print(process_cwd.output.stdout)
- # output: "/home"
+session.close()
- session.close()
-
-main()
diff --git a/apps/docs/src/code/python/cwd/session.py b/apps/docs/src/code/python/cwd/session.py
index 05fafc36a..17f146ee7 100644
--- a/apps/docs/src/code/python/cwd/session.py
+++ b/apps/docs/src/code/python/cwd/session.py
@@ -1,17 +1,11 @@
-from os import getenv
from e2b import Session
-E2B_API_KEY = getenv("E2B_API_KEY")
+session = Session.create(
+ id="Python3",
+ cwd="/code", # $HighlightLine
+)
-def main():
- session = Session.create(
- id="Python3",
- cwd="/code", # $HighlightLine
- )
+# You can also change the cwd of an existing session
+session.cwd = "/home" # $HighlightLine
- # You can also change the cwd of an existing session
- session.cwd = "/home" # $HighlightLine
-
- session.close()
-
-main()
+session.close()
\ No newline at end of file
diff --git a/apps/docs/src/code/python/timeout/timeout_filesystem.py b/apps/docs/src/code/python/timeout/timeout_filesystem.py
index ea5ce4ea3..0c7a0e3cd 100644
--- a/apps/docs/src/code/python/timeout/timeout_filesystem.py
+++ b/apps/docs/src/code/python/timeout/timeout_filesystem.py
@@ -1,20 +1,16 @@
-from os import getenv
from e2b import Session
-E2B_API_KEY = getenv("E2B_API_KEY")
+session = Session.create(id="Nodejs")
-def main():
- session = Session.create(id="Nodejs", api_key=E2B_API_KEY)
+# Timeout 3s for the write operation
+session.filesystem.write("test.txt", "Hello World", timeout=3) # $HighlightLine
- # Timeout for the write operation
- session.filesystem.write("test.txt", "Hello World", timeout=3) # $HighlightLine
+# Timeout 3s for the list operation
+dir_content = session.filesystem.list(".", timeout=3) # $HighlightLine
+print(dir_content)
- # Timeout for the list operation
- session.filesystem.list(".", timeout=3) # $HighlightLine
+# Timeout 3s for the read operation
+file_content = session.filesystem.read("test.txt", timeout=3) # $HighlightLine
+print(file_content)
- # Timeout for the read operation
- session.filesystem.read("test.txt", timeout=3) # $HighlightLine
-
- session.close()
-
-main()
+session.close()
\ No newline at end of file
diff --git a/apps/docs/src/code/python/timeout/timeout_process.py b/apps/docs/src/code/python/timeout/timeout_process.py
index 833aa4577..3b33702e3 100644
--- a/apps/docs/src/code/python/timeout/timeout_process.py
+++ b/apps/docs/src/code/python/timeout/timeout_process.py
@@ -1,15 +1,9 @@
-from os import getenv
from e2b import Session
-E2B_API_KEY = getenv("E2B_API_KEY")
+session = Session.create(id="Nodejs")
-def main():
- session = Session.create(id="Nodejs", api_key=E2B_API_KEY)
+# Timeout 3s for the process to start
+npm_init = session.process.start("npm init -y", timeout=3) # $HighlightLine
+npm_init.wait()
- # Timeout for the process to start
- npm_init = session.process.start("npm init -y", timeout=5) # $HighlightLine
- npm_init.wait()
-
- session.close()
-
-main()
+session.close()
\ No newline at end of file
diff --git a/apps/docs/src/code/python/timeout/timeout_session.py b/apps/docs/src/code/python/timeout/timeout_session.py
index 43be8316f..04ec80f92 100644
--- a/apps/docs/src/code/python/timeout/timeout_session.py
+++ b/apps/docs/src/code/python/timeout/timeout_session.py
@@ -1,12 +1,6 @@
-from os import getenv
from e2b import Session
-E2B_API_KEY = getenv("E2B_API_KEY")
+# Timeout 3s for the session to open
+session = Session.create(id="Nodejs", timeout=3) # $HighlightLine
-def main():
- # Timeout for the session to open
- session = Session.create(id="Nodejs", api_key=E2B_API_KEY, timeout=5) # $HighlightLine
-
- session.close()
-
-main()
+session.close()
diff --git a/apps/docs/src/components/Button.tsx b/apps/docs/src/components/Button.tsx
index c2d4f0fd1..7eb15c222 100644
--- a/apps/docs/src/components/Button.tsx
+++ b/apps/docs/src/components/Button.tsx
@@ -44,9 +44,9 @@ type ButtonProps = {
disabled?: boolean
arrow?: 'left' | 'right'
} & (
- | React.ComponentPropsWithoutRef<typeof Link>
- | (React.ComponentPropsWithoutRef<'button'> & { href?: undefined })
-)
+ | React.ComponentPropsWithoutRef<typeof Link>
+ | (React.ComponentPropsWithoutRef<'button'> & { href?: undefined })
+ )
export function Button({
variant = 'primary',
@@ -75,11 +75,11 @@ export function Button({
)
const inner = (
- <>
+ <div className="flex items-center gap-2">
{arrow === 'left' && arrowIcon}
{children}
{arrow === 'right' && arrowIcon}
- </>
+ </div>
)
if (typeof props.href === 'undefined') {
diff --git a/apps/docs/src/components/Code.tsx b/apps/docs/src/components/Code.tsx
index a2bd4c5d5..44a97c2ed 100644
--- a/apps/docs/src/components/Code.tsx
+++ b/apps/docs/src/components/Code.tsx
@@ -1,5 +1,5 @@
'use client'
-
+import Image from 'next/image'
import {
Children,
createContext,
@@ -22,6 +22,8 @@ import { useSessionsStore } from '@/utils/useSessions'
import { useSignIn } from '@/utils/useSignIn'
import { LangShort, languageNames, mdLangToLangShort } from '@/utils/consts'
import { usePostHog } from 'posthog-js/react'
+import logoNode from '@/images/logos/node.svg'
+import logoPython from '@/images/logos/python.svg'
export function getPanelTitle({
title,
@@ -223,9 +225,11 @@ export function CodeGroupHeader({
return (
<div className="flex min-h-[calc(theme(spacing.12)+1px)] flex-wrap items-center justify-between gap-x-4 border-b border-zinc-700 bg-zinc-800 px-4 dark:border-zinc-800 dark:bg-transparent">
- <div className="flex items-start space-x-4">
+ <div className="flex flex-col items-start">
{title && (
- <h3 className="mr-auto pt-3 text-xs font-semibold text-white">{title}</h3>
+ <div className="pl-2 mt-3">
+ <h3 className="font-xs font-bold text-zinc-300">{title}</h3>
+ </div>
)}
{hasTabs && (
<Tab.List className="-mb-px flex gap-4 text-xs font-medium">
@@ -241,7 +245,29 @@ export function CodeGroupHeader({
: 'border-transparent text-zinc-400 hover:text-zinc-300',
)}
>
- {getPanelTitle(isValidElement(child) ? child.props : {})}
+ <div className="
+ flex
+ items-center
+ px-1
+ gap-1
+ ">
+ {getPanelTitle(isValidElement(child) ? child.props : {}).includes('JavaScript') ? (
+ <Image
+ src={logoNode}
+ alt=""
+ className="h-7 w-7"
+ unoptimized
+ />
+ ) : (
+ <Image
+ src={logoPython}
+ alt=""
+ className="h-7 w-7"
+ unoptimized
+ />
+ )}
+ {getPanelTitle(isValidElement(child) ? child.props : {})}
+ </div>
</Tab>
))}
</Tab.List>
diff --git a/apps/docs/src/components/Footer.tsx b/apps/docs/src/components/Footer.tsx
index 4919b3de4..175cdee8b 100644
--- a/apps/docs/src/components/Footer.tsx
+++ b/apps/docs/src/components/Footer.tsx
@@ -4,7 +4,7 @@ import Link from 'next/link'
import { usePathname } from 'next/navigation'
import { Button } from '@/components/Button'
-import { navigation } from '@/components/Navigation'
+import { routes } from '@/components/Navigation/routes'
import { TwitterIcon } from '@/components/icons/TwitterIcon'
import { GitHubIcon } from '@/components/icons/GitHubIcon'
import { DiscordIcon } from '@/components/icons/DiscordIcon'
@@ -45,7 +45,7 @@ function PageNavigation() {
// Running on the server, there's bug with usePathname() and basePath https://github.com/vercel/next.js/issues/52700
if (typeof window === 'undefined' && initialPathname === '/') initialPathname = '/docs'
- const allPages = navigation.flatMap(group => group.links)
+ const allPages = routes.flatMap(group => group.links)
const currentPageIndex = allPages.findIndex(page => page.href === initialPathname)
if (currentPageIndex === -1) return null
diff --git a/apps/docs/src/components/Header.tsx b/apps/docs/src/components/Header.tsx
index 7ba663261..0801128f9 100644
--- a/apps/docs/src/components/Header.tsx
+++ b/apps/docs/src/components/Header.tsx
@@ -69,9 +69,8 @@ export const Header = forwardRef(function Header({ className }, ref) {
ref={ref}
className={clsx(
className,
- 'fixed inset-x-0 top-0 z-50 flex h-14 items-center justify-between gap-12 px-4 transition sm:px-6 lg:left-72 lg:z-30 lg:px-8 xl:left-80',
- !isInsideMobileNavigation &&
- 'backdrop-blur-sm dark:backdrop-blur lg:left-72 xl:left-80',
+ 'fixed inset-x-0 top-0 z-50 flex h-14 items-center justify-between gap-12 px-4 transition sm:px-6 lg:z-30 lg:px-8',
+ !isInsideMobileNavigation && 'backdrop-blur-sm dark:backdrop-blur',
isInsideMobileNavigation
? 'bg-white dark:bg-zinc-900'
: 'bg-white/[var(--bg-opacity-light)] dark:bg-zinc-900/[var(--bg-opacity-dark)]',
@@ -90,6 +89,14 @@ export const Header = forwardRef(function Header({ className }, ref) {
'bg-zinc-900/7.5 dark:bg-white/7.5',
)}
/>
+ <div className="relative top-1 hidden items-start justify-start lg:flex">
+ <Link
+ href="/"
+ aria-label="Home"
+ >
+ <Logo className="h-6" />
+ </Link>
+ </div>
<Search />
<div className="flex items-center gap-5 lg:hidden">
<MobileNavigation />
diff --git a/apps/docs/src/components/Layout.tsx b/apps/docs/src/components/Layout.tsx
index 541520663..0238b7e00 100644
--- a/apps/docs/src/components/Layout.tsx
+++ b/apps/docs/src/components/Layout.tsx
@@ -1,6 +1,5 @@
'use client'
-import Link from 'next/link'
import { usePathname } from 'next/navigation'
import { motion } from 'framer-motion'
@@ -8,7 +7,6 @@ import { Footer } from '@/components/Footer'
import { Header } from '@/components/Header'
import { Navigation } from '@/components/Navigation'
import { Section, SectionProvider } from '@/components/SectionProvider'
-import { Logo } from '@/components/Logo'
export function Layout({
children,
@@ -22,26 +20,48 @@ export function Layout({
return (
<SectionProvider sections={allSections[relativePathname] ?? []}>
- <div className="h-full lg:ml-72 xl:ml-80">
+ <div className="h-full lg:ml-[var(--sidebar-nav-width)]">
<motion.header
layoutScroll
- className="contents lg:pointer-events-none lg:fixed lg:inset-0 lg:z-40 lg:flex"
+ className="contents lg:pointer-events-none lg:fixed lg:inset-0 lg:top-[60px] lg:z-40 lg:flex"
>
- <div className="contents lg:pointer-events-auto lg:block lg:w-72 lg:overflow-y-auto lg:border-r lg:border-zinc-900/10 lg:px-6 lg:pb-8 lg:pt-4 lg:dark:border-white/10 xl:w-80">
- <div className="relative top-1 hidden items-start justify-start lg:flex">
- <Link
- href="/"
- aria-label="Home"
- >
- <Logo className="h-6" />
- </Link>
- </div>
+ <div
+ id="sidebar"
+ className="
+ scrollbar-thin
+ scrollbar-thumb-scrollbar
+ contents
+ lg:pointer-events-auto
+ lg:block
+ lg:w-[var(--sidebar-nav-width)]
+ lg:overflow-y-auto
+ lg:px-6
+ lg:pb-8
+ "
+ >
<Header />
- <Navigation className="hidden lg:mt-10 lg:block" />
+ <Navigation className="hidden lg:my-4 lg:block" />
</div>
</motion.header>
- <div className="relative flex h-full flex-col px-4 pt-14 sm:px-6 lg:px-8">
- <main className="flex-auto">{children}</main>
+ <div
+ className="
+ relative
+ flex
+ h-full
+ flex-col
+ px-4
+ pt-14
+ sm:px-6
+ lg:ml-1
+ lg:border-l
+ lg:border-zinc-900/10
+ lg:px-8
+ lg:dark:border-white/10
+ "
+ >
+ <main className="
+ flex-auto
+ ">{children}</main>
<Footer />
</div>
</div>
diff --git a/apps/docs/src/components/Libraries.tsx b/apps/docs/src/components/Libraries.tsx
index abbd576f7..133a3fa68 100644
--- a/apps/docs/src/components/Libraries.tsx
+++ b/apps/docs/src/components/Libraries.tsx
@@ -1,72 +1,40 @@
import Image from 'next/image'
import { Button } from '@/components/Button'
-import { Heading } from '@/components/Heading'
-import logoGo from '@/images/logos/go.svg'
import logoNode from '@/images/logos/node.svg'
-import logoPhp from '@/images/logos/php.svg'
import logoPython from '@/images/logos/python.svg'
-import logoRuby from '@/images/logos/ruby.svg'
const libraries = [
{
- href: '#',
- name: 'PHP',
+ href: 'https://www.npmjs.com/package/@e2b/sdk',
+ name: 'JavaScript & Typescript',
description:
- 'A popular general-purpose scripting language that is especially suited to web development.',
- logo: logoPhp,
- },
- {
- href: '#',
- name: 'Ruby',
- description:
- 'A dynamic, open source programming language with a focus on simplicity and productivity.',
- logo: logoRuby,
- },
- {
- href: '#',
- name: 'Node.js',
- description:
- 'Node.js® is an open-source, cross-platform JavaScript runtime environment.',
+ 'Usable both in Node.js and in the browser. Requires at least Node.js 18.0.',
logo: logoNode,
},
{
- href: '#',
+ href: 'https://pypi.org/project/e2b',
name: 'Python',
description:
- 'Python is a programming language that lets you work quickly and integrate systems more effectively.',
+ 'Requires at least Python 3.8.',
logo: logoPython,
},
- {
- href: '#',
- name: 'Go',
- description:
- 'An open-source programming language supported by Google with built-in concurrency.',
- logo: logoGo,
- },
]
export function Libraries() {
return (
- <div className="my-16 xl:max-w-none">
- {/* @ts-ignore */}
- <Heading
- level={2}
- id="official-libraries"
- >
- Official libraries
- </Heading>
- <div className="not-prose mt-4 grid grid-cols-1 gap-x-6 gap-y-10 border-t border-zinc-900/5 pt-10 dark:border-white/5 sm:grid-cols-2 xl:max-w-none xl:grid-cols-3">
+ <div className="xl:max-w-none">
+ <div className="not-prose grid grid-cols-1 gap-x-6 gap-y-10 sm:grid-cols-2 xl:max-w-none xl:grid-cols-3">
{libraries.map(library => (
<div
key={library.name}
className="flex flex-row-reverse gap-6"
>
- <div className="flex-auto">
+ <div className="flex flex-col flex-auto">
<h3 className="text-sm font-semibold text-zinc-900 dark:text-white">
{library.name}
</h3>
- <p className="mt-1 text-sm text-zinc-600 dark:text-zinc-400">
+ <p className="flex-1 mt-1 text-sm text-zinc-600 dark:text-zinc-400">
{library.description}
</p>
<p className="mt-4">
@@ -76,7 +44,7 @@ export function Libraries() {
variant="text"
arrow="right"
>
- Read more
+ Inspect on {library.name === 'JavaScript & Typescript' ? ' NPM' : 'PyPi'}
</Button>
</p>
</div>
diff --git a/apps/docs/src/components/Navigation.tsx b/apps/docs/src/components/Navigation/index.tsx
similarity index 53%
rename from apps/docs/src/components/Navigation.tsx
rename to apps/docs/src/components/Navigation/index.tsx
index 67bdcc330..5ba276b6d 100644
--- a/apps/docs/src/components/Navigation.tsx
+++ b/apps/docs/src/components/Navigation/index.tsx
@@ -12,21 +12,7 @@ import { Tag } from '@/components/Tag'
import { remToPx } from '@/lib/remToPx'
import { Auth } from '@/components/Auth'
import { Feedback } from '@/components/Feedback'
-import {
- ChevronRightSquare,
- Folder,
- FolderTree,
- KeyRound,
- Settings,
- AlertOctagon,
- ShieldQuestion,
- Timer,
- // FileUp,
- // FileDown,
- HeartHandshake,
- DollarSign,
- Hammer,
-} from 'lucide-react'
+import { routes } from './routes'
interface NavGroup {
title: string
@@ -273,278 +259,6 @@ function NavigationGroup({ group, className }) {
)
}
-export const navigation = [
- {
- title: 'Overview',
- links: [
- { title: 'Introduction', href: '/' },
- {
- icon: (
- <HeartHandshake
- strokeWidth={1}
- size={20}
- />
- ),
- title: 'Open source',
- href: '/open-source',
- },
- {
- icon: (
- <DollarSign
- strokeWidth={1}
- size={20}
- />
- ),
- title: 'Pricing',
- href: '/pricing',
- },
- {
- icon: (
- <ShieldQuestion
- strokeWidth={1}
- size={20}
- />
- ),
- title: 'Getting help',
- href: '/getting-help',
- },
- ],
- },
- {
- title: 'Getting Started',
- links: [
- {
- icon: (
- <Settings
- strokeWidth={1}
- size={20}
- />
- ),
- title: 'Installation',
- href: '/getting-started/installation',
- },
- {
- icon: (
- <KeyRound
- strokeWidth={1}
- size={20}
- />
- ),
- title: 'API Key',
- href: '/getting-started/api-key',
- },
- {
- icon: (
- <Hammer
- strokeWidth={1}
- size={20}
- />
- ),
- title: 'Example: Build Code Interpreter',
- href: '/guide/simple-gpt4-code-interpreter',
- },
- ],
- },
- // {
- // title: 'Use Cases & Guides',
- // links: [
- // { title: '[TODO] AI Data Analysis & Code Interpreter', href: '/' },
- // { title: '[TODO] Run LLM-Generated Code', href: '/' },
- // ],
- // },
- {
- title: 'Sandbox API',
- links: [
- { title: 'Overview', href: '/playgrounds/overview' },
- {
- icon: (
- <AlertOctagon
- strokeWidth={1}
- size={20}
- />
- ),
- title: 'Current Limitations',
- href: '/playgrounds/limitations',
- },
- // {
- // icon: (
- // <Variable
- // strokeWidth={1}
- // size={20}
- // />
- // ),
- // title: '[TODO] Environment Variables',
- // href: '/playgrounds/envs',
- // },
- {
- icon: (
- <FolderTree
- strokeWidth={1}
- size={20}
- />
- ),
- title: 'Filesystem',
- href: '/playgrounds/filesystem',
- },
- {
- icon: (
- <ChevronRightSquare
- strokeWidth={1}
- size={20}
- />
- ),
- title: 'Process',
- href: '/playgrounds/process',
- },
- // TODO: Remove
- // {
- // icon: (
- // <Binary
- // strokeWidth={1}
- // size={20}
- // />
- // ),
- // title: 'Executing Code',
- // href: '/playgrounds/execute',
- // },
- // {
- // icon: (
- // <FileUp
- // strokeWidth={1}
- // size={20}
- // />
- // ),
- // title: 'Upload Files',
- // href: '/playgrounds/upload',
- // },
- // {
- // icon: (
- // <FileDown
- // strokeWidth={1}
- // size={20}
- // />
- // ),
- // title: 'Download Files',
- // href: '/playgrounds/download',
- // },
- {
- icon: (
- <Folder
- strokeWidth={1}
- size={20}
- />
- ),
- title: 'Working Directory',
- href: '/playgrounds/cwd',
- },
- // {
- // icon: (
- // <TextQuote
- // strokeWidth={1}
- // size={20}
- // />
- // ),
- // title: '[TODO] Streaming',
- // href: '/playgrounds/streaming',
- // },
- // {
- // icon: (
- // <TextQuote
- // strokeWidth={1}
- // size={20}
- // />
- // ),
- // title: '[TODO] Debug logs',
- // href: '/playgrounds/debugging',
- // },
- {
- icon: (
- <Timer
- strokeWidth={1}
- size={20}
- />
- ),
- title: 'Timeouts',
- href: '/playgrounds/timeouts',
- },
- ],
- },
- // {
- // title: 'AI Agents Use Case',
- // links: [
- // { title: 'Execute Code', href: '/agents/exec' },
- // // { title: 'Installing Dependencies', href: '/agents/deps' },
- // { title: 'Clone GitHub Repository', href: '/agents/clone-repo' },
- // { title: 'Run Shell Commands', href: '/agents/shell-commands' },
- // // { title: 'Read File', href: '/agents/read' },
- // // { title: 'Write File', href: '/agents/write' },
- // // TODO: Guide for building ffmpeg agent
- // ],
- // },
-
- // {
- // title: 'AI Environments',
- // links: [
- // { title: 'Overview', href: '/env/overview' },
- // { title: 'Customization', href: '/env/customization' },
- // { title: 'Secrets', href: '/env/secrets' },
- // ],
- // },
- // {
- // title: 'Examples',
- // links: [
- // { title: 'Clone GitHub Repository', href: '/examples/clone-repo' },
- // { title: 'Dynamically install dependencies', href: '/examples/deps' },
- // { title: 'Run Any Code', href: '/examples/run-code' },
- // { title: 'Get Output From Linter', href: '/examples/linter' },
- // { title: 'Static Code Analysis', href: '/examples/static-code-analysis' },
- // { title: 'Run Headless Chrome', href: '/examples/headless-chrome' },
- // ],
- // },
- // {
- // title: 'Use Cases',
- // links: [
- // { title: 'Overview', href: '/use-cases/overview' },
- // { title: 'Coding Copilot', href: '/use-cases/coding' },
- // { title: 'Data Analytics Copilot', href: '/use-cases/data-analytics' },
- // { title: 'Research Copilot', href: '/use-cases/research' },
- // { title: 'Productivity Copilot', href: '/use-cases/productivity' },
- // { title: 'Code Interpreter', href: '/use-cases/code-interpreter' },
- // ],
- // },
- // {
- // title: 'Usage with Frameworks (Remove?)',
- // links: [
- // { title: 'LangChain', href: '/use-cases/coding' },
- // { title: 'OpenAI', href: '/use-cases/coding' },
- // { title: 'HugginFace', href: '/use-cases/coding' },
- // { title: 'Python', href: '/use-cases/coding' },
- // { title: 'TypeScript', href: '/use-cases/coding' },
- // ],
- // },
- // {
- // title: 'SDK Reference',
- // links: [
- // { title: 'E2B', href: '/reference/e2b', isFontMono: true },
-
- // Primitives
- // { title: 'e2b.process', href: '/reference/python/process', isFontMono: true },
- // { title: 'e2b.filesystem', href: '/reference/python/filesystem', isFontMono: true },
- // { title: 'e2b.http', href: '/reference/python/http', isFontMono: true },
- // { title: 'e2b.code', href: '/reference/python/code', isFontMono: true },
-
- // High-level modules
- // { title: 'e2b.code', href: '/reference/code', isFontMono: true },
- // { title: 'e2b.browser', href: '/reference/browser', isFontMono: true },
- // { title: 'e2b.chart', href: '/reference/chart', isFontMono: true },
- // { title: 'e2b.storage', href: '/reference/storage', isFontMono: true },
- // { title: 'e2b.auth', href: '/reference/auth', isFontMono: true },
- // { title: 'e2b.datasource', href: '/reference/data', isFontMono: true },
- // { title: 'e2b.skills', href: '/reference/skills', isFontMono: true },
- // { title: 'e2b.spreadsheet', href: '/reference/spreadsheet', isFontMono: true },
- // ],
- // },
-]
export function Navigation(props) {
return (
@@ -553,7 +267,7 @@ export function Navigation(props) {
{/* <TopLevelNavItem href="/">API</TopLevelNavItem>
<TopLevelNavItem href="#">Documentation</TopLevelNavItem>
<TopLevelNavItem href="#">Support</TopLevelNavItem> */}
- {navigation.map((group, groupIndex) => (
+ {routes.map((group, groupIndex) => (
<NavigationGroup
key={group.title}
group={group}
diff --git a/apps/docs/src/components/Navigation/routes.tsx b/apps/docs/src/components/Navigation/routes.tsx
new file mode 100644
index 000000000..e5ab7fe73
--- /dev/null
+++ b/apps/docs/src/components/Navigation/routes.tsx
@@ -0,0 +1,256 @@
+import {
+ ChevronRightSquare,
+ Folder,
+ FolderTree,
+ KeyRound,
+ Settings,
+ ShieldQuestion,
+ Timer,
+ HeartHandshake,
+ DollarSign,
+ Hammer,
+ Cpu,
+ Link,
+} from 'lucide-react'
+
+export const routes = [
+ {
+ title: 'Overview',
+ links: [
+ { title: 'Introduction', href: '/' },
+ {
+ icon: (
+ <HeartHandshake
+ strokeWidth={1}
+ size={20}
+ />
+ ),
+ title: 'Open source',
+ href: '/open-source',
+ },
+ {
+ icon: (
+ <DollarSign
+ strokeWidth={1}
+ size={20}
+ />
+ ),
+ title: 'Pricing',
+ href: '/pricing',
+ },
+ {
+ icon: (
+ <ShieldQuestion
+ strokeWidth={1}
+ size={20}
+ />
+ ),
+ title: 'Getting help',
+ href: '/getting-help',
+ },
+ ],
+ },
+ {
+ title: 'Getting Started',
+ links: [
+ {
+ icon: (
+ <Settings
+ strokeWidth={1}
+ size={20}
+ />
+ ),
+ title: 'Installation',
+ href: '/getting-started/installation',
+ },
+ {
+ icon: (
+ <KeyRound
+ strokeWidth={1}
+ size={20}
+ />
+ ),
+ title: 'API Key',
+ href: '/getting-started/api-key',
+ },
+ {
+ icon: (
+ <Hammer
+ strokeWidth={1}
+ size={20}
+ />
+ ),
+ title: 'Example: Run LLM-generated code',
+ href: '/guide/simple-gpt4-code-interpreter',
+ },
+ ],
+ },
+ // {
+ // title: 'Sandbox Templates',
+ // links: [
+ // { title: 'Overview', href: '/sandbox/templates/overview' },
+ // { title: 'Custom Template', href: '/sandbox/templates/custom' },
+ // { title: 'Premade: Data Analysis', href: '/sandbox/templates/data-analysis' },
+ // ],
+ // },
+ {
+ title: 'Sandbox API',
+ links: [
+ { title: 'Overview', href: '/sandbox/overview' },
+ {
+ icon: (
+ <Cpu
+ strokeWidth={1}
+ size={20}
+ />
+ ),
+ title: 'Resources',
+ href: '/sandbox/resources',
+ },
+ // {
+ // icon: (
+ // <Variable
+ // strokeWidth={1}
+ // size={20}
+ // />
+ // ),
+ // title: '[TODO] Environment Variables',
+ // href: '/sandbox/envs',
+ // },
+ {
+ icon: (
+ <FolderTree
+ strokeWidth={1}
+ size={20}
+ />
+ ),
+ title: 'Filesystem',
+ href: '/sandbox/filesystem',
+ },
+ {
+ icon: (
+ <ChevronRightSquare
+ strokeWidth={1}
+ size={20}
+ />
+ ),
+ title: 'Process',
+ href: '/sandbox/process',
+ },
+ // TODO: Remove
+ // {
+ // icon: (
+ // <Binary
+ // strokeWidth={1}
+ // size={20}
+ // />
+ // ),
+ // title: 'Executing Code',
+ // href: '/sandbox/execute',
+ // },
+ // {
+ // icon: (
+ // <FileUp
+ // strokeWidth={1}
+ // size={20}
+ // />
+ // ),
+ // title: 'Upload Files',
+ // href: '/sandbox/upload',
+ // },
+ // {
+ // icon: (
+ // <FileDown
+ // strokeWidth={1}
+ // size={20}
+ // />
+ // ),
+ // title: 'Download Files',
+ // href: '/sandbox/download',
+ // },
+ {
+ icon: (
+ <Folder
+ strokeWidth={1}
+ size={20}
+ />
+ ),
+ title: 'Working Directory',
+ href: '/sandbox/cwd',
+ },
+ // {
+ // icon: (
+ // <TextQuote
+ // strokeWidth={1}
+ // size={20}
+ // />
+ // ),
+ // title: '[TODO] Streaming',
+ // href: '/sandbox/streaming',
+ // },
+ // {
+ // icon: (
+ // <TextQuote
+ // strokeWidth={1}
+ // size={20}
+ // />
+ // ),
+ // title: '[TODO] Debug logs',
+ // href: '/sandbox/debugging',
+ // },
+ {
+ icon: (
+ <Link
+ strokeWidth={1}
+ size={20}
+ />
+ ),
+ title: 'Sandbox URL',
+ href: '/sandbox/url',
+ },
+ {
+ icon: (
+ <Timer
+ strokeWidth={1}
+ size={20}
+ />
+ ),
+ title: 'Timeouts',
+ href: '/sandbox/timeouts',
+ },
+ ],
+ },
+ // {
+ // title: 'Guides',
+ // links: [
+ // { title: 'AI Data Analysis With GPT-4', href: '/guides/ai-data-analysis' },
+ // { title: 'GPT-4 Cloud Browser Assistant', href: '/guides/cloud-browser-assistant' },
+ // { title: 'Custom Code Interpreter', href: '/guides/custom-code-interpreter' },
+ // { title: 'GPT-controlled FFmpeg', href: '/guides/gpt-controlled-ffmpeg' }
+ // ],
+ // },
+ // {
+ // title: 'Framework Integrations',
+ // links: [
+ // { title: 'LangChain', href: '/integrations/framework/langchain' },
+ // { title: 'LlamaIndex', href: '/integrations/framework/llamaindex' },
+ // { title: 'Rivet', href: '/integrations/framework/rivet' },
+ // { title: 'AutoGen', href: '/integrations/framework/autogen' },
+ // { title: 'Fixie', href: '/integrations/framework/fixie' },
+ // { title: 'Hugging Face Agents', href: '/integrations/framework/hf-agents' },
+ // { title: 'AgentLabs', href: '/integrations/framework/agentlabs' },
+ // { title: 'Chainlit', href: '/integrations/framework/chainlit' },
+ // { title: 'Streamlit', href: '/integrations/framework/streamlit' },
+ // { title: 'Gradio', href: '/integrations/framework/gradio' },
+ // ],
+ // },
+ // {
+ // title: 'LLMs Integrations',
+ // links: [
+ // { title: 'OpenAI', href: '/integrations/llm/openai' },
+ // { title: 'Anthropic', href: '/integrations/llm/anthropic' },
+ // { title: 'Hugging Face', href: '/integrations/llm/hugging-face' },
+ // { title: 'Replicate', href: '/integrations/llm/replicate' },
+ // ],
+ // },
+]
diff --git a/apps/docs/src/components/Search.tsx b/apps/docs/src/components/Search.tsx
index 87d48549c..5073bed7e 100644
--- a/apps/docs/src/components/Search.tsx
+++ b/apps/docs/src/components/Search.tsx
@@ -20,7 +20,7 @@ import {
} from '@algolia/autocomplete-core'
import clsx from 'clsx'
-import { navigation } from '@/components/Navigation'
+import { routes } from '@/components/Navigation/routes'
import { type Result } from '@/mdx/search.mjs'
import { DialogAnimated } from '@/components/DialogAnimated'
@@ -199,7 +199,7 @@ function SearchResult({
}) {
const id = useId()
- const sectionTitle = navigation.find(section =>
+ const sectionTitle = routes.find(section =>
section.links.find(link => link.href === result.url.split('#')[0]),
)?.title
const hierarchy = [sectionTitle, result.pageTitle].filter(
diff --git a/apps/docs/src/styles/tailwind.css b/apps/docs/src/styles/tailwind.css
index 3cbcd124e..592fa4c91 100644
--- a/apps/docs/src/styles/tailwind.css
+++ b/apps/docs/src/styles/tailwind.css
@@ -33,6 +33,14 @@
[inert] ::-webkit-scrollbar {
display: none;
}
+
+ #sidebar::-webkit-scrollbar-track {
+ border-radius: 10px;
+ }
+
+ #sidebar::-webkit-scrollbar-thumb {
+ border-radius: 10px;
+ }
}
/* Shadcn */
@@ -67,6 +75,8 @@
--ring: 222.2 84% 4.9%;
--radius: 0.5rem;
+
+ --sidebar-nav-width: 376px;
}
.dark {
diff --git a/apps/docs/tailwind.config.ts b/apps/docs/tailwind.config.ts
index 5faa12744..6f40dfc63 100644
--- a/apps/docs/tailwind.config.ts
+++ b/apps/docs/tailwind.config.ts
@@ -3,6 +3,7 @@ import typographyStyles from './typography'
import typographyPlugin from '@tailwindcss/typography'
import headlessuiPlugin from '@headlessui/tailwindcss'
import animatePlugin from 'tailwindcss-animate'
+import tailwidScrollbar from 'tailwind-scrollbar'
export default {
content: ['./src/**/*.{js,mjs,jsx,ts,tsx,mdx}'],
@@ -34,15 +35,34 @@ export default {
typography: typographyStyles,
extend: {
colors: {
+ scrollbar: '#5A5A5A',
+ gray: {
+ 25: '#FCFCFC',
+ 50: '#FAFAFA',
+ 100: '#F5F5F5',
+ 200: '#EBEBEB',
+ 300: '#E0E0E0',
+ 400: '#CCCCCC',
+ 500: '#999999',
+ 600: '#666666',
+ 700: '#525252',
+ 800: '#333333',
+ 900: '#1E1E1E',
+ 1000: '#0A0A0A',
+ },
brand: {
- 900: '#FF0000',
- 800: '#FF3300',
- 700: '#FF6600',
- 600: '#FF8800',
- 500: '#F1944E',
- 400: '#F6A951',
- 300: '#F9C78B',
- 200: '#FDE3C4',
+ 1000: '#1A0E00',
+ 900: '#331B00',
+ 800: '#663600',
+ 700: '#995100',
+ 600: '#CC6D00',
+ 500: '#E57B00',
+ 400: '#FF8800',
+ 300: '#FF9F33',
+ 200: '#FFB766',
+ 100: '#FFCF99',
+ 50: '#FFE7CC',
+ 25: '#FFF3E5',
},
border: 'hsl(var(--border))',
input: 'hsl(var(--input))',
@@ -123,5 +143,10 @@ export default {
},
},
},
- plugins: [typographyPlugin, headlessuiPlugin, animatePlugin],
+ plugins: [
+ typographyPlugin,
+ headlessuiPlugin,
+ animatePlugin,
+ tailwidScrollbar,
+ ],
} satisfies Config
diff --git a/apps/docs/typography.ts b/apps/docs/typography.ts
index 046c2a6d2..70bd32b40 100644
--- a/apps/docs/typography.ts
+++ b/apps/docs/typography.ts
@@ -27,7 +27,7 @@ export default function typographyStyles({ theme }: PluginUtils) {
'--tw-prose-invert-links': theme('colors.brand.400'),
'--tw-prose-invert-links-hover': theme('colors.brand.500'),
'--tw-prose-invert-links-underline': theme('colors.brand.500 / 0.3'),
- '--tw-prose-invert-bold': theme('colors.white'),
+ '--tw-prose-invert-bold': theme('colors.zinc.300'),
'--tw-prose-invert-counters': theme('colors.zinc.400'),
'--tw-prose-invert-bullets': theme('colors.zinc.600'),
'--tw-prose-invert-hr': theme('colors.white / 0.05'),
diff --git a/package.json b/package.json
index e7de05165..994565165 100644
--- a/package.json
+++ b/package.json
@@ -16,15 +16,10 @@
"@changesets/read": "^0.5.9"
},
"devDependencies": {
- "@trivago/prettier-plugin-sort-imports": "^4.2.0",
"@typescript-eslint/eslint-plugin": "^6.7.2",
"@typescript-eslint/parser": "^6.7.2",
"changeset": "^0.2.6",
"eslint": "^8.49.0",
- "eslint-config-prettier": "^8.10.0",
- "eslint-plugin-prettier": "^5.0.0",
- "eslint-plugin-unused-imports": "^3.0.0",
- "prettier": "^3.0.3",
- "prettier-plugin-tailwindcss": "^0.5.4"
+ "eslint-plugin-unused-imports": "^3.0.0"
}
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index c04ad9536..0323e18a7 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -15,9 +15,6 @@ importers:
specifier: ^0.5.9
version: 0.5.9
devDependencies:
- '@trivago/prettier-plugin-sort-imports':
- specifier: ^4.2.0
- version: 4.2.0([email protected])
'@typescript-eslint/eslint-plugin':
specifier: ^6.7.2
version: 6.7.2(@typescript-eslint/[email protected])([email protected])([email protected])
@@ -30,21 +27,9 @@ importers:
eslint:
specifier: ^8.49.0
version: 8.49.0
- eslint-config-prettier:
- specifier: ^8.10.0
- version: 8.10.0([email protected])
- eslint-plugin-prettier:
- specifier: ^5.0.0
eslint-plugin-unused-imports:
specifier: ^3.0.0
version: 3.0.0(@typescript-eslint/[email protected])([email protected])
- prettier:
- specifier: ^3.0.3
- version: 3.0.3
- prettier-plugin-tailwindcss:
- specifier: ^0.5.4
- version: 0.5.4(@trivago/[email protected])([email protected])
apps/docs:
dependencies:
@@ -214,6 +199,9 @@ importers:
sharp:
specifier: ^0.32.0
version: 0.32.6
+ tailwind-scrollbar:
+ specifier: ^3.0.5
+ version: 3.0.5([email protected])
apps/reverse-proxy:
dependencies:
@@ -542,7 +530,6 @@ packages:
resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==}
engines: {node: '>=10'}
- dev: false
resolution: {integrity: sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==}
@@ -551,47 +538,6 @@ packages:
'@babel/highlight': 7.22.20
chalk: 2.4.2
- resolution: {integrity: sha512-oLcVCTeIFadUoArDTwpluncplrYBmTCCZZgXCbgNGvOBBiSDDK3eWO4b/+eOTli5tKv1lg+a5/NAXg+nTcei1w==}
- engines: {node: '>=6.9.0'}
- dependencies:
- '@babel/types': 7.17.0
- jsesc: 2.5.2
- source-map: 0.5.7
- dev: true
-
- resolution: {integrity: sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==}
- engines: {node: '>=6.9.0'}
- dev: true
-
- resolution: {integrity: sha512-wtHSq6jMRE3uF2otvfuD3DIvVhOsSNshQl0Qrd7qC9oQJzHvOL4qQXlQn2916+CXGywIjpGuIkoyZRRxHPiNQQ==}
- engines: {node: '>=6.9.0'}
- dependencies:
- '@babel/template': 7.22.15
- '@babel/types': 7.22.19
- dev: true
-
- resolution: {integrity: sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==}
- engines: {node: '>=6.9.0'}
- dependencies:
- '@babel/types': 7.22.19
- dev: true
-
- resolution: {integrity: sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==}
- engines: {node: '>=6.9.0'}
- dependencies:
- '@babel/types': 7.22.19
- dev: true
-
- resolution: {integrity: sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==}
- engines: {node: '>=6.9.0'}
- dev: true
-
resolution: {integrity: sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==}
engines: {node: '>=6.9.0'}
@@ -604,64 +550,12 @@ packages:
chalk: 2.4.2
js-tokens: 4.0.0
- resolution: {integrity: sha512-+gPfKv8UWeKKeJTUxe59+OobVcrYHETCsORl61EmSkmgymguYk/X5bp7GuUIXaFsc6y++v8ZxPsLSSuujqDphA==}
- engines: {node: '>=6.0.0'}
- hasBin: true
- dependencies:
- '@babel/types': 7.17.0
- dev: true
-
resolution: {integrity: sha512-T0O+aa+4w0u06iNmapipJXMV4HoUir03hpx3/YqXXhu9xim3w+dVphjFWl1OH8NbZHw5Lbm9k45drDkgq2VNNA==}
engines: {node: '>=6.9.0'}
dependencies:
regenerator-runtime: 0.14.0
- resolution: {integrity: sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==}
- engines: {node: '>=6.9.0'}
- dependencies:
- '@babel/code-frame': 7.22.13
- '@babel/parser': 7.22.16
- '@babel/types': 7.22.19
- dev: true
-
- resolution: {integrity: sha512-5irClVky7TxRWIRtxlh2WPUUOLhcPN06AGgaQSB8AEwuyEBgJVuJ5imdHm5zxk8w0QS5T+tDfnDxAlhWjpb7cw==}
- engines: {node: '>=6.9.0'}
- dependencies:
- '@babel/code-frame': 7.22.13
- '@babel/generator': 7.17.7
- '@babel/helper-environment-visitor': 7.22.20
- '@babel/helper-function-name': 7.22.5
- '@babel/helper-hoist-variables': 7.22.5
- '@babel/helper-split-export-declaration': 7.22.6
- '@babel/parser': 7.22.16
- '@babel/types': 7.17.0
- debug: 4.3.4
- globals: 11.12.0
- transitivePeerDependencies:
- - supports-color
- dev: true
-
- resolution: {integrity: sha512-TmKSNO4D5rzhL5bjWFcVHHLETzfQ/AmbKpKPOSjlP0WoHZ6L911fgoOKY4Alp/emzG4cHJdyN49zpgkbXFEHHw==}
- engines: {node: '>=6.9.0'}
- dependencies:
- '@babel/helper-validator-identifier': 7.22.20
- to-fast-properties: 2.0.0
- dev: true
-
- resolution: {integrity: sha512-P7LAw/LbojPzkgp5oznjE6tQEIWbp4PkkfrZDINTro9zgBRtI324/EYsiSI7lhPbpIQ+DCeR2NNmMWANGGfZsg==}
- engines: {node: '>=6.9.0'}
- dependencies:
- '@babel/helper-string-parser': 7.22.5
- '@babel/helper-validator-identifier': 7.22.20
- to-fast-properties: 2.0.0
- dev: true
-
resolution: {integrity: sha512-wMue2Sy4GAVTk6Ic4tJVcnfdau+gx2EnG7S+uAEe+TWJFqE4YoWN4/H8MSLj4eYJKxGg26lZwboEniNiNwZQ6Q==}
dev: false
@@ -1921,18 +1815,6 @@ packages:
requiresBuild: true
dev: true
- resolution: {integrity: sha512-POgTXhjrTfbTV63DiFXav4lBHiICLKKwDeaKn9Nphwj7WH6m0hMMCaJkMyRWjgtPFyRKRVoMXXjczsTQRDEhYw==}
- engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0}
- dependencies:
- cross-spawn: 7.0.3
- fast-glob: 3.3.1
- is-glob: 4.0.3
- open: 9.1.0
- picocolors: 1.0.0
- tslib: 2.6.2
- dev: true
-
resolution: {integrity: sha512-htyl8TWnKL7K/ESFa1oW2UB5lVDxuF5DpM7tBi6Hu2LNL3mWkIzNLG6N4zoCUP1lCKNxWy/3iu8mS8MvToGd6w==}
engines: {node: '>=12.22.0'}
@@ -2901,26 +2783,6 @@ packages:
engines: {node: '>= 10'}
dev: true
- resolution: {integrity: sha512-YBepjbt+ZNBVmN3ev1amQH3lWCmHyt5qTbLCp/syXJRu/Kw2koXh44qayB1gMRxcL/gV8egmjN5xWSrYyfUtyw==}
- peerDependencies:
- '@vue/compiler-sfc': 3.x
- prettier: 2.x - 3.x
- peerDependenciesMeta:
- '@vue/compiler-sfc':
- optional: true
- dependencies:
- '@babel/generator': 7.17.7
- '@babel/parser': 7.22.16
- '@babel/traverse': 7.17.3
- '@babel/types': 7.17.0
- javascript-natural-sort: 0.7.1
- lodash: 4.17.21
- prettier: 3.0.3
- transitivePeerDependencies:
- - supports-color
- dev: true
-
resolution: {integrity: sha512-QTnf++uxunWvG2z3UFNzAoQPHxnSXOwtaI3iJ+AohhV+5vONuArPjJE7aPXPVXfXJsqrVbZBu9b81AJoSd09IQ==}
engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
@@ -3836,7 +3698,6 @@ packages:
resolution: {integrity: sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==}
- dev: false
resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==}
@@ -4038,11 +3899,6 @@ packages:
is-windows: 1.0.2
dev: false
- resolution: {integrity: sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg==}
- engines: {node: '>=0.6'}
- dev: true
-
resolution: {integrity: sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==}
dev: false
@@ -4110,13 +3966,6 @@ packages:
widest-line: 4.0.1
wrap-ansi: 8.1.0
- resolution: {integrity: sha512-z0M+byMThzQmD9NILRniCUXYsYpjwnlO8N5uCFaCqIOpqRsJCrQL9NK3JsD67CN5a08nF5oIL2bD6loTdHOuKw==}
- engines: {node: '>= 5.10.0'}
- dependencies:
- big-integer: 1.6.51
- dev: true
-
resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==}
dependencies:
@@ -4174,13 +4023,6 @@ packages:
semver: 7.5.4
dev: true
- resolution: {integrity: sha512-PKA4BeSvBpQKQ8iPOGCSiell+N8P+Tf1DlwqmYhpe2gAhKPHn8EYOxVT+ShuGmhg8lN8XiSlS80yiExKXrURlw==}
- engines: {node: '>=12'}
- dependencies:
- run-applescript: 5.0.0
- dev: true
-
resolution: {integrity: sha512-jwzPOChofl67PSTW2SGubV9HBQAhhR2i6nskiOThauo9dzwDUgOWQScFVaJkjEfYX+UXiD+LEx8EblQMc2wIag==}
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
@@ -4266,7 +4108,6 @@ packages:
resolution: {integrity: sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==}
engines: {node: '>= 6'}
- dev: false
resolution: {integrity: sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==}
@@ -4672,7 +4513,6 @@ packages:
resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==}
engines: {node: '>=4'}
hasBin: true
- dev: false
resolution: {integrity: sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==}
@@ -4805,24 +4645,6 @@ packages:
resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==}
dev: true
- resolution: {integrity: sha512-OZ1y3y0SqSICtE8DE4S8YOE9UZOJ8wO16fKWVP5J1Qz42kV9jcnMVFrEE/noXb/ss3Q4pZIH79kxofzyNNtUNA==}
- engines: {node: '>=12'}
- dependencies:
- bplist-parser: 0.2.0
- untildify: 4.0.0
- dev: true
-
- resolution: {integrity: sha512-wX5pXO1+BrhMkSbROFsyxUm0i/cJEScyNhA4PPxc41ICuv05ZZB/MX28s8aZx6xjmatvebIapF6hLEKEcpneUA==}
- engines: {node: '>=14.16'}
- dependencies:
- bundle-name: 3.0.0
- default-browser-id: 3.0.0
- execa: 7.2.0
- titleize: 3.0.0
- dev: true
-
resolution: {integrity: sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==}
requiresBuild: true
@@ -4851,11 +4673,6 @@ packages:
engines: {node: '>=8'}
dev: false
- resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==}
- engines: {node: '>=12'}
- dev: true
-
resolution: {integrity: sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==}
engines: {node: '>= 0.4'}
@@ -4893,7 +4710,6 @@ packages:
resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==}
- dev: false
resolution: {integrity: sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==}
@@ -4920,7 +4736,6 @@ packages:
resolution: {integrity: sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==}
- dev: false
resolution: {integrity: sha512-uh42tvWBp10fnMyJ9z0YL9kql+iolxEnQ+pGZANj+gcg/N2NxjrdHbMXT2Y2Y07A8Jf7KJp/6LkElPCfukCdWg==}
@@ -5265,15 +5080,6 @@ packages:
- supports-color
dev: true
- resolution: {integrity: sha512-SM8AMJdeQqRYT9O9zguiruQZaN7+z+E4eAP9oiLNGKMtomwaB1E9dcgUD6ZAn/eQAb52USbvezbiljfZUhbJcg==}
- hasBin: true
- peerDependencies:
- eslint: '>=7.0.0'
- dependencies:
- eslint: 8.49.0
- dev: true
-
resolution: {integrity: sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==}
dependencies:
@@ -5426,27 +5232,6 @@ packages:
semver: 6.3.1
dev: true
- resolution: {integrity: sha512-AgaZCVuYDXHUGxj/ZGu1u8H8CYgDY3iG6w5kUFw4AzMVXzB7VvbKgYR4nATIN+OvUrghMbiDLeimVjVY5ilq3w==}
- engines: {node: ^14.18.0 || >=16.0.0}
- peerDependencies:
- '@types/eslint': '>=8.0.0'
- eslint: '>=8.0.0'
- eslint-config-prettier: '*'
- prettier: '>=3.0.0'
- peerDependenciesMeta:
- '@types/eslint':
- optional: true
- eslint-config-prettier:
- optional: true
- dependencies:
- eslint: 8.49.0
- eslint-config-prettier: 8.10.0([email protected])
- prettier: 3.0.3
- prettier-linter-helpers: 1.0.0
- synckit: 0.8.5
- dev: true
-
resolution: {integrity: sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==}
engines: {node: '>=10'}
@@ -5678,21 +5463,6 @@ packages:
strip-final-newline: 2.0.0
dev: true
- resolution: {integrity: sha512-UduyVP7TLB5IcAQl+OzLyLcS/l32W/GLg+AhHJ+ow40FOk2U3SAllPwR44v4vmdFwIWqpdwxxpQbF1n5ta9seA==}
- engines: {node: ^14.18.0 || ^16.14.0 || >=18.0.0}
- dependencies:
- cross-spawn: 7.0.3
- get-stream: 6.0.1
- human-signals: 4.3.1
- is-stream: 3.0.0
- merge-stream: 2.0.0
- npm-run-path: 5.1.0
- onetime: 6.0.0
- signal-exit: 3.0.7
- strip-final-newline: 3.0.0
- dev: true
-
resolution: {integrity: sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==}
engines: {node: '>=6'}
@@ -5728,10 +5498,6 @@ packages:
resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}
- resolution: {integrity: sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==}
- dev: true
-
resolution: {integrity: sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==}
@@ -6174,11 +5940,6 @@ packages:
dependencies:
ini: 2.0.0
- resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==}
- engines: {node: '>=4'}
- dev: true
-
resolution: {integrity: sha512-ybyme3s4yy/t/3s35bewwXKOf7cvzfreG2lH0lZl0JB7I4GxRP2ghxOK/Nb9EkRXdbBXZLfq/p/0W2JUONB/Gg==}
engines: {node: '>=8'}
@@ -6442,11 +6203,6 @@ packages:
engines: {node: '>=10.17.0'}
dev: true
- resolution: {integrity: sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==}
- engines: {node: '>=14.18.0'}
- dev: true
-
resolution: {integrity: sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==}
dependencies:
@@ -6680,12 +6436,7 @@ packages:
resolution: {integrity: sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==}
engines: {node: '>=8'}
hasBin: true
-
- resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==}
- engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
- hasBin: true
- dev: true
+ dev: false
resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==}
@@ -6718,14 +6469,6 @@ packages:
resolution: {integrity: sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg==}
dev: false
- resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==}
- engines: {node: '>=14.16'}
- hasBin: true
- dependencies:
- is-docker: 3.0.0
- dev: true
-
resolution: {integrity: sha512-iwGqO3J21aaSkC7jWnHP/difazwS7SFeIqxv6wEtLU8Y5KlzFTjyqcSIT0d8s4+dDhKytsk9PJZ2BkS5eZwQRQ==}
engines: {node: '>=10'}
@@ -6831,11 +6574,6 @@ packages:
engines: {node: '>=8'}
dev: true
- resolution: {integrity: sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==}
- engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
- dev: true
-
resolution: {integrity: sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==}
engines: {node: '>= 0.4'}
@@ -6895,6 +6633,7 @@ packages:
engines: {node: '>=8'}
dependencies:
is-docker: 2.2.1
+ dev: false
resolution: {integrity: sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw==}
@@ -6952,10 +6691,6 @@ packages:
'@pkgjs/parseargs': 0.11.0
dev: true
- resolution: {integrity: sha512-nO6jcEfZWQXDhOiBtG2KvKyEptz7RVbpGP4vTD2hLBdmNQSsCiicO2Ioinv6UI4y9ukqnBpy+XZ9H6uLNgJTlw==}
- dev: true
-
resolution: {integrity: sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==}
engines: {node: '>= 10.13.0'}
@@ -7000,12 +6735,6 @@ packages:
argparse: 2.0.1
dev: true
- resolution: {integrity: sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==}
- engines: {node: '>=4'}
- hasBin: true
- dev: true
-
resolution: {integrity: sha512-CuUqjv0FUZIdXkHPI8MezCnFCdaTAacej1TZYulLoAg1h/PhwkdXFN4V/gzY4g+fMBCOV2xF+rp7t2XD2ns/NQ==}
dev: false
@@ -8096,11 +7825,6 @@ packages:
engines: {node: '>=8'}
dev: true
- resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==}
- engines: {node: '>=12'}
- dev: true
-
resolution: {integrity: sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==}
engines: {node: '>=4'}
@@ -8646,13 +8370,6 @@ packages:
path-key: 3.1.1
dev: true
- resolution: {integrity: sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==}
- engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
- dependencies:
- path-key: 4.0.0
- dev: true
-
resolution: {integrity: sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg==}
engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
@@ -8670,7 +8387,6 @@ packages:
resolution: {integrity: sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==}
engines: {node: '>= 6'}
- dev: false
resolution: {integrity: sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==}
@@ -8751,13 +8467,6 @@ packages:
dependencies:
mimic-fn: 2.1.0
- resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==}
- engines: {node: '>=12'}
- dependencies:
- mimic-fn: 4.0.0
- dev: true
-
resolution: {integrity: sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==}
engines: {node: '>=12'}
@@ -8767,16 +8476,6 @@ packages:
is-wsl: 2.2.0
dev: false
- resolution: {integrity: sha512-OS+QTnw1/4vrf+9hh1jc1jnYjzSG4ttTBB8UxOwAnInG3Uo4ssetzC1ihqaIHjLJnA5GGlRl6QlZXOTQhRBUvg==}
- engines: {node: '>=14.16'}
- dependencies:
- default-browser: 4.0.0
- define-lazy-prop: 3.0.0
- is-inside-container: 1.0.0
- is-wsl: 2.2.0
- dev: true
-
resolution: {integrity: sha512-oPNVJkpgxDUKF6WGGdHEZh5m/kjmYxS2Y1q7YVFCkvKUGthb8OGYRGCFBRPq5CQJezifzABTZRlVYnXLd6L4vQ==}
hasBin: true
@@ -9045,11 +8744,6 @@ packages:
engines: {node: '>=8'}
dev: true
- resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==}
- engines: {node: '>=12'}
- dev: true
-
resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==}
@@ -9098,7 +8792,6 @@ packages:
resolution: {integrity: sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==}
engines: {node: '>=0.10.0'}
- dev: false
resolution: {integrity: sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==}
@@ -9137,7 +8830,6 @@ packages:
postcss-value-parser: 4.2.0
read-cache: 1.0.0
resolve: 1.22.6
- dev: false
resolution: {integrity: sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==}
@@ -9147,7 +8839,6 @@ packages:
dependencies:
camelcase-css: 2.0.1
postcss: 8.4.30
- dev: false
resolution: {integrity: sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==}
@@ -9180,7 +8871,6 @@ packages:
lilconfig: 2.1.0
postcss: 8.4.30
yaml: 2.3.2
- dev: false
resolution: {integrity: sha512-mEp4xPMi5bSWiMbsgoPfcP74lsWLHkQbZc3sY+jWYd65CUwXrUaTp0fmNpa01ZcETKlIgUdFN/MpS2xZtqL9dQ==}
@@ -9190,7 +8880,6 @@ packages:
dependencies:
postcss: 8.4.30
postcss-selector-parser: 6.0.13
- dev: false
resolution: {integrity: sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w==}
@@ -9206,11 +8895,9 @@ packages:
dependencies:
cssesc: 3.0.0
util-deprecate: 1.0.2
- dev: false
resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==}
- dev: false
resolution: {integrity: sha512-E398TUmfAYFPBSdzgeieK2Y1+1cpdxJx8yXbK/m57nRhKSmk1GB2tO4lbLBtlkfPQTDKfe4Xqv1ASWPpayPEig==}
@@ -9228,7 +8915,6 @@ packages:
nanoid: 3.3.6
picocolors: 1.0.0
source-map-js: 1.0.2
- dev: false
resolution: {integrity: sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==}
@@ -9283,80 +8969,11 @@ packages:
engines: {node: '>=4'}
dev: false
- resolution: {integrity: sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==}
- engines: {node: '>=6.0.0'}
- dependencies:
- fast-diff: 1.3.0
- dev: true
-
- resolution: {integrity: sha512-QZzzB1bID6qPsKHTeA9qPo1APmmxfFrA5DD3LQ+vbTmAnY40eJI7t9Q1ocqel2EKMWNPLJqdTDWZj1hKYgqSgg==}
- engines: {node: '>=14.21.3'}
- peerDependencies:
- '@ianvs/prettier-plugin-sort-imports': '*'
- '@prettier/plugin-pug': '*'
- '@shopify/prettier-plugin-liquid': '*'
- '@shufo/prettier-plugin-blade': '*'
- '@trivago/prettier-plugin-sort-imports': '*'
- prettier: ^3.0
- prettier-plugin-astro: '*'
- prettier-plugin-css-order: '*'
- prettier-plugin-import-sort: '*'
- prettier-plugin-jsdoc: '*'
- prettier-plugin-marko: '*'
- prettier-plugin-organize-attributes: '*'
- prettier-plugin-organize-imports: '*'
- prettier-plugin-style-order: '*'
- prettier-plugin-svelte: '*'
- prettier-plugin-twig-melody: '*'
- peerDependenciesMeta:
- '@ianvs/prettier-plugin-sort-imports':
- optional: true
- '@prettier/plugin-pug':
- optional: true
- '@shopify/prettier-plugin-liquid':
- optional: true
- '@shufo/prettier-plugin-blade':
- optional: true
- '@trivago/prettier-plugin-sort-imports':
- optional: true
- prettier-plugin-astro:
- optional: true
- prettier-plugin-css-order:
- optional: true
- prettier-plugin-import-sort:
- optional: true
- prettier-plugin-jsdoc:
- optional: true
- prettier-plugin-marko:
- optional: true
- prettier-plugin-organize-attributes:
- optional: true
- prettier-plugin-organize-imports:
- optional: true
- prettier-plugin-style-order:
- optional: true
- prettier-plugin-svelte:
- optional: true
- prettier-plugin-twig-melody:
- optional: true
- dependencies:
- '@trivago/prettier-plugin-sort-imports': 4.2.0([email protected])
- prettier: 3.0.3
- dev: true
-
resolution: {integrity: sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==}
engines: {node: '>=10.13.0'}
hasBin: true
- resolution: {integrity: sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==}
- engines: {node: '>=14'}
- hasBin: true
- dev: true
-
resolution: {integrity: sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==}
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
@@ -9591,7 +9208,6 @@ packages:
resolution: {integrity: sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==}
dependencies:
pify: 2.3.0
- dev: false
resolution: {integrity: sha512-0J+Msgym3vrLOUB3hzQCuZHII0xkNGCtz/HJH9xZshwv9DbDwkw1KaE3gx/e2J5rpEY5rtOy6cyhKOPrkP7FZw==}
@@ -9909,13 +9525,6 @@ packages:
- utf-8-validate
dev: false
- resolution: {integrity: sha512-XcT5rBksx1QdIhlFOCtgZkB99ZEouFZ1E2Kc2LHqNW13U3/74YGdkQRmThTwxy4QIyookibDKYZOPqX//6BlAg==}
- engines: {node: '>=12'}
- dependencies:
- execa: 5.1.1
- dev: true
-
resolution: {integrity: sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==}
engines: {node: '>=0.12.0'}
@@ -10203,11 +9812,6 @@ packages:
buffer-from: 1.1.2
source-map: 0.6.1
- resolution: {integrity: sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==}
- engines: {node: '>=0.10.0'}
- dev: true
-
resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==}
engines: {node: '>=0.10.0'}
@@ -10411,11 +10015,6 @@ packages:
engines: {node: '>=6'}
dev: true
- resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==}
- engines: {node: '>=12'}
- dev: true
-
resolution: {integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==}
engines: {node: '>=8'}
@@ -10506,18 +10105,19 @@ packages:
resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}
engines: {node: '>= 0.4'}
- resolution: {integrity: sha512-L1dapNV6vu2s/4Sputv8xGsCdAVlb5nRDMFU/E27D44l5U6cw1g0dGd45uLc+OXjNMmF4ntiMdCimzcjFKQI8Q==}
- engines: {node: ^14.18.0 || >=16.0.0}
- dependencies:
- '@pkgr/utils': 2.4.2
- tslib: 2.6.2
- dev: true
-
resolution: {integrity: sha512-3mFKyCo/MBcgyOTlrY8T7odzZFx+w+qKSMAmdFzRvqBfLlSigU6TZnlFHK0lkMwj9Bj8OYU+9yW9lmGuS0QEnQ==}
dev: false
+ resolution: {integrity: sha512-0ZwxTivevqq9BY9fRP9zDjHl7Tu+J5giBGbln+0O1R/7nHtBUKnjQcA1aTIhK7Oyjp6Uc/Dj6/dn8Dq58k5Uww==}
+ engines: {node: '>=12.13.0'}
+ peerDependencies:
+ tailwindcss: 3.x
+ dependencies:
+ tailwindcss: 3.3.3
+ dev: true
+
resolution: {integrity: sha512-bl6mpH3T7I3UFxuvDEXLxy/VuFxBk5bbzplh7tXI68mwMokNYd1t9qPBHlnyTwfa4JGC4zP516I1hYYtQ/vspA==}
peerDependencies:
@@ -10555,7 +10155,6 @@ packages:
sucrase: 3.34.0
transitivePeerDependencies:
- ts-node
- dev: false
resolution: {integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==}
@@ -10692,11 +10291,6 @@ packages:
engines: {node: '>=14.0.0'}
dev: true
- resolution: {integrity: sha512-KxVu8EYHDPBdUYdKZdKtU2aj2XfEx9AfjXxE/Aj0vT06w2icA09Vus1rh6eSu1y01akYg6BjIK/hxyLJINoMLQ==}
- engines: {node: '>=12'}
- dev: true
-
resolution: {integrity: sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==}
engines: {node: '>=0.6.0'}
@@ -10704,11 +10298,6 @@ packages:
os-tmpdir: 1.0.2
dev: false
- resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==}
- engines: {node: '>=4'}
- dev: true
-
resolution: {integrity: sha512-Z3g735FxuZY8rodxV4gH7LxClE4H0hTIyHNIHdk+vpQxjLm0cwnKXq/OFVZ76SOQmto7txVcwSCwkU5kqp+FKg==}
dev: true
@@ -11787,7 +11376,6 @@ packages:
resolution: {integrity: sha512-N/lyzTPaJasoDmfV7YTrYCI0G/3ivm/9wdG0aHuheKowWQwGTsK0Eoiw6utmzAnI6pkJa0DUVygvp3spqqEKXg==}
engines: {node: '>= 14'}
- dev: false
resolution: {integrity: sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==}
diff --git a/prettier.config.cjs b/prettier.config.cjs
deleted file mode 100644
index 821108b58..000000000
--- a/prettier.config.cjs
+++ /dev/null
@@ -1,12 +0,0 @@
-module.exports = {
- singleQuote: true,
- tabWidth: 2,
- semi: false,
- arrowParens: 'avoid',
- trailingComma: 'all',
- singleAttributePerLine: true,
- importOrder: ['<THIRD_PARTY_MODULES>', '^[./]'],
- importOrderSeparation: true,
- importOrderSortSpecifiers: true,
- printWidth: 90,
-}