Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Add Python API to npm scripts again

Tomas Valentace7272f0ad10
diff --git a/package.json b/package.json
index 0c0a3d3d7..3d73b38fa 100644
--- a/package.json
+++ b/package.json
@@ -17,7 +17,7 @@
"dev:next": "next dev",
"start:next": "next start",
"dev-otel": "npx concurrently -p none \"next dev\" \"npm run start:api-otel\" \"npm run start:playground\"",
- "dev": "next dev",
+ "dev": "OTEL_SDK_DISABLED=\"true\" npx concurrently -p none \"next dev\" \"npm run start:api\" \"npm run start:playground\"",
"dev:api-service": "npx concurrently \"npm run start:api\" \"npm run start:playground\"",
"build": "next build",
"start:api-otel": "cd api-service && cross-env PYTHONUNBUFFERED=1 OTEL_METRIC_EXPORT_INTERVAL=15000 OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES poetry run opentelemetry-instrument --service_name agent-api --exporter_otlp_endpoint \"ingest.lightstep.com:443\" --traces_exporter console,otlp_proto_grpc --metrics_exporter console,otlp_proto_grpc gunicorn --bind 0.0.0.0:49155 --workers 1 --threads 2 --timeout 120 app:app -k uvicorn.workers.UvicornWorker",
@@ -25,7 +25,7 @@
"start:playground": "cd api-service/playground && npm run dev",
"install:api-service": "cd api-service && poetry install --with dev --no-root && cd playground && npm install && make install-instrumentation",
"install:api-playground": "cd api-service/playground && npm install",
- "install:all": "npm install",
+ "install:all": "npm install && npm run install:api-service && npm run install:api-playground",
"start": "docker compose build && (npm run db:reset || cd . && npm run db:start && docker compose up)",
"stop": "docker compose down && npm run db:stop",
"lint": "next lint",
@@ -124,4 +124,4 @@
"react-dom": "$react-dom"
}
}
-}
+}
\ No newline at end of file