Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Add playground API logger; Fix process start
Tomas Valenta077e20188208
diff --git a/api-service/playground/package.json b/api-service/playground/package.jsonindex 1df0817eb..7dbd92871 100644--- a/api-service/playground/package.json+++ b/api-service/playground/package.json@@ -6,6 +6,7 @@"@devbookhq/sdk": "^2.6.74","express": "^4.18.2","intermock": "^0.2.5",+ "morgan": "^1.10.0","node-cache": "^5.1.2","tsoa": "^5.1.1"},diff --git a/api-service/playground/src/app.ts b/api-service/playground/src/app.tsindex 30d8c762c..755cd6346 100644--- a/api-service/playground/src/app.ts+++ b/api-service/playground/src/app.ts@@ -6,7 +6,7 @@ import express, {NextFunction,} from 'express'import { ValidateError } from 'tsoa'-+import morgan from 'morgan'import { RegisterRoutes } from './generated/routes'export const app = express()@@ -14,7 +14,8 @@ export const app = express()app.use(urlencoded({extended: true,- })+ }),+ morgan('tiny'))app.use(json())diff --git a/api-service/playground/src/sessions/process.ts b/api-service/playground/src/sessions/process.tsindex 3adf1a6ba..db846af8e 100644--- a/api-service/playground/src/sessions/process.ts+++ b/api-service/playground/src/sessions/process.ts@@ -42,8 +42,6 @@ export class CachedProcess {this.finished = true})-- await process.exitedthis.process = processreturn process}diff --git a/api-service/playground/yarn.lock b/api-service/playground/yarn.lockindex e9b14d4ab..d9f9bac9f 100644--- a/api-service/playground/yarn.lock+++ b/api-service/playground/yarn.lock@@ -306,6 +306,13 @@ balanced-match@^1.0.0:resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee"integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==+basic-auth@~2.0.1:+ version "2.0.1"+ resolved "https://registry.yarnpkg.com/basic-auth/-/basic-auth-2.0.1.tgz#b998279bf47ce38344b4f3cf916d4679bbf51e3a"+ integrity sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==+ dependencies:+ safe-buffer "5.1.2"+binary-extensions@^2.0.0:version "2.2.0"resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d"@@ -541,7 +548,7 @@ define-properties@^1.1.3, define-properties@^1.1.4:has-property-descriptors "^1.0.0"object-keys "^1.1.1"[email protected], depd@~2.0.0:version "2.0.0"resolved "https://registry.yarnpkg.com/depd/-/depd-2.0.0.tgz#b696163cc757560d09cf22cc8fad1571b79e76df"integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==@@ -1273,6 +1280,17 @@ minimist@^1.2.5:resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c"integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==+morgan@^1.10.0:+ version "1.10.0"+ resolved "https://registry.yarnpkg.com/morgan/-/morgan-1.10.0.tgz#091778abc1fc47cd3509824653dae1faab6b17d7"+ integrity sha512-AbegBVI4sh6El+1gNwvD5YIck7nSA36weD7xvIxG4in80j/UoK8AEGaWnnz8v1GxonMCltmlNs5ZKbGvl9b1XQ==+ dependencies:+ basic-auth "~2.0.1"+ debug "2.6.9"+ depd "~2.0.0"+ on-finished "~2.3.0"+ on-headers "~1.0.2"+version "2.0.0"resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8"@@ -1362,6 +1380,18 @@ [email protected]:dependencies:ee-first "1.1.1"+on-finished@~2.3.0:+ version "2.3.0"+ resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947"+ integrity sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww==+ dependencies:+ ee-first "1.1.1"++on-headers@~1.0.2:+ version "1.0.2"+ resolved "https://registry.yarnpkg.com/on-headers/-/on-headers-1.0.2.tgz#772b0ae6aaa525c399e489adfad90c403eb3c28f"+ integrity sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==+once@^1.3.0:version "1.4.0"resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"@@ -1489,6 +1519,11 @@ rxjs@^7.0.0:dependencies:tslib "^2.1.0"+ version "5.1.2"+ resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d"+ integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==+version "5.2.1"resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6"