Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Disable ECMAScript module check
Tomas Valenta005e81b06680
diff --git a/api-service/playground/src/deployments/packaging.ts b/api-service/playground/src/deployments/packaging.tsindex a2504eb07..427e70fc5 100644--- a/api-service/playground/src/deployments/packaging.ts+++ b/api-service/playground/src/deployments/packaging.ts@@ -37,7 +37,9 @@ async function getRootFile(filesystem: FilesystemManager) {}function addAWSLambdaHandlers(code: string) {- const isECMA = !code.includes('require')+ const isECMA = true+ // TODO: Check if the module is ECMAScript module+ // const isECMA = !code.includes('= require(')if (isECMA) {code = 'import serverless from "serverless-http";\n' + code@@ -50,7 +52,6 @@ function addAWSLambdaHandlers(code: string) {return code.replace("app.listen(", "; ({})?.listen?.(")}-/**** TODO: Implement binary file reading in devbookd so we don't have to send data via base64 (cca 25% overhead) and process stdout.