Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Fix team ID parameter
Jakub Novak330c60f3db61
diff --git a/packages/cli/src/commands/template/build.ts b/packages/cli/src/commands/template/build.tsindex a20fcb945..f4f66bc3d 100644--- a/packages/cli/src/commands/template/build.ts+++ b/packages/cli/src/commands/template/build.ts@@ -113,7 +113,7 @@ export const buildCommand = new commander.Command('build')dockerfile?: stringname?: stringcmd?: string- teamID?: string+ team?: stringconfig?: stringcpuCount?: numbermemoryMb?: number@@ -154,7 +154,7 @@ export const buildCommand = new commander.Command('build')let startCmd = opts.cmdlet cpuCount = opts.cpuCountlet memoryMB = opts.memoryMb- let teamID = opts.teamID+ let teamID = opts.teamconst root = getRoot(opts.path)const configPath = getConfigPath(root, opts.config)@@ -182,7 +182,7 @@ export const buildCommand = new commander.Command('build')startCmd = opts.cmd || config.start_cmdcpuCount = opts.cpuCount || config.cpu_countmemoryMB = opts.memoryMb || config.memory_mb- teamID = opts.teamID || config.team_id+ teamID = opts.team || config.team_id}if (config && templateID && config.template_id !== templateID) {diff --git a/packages/cli/src/commands/template/delete.ts b/packages/cli/src/commands/template/delete.tsindex 835627c5b..3bd3379be 100644--- a/packages/cli/src/commands/template/delete.ts+++ b/packages/cli/src/commands/template/delete.ts@@ -54,7 +54,7 @@ export const deleteCommand = new commander.Command('delete')config?: stringyes?: booleanselect?: boolean- teamID?: string+ team?: string},) => {try {@@ -73,7 +73,7 @@ export const deleteCommand = new commander.Command('delete')} else if (opts.select) {const allTemplates = await listSandboxTemplates({accessToken: accessToken,- teamID: opts.teamID || userConfig.teamId || userConfig.defaultTeamId! // default team ID is here for backwards compatibility+ teamID: opts.team || userConfig.teamId || userConfig.defaultTeamId! // default team ID is here for backwards compatibility})const selectedTemplates = await getPromptTemplates(allTemplates,diff --git a/packages/cli/src/commands/template/list.ts b/packages/cli/src/commands/template/list.tsindex 6bfef30a5..e33916624 100644--- a/packages/cli/src/commands/template/list.ts+++ b/packages/cli/src/commands/template/list.ts@@ -17,7 +17,7 @@ export const listCommand = new commander.Command('list').addOption(teamOption).action(async (opts: {- teamID: string+ team: string},) => {try {@@ -27,7 +27,7 @@ export const listCommand = new commander.Command('list')const templates = await listSandboxTemplates({accessToken: accessToken,- teamID: opts.teamID || userConfig.teamId || userConfig.defaultTeamId! // default team ID is here for backwards compatibility+ teamID: opts.team || userConfig.teamId || userConfig.defaultTeamId! // default team ID is here for backwards compatibility})for (const template of templates) {