Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Feature/e2b 424 restructure docs and add data analysis (#201)
Vasek Mlejnsky8b49ee62ba54
diff --git a/apps/docs/.eslintrc.json b/apps/docs/.eslintrc.jsonindex 39d2ada80..4bb997f31 100644--- a/apps/docs/.eslintrc.json+++ b/apps/docs/.eslintrc.json@@ -1,9 +1,6 @@{"root": true,- "extends": [- "../../.eslintrc.cjs",- "next/core-web-vitals"- ],+ "extends": ["../../.eslintrc.cjs", "next/core-web-vitals"],"overrides": [{"files": ["src/code/**/*.js"],diff --git a/apps/docs/.prettierignore b/apps/docs/.prettierignoreindex 6e1fb3a4c..05ad7aa19 100644--- a/apps/docs/.prettierignore+++ b/apps/docs/.prettierignore@@ -1 +1,2 @@-**/*.mdx\ No newline at end of file+**/*.mdx+**/code/**/*\ No newline at end of filediff --git a/apps/docs/components.json b/apps/docs/components.jsonindex 912f2b57d..523a6961b 100644--- a/apps/docs/components.json+++ b/apps/docs/components.json@@ -13,4 +13,4 @@"components": "@/components","utils": "@/lib/utils"}-}\ No newline at end of file+}diff --git a/apps/docs/next.config.mjs b/apps/docs/next.config.mjsindex b0055abd0..7dd9691b4 100644--- a/apps/docs/next.config.mjs+++ b/apps/docs/next.config.mjs@@ -31,7 +31,7 @@ function getFilesHash(rootPath) {shasum.update(delimiter)}- fsWalk.walkSync(rootPath, { stats: true }).forEach((e) => {+ fsWalk.walkSync(rootPath, { stats: true }).forEach(e => {if (!e.stats.isDirectory()) {if (e.path.includes(`/node_modules/`)) return // ignore node_modules which may contain symlinksconst content = fs.readFileSync(e.path, 'utf8')@@ -48,7 +48,7 @@ const codeSnippetsDir = path.resolve('./src/code')const nextConfig = {pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'mdx'],basePath: '/docs',- webpack: (config) => {+ webpack: config => {const codeFilesHash = getFilesHash(codeSnippetsDir)config.cache.version = config.cache.version + delimiter + codeFilesHashreturn config@@ -89,7 +89,7 @@ export default withSearch(tunnelRoute: '/monitoring',hideSourceMaps: true,disableLogger: true,- }- )- )+ },+ ),+ ),)diff --git a/apps/docs/package.json b/apps/docs/package.jsonindex a4ed61ee0..1da165f53 100644--- a/apps/docs/package.json+++ b/apps/docs/package.json@@ -70,4 +70,4 @@"knip": "^2.25.2","sharp": "^0.32.0"}-}\ No newline at end of file+}diff --git a/apps/docs/src/app/api/cli/page.tsx b/apps/docs/src/app/api/cli/page.tsxindex 5a6ccf1f4..ce68d0598 100644--- a/apps/docs/src/app/api/cli/page.tsx+++ b/apps/docs/src/app/api/cli/page.tsx@@ -50,7 +50,7 @@ export default function Page() {} else if (state === 'success') {content = (<>- <div className="font-bold text-emerald-400">Successfully linked</div>+ <div className="font-bold text-brand-400">Successfully linked</div><div>You can close this page and start using CLI.</div></>)diff --git a/apps/docs/src/app/favicon.ico b/apps/docs/src/app/favicon.icoindex d1a5aad4e..0e138eb9e 100644Binary files a/apps/docs/src/app/favicon.ico and b/apps/docs/src/app/favicon.ico differdiff --git a/apps/docs/src/app/getting-help/page.mdx b/apps/docs/src/app/getting-help/page.mdxnew file mode 100644index 000000000..71992e3f9--- /dev/null+++ b/apps/docs/src/app/getting-help/page.mdx@@ -0,0 +1,6 @@+# Getting help++If you have any questions, issues, or feature request 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 filediff --git a/apps/docs/src/app/getting-started/api-key/page.mdx b/apps/docs/src/app/getting-started/api-key/page.mdxindex 5537d50b2..c911b92ff 100644--- a/apps/docs/src/app/getting-started/api-key/page.mdx+++ b/apps/docs/src/app/getting-started/api-key/page.mdx@@ -7,7 +7,6 @@ import APIKey from './APIKey'Follow the [Basics](/playgrounds/overview) to start using the SDK.-## Use API key<CodeGroupAutoload path="api_key/api_key" isRunnable={false}/>diff --git a/apps/docs/src/app/guide/simple-gpt4-code-interpreter/page.mdx b/apps/docs/src/app/guide/simple-gpt4-code-interpreter/page.mdxindex c78a73dcf..7f0582679 100644--- a/apps/docs/src/app/guide/simple-gpt4-code-interpreter/page.mdx+++ b/apps/docs/src/app/guide/simple-gpt4-code-interpreter/page.mdx@@ -7,7 +7,7 @@ import {export const ExtraIcon = (<ChevronsUpsize={14}- className="text-emerald-500"+ className="text-brand-500"/>)@@ -71,7 +71,7 @@ Now we need to import the packages we installed in the previous step.import e2b from '@e2b/sdk'import OpenAI from 'openai'```-+```pythonimport e2bimport openai@@ -105,12 +105,12 @@ response = openai.ChatCompletion.create(model="gpt-4", # Or use gpt-3.5-turbomessages=[{- "role": "system",+ "role": "system","content": "You are a senior developer that can code in JavaScript. Always produce valid JSON."},])-```+```</CodeGroup>If you print the response, you should see something like this:@@ -180,7 +180,7 @@ functions = [},}]-```+```</CodeGroup>We created an OpenAI function `exec_code` that expects a single parameter `code`. The `code` parameter will be the Python code generated by GPT that we'll execute.@@ -344,7 +344,7 @@ if func_name == "exec_code":print(stderr) # $HighlightLine# ... rest of the code-```+```</CodeGroup>And this what the executed code for "Generate first 100 fibonacci numbers" prompt prints:@@ -459,7 +459,7 @@ functions = [}, # $HighlightLine} # $HighlightLine]-```+```</CodeGroup>Now we need to add a new `if` statement to our code that will detect if the model is calling the `install_package` function and if it does, we need to install the package using E2B.diff --git a/apps/docs/src/app/open-source/page.mdx b/apps/docs/src/app/open-source/page.mdxnew file mode 100644index 000000000..7a373df5a--- /dev/null+++ b/apps/docs/src/app/open-source/page.mdx@@ -0,0 +1,9 @@+# Open source++The main E2B web app, CLI, and SDKs are open source.++- [E2B monorepo](https://github.com/e2b-dev/e2b)+- [E2B cookbook](https://github.com/e2b-dev/e2b-cookbook)+- [Example code interpreter ChatGPT plugin](https://github.com/e2b-dev/llm-code-interpreter)+- [List of awesome SDKs for AI agents](https://github.com/e2b-dev/awesome-sdks-for-ai-agents)+- [List of awesome AI agents](https://github.com/e2b-dev/awesome-ai-agents)\ No newline at end of filediff --git a/apps/docs/src/app/page.mdx b/apps/docs/src/app/page.mdxindex c0e077be8..1dd9bd7f3 100644--- a/apps/docs/src/app/page.mdx+++ b/apps/docs/src/app/page.mdx@@ -3,27 +3,88 @@ import { UseCases } from '@/components/UseCases'import { HeroPattern } from '@/components/HeroPattern'import { Button } from '@/components/Button'import { ButtonLoginToken } from '@/components/ButtonLoginToken'+import { useSignIn } from '@/utils/useSignIn'-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',-}+{/* // export const metadata = {+// title: 'E2B Documentation - Sandbox Runtime for LLMs',+// description:+// 'Sandboxed cloud environments for AI agents & apps with a single line of code',+// } */}-export const sections = [- // { title: 'Next Steps', id: 'next-steps' },- // { title: 'How It Works', id: 'how-it-works' },-]+{/* <HeroPattern /> */}-<HeroPattern />+# Runtime Sandbox for Large Language Models-# What is E2B?+Sandboxes allow AI apps to have long running cloud environments where large language models can use the same tools as human do. {{ className: 'lead' }}-**Sandboxed cloud environments for AI agents & AI apps {{ className: 'lead' }}**+## Use cases+Our Sandboxes are general purpose machines powered by Ubuntu. Most of the things your AI app or agent can do locally can also be done in our sandboxes.+Here's a few use cases:-With E2B, you can create AI playgrounds. In these AI playgrounds, you can let your AI agents and apps:+- **AI data analysis**+- **Code interpreter**+- **Run LLM-generated code**+- **Coding copilots and agents**+- **AI powered browsers in cloud**-- [Run any code](/agents/exec) and terminal command in a sandboxed environment+## Quick start++### 1. Create an account+<Button variant="textLink">Sign in</Button> with your GitHub acccount.++### 2. Get your API key+After sign in, get [your API key](/getting-started/api-key).++### 3. Install the E2B SDK+We offer both JS and Python SDK.++<CodeGroup isRunnable={false}>+```bash {{ language: 'js' }}+npm i @e2b/sdk+```++```bash {{ language: 'python' }}+pip install e2b+```+</CodeGroup>++### 4. Start up the sandbox+<CodeGroup isRunnable={false}>+```js {{ language: 'js' }}+// 1. Import E2B+import { Session } from '@e2b/sdk'++// 2. Get your Sandbox session+const session = await Session({+ // or 'Bash', 'Python3', 'Java', 'Go', 'Rust', 'PHP', 'Perl', 'DotNET'+ id: 'Nodejs',+})++// 3. Close the session once done+await session.close()+```++```python {{ language: 'python' }}+# 1. Import E2B+from e2b import Session++# 2. Get your Sandbox session+session = Session(+ # or "Bash", "Python3", "Java", "Go", "Rust", "PHP", "Perl", "DotNET"+ id: "Nodejs",+)++# 3. Close the session once done+session.close()+```+</CodeGroup>+++### 🎉 Build your AI app++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)- [Run any shell command](/agents/shell-commands)- [Upload and download files](/playgrounds/filesystem#write-bytes)@@ -42,21 +103,11 @@ With E2B, you can create AI playgrounds. In these AI playgrounds, you can let yo<ButtonLoginToken /></div>-## Start cloud playground--<CodeGroup isRunnable={false}>-```bash {{ language: 'js' }}-npm i @e2b/sdk-```--```bash {{ language: 'python' }}-pip install e2b-```+## Start cloud playground-</CodeGroup><CodeGroupAutoloadpath="quickstart"isRunnable={false}-/>+/> */}diff --git a/apps/docs/src/code/js/agents/clone_repo.js b/apps/docs/src/code/js/agents/clone_repo.jsindex d04b61b51..9342c6452 100644--- a/apps/docs/src/code/js/agents/clone_repo.js+++ b/apps/docs/src/code/js/agents/clone_repo.js@@ -8,7 +8,8 @@ const session = await Session.create({})// 2. Start a process that will clone a repository-let proc = await session.process.start({ // $HighlightLine+let proc = await session.process.start({+ // $HighlightLinecmd: 'git clone https://github.com/cruip/open-react-template.git /code/open-react-template', // $HighlightLineonStderr: data => console.log(data.line), // $HighlightLineonStdout: data => console.log(data.line), // $HighlightLinediff --git a/apps/docs/src/code/js/agents/code_exec.js b/apps/docs/src/code/js/agents/code_exec.jsindex 70faadb9b..49916661f 100644--- a/apps/docs/src/code/js/agents/code_exec.js+++ b/apps/docs/src/code/js/agents/code_exec.js@@ -18,13 +18,13 @@ const code = ``await session.filesystem.write('/code/index.js', code)-// 3. Start the execution of the JavaScript file we saved-const proc = await session.process.start({ // $HighlightLine+const proc = await session.process.start({+ // $HighlightLinecmd: 'node /code/index.js', // $HighlightLine// 4. Stream stdout, stderr- onStdout: (data) => console.log(data.line), // $HighlightLine- onStderr: (data) => console.log(data.line), // $HighlightLine+ onStdout: data => console.log(data.line), // $HighlightLine+ onStderr: data => console.log(data.line), // $HighlightLine}) // $HighlightLine// 4. Wait for the process to finishdiff --git a/apps/docs/src/code/js/agents/install_deps_npm.js b/apps/docs/src/code/js/agents/install_deps_npm.jsindex bb8f2932d..7045676a7 100644--- a/apps/docs/src/code/js/agents/install_deps_npm.js+++ b/apps/docs/src/code/js/agents/install_deps_npm.js@@ -13,8 +13,8 @@ console.log('Installing lodash...')const proc = await session.process.start({cmd: 'npm install lodash', // $HighlightLinecwd: '/code', // $HighlightLine- onStdout: (data) => console.log('[INFO] ', data.line),- onStderr: (data) => console.log('[WARN | ERROR] ', data.line),+ onStdout: data => console.log('[INFO] ', data.line),+ onStderr: data => console.log('[WARN | ERROR] ', data.line),})// Wait for the process to finishawait proc.wait()@@ -30,8 +30,8 @@ await session.filesystem.write('/code/index.js', code)console.log('Running code...')const codeRun = await session.process.start({cmd: 'node /code/index.js',- onStdout: (data) => console.log('[INFO] ', data.line),- onStderr: (data) => console.log('[WARN | ERROR] ', data.line),+ onStdout: data => console.log('[INFO] ', data.line),+ onStderr: data => console.log('[WARN | ERROR] ', data.line),})await codeRun.wait()diff --git a/apps/docs/src/code/js/agents/start_process.js b/apps/docs/src/code/js/agents/start_process.jsindex 367dd3136..a89135ea3 100644--- a/apps/docs/src/code/js/agents/start_process.js+++ b/apps/docs/src/code/js/agents/start_process.js@@ -8,7 +8,8 @@ const session = await Session.create({})// 2. Start the shell commdand-let proc = await session.process.start({ // $HighlightLine+let proc = await session.process.start({+ // $HighlightLine// Print names of all running processescmd: "ps aux | tr -s ' ' | cut -d ' ' -f 11", // $HighlightLine// Stream stdout and stderrdiff --git a/apps/docs/src/code/js/api_key/api_key.js b/apps/docs/src/code/js/api_key/api_key.jsindex d8985d832..a0c5d6269 100644--- a/apps/docs/src/code/js/api_key/api_key.js+++ b/apps/docs/src/code/js/api_key/api_key.js@@ -1,4 +1,4 @@-import {Session} from '@e2b/sdk'+import { Session } from '@e2b/sdk'// You can pass an API key explicitlyconst explicitAPIKey = await Session.create({diff --git a/apps/docs/src/code/js/basics/fs_ls.js b/apps/docs/src/code/js/basics/fs_ls.jsindex aebd7fbbc..c10e9b55c 100644--- a/apps/docs/src/code/js/basics/fs_ls.js+++ b/apps/docs/src/code/js/basics/fs_ls.js@@ -6,7 +6,7 @@ const session = await Session.create({})const dirContent = await session.filesystem.list('/') // $HighlightLine-dirContent.forEach((item) => {+dirContent.forEach(item => {console.log(item.name)})diff --git a/apps/docs/src/code/js/basics/fs_watch.js b/apps/docs/src/code/js/basics/fs_watch.jsindex 025fdbb6c..500326b5c 100644--- a/apps/docs/src/code/js/basics/fs_watch.js+++ b/apps/docs/src/code/js/basics/fs_watch.js@@ -12,7 +12,6 @@ watcher.addEventListener(event => {})await watcher.start() // $HighlightLine-// Create files in the /home directory inside the playground// We'll receive notifications for these events through the watcher we created above.for (let i = 0; i < 10; i++) {diff --git a/apps/docs/src/code/js/basics/process_start.js b/apps/docs/src/code/js/basics/process_start.jsindex 72444847e..02d35e096 100644--- a/apps/docs/src/code/js/basics/process_start.js+++ b/apps/docs/src/code/js/basics/process_start.js@@ -5,8 +5,9 @@ const session = await Session.create({apiKey: process.env.E2B_API_KEY,})-const npmInit = await session.process.start({ // $HighlightLine- cmd: 'npm init -y'+const npmInit = await session.process.start({+ // $HighlightLine+ cmd: 'npm init -y',})await npmInit.wait()diff --git a/apps/docs/src/code/js/basics/process_stop.js b/apps/docs/src/code/js/basics/process_stop.jsindex 5c8aa2acf..22538dc87 100644--- a/apps/docs/src/code/js/basics/process_stop.js+++ b/apps/docs/src/code/js/basics/process_stop.js@@ -6,7 +6,7 @@ const session = await Session.create({})const npmInit = await session.process.start({- cmd: 'npm init -y'+ cmd: 'npm init -y',})await npmInit.kill() // $HighlightLine// There will be no output because we immediately kill the `npm_init` processdiff --git a/apps/docs/src/code/js/basics/process_write_stdin.js b/apps/docs/src/code/js/basics/process_write_stdin.jsindex b7e7c56da..7f35ed1c8 100644--- a/apps/docs/src/code/js/basics/process_write_stdin.js+++ b/apps/docs/src/code/js/basics/process_write_stdin.js@@ -8,7 +8,7 @@ const session = await Session.create({// This example will print back the string we send to the process using `sendStdin()`const proc = await session.process.start({- cmd: 'while IFS= read -r line; do echo \"$line\"; sleep 1; done',+ cmd: 'while IFS= read -r line; do echo "$line"; sleep 1; done',onStdout: output => console.log(output),})await proc.sendStdin('AI Playground\n') // $HighlightLinediff --git a/apps/docs/src/code/js/basics/scan_ports.js b/apps/docs/src/code/js/basics/scan_ports.jsindex 94244cbf3..95db2912b 100644--- a/apps/docs/src/code/js/basics/scan_ports.js+++ b/apps/docs/src/code/js/basics/scan_ports.js@@ -23,13 +23,12 @@ function printNewPortAndURL(openPorts, session) {const session = await Session.create({id: 'Python3',apiKey: process.env.E2B_API_KEY,- onScanPorts: openPorts => printNewPortAndURL(openPorts, session) // $HighlightLine+ onScanPorts: openPorts => printNewPortAndURL(openPorts, session), // $HighlightLine})// Start a new server on port 8000 inside the playground.const proc = await session.process.start({ cmd: 'python3 -m http.server 8000' }) // $HighlightLine-// Wait 10 seconds and then kill the server and close the session.await sleep(10000)await proc.kill()diff --git a/apps/docs/src/code/js/code_exec/process.js b/apps/docs/src/code/js/code_exec/process.jsindex 944f4420c..bbcf76c78 100644--- a/apps/docs/src/code/js/code_exec/process.js+++ b/apps/docs/src/code/js/code_exec/process.js@@ -12,13 +12,13 @@ const session = await Session.create({const llmGeneratedCode = 'print("This code was generated by LLM")'await session.filesystem.write('/main.py', llmGeneratedCode)-// 3. Start the execution of the JavaScript file we saved-const proc = await session.process.start({ // $HighlightLine+const proc = await session.process.start({+ // $HighlightLinecmd: 'python /main.py', // $HighlightLine// 4. Stream stdout, stderr- onStdout: (data) => console.log(data.line), // $HighlightLine- onStderr: (data) => console.log(data.line), // $HighlightLine+ onStdout: data => console.log(data.line), // $HighlightLine+ onStderr: data => console.log(data.line), // $HighlightLine}) // $HighlightLine// 4. Wait for the process to finishdiff --git a/apps/docs/src/components/Auth.tsx b/apps/docs/src/components/Auth.tsxindex 28efe5b59..395ece588 100644--- a/apps/docs/src/components/Auth.tsx+++ b/apps/docs/src/components/Auth.tsx@@ -9,6 +9,7 @@ import { HeaderSeparator } from '@/components/HeaderUtils'import { usePostHog } from 'posthog-js/react'import { obfuscateSecret } from '@/utils/obfuscate'import { useSignIn } from '@/utils/useSignIn'+import { Popover, PopoverContent, PopoverTrigger } from './ui/Popover'function CopyableSecret({diff --git a/apps/docs/src/components/Button.tsx b/apps/docs/src/components/Button.tsxindex b29bbbf3c..c2d4f0fd1 100644--- a/apps/docs/src/components/Button.tsx+++ b/apps/docs/src/components/Button.tsx@@ -21,18 +21,20 @@ function ArrowIcon(props: React.ComponentPropsWithoutRef<'svg'>) {const variantStyles = {primary:- 'rounded-full bg-zinc-900 py-1 px-3 text-white hover:bg-zinc-700 dark:bg-emerald-400/10 dark:text-emerald-400 dark:ring-1 dark:ring-inset dark:ring-emerald-400/20 dark:hover:bg-emerald-400/10 dark:hover:text-emerald-300 dark:hover:ring-emerald-300',+ 'rounded-full bg-zinc-900 py-1 px-3 text-white hover:bg-zinc-700 dark:bg-brand-400/10 dark:text-brand-400 dark:ring-1 dark:ring-inset dark:ring-brand-400/20 dark:hover:bg-brand-400/10 dark:hover:text-brand-300 dark:hover:ring-brand-300',secondary:'rounded-full bg-zinc-100 py-1 px-3 text-zinc-900 hover:bg-zinc-200 dark:bg-zinc-800/40 dark:text-zinc-400 dark:ring-1 dark:ring-inset dark:ring-zinc-800 dark:hover:bg-zinc-800 dark:hover:text-zinc-300',ternary:'rounded-full bg-yellow-100 py-1 px-3 text-yellow-900 hover:bg-yellow-200 dark:bg-yellow-800/40 dark:text-yellow-400 dark:ring-1 dark:ring-inset dark:ring-yellow-800 dark:hover:bg-yellow-800 dark:hover:text-yellow-300',filled:- 'rounded-full bg-zinc-900 py-1 px-3 text-white hover:bg-zinc-700 dark:bg-emerald-500 dark:text-white dark:hover:bg-emerald-400',+ 'rounded-full bg-zinc-900 py-1 px-3 text-white hover:bg-zinc-700 dark:bg-brand-500 dark:text-white dark:hover:bg-brand-400',outline:'rounded-full py-1 px-3 text-zinc-700 ring-1 ring-inset ring-zinc-900/10 hover:bg-zinc-900/2.5 hover:text-zinc-900 dark:text-zinc-400 dark:ring-white/10 dark:hover:bg-white/5 dark:hover:text-white',- text: 'text-emerald-500 hover:text-emerald-600 dark:text-emerald-400 dark:hover:text-emerald-500',+ text: 'text-brand-500 hover:text-brand-600 dark:text-brand-400 dark:hover:text-brand-500 underline',+ textLink:+ 'text-brand-500 hover:text-brand-600 dark:text-brand-400 dark:hover:text-brand-500 underline decoration-2 decoration-brand-500/30',textSubtle:- 'text-zinc-500 hover:text-zinc-600 dark:text-zinc-400 dark:hover:text-zinc-500', // same as text, but gray-ish+ 'text-zinc-500 hover:text-zinc-600 dark:text-zinc-400 dark:hover:text-zinc-500 underline', // same as text, but gray-ishtextTernary:'text-yellow-500 hover:text-yellow-600 dark:text-yellow-400 dark:hover:text-yellow-500', // same as text, but gray-ish}@@ -55,7 +57,7 @@ export function Button({...props}: ButtonProps) {className = clsx(- 'inline-flex gap-0.5 justify-center overflow-hidden text-sm font-medium transition',+ 'inline-flex gap-0.5 justify-center overflow-hidden text-base font-medium transition',variantStyles[variant],disabled && 'opacity-50 pointer-events-none',className,diff --git a/apps/docs/src/components/Code.tsx b/apps/docs/src/components/Code.tsxindex 1427f09ad..a2bd4c5d5 100644--- a/apps/docs/src/components/Code.tsx+++ b/apps/docs/src/components/Code.tsx@@ -178,7 +178,7 @@ function CodePanel({<><span>Running</span><LoaderIcon- className="h-4 w-4 animate-spin text-emerald-400 transition-all group-hover:text-emerald-300"+ className="h-4 w-4 animate-spin text-brand-400 transition-all group-hover:text-brand-300"strokeWidth={2.5}/></>@@ -186,7 +186,7 @@ function CodePanel({<><span>Run</span><PlayIcon- className="h-4 w-4 text-emerald-400 transition-all group-hover:text-emerald-300"+ className="h-4 w-4 text-brand-400 transition-all group-hover:text-brand-300"strokeWidth={2.5}/></>@@ -237,7 +237,7 @@ export function CodeGroupHeader({className={clsx('border-b py-3 transition ui-not-focus-visible:outline-none',childIndex === selectedIndex- ? 'border-emerald-500 text-emerald-400'+ ? 'border-brand-500 text-brand-400': 'border-transparent text-zinc-400 hover:text-zinc-300',)}>diff --git a/apps/docs/src/components/CopyButton.tsx b/apps/docs/src/components/CopyButton.tsxindex fc678e0a3..08cd20e84 100644--- a/apps/docs/src/components/CopyButton.tsx+++ b/apps/docs/src/components/CopyButton.tsx@@ -52,7 +52,7 @@ export function CopyButton({customPositionClassNames,'group/button absolute overflow-hidden rounded-full border border-zinc-700 py-1 pl-2 pr-3 text-2xs font-medium opacity-0 transition focus:opacity-100 group-hover:opacity-100',copied- ? 'bg-emerald-400/20 ring-1 ring-inset ring-emerald-400/20'+ ? 'bg-brand-400/20 ring-1 ring-inset ring-brand-400/20': 'dark:hover:bg-red-500/ bg-white/5 hover:bg-white/7.5 dark:bg-white/2.5',)}onClick={() => {@@ -75,7 +75,7 @@ export function CopyButton({<spanaria-hidden={!copied}className={clsx(- 'pointer-events-none absolute inset-0 flex items-center justify-center text-emerald-400 transition duration-300',+ 'pointer-events-none absolute inset-0 flex items-center justify-center text-brand-400 transition duration-300',!copied && 'translate-y-1.5 opacity-0',)}>diff --git a/apps/docs/src/components/Feedback/FeedbackButton.tsx b/apps/docs/src/components/Feedback/FeedbackButton.tsxindex 844a8436c..b9e11dfe5 100644--- a/apps/docs/src/components/Feedback/FeedbackButton.tsx+++ b/apps/docs/src/components/Feedback/FeedbackButton.tsx@@ -18,18 +18,12 @@ function FeedbackButton({ onClick, isFinished, variant, className }) {>{isFinished ? (<>- <Check- size={14}- className=""- />+ <Check size={14} /><span className="text-sm">Thank you!</span></>) : (<div className="flex flex-row items-center gap-2">- <MessageCircle- size={14}- className=""- />+ <MessageCircle size={14} /><span className="text-sm">Send feedback to CEO</span></div>)}diff --git a/apps/docs/src/components/Feedback/FeedbackModal.tsx b/apps/docs/src/components/Feedback/FeedbackModal.tsxindex d4712d7f7..6d4b34821 100644--- a/apps/docs/src/components/Feedback/FeedbackModal.tsx+++ b/apps/docs/src/components/Feedback/FeedbackModal.tsx@@ -86,7 +86,7 @@ function FeedbackModal({ open, setOpen, onSend }) {<Send size="14px" />)}- <span className="text-sm">Send</span>+ <span className="text-base">Send</span></Button></form></DialogAnimated>diff --git a/apps/docs/src/components/FeedbackQuick.tsx b/apps/docs/src/components/FeedbackQuick.tsxindex e701323e6..324c0cfa6 100644--- a/apps/docs/src/components/FeedbackQuick.tsx+++ b/apps/docs/src/components/FeedbackQuick.tsx@@ -63,8 +63,8 @@ const FeedbackThanks = forwardRef(function FeedbackThanks(_props, ref) {ref={ref}className="absolute inset-0 flex justify-center md:justify-start">- <div className="flex items-center gap-3 rounded-full bg-emerald-50/50 py-1 pl-1.5 pr-3 text-sm text-emerald-900 ring-1 ring-inset ring-emerald-500/20 dark:bg-emerald-500/5 dark:text-emerald-200 dark:ring-emerald-500/30">- <CheckIcon className="h-5 w-5 flex-none fill-emerald-500 stroke-white dark:fill-emerald-200/20 dark:stroke-emerald-200" />+ <div className="bg-brand-50/50 flex items-center gap-3 rounded-full py-1 pl-1.5 pr-3 text-sm text-brand-900 ring-1 ring-inset ring-brand-500/20 dark:bg-brand-500/5 dark:text-brand-200 dark:ring-brand-500/30">+ <CheckIcon className="h-5 w-5 flex-none fill-brand-500 stroke-white dark:fill-brand-200/20 dark:stroke-brand-200" />Thanks for your feedback!</div></div>diff --git a/apps/docs/src/components/Footer.tsx b/apps/docs/src/components/Footer.tsxindex ca2a062ad..4919b3de4 100644--- a/apps/docs/src/components/Footer.tsx+++ b/apps/docs/src/components/Footer.tsx@@ -100,10 +100,15 @@ function SocialLink({function SmallPrint() {return (- <div className="flex flex-col items-center justify-between gap-5 border-t border-zinc-900/5 pt-8 dark:border-white/5 sm:flex-row">- <p className="text-xs text-zinc-600 dark:text-zinc-400">- © FoundryLabs, Inc. {new Date().getFullYear()}. All rights reserved.- </p>+ <div className="flex flex-col items-start items-center justify-between gap-5 border-t border-zinc-900/5 pt-8 dark:border-white/5 sm:flex-row">+ <div className="flex flex-col items-center justify-start lg:items-start">+ <p className="text-xs text-zinc-600 dark:text-zinc-400">+ © FoundryLabs, Inc. {new Date().getFullYear()}. All rights reserved.+ </p>+ <p className="text-xs text-zinc-600 dark:text-zinc-400">+ 548 Market Street #83122, San Francisco, CA 94104+ </p>+ </div><div className="flex gap-4"><SocialLinkhref="https://twitter.com/e2b_dev"diff --git a/apps/docs/src/components/Header.tsx b/apps/docs/src/components/Header.tsxindex cfa8f5f38..7ba663261 100644--- a/apps/docs/src/components/Header.tsx+++ b/apps/docs/src/components/Header.tsx@@ -7,6 +7,7 @@ import {useIsInsideMobileNavigation,useMobileNavigationStore,} from '@/components/MobileNavigation'+import { Logo } from '@/components/Logo'import { MobileSearch, Search } from '@/components/Search'import { Auth } from '@/components/Auth'import { HeaderSeparator } from '@/components/HeaderUtils'@@ -96,8 +97,7 @@ export const Header = forwardRef(function Header({ className }, ref) {href="/"aria-label="Home">- {/* <Logo className="h-6" /> */}- <h1 className="font-tile text-xl font-bold">E2B</h1>+ <Logo className="h-6" /></Link></div><div className="flex items-center gap-4">diff --git a/apps/docs/src/components/HeroPattern.tsx b/apps/docs/src/components/HeroPattern.tsxindex 0b4ca3f27..a4723c59e 100644--- a/apps/docs/src/components/HeroPattern.tsx+++ b/apps/docs/src/components/HeroPattern.tsx@@ -4,7 +4,7 @@ export function HeroPattern() {return (<div className="absolute inset-0 -z-10 mx-0 max-w-none overflow-hidden"><div className="absolute left-1/2 top-0 ml-[-38rem] h-[25rem] w-[81.25rem] dark:[mask-image:linear-gradient(white,transparent)]">- <div className="absolute inset-0 bg-gradient-to-r from-[#36b49f] to-[#DBFF75] opacity-40 [mask-image:radial-gradient(farthest-side_at_top,white,transparent)] dark:from-[#36b49f]/30 dark:to-[#DBFF75]/30 dark:opacity-100">+ <div className="absolute inset-0 bg-gradient-to-r from-[#FF8800] to-[#F15B03] opacity-40 [mask-image:radial-gradient(farthest-side_at_top,white,transparent)] dark:from-[#FF8800]/30 dark:to-[#F15B03]/30 dark:opacity-100"><GridPatternwidth={72}height={56}@@ -20,11 +20,37 @@ export function HeroPattern() {/></div><svg- viewBox="0 0 1113 440"- aria-hidden="true"- className="absolute left-1/2 top-0 ml-[-19rem] w-[69.5625rem] fill-white blur-[26px] dark:hidden"+ width="600"+ height="630"+ viewBox="0 0 600 630"+ fill="none"+ xmlns="http://www.w3.org/2000/svg">- <path d="M.016 439.5s-9.5-300 434-300S882.516 20 882.516 20V0h230.004v439.5H.016Z" />+ <path+ fillRule="evenodd"+ clipRule="evenodd"+ d="M1023.4 543.117C1015.03 543.117 1009.8 552.179 1013.98 559.429L1101.56 711.11C1106.4 719.501 1098.68 729.56 1089.32 727.052L823.731 655.884C812.128 652.775 800.201 659.661 797.092 671.264L725.925 936.859C723.418 946.218 710.847 947.872 706.003 939.482L618.416 787.772C614.23 780.522 603.765 780.522 599.58 787.772L511.992 939.482C507.148 947.872 494.577 946.218 492.07 936.859L420.903 671.264C417.794 659.661 405.868 652.775 394.265 655.884L128.673 727.052C119.314 729.56 111.596 719.501 116.44 711.11L204.01 559.429C208.196 552.179 202.964 543.117 194.593 543.117L19.4604 543.115C9.7718 543.115 4.91989 531.401 11.7708 524.55L206.2 330.125C214.694 321.631 214.694 307.859 206.2 299.365L11.7709 104.935C4.92002 98.0843 9.7722 86.3703 19.4608 86.3705L194.574 86.3727C202.946 86.3728 208.178 77.3103 203.992 70.0603L116.44 -81.5889C111.596 -89.9796 119.314 -100.038 128.673 -97.5307L394.265 -26.3628C405.868 -23.2537 417.794 -30.1394 420.903 -41.7424L492.07 -307.338C494.577 -316.696 507.148 -318.351 511.992 -309.961L599.579 -158.251C603.765 -151.001 614.23 -151.001 618.415 -158.251L706.002 -309.961C710.847 -318.351 723.417 -316.696 725.925 -307.338L797.092 -41.7424C800.201 -30.1394 812.127 -23.2537 823.73 -26.3628L1089.32 -97.5307C1098.68 -100.038 1106.4 -89.9796 1101.55 -81.5889L1014 70.0603C1009.82 77.3104 1015.05 86.3728 1023.42 86.3727L1198.54 86.3705C1208.23 86.3703 1213.08 98.0843 1206.23 104.935L1011.8 299.365C1003.31 307.859 1003.31 321.631 1011.8 330.125L1206.23 524.55C1213.08 531.401 1208.23 543.115 1198.54 543.115L1023.4 543.117ZM956.559 126.236C964.426 118.368 956.801 105.162 946.054 108.041L709.546 171.416C697.943 174.525 686.016 167.64 682.907 156.036L619.502 -80.5935C616.622 -91.3406 601.373 -91.3407 598.493 -80.5936L535.087 156.036C531.978 167.64 520.052 174.525 508.449 171.416L271.949 108.044C261.202 105.164 253.577 118.37 261.444 126.238L434.574 299.368C443.068 307.862 443.068 321.634 434.574 330.127L261.403 503.294C253.536 511.162 261.161 524.368 271.908 521.489L508.449 458.105C520.052 454.996 531.978 461.882 535.087 473.485L598.493 710.116C601.373 720.863 616.622 720.863 619.502 710.116L682.908 473.485C686.017 461.882 697.943 454.996 709.546 458.105L946.095 521.491C956.842 524.37 964.467 511.164 956.599 503.296L783.427 330.127C774.933 321.634 774.933 307.862 783.427 299.368L956.559 126.236Z"+ fill="url(#paint0_linear_13_7033)"+ />+ <defs>+ <linearGradient+ id="paint0_linear_13_7033"+ x1="609"+ y1="10.0006"+ x2="609"+ y2="692.501"+ gradientUnits="userSpaceOnUse"+ >+ <stop+ stopColor="#333333"+ stopOpacity="0.29"+ />+ <stop+ offset="1"+ stopColor="#333333"+ />+ </linearGradient>+ </defs></svg></div></div>diff --git a/apps/docs/src/components/Layout.tsx b/apps/docs/src/components/Layout.tsxindex 7681cfb1f..541520663 100644--- a/apps/docs/src/components/Layout.tsx+++ b/apps/docs/src/components/Layout.tsx@@ -8,6 +8,7 @@ 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,@@ -27,13 +28,12 @@ export function Layout({className="contents lg:pointer-events-none lg:fixed lg:inset-0 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="hidden lg:flex">+ <div className="relative top-1 hidden items-start justify-start lg:flex"><Linkhref="/"aria-label="Home">- <h1 className="text-xl font-bold">E2B</h1>- {/* <Logo className="h-6" /> */}+ <Logo className="h-6" /></Link></div><Header />diff --git a/apps/docs/src/components/Logo.tsx b/apps/docs/src/components/Logo.tsxindex 5c4ca389b..b209f1668 100644--- a/apps/docs/src/components/Logo.tsx+++ b/apps/docs/src/components/Logo.tsx@@ -1,18 +1,161 @@export function Logo(props) {return (<svg- viewBox="0 0 99 24"- aria-hidden="true"+ viewBox="0 0 676 232"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"{...props}><path- className="fill-emerald-400"- d="M16 8a5 5 0 0 0-5-5H5a5 5 0 0 0-5 5v13.927a1 1 0 0 0 1.623.782l3.684-2.93a4 4 0 0 1 2.49-.87H11a5 5 0 0 0 5-5V8Z"+ d="M545.35 202V30H608.499C627.501 30 642.162 34.0952 652.482 42.2857C662.802 50.3124 667.962 61.3695 667.962 75.4571C667.962 85.7771 665.259 94.0495 659.853 100.274C654.611 106.335 647.485 110.594 638.476 113.051C645.356 114.198 651.499 116.328 656.905 119.44C662.31 122.552 666.569 126.893 669.682 132.463C672.958 137.869 674.596 144.667 674.596 152.857C674.596 168.091 669.108 180.131 658.133 188.977C647.322 197.659 631.514 202 610.71 202H545.35ZM573.607 178.166H610.956C622.259 178.166 630.859 175.954 636.756 171.531C642.653 166.945 645.602 160.638 645.602 152.611C645.602 144.257 642.571 137.787 636.51 133.2C630.449 128.613 621.931 126.32 610.956 126.32H573.607V178.166ZM573.607 102.977H609.236C619.064 102.977 626.6 100.766 631.842 96.3429C637.084 91.92 639.705 85.8591 639.705 78.16C639.705 70.461 637.084 64.4819 631.842 60.2229C626.6 55.8 619.064 53.5886 609.236 53.5886H573.607V102.977Z"+ fill="white"/><path- className="fill-zinc-900 dark:fill-white"- d="M26.538 18h2.654v-3.999h2.576c2.672 0 4.456-1.723 4.456-4.333V9.65c0-2.61-1.784-4.333-4.456-4.333h-5.23V18Zm4.58-10.582c1.52 0 2.416.8 2.416 2.241v.018c0 1.441-.896 2.25-2.417 2.25h-1.925V7.418h1.925ZM38.051 18h2.566v-5.414c0-1.371.923-2.206 2.382-2.206.396 0 .791.061 1.178.15V8.287a3.843 3.843 0 0 0-.958-.123c-1.257 0-2.136.615-2.443 1.661h-.159V8.323h-2.566V18Zm11.55.202c2.979 0 4.772-1.88 4.772-5.036v-.018c0-3.128-1.82-5.036-4.773-5.036-2.953 0-4.772 1.916-4.772 5.036v.018c0 3.146 1.793 5.036 4.772 5.036Zm0-2.013c-1.372 0-2.145-1.116-2.145-3.023v-.018c0-1.89.782-3.023 2.144-3.023 1.354 0 2.145 1.134 2.145 3.023v.018c0 1.907-.782 3.023-2.145 3.023Zm10.52 1.846c.492 0 .967-.053 1.283-.114v-1.907a6.057 6.057 0 0 1-.755.044c-.87 0-1.24-.387-1.24-1.257v-4.544h1.995V8.323H59.41V6.012h-2.592v2.311h-1.495v1.934h1.495v5.133c0 1.88.949 2.645 3.304 2.645Zm7.287.167c2.98 0 4.772-1.88 4.772-5.036v-.018c0-3.128-1.82-5.036-4.772-5.036-2.954 0-4.773 1.916-4.773 5.036v.018c0 3.146 1.793 5.036 4.773 5.036Zm0-2.013c-1.372 0-2.145-1.116-2.145-3.023v-.018c0-1.89.782-3.023 2.145-3.023 1.353 0 2.144 1.134 2.144 3.023v.018c0 1.907-.782 3.023-2.144 3.023Zm10.767 2.013c2.522 0 4.034-1.353 4.297-3.463l.01-.053h-2.374l-.017.036c-.229.966-.853 1.467-1.908 1.467-1.37 0-2.135-1.08-2.135-3.04v-.018c0-1.934.755-3.006 2.135-3.006 1.099 0 1.74.615 1.908 1.556l.008.017h2.391v-.026c-.228-2.162-1.749-3.56-4.315-3.56-3.033 0-4.738 1.837-4.738 5.019v.017c0 3.217 1.714 5.054 4.738 5.054Zm10.257 0c2.98 0 4.772-1.88 4.772-5.036v-.018c0-3.128-1.82-5.036-4.772-5.036-2.953 0-4.773 1.916-4.773 5.036v.018c0 3.146 1.793 5.036 4.773 5.036Zm0-2.013c-1.371 0-2.145-1.116-2.145-3.023v-.018c0-1.89.782-3.023 2.145-3.023 1.353 0 2.144 1.134 2.144 3.023v.018c0 1.907-.782 3.023-2.144 3.023ZM95.025 18h2.566V4.623h-2.566V18Z"+ d="M405.588 202V179.851L472.534 122.86C477.843 118.381 482.571 113.984 486.719 109.67C490.867 105.357 494.102 100.877 496.425 96.2316C498.748 91.4202 499.909 86.277 499.909 80.8019C499.909 70.8472 496.84 63.2153 490.701 57.9061C484.728 52.597 476.764 49.9424 466.81 49.9424C456.855 49.9424 448.808 53.0947 442.67 59.3993C436.531 65.704 433.461 74.2484 433.461 85.0326V88.019H405.837V83.5394C405.837 72.4234 408.326 62.6346 413.303 54.1731C418.281 45.5457 425.332 38.7434 434.457 33.766C443.748 28.7887 454.532 26.3 466.81 26.3C479.917 26.3 490.95 28.5398 499.909 33.0195C509.034 37.4991 515.919 43.7207 520.565 51.6845C525.376 59.6482 527.782 68.9392 527.782 79.5576C527.782 88.1849 526.206 95.8998 523.054 102.702C519.901 109.339 515.505 115.643 509.864 121.616C504.389 127.423 498.084 133.313 490.95 139.286L444.66 177.86H529.026V202H405.588Z"+ fill="white"/>+ <path+ d="M274 202V30H386.292V55.0629H302.257V102.731H371.549V127.057H302.257V176.937H389.24V202H274Z"+ fill="white"+ />+ <path+ fillRule="evenodd"+ clipRule="evenodd"+ d="M188.212 157.998C186.672 157.998 185.71 159.665 186.48 160.998L202.585 188.894C203.476 190.437 202.056 192.287 200.335 191.826L151.491 178.737C149.357 178.165 147.163 179.432 146.592 181.566L133.504 230.411C133.042 232.132 130.731 232.436 129.84 230.893L113.732 202.992C112.962 201.659 111.037 201.659 110.268 202.992L94.1595 230.893C93.2686 232.436 90.9568 232.132 90.4956 230.411L77.4075 181.566C76.8357 179.432 74.6423 178.165 72.5085 178.737L23.664 191.826C21.9429 192.287 20.5234 190.437 21.4143 188.894L37.5192 160.998C38.289 159.665 37.3267 157.998 35.7871 157.998L3.57893 157.998C1.79713 157.998 0.904821 155.844 2.16476 154.584L37.9218 118.827C39.484 117.265 39.484 114.733 37.9218 113.171L2.16478 77.4133C0.904844 76.1533 1.7972 73.999 3.57902 73.9991L35.7837 73.9995C37.3233 73.9995 38.2856 72.3328 37.5158 70.9995L21.4143 43.11C20.5234 41.5669 21.9429 39.717 23.664 40.1781L72.5085 53.2665C74.6423 53.8383 76.8357 52.572 77.4075 50.4381L90.4956 1.59292C90.9568 -0.128187 93.2686 -0.432531 94.1595 1.11058L110.267 29.0111C111.037 30.3445 112.962 30.3445 113.732 29.0111L129.84 1.11058C130.73 -0.432532 133.042 -0.128189 133.503 1.59292L146.592 50.4381C147.163 52.572 149.357 53.8383 151.491 53.2665L200.335 40.1781C202.056 39.717 203.476 41.5669 202.585 43.11L186.483 70.9995C185.713 72.3328 186.676 73.9995 188.215 73.9995L220.421 73.9991C222.203 73.999 223.095 76.1533 221.835 77.4133L186.078 113.171C184.516 114.733 184.516 117.265 186.078 118.827L221.835 154.584C223.095 155.844 222.203 157.998 220.421 157.998L188.212 157.998ZM175.919 81.3306C177.366 79.8837 175.963 77.4549 173.987 77.9845L130.491 89.6396C128.357 90.2114 126.164 88.9451 125.592 86.8112L113.931 43.293C113.402 41.3166 110.597 41.3166 110.068 43.293L98.4069 86.8112C97.8351 88.9451 95.6418 90.2114 93.5079 89.6396L50.0136 77.9849C48.0371 77.4553 46.6348 79.8841 48.0817 81.331L79.9216 113.171C81.4837 114.733 81.4837 117.266 79.9216 118.828L48.0742 150.675C46.6273 152.122 48.0296 154.55 50.0061 154.021L93.5079 142.364C95.6418 141.792 97.8351 143.059 98.4069 145.192L110.068 188.711C110.597 190.687 113.402 190.687 113.931 188.711L125.592 145.192C126.164 143.059 128.357 141.792 130.491 142.364L173.994 154.021C175.971 154.551 177.373 152.122 175.926 150.675L144.079 118.828C142.516 117.266 142.516 114.733 144.079 113.171L175.919 81.3306Z"+ fill="white"+ />+ <mask+ id="mask0_354_41876"+ style={{+ maskType: 'alpha',+ }}+ maskUnits="userSpaceOnUse"+ x="1"+ y="0"+ width="222"+ height="232"+ >+ <path+ fillRule="evenodd"+ clipRule="evenodd"+ d="M188.212 157.998C186.672 157.998 185.71 159.665 186.48 160.998L202.585 188.894C203.476 190.437 202.056 192.287 200.335 191.826L151.491 178.737C149.357 178.165 147.163 179.432 146.592 181.566L133.504 230.411C133.042 232.132 130.731 232.436 129.84 230.893L113.732 202.992C112.962 201.659 111.037 201.659 110.268 202.992L94.1595 230.893C93.2686 232.436 90.9568 232.132 90.4956 230.411L77.4075 181.566C76.8357 179.432 74.6423 178.165 72.5085 178.737L23.664 191.826C21.9429 192.287 20.5234 190.437 21.4143 188.894L37.5192 160.998C38.289 159.665 37.3267 157.998 35.7871 157.998L3.57893 157.998C1.79713 157.998 0.904821 155.844 2.16476 154.584L37.9218 118.827C39.484 117.265 39.484 114.733 37.9218 113.171L2.16478 77.4133C0.904844 76.1533 1.7972 73.999 3.57902 73.9991L35.7837 73.9995C37.3233 73.9995 38.2856 72.3328 37.5158 70.9995L21.4143 43.11C20.5234 41.5669 21.9429 39.717 23.664 40.1781L72.5085 53.2665C74.6423 53.8383 76.8357 52.572 77.4075 50.4381L90.4956 1.59292C90.9568 -0.128187 93.2686 -0.432531 94.1595 1.11058L110.267 29.0111C111.037 30.3445 112.962 30.3445 113.732 29.0111L129.84 1.11058C130.73 -0.432532 133.042 -0.128189 133.503 1.59292L146.592 50.4381C147.163 52.572 149.357 53.8383 151.491 53.2665L200.335 40.1781C202.056 39.717 203.476 41.5669 202.585 43.11L186.483 70.9995C185.713 72.3328 186.676 73.9995 188.215 73.9995L220.421 73.9991C222.203 73.999 223.095 76.1533 221.835 77.4133L186.078 113.171C184.516 114.733 184.516 117.265 186.078 118.827L221.835 154.584C223.095 155.844 222.203 157.998 220.421 157.998L188.212 157.998ZM175.919 81.3306C177.366 79.8837 175.963 77.4549 173.987 77.9845L130.491 89.6396C128.357 90.2114 126.164 88.9451 125.592 86.8112L113.931 43.293C113.402 41.3166 110.597 41.3166 110.068 43.293L98.4069 86.8112C97.8351 88.9451 95.6418 90.2114 93.5079 89.6396L50.0136 77.9849C48.0371 77.4553 46.6348 79.8841 48.0817 81.331L79.9216 113.171C81.4837 114.733 81.4837 117.266 79.9216 118.828L48.0742 150.675C46.6273 152.122 48.0296 154.55 50.0061 154.021L93.5079 142.364C95.6418 141.792 97.8351 143.059 98.4069 145.192L110.068 188.711C110.597 190.687 113.402 190.687 113.931 188.711L125.592 145.192C126.164 143.059 128.357 141.792 130.491 142.364L173.994 154.021C175.971 154.551 177.373 152.122 175.926 150.675L144.079 118.828C142.516 117.266 142.516 114.733 144.079 113.171L175.919 81.3306Z"+ fill="url(#paint0_angular_354_41876)"+ />+ <path+ fillRule="evenodd"+ clipRule="evenodd"+ d="M188.212 157.998C186.672 157.998 185.71 159.665 186.48 160.998L202.585 188.894C203.476 190.437 202.056 192.287 200.335 191.826L151.491 178.737C149.357 178.165 147.163 179.432 146.592 181.566L133.504 230.411C133.042 232.132 130.731 232.436 129.84 230.893L113.732 202.992C112.962 201.659 111.037 201.659 110.268 202.992L94.1595 230.893C93.2686 232.436 90.9568 232.132 90.4956 230.411L77.4075 181.566C76.8357 179.432 74.6423 178.165 72.5085 178.737L23.664 191.826C21.9429 192.287 20.5234 190.437 21.4143 188.894L37.5192 160.998C38.289 159.665 37.3267 157.998 35.7871 157.998L3.57893 157.998C1.79713 157.998 0.904821 155.844 2.16476 154.584L37.9218 118.827C39.484 117.265 39.484 114.733 37.9218 113.171L2.16478 77.4133C0.904844 76.1533 1.7972 73.999 3.57902 73.9991L35.7837 73.9995C37.3233 73.9995 38.2856 72.3328 37.5158 70.9995L21.4143 43.11C20.5234 41.5669 21.9429 39.717 23.664 40.1781L72.5085 53.2665C74.6423 53.8383 76.8357 52.572 77.4075 50.4381L90.4956 1.59292C90.9568 -0.128187 93.2686 -0.432531 94.1595 1.11058L110.267 29.0111C111.037 30.3445 112.962 30.3445 113.732 29.0111L129.84 1.11058C130.73 -0.432532 133.042 -0.128189 133.503 1.59292L146.592 50.4381C147.163 52.572 149.357 53.8383 151.491 53.2665L200.335 40.1781C202.056 39.717 203.476 41.5669 202.585 43.11L186.483 70.9995C185.713 72.3328 186.676 73.9995 188.215 73.9995L220.421 73.9991C222.203 73.999 223.095 76.1533 221.835 77.4133L186.078 113.171C184.516 114.733 184.516 117.265 186.078 118.827L221.835 154.584C223.095 155.844 222.203 157.998 220.421 157.998L188.212 157.998ZM175.919 81.3306C177.366 79.8837 175.963 77.4549 173.987 77.9845L130.491 89.6396C128.357 90.2114 126.164 88.9451 125.592 86.8112L113.931 43.293C113.402 41.3166 110.597 41.3166 110.068 43.293L98.4069 86.8112C97.8351 88.9451 95.6418 90.2114 93.5079 89.6396L50.0136 77.9849C48.0371 77.4553 46.6348 79.8841 48.0817 81.331L79.9216 113.171C81.4837 114.733 81.4837 117.266 79.9216 118.828L48.0742 150.675C46.6273 152.122 48.0296 154.55 50.0061 154.021L93.5079 142.364C95.6418 141.792 97.8351 143.059 98.4069 145.192L110.068 188.711C110.597 190.687 113.402 190.687 113.931 188.711L125.592 145.192C126.164 143.059 128.357 141.792 130.491 142.364L173.994 154.021C175.971 154.551 177.373 152.122 175.926 150.675L144.079 118.828C142.516 117.266 142.516 114.733 144.079 113.171L175.919 81.3306Z"+ fill="url(#paint1_angular_354_41876)"+ />+ </mask>+ <g mask="url(#mask0_354_41876)">+ <g filter="url(#filter0_f_354_41876)">+ <path+ d="M199.78 -26.5815L112 117.997L155.89 190.286L199.78 262.575L277.233 117.997L199.78 -26.5815Z"+ fill="url(#paint2_linear_354_41876)"+ />+ </g>+ </g>+ <defs>+ <filter+ id="filter0_f_354_41876"+ x="91.3462"+ y="-47.2356"+ width="206.54"+ height="330.465"+ filterUnits="userSpaceOnUse"+ colorInterpolationFilters="sRGB"+ >+ <feFlood+ floodOpacity="0"+ result="BackgroundImageFix"+ />+ <feBlend+ mode="normal"+ in="SourceGraphic"+ in2="BackgroundImageFix"+ result="shape"+ />+ <feGaussianBlur+ stdDeviation="10.327"+ result="effect1_foregroundBlur_354_41876"+ />+ </filter>+ <radialGradient+ id="paint0_angular_354_41876"+ cx="0"+ cy="0"+ r="1"+ gradientUnits="userSpaceOnUse"+ gradientTransform="translate(150.342 182.032) rotate(59.4351) scale(161.356 156.629)"+ >+ <stop+ offset="0.455526"+ stopColor="white"+ />+ <stop+ offset="0.762774"+ stopColor="#FF8800"+ />+ <stop+ offset="0.895833"+ stopColor="#FF3D00"+ />+ <stop+ offset="0.916667"+ stopColor="white"+ />+ </radialGradient>+ <radialGradient+ id="paint1_angular_354_41876"+ cx="0"+ cy="0"+ r="1"+ gradientUnits="userSpaceOnUse"+ gradientTransform="translate(112 116.002) rotate(90) scale(115.892 110.425)"+ >+ <stop+ offset="0.03125"+ stopColor="white"+ />+ <stop+ offset="0.500802"+ stopColor="white"+ />+ <stop+ offset="0.5784"+ stopColor="white"+ />+ <stop+ offset="0.787671"+ stopColor="white"+ stopOpacity="0"+ />+ <stop+ offset="1"+ stopColor="white"+ stopOpacity="0"+ />+ </radialGradient>+ <linearGradient+ id="paint2_linear_354_41876"+ x1="139.539"+ y1="66.3617"+ x2="210.107"+ y2="195.449"+ gradientUnits="userSpaceOnUse"+ >+ <stop stopColor="white" />+ <stop+ offset="0.720129"+ stopColor="#FF8800"+ />+ <stop+ offset="1"+ stopColor="#FF4400"+ />+ </linearGradient>+ </defs></svg>)}diff --git a/apps/docs/src/components/Navigation.tsx b/apps/docs/src/components/Navigation.tsxindex 056309e7b..5818390b8 100644--- a/apps/docs/src/components/Navigation.tsx+++ b/apps/docs/src/components/Navigation.tsx@@ -13,15 +13,19 @@ import { remToPx } from '@/lib/remToPx'import { Auth } from '@/components/Auth'import { Feedback } from '@/components/Feedback'import {- Binary,- Bug,ChevronRightSquare,Folder,FolderTree,KeyRound,Settings,- ShieldAlert,+ AlertOctagon,+ ShieldQuestion,Timer,+ FileUp,+ FileDown,+ HeartHandshake,+ DollarSign,+ Hammer,} from 'lucide-react'interface NavGroup {@@ -100,10 +104,12 @@ function NavLink({>{tag}</Tag>- <span className="truncate">{children}</span>+ <span className={clsx('truncate', active ? 'text-white' : '')}>+ {children}+ </span></div>) : (- <span className="truncate">{children}</span>+ <span className={clsx('truncate', active ? 'text-white' : '')}>{children}</span>)}</div></Link>@@ -147,7 +153,7 @@ function ActivePageMarker({ group, pathname }: { group: NavGroup; pathname: strireturn (<motion.divlayout- className="absolute left-2 h-6 w-px bg-emerald-500"+ className="absolute left-2 h-6 w-px bg-brand-500"initial={{ opacity: 0 }}animate={{ opacity: 1, transition: { delay: 0.2 } }}exit={{ opacity: 0 }}@@ -170,14 +176,13 @@ function NavigationGroup({ group, className }) {[initialPathname, useSectionStore(s => s.sections)],isInsideMobileNavigation,)-const isActiveGroup = activeGroupIndex(group, pathname) !== -1return (<li className={clsx('relative mt-6', className)}><motion.h2layout="position"- className="text-xs font-semibold text-zinc-900 dark:text-white"+ className="text-sm font-semibold text-zinc-900 dark:text-white">{group.title}</motion.h2>@@ -216,7 +221,11 @@ function NavigationGroup({ group, className }) {<NavLinkclassName="font-medium"href={link.href}- active={`/docs${link.href}` === pathname}+ active={+ `/docs${link.href}` === pathname ||+ // Special case for index (/)+ (link.href == '/' && pathname == '/docs')+ }isFontMono={link.isFontMono}icon={link.icon}tag={link.tag}@@ -266,13 +275,38 @@ function NavigationGroup({ group, className }) {export const navigation = [{- title: 'Introduction',+ title: 'Overview',links: [- { title: 'What is E2B & AI Playgrounds?', href: '/' },- { title: 'Pricing', href: '/pricing' },+ { title: 'Introduction', href: '/' },{- title: 'Example: Build Code Interpreter',- href: '/guide/simple-gpt4-code-interpreter',+ 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',},],},@@ -299,29 +333,49 @@ export const navigation = [title: 'API Key',href: '/getting-started/api-key',},- // { title: 'SDK Basics', href: '/getting-started/basics' },- // { title: 'SDK Timeouts', href: '/getting-started/sdk-timeouts' },- // { title: 'SDK Logging', href: '/getting-started/sdk-logging' },- // {- // title: 'SDK Multiple Processes',- // href: '/getting-started/sdk-multiple-processes',- // },+ {+ 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: 'AI Playgrounds SDK',+ title: 'Sandbox API',links: [{ title: 'Overview', href: '/playgrounds/overview' },{icon: (- <ShieldAlert+ <AlertOctagonstrokeWidth={1}size={20}/>),- title: 'Limitations',+ title: 'Current Limitations',href: '/playgrounds/limitations',},+ // {+ // icon: (+ // <Variable+ // strokeWidth={1}+ // size={20}+ // />+ // ),+ // title: '[TODO] Environment Variables',+ // href: '/playgrounds/envs',+ // },{icon: (<FolderTree@@ -339,59 +393,70 @@ export const navigation = [size={20}/>),- title: 'Running Processes',+ title: 'Process',href: '/playgrounds/process',},- {- icon: (- <Binary- strokeWidth={1}- size={20}- />- ),- title: 'Executing Code',- href: '/playgrounds/execute',- },- // {- // icon: (- // <FileUp- // strokeWidth={1}- // size={20}- // />- // ),- // title: 'Upload Files',- // href: '/playgrounds/upload',- // },+ // TODO: Remove// {// icon: (- // <FileDown+ // <Binary// strokeWidth={1}// size={20}// />// ),- // title: 'Download Files',- // href: '/playgrounds/download',+ // title: 'Executing Code',+ // href: '/playgrounds/execute',// },{icon: (- <Folder+ <FileUpstrokeWidth={1}size={20}/>),- title: 'Working Directory',- href: '/playgrounds/cwd',+ title: 'Upload Files',+ href: '/playgrounds/upload',},{icon: (- <Bug+ <FileDownstrokeWidth={1}size={20}/>),- title: 'Debugging',- href: '/playgrounds/debugging',+ 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@@ -404,18 +469,18 @@ export const navigation = [},],},- {- 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 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',@@ -496,10 +561,7 @@ export function Navigation(props) {/>))}<li className="z-10 mt-6">- <Feedback- variant="secondary"- className="w-full"- />+ <Feedback className="w-full" /></li><li/* -1.5rem to stretch outside the padding of the parent list */diff --git a/apps/docs/src/components/Search.tsx b/apps/docs/src/components/Search.tsxindex e5849c1b4..87d48549c 100644--- a/apps/docs/src/components/Search.tsx+++ b/apps/docs/src/components/Search.tsx@@ -176,7 +176,7 @@ function LoadingIcon(props: React.ComponentPropsWithoutRef<'svg'>) {function HighlightQuery({ text, query }: { text: string; query: string }) {return (<Highlighter- highlightClassName="underline bg-transparent text-emerald-500"+ highlightClassName="underline bg-transparent text-brand-500"searchWords={[query]}autoEscape={true}textToHighlight={text}@@ -221,7 +221,7 @@ function SearchResult({<divid={`${id}-title`}aria-hidden="true"- className="text-sm font-medium text-zinc-900 group-aria-selected:text-emerald-500 dark:text-white"+ className="text-sm font-medium text-zinc-900 group-aria-selected:text-brand-500 dark:text-white"><HighlightQuerytext={result.title}@@ -337,7 +337,7 @@ const SearchInput = forwardRef</>{autocompleteState.status === 'stalled' && (<div className="absolute inset-y-0 right-3 flex items-center">- <LoadingIcon className="h-5 w-5 animate-spin stroke-zinc-200 text-zinc-900 dark:stroke-zinc-800 dark:text-emerald-400" />+ <LoadingIcon className="h-5 w-5 animate-spin stroke-zinc-200 text-zinc-900 dark:stroke-zinc-800 dark:text-brand-400" /></div>)}</div>diff --git a/apps/docs/src/components/Tag.tsx b/apps/docs/src/components/Tag.tsxindex d257694d8..884f12256 100644--- a/apps/docs/src/components/Tag.tsx+++ b/apps/docs/src/components/Tag.tsx@@ -7,9 +7,9 @@ const variantStyles = {const colorStyles = {emerald: {- small: 'text-emerald-500 dark:text-emerald-400',+ small: 'text-brand-500 dark:text-brand-400',medium:- 'ring-emerald-300 dark:ring-emerald-400/30 bg-emerald-400/10 text-emerald-500 dark:text-emerald-400',+ 'ring-brand-300 dark:ring-brand-400/30 bg-brand-400/10 text-brand-500 dark:text-brand-400',},sky: {small: 'text-sky-500',diff --git a/apps/docs/src/components/UseCases.tsx b/apps/docs/src/components/UseCases.tsxindex 02ebfdde8..7eacd73ec 100644--- a/apps/docs/src/components/UseCases.tsx+++ b/apps/docs/src/components/UseCases.tsx@@ -68,8 +68,8 @@ const useCases = [function UseCaseIcon({ icon: Icon }) {return (- <div className="flex h-7 w-7 items-center justify-center rounded-full bg-zinc-900/5 ring-1 ring-zinc-900/25 backdrop-blur-[2px] transition duration-300 group-hover:bg-white/50 group-hover:ring-zinc-900/25 dark:bg-white/7.5 dark:ring-white/15 dark:group-hover:bg-emerald-300/10 dark:group-hover:ring-emerald-400">- <Icon className="h-5 w-5 fill-zinc-700/10 stroke-zinc-700 transition-colors duration-300 group-hover:stroke-zinc-900 dark:fill-white/10 dark:stroke-zinc-400 dark:group-hover:fill-emerald-300/10 dark:group-hover:stroke-emerald-400" />+ <div className="flex h-7 w-7 items-center justify-center rounded-full bg-zinc-900/5 ring-1 ring-zinc-900/25 backdrop-blur-[2px] transition duration-300 group-hover:bg-white/50 group-hover:ring-zinc-900/25 dark:bg-white/7.5 dark:ring-white/15 dark:group-hover:bg-brand-300/10 dark:group-hover:ring-brand-400">+ <Icon className="h-5 w-5 fill-zinc-700/10 stroke-zinc-700 transition-colors duration-300 group-hover:stroke-zinc-900 dark:fill-white/10 dark:stroke-zinc-400 dark:group-hover:fill-brand-300/10 dark:group-hover:stroke-brand-400" /></div>)}diff --git a/apps/docs/src/components/icons/TwitterIcon.tsx b/apps/docs/src/components/icons/TwitterIcon.tsxindex ffd0f80da..3b95a20b3 100644--- a/apps/docs/src/components/icons/TwitterIcon.tsx+++ b/apps/docs/src/components/icons/TwitterIcon.tsx@@ -1,11 +1,20 @@export function TwitterIcon(props) {return (<svg- viewBox="0 0 20 20"- aria-hidden="true"+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 1668.56 1221.19"{...props}>- <path d="M16.712 6.652c.01.146.01.29.01.436 0 4.449-3.267 9.579-9.242 9.579v-.003a8.963 8.963 0 0 1-4.98-1.509 6.379 6.379 0 0 0 4.807-1.396c-1.39-.027-2.608-.966-3.035-2.337.487.097.99.077 1.467-.059-1.514-.316-2.606-1.696-2.606-3.3v-.041c.45.26.956.404 1.475.42C3.18 7.454 2.74 5.486 3.602 3.947c1.65 2.104 4.083 3.382 6.695 3.517a3.446 3.446 0 0 1 .94-3.217 3.172 3.172 0 0 1 4.596.148 6.38 6.38 0 0 0 2.063-.817 3.357 3.357 0 0 1-1.428 1.861 6.283 6.283 0 0 0 1.865-.53 6.735 6.735 0 0 1-1.62 1.744Z" />+ <g+ id="layer1"+ transform="translate(52.390088,-25.058597)"+ >+ <path+ id="path1009"+ d="M283.94,167.31l386.39,516.64L281.5,1104h87.51l340.42-367.76L984.48,1104h297.8L874.15,558.3l361.92-390.99+ h-87.51l-313.51,338.7l-253.31-338.7H283.94z M412.63,231.77h136.81l604.13,807.76h-136.81L412.63,231.77z"+ />+ </g></svg>)}diff --git a/apps/docs/src/components/mdx.tsx b/apps/docs/src/components/mdx.tsxindex d5eb5dda6..0a9bc50b7 100644--- a/apps/docs/src/components/mdx.tsx+++ b/apps/docs/src/components/mdx.tsx@@ -64,8 +64,8 @@ function InfoIcon(props: React.ComponentPropsWithoutRef<'svg'>) {export function Note({ children }: { children: React.ReactNode }) {return (- <div className="my-6 flex gap-2.5 rounded-2xl border border-emerald-500/20 bg-emerald-50/50 p-4 leading-6 text-emerald-900 dark:border-emerald-500/30 dark:bg-emerald-500/5 dark:text-emerald-200 dark:[--tw-prose-links-hover:theme(colors.emerald.300)] dark:[--tw-prose-links:theme(colors.white)]">- <InfoIcon className="mt-1 h-4 w-4 flex-none fill-emerald-500 stroke-white dark:fill-emerald-200/20 dark:stroke-emerald-200" />+ <div className="bg-brand-50/50 my-6 flex gap-2.5 rounded-2xl border border-brand-500/20 p-4 leading-6 text-brand-900 dark:border-brand-500/30 dark:bg-brand-500/5 dark:text-brand-200 dark:[--tw-prose-links-hover:theme(colors.brand.300)] dark:[--tw-prose-links:theme(colors.white)]">+ <InfoIcon className="mt-1 h-4 w-4 flex-none fill-brand-500 stroke-white dark:fill-brand-200/20 dark:stroke-brand-200" /><div className="[&>:first-child]:mt-0 [&>:last-child]:mb-0">{children}</div></div>)diff --git a/apps/docs/src/styles/tailwind.css b/apps/docs/src/styles/tailwind.cssindex b53299136..3cbcd124e 100644--- a/apps/docs/src/styles/tailwind.css+++ b/apps/docs/src/styles/tailwind.css@@ -1,13 +1,13 @@@layer base {:root {--shiki-color-text: theme('colors.white');- --shiki-token-constant: theme('colors.emerald.300');- --shiki-token-string: theme('colors.emerald.300');+ --shiki-token-constant: theme('colors.brand.300');+ --shiki-token-string: theme('colors.brand.300');--shiki-token-comment: theme('colors.zinc.500');--shiki-token-keyword: theme('colors.sky.300');--shiki-token-parameter: theme('colors.pink.300');--shiki-token-function: theme('colors.violet.300');- --shiki-token-string-expression: theme('colors.emerald.300');+ --shiki-token-string-expression: theme('colors.brand.300');--shiki-token-punctuation: theme('colors.zinc.200');}@@ -15,20 +15,17 @@position: relative; /* holds highlight element */z-index: 1; /* force above the highlight defined below */}-+code[class*='language-'] .Code-line_highlighted:before {content: '';position: absolute;left: -16px; /* align nicely with code border */- top: -5px; bottom: -5px; /* breathing space */- border-left: 3px solid theme('colors.emerald.500');+ top: -5px;+ bottom: -5px; /* breathing space */+ border-left: 3px solid theme('colors.brand.500');width: 300px; /* arbitrary value, looks nice *//* TODO: Theme colors */- background: linear-gradient(- to right,- hsl(240, 3%, 21%),- #1d1d20- );+ background: linear-gradient(to right, hsl(240, 3%, 21%), #1d1d20);pointer-events: none;z-index: -1; /* force below code */}@@ -123,10 +120,9 @@}.circle {- @apply w-[5px] h-[5px] mx-[2px] relative top-[-1px] bg-gray-500 rounded-full;+ @apply relative top-[-1px] mx-[2px] h-[5px] w-[5px] rounded-full bg-gray-500;}@tailwind base;@tailwind components;@tailwind utilities;-diff --git a/apps/docs/tailwind.config.ts b/apps/docs/tailwind.config.tsindex 7d5676787..5faa12744 100644--- a/apps/docs/tailwind.config.ts+++ b/apps/docs/tailwind.config.ts@@ -34,6 +34,16 @@ export default {typography: typographyStyles,extend: {colors: {+ brand: {+ 900: '#FF0000',+ 800: '#FF3300',+ 700: '#FF6600',+ 600: '#FF8800',+ 500: '#F1944E',+ 400: '#F6A951',+ 300: '#F9C78B',+ 200: '#FDE3C4',+ },border: 'hsl(var(--border))',input: 'hsl(var(--input))',ring: 'hsl(var(--ring))',@@ -97,8 +107,8 @@ export default {loaderDots: {to: {opacity: '0.1',- transform: 'translate3d(0, -0.3rem, 0)' // TODO: More parametric- }+ transform: 'translate3d(0, -0.3rem, 0)', // TODO: More parametric+ },},'accordion-down': {// @ts-ignore@@ -110,12 +120,8 @@ export default {// @ts-ignoreto: { height: 0 },},- }+ },},},- plugins: [- typographyPlugin,- headlessuiPlugin,- animatePlugin,- ],+ plugins: [typographyPlugin, headlessuiPlugin, animatePlugin],} satisfies Configdiff --git a/apps/docs/typography.ts b/apps/docs/typography.tsindex c036540f6..046c2a6d2 100644--- a/apps/docs/typography.ts+++ b/apps/docs/typography.ts@@ -6,9 +6,9 @@ export default function typographyStyles({ theme }: PluginUtils) {css: {'--tw-prose-body': theme('colors.zinc.700'),'--tw-prose-headings': theme('colors.zinc.900'),- '--tw-prose-links': theme('colors.emerald.500'),- '--tw-prose-links-hover': theme('colors.emerald.600'),- '--tw-prose-links-underline': theme('colors.emerald.500 / 0.3'),+ '--tw-prose-links': theme('colors.brand.500'),+ '--tw-prose-links-hover': theme('colors.brand.600'),+ '--tw-prose-links-underline': theme('colors.brand.500 / 0.3'),'--tw-prose-bold': theme('colors.zinc.900'),'--tw-prose-counters': theme('colors.zinc.500'),'--tw-prose-bullets': theme('colors.zinc.300'),@@ -24,9 +24,9 @@ export default function typographyStyles({ theme }: PluginUtils) {'--tw-prose-invert-body': theme('colors.zinc.400'),'--tw-prose-invert-headings': theme('colors.white'),- '--tw-prose-invert-links': theme('colors.emerald.400'),- '--tw-prose-invert-links-hover': theme('colors.emerald.500'),- '--tw-prose-invert-links-underline': theme('colors.emerald.500 / 0.3'),+ '--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-counters': theme('colors.zinc.400'),'--tw-prose-invert-bullets': theme('colors.zinc.600'),@@ -42,7 +42,7 @@ export default function typographyStyles({ theme }: PluginUtils) {// Basecolor: 'var(--tw-prose-body)',- fontSize: theme('fontSize.sm')[0],+ fontSize: theme('fontSize.base')[0],lineHeight: theme('lineHeight.7'),// Layout@@ -63,8 +63,8 @@ export default function typographyStyles({ theme }: PluginUtils) {marginBottom: theme('spacing.6'),},'[class~="lead"]': {- fontSize: theme('fontSize.base')[0],- ...theme('fontSize.base')[1],+ fontSize: theme('fontSize.lg')[0],+ ...theme('fontSize.lg')[1],},// Lists@@ -184,21 +184,21 @@ export default function typographyStyles({ theme }: PluginUtils) {h1: {color: 'var(--tw-prose-headings)',fontWeight: '700',- fontSize: theme('fontSize.2xl')[0],+ fontSize: theme('fontSize.3xl')[0],...theme('fontSize.2xl')[1],marginBottom: theme('spacing.2'),},h2: {color: 'var(--tw-prose-headings)',fontWeight: '600',- fontSize: theme('fontSize.lg')[0],+ fontSize: theme('fontSize.xl')[0],...theme('fontSize.lg')[1],marginTop: theme('spacing.16'),marginBottom: theme('spacing.2'),},h3: {color: 'var(--tw-prose-headings)',- fontSize: theme('fontSize.base')[0],+ fontSize: theme('fontSize.lg')[0],...theme('fontSize.base')[1],fontWeight: '600',marginTop: theme('spacing.10'),@@ -281,7 +281,8 @@ export default function typographyStyles({ theme }: PluginUtils) {// Inline elementsa: {color: 'var(--tw-prose-links)',- textDecoration: 'underline transparent',+ textDecoration: `underline ${theme('colors.brand.500 / 0.3')}`,+ textDecorationThickness: '2px',fontWeight: '500',transitionProperty: 'color, text-decoration-color',transitionDuration: theme('transitionDuration.DEFAULT'),diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 4f5fd2c7c..49f641d93 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -5806,6 +5806,31 @@ packages:source-map: 0.6.1dev: true+ resolution: {integrity: sha512-WE8367sqMnjhWHvR5OivmfwENRQ1ixfNE9hZwQqNCsd+iM3KnuMc1V8Pt6ytgjxjf23D+xbesADv9x3xaKfT3g==}+ peerDependencies:+ eslint: ^7.23.0 || ^8.0.0+ typescript: '>=3.3.1'+ peerDependenciesMeta:+ typescript:+ optional: true+ dependencies:+ '@next/eslint-plugin-next': 13.4.19+ '@rushstack/eslint-patch': 1.4.0+ '@typescript-eslint/parser': 6.7.2([email protected])([email protected])+ eslint: 8.49.0+ eslint-import-resolver-node: 0.3.9+ eslint-import-resolver-typescript: 3.6.0(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])+ eslint-plugin-import: 2.28.1(@typescript-eslint/[email protected])([email protected])+ eslint-plugin-jsx-a11y: 6.7.1([email protected])+ eslint-plugin-react: 7.33.2([email protected])+ eslint-plugin-react-hooks: 4.6.0([email protected])+ typescript: 4.9.5+ transitivePeerDependencies:+ - eslint-import-resolver-webpack+ - supports-color+ dev: true+resolution: {integrity: sha512-WE8367sqMnjhWHvR5OivmfwENRQ1ixfNE9hZwQqNCsd+iM3KnuMc1V8Pt6ytgjxjf23D+xbesADv9x3xaKfT3g==}peerDependencies: