Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Fix typos in docs, tests, and helper names (#1282)
luo jiyin7695889b7a88
diff --git a/CLAUDE.md b/CLAUDE.mdindex a2b796247..438b712a2 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -1,5 +1,5 @@Use pnpm for node and poetry for python to install and update dependencies.-Run `pnpm run format`, `pnpm run lint` and `pnpm run typecheck` before commiting changes.+Run `pnpm run format`, `pnpm run lint` and `pnpm run typecheck` before committing changes.To re-generate the API client run `make codegen` in the repository root.Run tests on affected codepaths using `pnpm run test`.Default credentials are stored in .env.local in the repository root or inside ~/.e2b/config.json.diff --git a/packages/cli/src/utils/confirm.ts b/packages/cli/src/utils/confirm.tsindex 5514018b9..729d45345 100644--- a/packages/cli/src/utils/confirm.ts+++ b/packages/cli/src/utils/confirm.ts@@ -1,10 +1,10 @@-export async function confirm(text: string, defaultAnwser = false) {+export async function confirm(text: string, defaultAnswer = false) {const inquirer = await import('inquirer')const confirmAnswers = await inquirer.default.prompt([{name: 'confirm',type: 'confirm',- default: defaultAnwser,+ default: defaultAnswer,message: text,},])diff --git a/packages/cli/src/utils/templatePrompt.ts b/packages/cli/src/utils/templatePrompt.tsindex 7e14d5ff0..428a30759 100644--- a/packages/cli/src/utils/templatePrompt.ts+++ b/packages/cli/src/utils/templatePrompt.ts@@ -8,7 +8,7 @@ export async function getPromptTemplates(text: string) {const inquirer = await import('inquirer')- const templatesAnwsers = await inquirer.default.prompt([+ const templatesAnswers = await inquirer.default.prompt([{name: 'templates',message: chalk.default.underline(text),@@ -21,7 +21,7 @@ export async function getPromptTemplates(},])- return templatesAnwsers[+ return templatesAnswers['templates'] as e2b.components['schemas']['Template'][]}diff --git a/packages/js-sdk/src/sandbox/git/index.ts b/packages/js-sdk/src/sandbox/git/index.tsindex c0ec3a17e..cfa637328 100644--- a/packages/js-sdk/src/sandbox/git/index.ts+++ b/packages/js-sdk/src/sandbox/git/index.ts@@ -937,7 +937,7 @@ export class Git {/*** Execute a raw shell command while applying default git environment variables.*- Note: We can liekly just modify runGit later to allow appending commands to the git but for now it's separate.+ Note: We can likely just modify runGit later to allow appending commands to the git but for now it's separate.*/private async runShell(cmd: string,diff --git a/packages/js-sdk/tests/integration/stress.test.ts b/packages/js-sdk/tests/integration/stress.test.tsindex 5f5fc211f..83e4b0ddc 100644--- a/packages/js-sdk/tests/integration/stress.test.ts+++ b/packages/js-sdk/tests/integration/stress.test.ts@@ -10,13 +10,13 @@ for (let i = 0; i < view.length; i++) {}const integrationTestTemplate = 'integration-test-v1'-const sanboxCount = 10+const sandboxCount = 10test.skipIf(!isIntegrationTest)('stress test heavy file writes and reads',async () => {const promises: Array<Promise<string | void>> = []- for (let i = 0; i < sanboxCount; i++) {+ for (let i = 0; i < sandboxCount; i++) {promises.push(Sandbox.create(integrationTestTemplate, { timeoutMs: 60 }).then((sbx) => {@@ -36,7 +36,7 @@ test.skipIf(!isIntegrationTest)(test.skipIf(!isIntegrationTest)('stress requests to nextjs app', async () => {const hostPromises: Array<Promise<string | void>> = []- for (let i = 0; i < sanboxCount; i++) {+ for (let i = 0; i < sandboxCount; i++) {hostPromises.push(Sandbox.create(integrationTestTemplate, { timeoutMs: 60_000 }).then((sbx) => {diff --git a/packages/js-sdk/tests/integration/template/e2b.Dockerfile b/packages/js-sdk/tests/integration/template/e2b.Dockerfileindex 07344d432..1eb06dab6 100644--- a/packages/js-sdk/tests/integration/template/e2b.Dockerfile+++ b/packages/js-sdk/tests/integration/template/e2b.Dockerfile@@ -1,6 +1,6 @@FROM e2bdev/code-interpreter:latest-# Install stess-ng, a tool to load and stress computer systems+# Install stress-ng, a tool to load and stress computer systemsRUN apt updateRUN apt install -y stress-ng@@ -9,4 +9,3 @@ RUN npx -y create-next-app@latest basic-nextjs-app --yes --ts --use-npm# Install dependenciesRUN cd basic-nextjs-app && npm install-diff --git a/packages/js-sdk/tests/sandbox/timeout.test.ts b/packages/js-sdk/tests/sandbox/timeout.test.tsindex d86e55110..249666ada 100644--- a/packages/js-sdk/tests/sandbox/timeout.test.ts+++ b/packages/js-sdk/tests/sandbox/timeout.test.ts@@ -11,7 +11,7 @@ sandboxTest.skipIf(isDebug)('shorten timeout', async ({ sandbox }) => {})sandboxTest.skipIf(isDebug)(- 'shorten then lenghten timeout',+ 'shorten then lengthen timeout',async ({ sandbox }) => {await sandbox.setTimeout(5000)diff --git a/packages/python-sdk/e2b/sandbox_async/git.py b/packages/python-sdk/e2b/sandbox_async/git.pyindex 9b9f3a686..a63faef5a 100644--- a/packages/python-sdk/e2b/sandbox_async/git.py+++ b/packages/python-sdk/e2b/sandbox_async/git.py@@ -1002,7 +1002,7 @@ class Git:"""Dangerously authenticate git globally via the credential helper.- This persists credentials in the credential store and may be accessable to agents running on the sandbox.+ This persists credentials in the credential store and may be accessible to agents running on the sandbox.Prefer short-lived credentials when possible.:param username: Username for HTTP(S) authenticationdiff --git a/packages/python-sdk/e2b/sandbox_sync/git.py b/packages/python-sdk/e2b/sandbox_sync/git.pyindex 96e7628e5..a6d49da99 100644--- a/packages/python-sdk/e2b/sandbox_sync/git.py+++ b/packages/python-sdk/e2b/sandbox_sync/git.py@@ -979,7 +979,7 @@ class Git:"""Dangerously authenticate git globally via the credential helper.- This persists credentials in the credential store and may be accessable to agents running on the sandbox.+ This persists credentials in the credential store and may be accessible to agents running on the sandbox.Prefer short-lived credentials when possible.:param username: Username for HTTP(S) authentication