Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Regenerate clients
Jakub Novak3c2fc9faf545
diff --git a/packages/cli/src/commands/template/build.ts b/packages/cli/src/commands/template/build.tsindex 1dcbeadd1..185630602 100644--- a/packages/cli/src/commands/template/build.ts+++ b/packages/cli/src/commands/template/build.ts@@ -104,6 +104,12 @@ export const buildCommand = new commander.Command('build')dockerfile = config.dockerfile}+ if (config && id && config.id !== id) {+ // error: you can't specify different ID than the one in config+ console.error("You can't specify different ID than the one in config. If you want to build a new sandbox template remove the config file.")+ process.exit(1)+ }+const filePaths = await getFiles(root, {respectGitignore: false,respectDockerignore: true,@@ -172,18 +178,16 @@ export const buildCommand = new commander.Command('build')await waitForBuildFinish(accessToken, build.envID, build.buildID, name)- if (!config) {- await saveConfig(- configPath,- {- id: build.envID,- dockerfile: dockerfileRelativePath,- name: name,- },- true,- )- console.log(`Created config ${asLocalRelative(relativeConfigPath)}`)- }+ await saveConfig(+ configPath,+ {+ id: build.envID,+ dockerfile: dockerfileRelativePath,+ name: name,+ },+ true,+ )+ console.log(`Created config ${asLocalRelative(relativeConfigPath)}`)} catch (err: any) {console.error(err)process.exit(1)diff --git a/packages/js-sdk/src/api/schema.gen.ts b/packages/js-sdk/src/api/schema.gen.tsindex 053fa67cd..7286ae232 100644--- a/packages/js-sdk/src/api/schema.gen.ts+++ b/packages/js-sdk/src/api/schema.gen.ts@@ -115,6 +115,8 @@ export interface paths {requestBody: {content: {"multipart/form-data": {+ /** @description Alias of the environment */+ alias?: string;/*** Format: binary* @description Docker build contextdiff --git a/spec/openapi.yml b/spec/openapi.ymlindex 9b80f7751..eecd38039 100644--- a/spec/openapi.yml+++ b/spec/openapi.yml@@ -283,6 +283,9 @@ paths:- buildContext- dockerfileproperties:+ alias:+ description: Alias of the environment+ type: stringbuildContext:description: Docker build contexttype: string