Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Add prints

Vasek Mlejnsky297eb07c95d5
diff --git a/api-service/codegen/tools/playground/playground.py b/api-service/codegen/tools/playground/playground.py
index 0d3c7b3d6..57ea58e7c 100644
--- a/api-service/codegen/tools/playground/playground.py
+++ b/api-service/codegen/tools/playground/playground.py
@@ -166,12 +166,14 @@ class NodeJSPlayground(Playground):
self.env_vars = self.format_env_vars(envs)
def run_javascript_code(self, code: str):
+ print(f"Running javascript code: {code}")
self.write_file(self.default_javascript_code_file, code)
- return self.run_command(
+ res = self.run_command(
f"node {self.default_javascript_code_file}",
rootdir=self.rootdir,
env_vars=self.env_vars,
)
+ print(res)
def run_typescript_code(self, code: str, typecheck: bool = False):
self.write_file(self.default_typescript_code_file, code)