Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Merge branch 'master' of https://github.com/devbookhq/ai-api

Vasek Mlejnsky3ca9114b45c8
diff --cc api-service/playground/src/deployments/packaging.ts
index 8527f207c,427e70fc5..5a509676c
--- a/api-service/playground/src/deployments/packaging.ts
+++ b/api-service/playground/src/deployments/packaging.ts
@@@ -41,21 -43,20 +43,20 @@@ function addAWSLambdaHandlers(code: str
if (isECMA) {
code = 'import serverless from "serverless-http";\n' + code
- code = code + "\nexport const handler = serverless(app);"
+ code = code + '\nexport const handler = serverless(app);'
} else {
code = "const serverless = require('serverless-http');\n" + code
- code = code + "\nexports.handler = serverless(app);"
+ code = code + '\nexports.handler = serverless(app);'
}
- return code.replace("app.listen(", "; ({})?.listen?.(")
+ 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.
* TODO: Pipe the output from esbuild -> zip -> base64
- *
+ *
*/
export async function packageFunction(session: Session) {
if (!session.filesystem || !session.process) {