Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Fix CLI (#155)
Jakub Novák65337589b0a1
diff --git a/.changeset/curly-bears-protect.md b/.changeset/curly-bears-protect.mdnew file mode 100644index 000000000..7a1eeb768--- /dev/null+++ b/.changeset/curly-bears-protect.md@@ -0,0 +1,5 @@+---+'@e2b/cli': patch+---++Remove content type and fix bugdiff --git a/packages/cli/src/commands/env/create.ts b/packages/cli/src/commands/env/create.tsindex 71b5a9b8e..e42ce9f14 100644--- a/packages/cli/src/commands/env/create.ts+++ b/packages/cli/src/commands/env/create.ts@@ -88,9 +88,7 @@ export const createCommand = new commander.Command('create')if (!fs.existsSync(tarPath)) throw new Error(`Tar file ${tarPath} does not exist`)- const buildContextBlob = new Blob([fs.readFileSync(tarPath)], {- type: 'application/gzip',- })+ const buildContextBlob = new Blob([fs.readFileSync(tarPath)])let dockerfileContentif (fs.existsSync(`${root}/Dockerfile`)) {dockerfileContent = fs.readFileSync(`${root}/Dockerfile`, 'utf-8')diff --git a/packages/cli/src/utils/filesystem.ts b/packages/cli/src/utils/filesystem.tsindex dff409713..5738667b8 100644--- a/packages/cli/src/utils/filesystem.ts+++ b/packages/cli/src/utils/filesystem.ts@@ -5,6 +5,7 @@ import * as fsPromise from 'fs/promises'import gitIgnore, { Ignore } from 'ignore'import * as path from 'path'import tar from 'tar-fs'+import * as util from 'util'const walk = util.promisify(fsWalk.walk)