Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Remove unused files
Tomas Valentae9d010e15d73
diff --git a/packages/python-sdk/openapitools.json b/packages/python-sdk/openapitools.jsondeleted file mode 100644index 15fef607c..000000000--- a/packages/python-sdk/openapitools.json+++ /dev/null@@ -1,7 +0,0 @@-{- "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",- "spaces": 2,- "generator-cli": {- "version": "7.1.0"- }-}diff --git a/tests/.gitignore b/tests/.gitignoredeleted file mode 100644index 3c3629e64..000000000--- a/tests/.gitignore+++ /dev/null@@ -1 +0,0 @@-node_modulesdiff --git a/tests/build.sh b/tests/build.shdeleted file mode 100755index 8c8534afd..000000000--- a/tests/build.sh+++ /dev/null@@ -1,14 +0,0 @@-#!/bin/bash--set -euo pipefail--NAME="testing-$(date +"%Y-%m-%d_%H-%M")"--echo "Creating a new template: ${NAME}"-e2b template build --name "${NAME}"--echo "Listing templates"-e2b template list | grep "${NAME}"--echo "Deleting the template: ${NAME}"-e2b template delete -ydiff --git a/tests/e2b.Dockerfile b/tests/e2b.Dockerfiledeleted file mode 100644index 0d5a2764c..000000000--- a/tests/e2b.Dockerfile+++ /dev/null@@ -1,3 +0,0 @@-FROM ubuntu:latest--RUN echo "Hello World" > /hello.txtdiff --git a/tests/index.mts b/tests/index.mtsdeleted file mode 100644index b210bd34e..000000000--- a/tests/index.mts+++ /dev/null@@ -1,106 +0,0 @@-import { Sandbox } from 'e2b'-import { config } from 'dotenv'-config()--const p = `-import time--print('start')--for i in range(10):- print(i)- time.sleep(1)--print('end')---import requests--url = 'https://www.google.com/'--response = requests.get(url)--if response.status_code == 200:- with open('google.html', 'w', encoding='utf-8') as file:- file.write(response.text)- print('Website downloaded successfully.')-else:- print(f'Failed to download website. Status code: {response.status_code}')--`--async function createSandbox() {- const sandbox = await Sandbox.create({- timeout: 20000,- logger: {- warn: console.warn,- error: console.error,- },- })-- const out = await sandbox.process.startAndWait('pip install requests')- console.log('OUT1:', out)- const o2 = await sandbox.process.startAndWait(`python3 -c "${p}"`)- console.log('OUT2:', o2)-- return sandbox-}--export function notEmpty<T>(value: T | null | undefined): value is T {- return value !== null && value !== undefined-}--async function createBatch<T>(length: number, m: () => Promise<T>): Promise<T[]> {- const sandboxes = Array.from({ length }, m)-- return (await Promise.allSettled(sandboxes))- .map((result) => {- if (result.status === 'fulfilled') {- return result.value- }-- console.error('ERROR:', result.reason)- })- .filter(notEmpty)-}--const batchSize = 1-const batchCount = 1--const sandboxes: Sandbox[] = []--for (let i = 0; i < batchCount; i++) {- const s = await createBatch(batchSize, createSandbox)- console.log(`> batch ${i + 1}: ${s.length} sandboxes created`)- if (s.length > 0) {- const first = s[0]- try {- await first.keepAlive(60 * 60 * 1000) // 4 hour- // Remove the first element- } catch (error) {- console.error('ERROR:', error)- }- }-- sandboxes.push(...s)-}--for (const s of sandboxes) {- try {- s.close()-- // Randomly kill some sandboxes- if (Math.random() > 0.5) {- await Sandbox.kill(s.id)- continue- }- } catch (error) {- console.error('ERROR:', error)- }-}---console.log('-------------------')-console.log(`> from ${batchCount * batchSize} sandboxes, ${sandboxes.length} were created`)--process.exit(0)\ No newline at end of filediff --git a/tests/package-lock.json b/tests/package-lock.jsondeleted file mode 100644index a233938e0..000000000--- a/tests/package-lock.json+++ /dev/null@@ -1,395 +0,0 @@-{- "name": "test",- "version": "1.0.0",- "lockfileVersion": 3,- "requires": true,- "packages": {- "": {- "name": "test",- "version": "1.0.0",- "license": "ISC",- "dependencies": {- "dotenv": "^16.4.5",- "e2b": "^0.13.2"- }- },- "node_modules/@types/node": {- "version": "18.19.31",- "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.31.tgz",- "integrity": "sha512-ArgCD39YpyyrtFKIqMDvjz79jto5fcI/SVUs2HwB+f0dAzq68yqOdyaSivLiLugSziTpNXLQrVb7RZFmdZzbhA==",- "peer": true,- "dependencies": {- "undici-types": "~5.26.4"- }- },- "node_modules/@types/node-fetch": {- "version": "2.6.11",- "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.11.tgz",- "integrity": "sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==",- "peer": true,- "dependencies": {- "@types/node": "*",- "form-data": "^4.0.0"- }- },- "node_modules/abort-controller": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz",- "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==",- "peer": true,- "dependencies": {- "event-target-shim": "^5.0.0"- },- "engines": {- "node": ">=6.5"- }- },- "node_modules/agentkeepalive": {- "version": "4.5.0",- "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.5.0.tgz",- "integrity": "sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew==",- "peer": true,- "dependencies": {- "humanize-ms": "^1.2.1"- },- "engines": {- "node": ">= 8.0.0"- }- },- "node_modules/asynckit": {- "version": "0.4.0",- "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",- "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",- "peer": true- },- "node_modules/bufferutil": {- "version": "4.0.8",- "resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.8.tgz",- "integrity": "sha512-4T53u4PdgsXqKaIctwF8ifXlRTTmEPJ8iEPWFdGZvcf7sbwYo6FKFEX9eNNAnzFZ7EzJAQ3CJeOtCRA4rDp7Pw==",- "hasInstallScript": true,- "optional": true,- "dependencies": {- "node-gyp-build": "^4.3.0"- },- "engines": {- "node": ">=6.14.2"- }- },- "node_modules/combined-stream": {- "version": "1.0.8",- "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",- "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",- "peer": true,- "dependencies": {- "delayed-stream": "~1.0.0"- },- "engines": {- "node": ">= 0.8"- }- },- "node_modules/delayed-stream": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",- "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",- "peer": true,- "engines": {- "node": ">=0.4.0"- }- },- "node_modules/dotenv": {- "version": "16.4.5",- "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz",- "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==",- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://dotenvx.com"- }- },- "node_modules/e2b": {- "version": "0.13.2",- "resolved": "https://registry.npmjs.org/e2b/-/e2b-0.13.2.tgz",- "integrity": "sha512-j7odssVvVCmLGWQ4gxP5EeoKyDUSA/AMUHdOJZvUNV2ziNr7LYsdUlVRgV021841PyaeZuBOMzsV3SW5bujH7Q==",- "dependencies": {- "isomorphic-ws": "^5.0.0",- "normalize-path": "^3.0.0",- "openapi-typescript-fetch": "^1.1.3",- "path-browserify": "^1.0.1",- "platform": "^1.3.6",- "ws": "^8.15.1"- },- "engines": {- "node": ">=18"- },- "optionalDependencies": {- "bufferutil": "^4.0.8",- "utf-8-validate": "^6.0.3"- },- "peerDependencies": {- "openai": "^4.17.4"- }- },- "node_modules/event-target-shim": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz",- "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==",- "peer": true,- "engines": {- "node": ">=6"- }- },- "node_modules/form-data": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",- "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",- "peer": true,- "dependencies": {- "asynckit": "^0.4.0",- "combined-stream": "^1.0.8",- "mime-types": "^2.1.12"- },- "engines": {- "node": ">= 6"- }- },- "node_modules/form-data-encoder": {- "version": "1.7.2",- "resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-1.7.2.tgz",- "integrity": "sha512-qfqtYan3rxrnCk1VYaA4H+Ms9xdpPqvLZa6xmMgFvhO32x7/3J/ExcTd6qpxM0vH2GdMI+poehyBZvqfMTto8A==",- "peer": true- },- "node_modules/formdata-node": {- "version": "4.4.1",- "resolved": "https://registry.npmjs.org/formdata-node/-/formdata-node-4.4.1.tgz",- "integrity": "sha512-0iirZp3uVDjVGt9p49aTaqjk84TrglENEDuqfdlZQ1roC9CWlPk6Avf8EEnZNcAqPonwkG35x4n3ww/1THYAeQ==",- "peer": true,- "dependencies": {- "node-domexception": "1.0.0",- "web-streams-polyfill": "4.0.0-beta.3"- },- "engines": {- "node": ">= 12.20"- }- },- "node_modules/formdata-node/node_modules/web-streams-polyfill": {- "version": "4.0.0-beta.3",- "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-4.0.0-beta.3.tgz",- "integrity": "sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug==",- "peer": true,- "engines": {- "node": ">= 14"- }- },- "node_modules/humanize-ms": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz",- "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==",- "peer": true,- "dependencies": {- "ms": "^2.0.0"- }- },- "node_modules/isomorphic-ws": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-5.0.0.tgz",- "integrity": "sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw==",- "peerDependencies": {- "ws": "*"- }- },- "node_modules/mime-db": {- "version": "1.52.0",- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",- "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",- "peer": true,- "engines": {- "node": ">= 0.6"- }- },- "node_modules/mime-types": {- "version": "2.1.35",- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",- "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",- "peer": true,- "dependencies": {- "mime-db": "1.52.0"- },- "engines": {- "node": ">= 0.6"- }- },- "node_modules/ms": {- "version": "2.1.3",- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",- "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",- "peer": true- },- "node_modules/node-domexception": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz",- "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==",- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/jimmywarting"- },- {- "type": "github",- "url": "https://paypal.me/jimmywarting"- }- ],- "peer": true,- "engines": {- "node": ">=10.5.0"- }- },- "node_modules/node-fetch": {- "version": "2.7.0",- "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",- "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",- "peer": true,- "dependencies": {- "whatwg-url": "^5.0.0"- },- "engines": {- "node": "4.x || >=6.0.0"- },- "peerDependencies": {- "encoding": "^0.1.0"- },- "peerDependenciesMeta": {- "encoding": {- "optional": true- }- }- },- "node_modules/node-gyp-build": {- "version": "4.8.0",- "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.8.0.tgz",- "integrity": "sha512-u6fs2AEUljNho3EYTJNBfImO5QTo/J/1Etd+NVdCj7qWKUSN/bSLkZwhDv7I+w/MSC6qJ4cknepkAYykDdK8og==",- "optional": true,- "bin": {- "node-gyp-build": "bin.js",- "node-gyp-build-optional": "optional.js",- "node-gyp-build-test": "build-test.js"- }- },- "node_modules/normalize-path": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",- "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/openai": {- "version": "4.33.1",- "resolved": "https://registry.npmjs.org/openai/-/openai-4.33.1.tgz",- "integrity": "sha512-0DH572aSxGTT1JPOXgJQ9mjiuSPg/7scPot8hLc5I1mfQxPxLXTZWJpWerKaIWOuPkR2nrB0SamGDEehH8RuWA==",- "peer": true,- "dependencies": {- "@types/node": "^18.11.18",- "@types/node-fetch": "^2.6.4",- "abort-controller": "^3.0.0",- "agentkeepalive": "^4.2.1",- "form-data-encoder": "1.7.2",- "formdata-node": "^4.3.2",- "node-fetch": "^2.6.7",- "web-streams-polyfill": "^3.2.1"- },- "bin": {- "openai": "bin/cli"- }- },- "node_modules/openapi-typescript-fetch": {- "version": "1.1.3",- "resolved": "https://registry.npmjs.org/openapi-typescript-fetch/-/openapi-typescript-fetch-1.1.3.tgz",- "integrity": "sha512-smLZPck4OkKMNExcw8jMgrMOGgVGx2N/s6DbKL2ftNl77g5HfoGpZGFy79RBzU/EkaO0OZpwBnslfdBfh7ZcWg==",- "engines": {- "node": ">= 12.0.0",- "npm": ">= 7.0.0"- }- },- "node_modules/path-browserify": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz",- "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g=="- },- "node_modules/platform": {- "version": "1.3.6",- "resolved": "https://registry.npmjs.org/platform/-/platform-1.3.6.tgz",- "integrity": "sha512-fnWVljUchTro6RiCFvCXBbNhJc2NijN7oIQxbwsyL0buWJPG85v81ehlHI9fXrJsMNgTofEoWIQeClKpgxFLrg=="- },- "node_modules/tr46": {- "version": "0.0.3",- "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",- "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==",- "peer": true- },- "node_modules/undici-types": {- "version": "5.26.5",- "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",- "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==",- "peer": true- },- "node_modules/utf-8-validate": {- "version": "6.0.3",- "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-6.0.3.tgz",- "integrity": "sha512-uIuGf9TWQ/y+0Lp+KGZCMuJWc3N9BHA+l/UmHd/oUHwJJDeysyTRxNQVkbzsIWfGFbRe3OcgML/i0mvVRPOyDA==",- "hasInstallScript": true,- "optional": true,- "dependencies": {- "node-gyp-build": "^4.3.0"- },- "engines": {- "node": ">=6.14.2"- }- },- "node_modules/web-streams-polyfill": {- "version": "3.3.3",- "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz",- "integrity": "sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==",- "peer": true,- "engines": {- "node": ">= 8"- }- },- "node_modules/webidl-conversions": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",- "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==",- "peer": true- },- "node_modules/whatwg-url": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",- "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",- "peer": true,- "dependencies": {- "tr46": "~0.0.3",- "webidl-conversions": "^3.0.0"- }- },- "node_modules/ws": {- "version": "8.16.0",- "resolved": "https://registry.npmjs.org/ws/-/ws-8.16.0.tgz",- "integrity": "sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==",- "engines": {- "node": ">=10.0.0"- },- "peerDependencies": {- "bufferutil": "^4.0.1",- "utf-8-validate": ">=5.0.2"- },- "peerDependenciesMeta": {- "bufferutil": {- "optional": true- },- "utf-8-validate": {- "optional": true- }- }- }- }-}diff --git a/tests/package.json b/tests/package.jsondeleted file mode 100644index 85b4dc1a7..000000000--- a/tests/package.json+++ /dev/null@@ -1,15 +0,0 @@-{- "name": "test",- "version": "1.0.0",- "description": "",- "main": "index.js",- "scripts": {- "test": "echo \"Error: no test specified\" && exit 1"- },- "author": "",- "license": "ISC",- "dependencies": {- "dotenv": "^16.4.5",- "e2b": "^0.13.2"- }-}