Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
guardrail if no sandbox templates are available to publish/unpublish
Mish Ushakov11e1c7dca3d3
diff --git a/packages/cli/src/commands/template/publish.ts b/packages/cli/src/commands/template/publish.tsindex e7fe664cd..b471fa752 100644--- a/packages/cli/src/commands/template/publish.ts+++ b/packages/cli/src/commands/template/publish.ts@@ -81,6 +81,15 @@ async function templateAction((e) => !e.public === publish)+ if (filteredTemplates.length === 0) {+ console.log(+ `No sandbox templates available ${+ publish ? 'to publish' : 'to unpublish'+ } found`+ )+ return+ }+const selectedTemplates = await getPromptTemplates(filteredTemplates,`Select sandbox templates to ${publish ? 'publish' : 'unpublish'}`