The open-source agent harness - the runtime layer that turns an LLM into a working agent.
update /healthz endpoint to return a JSON payload (#402)
Aman5ccac3db293e
diff --git a/.changeset/lemon-lines-laugh.md b/.changeset/lemon-lines-laugh.mdnew file mode 100644index 000000000..fb9d8a04d--- /dev/null+++ b/.changeset/lemon-lines-laugh.md@@ -0,0 +1,6 @@+---+"@truefoundry/trueforge": patch+---++Update /healthz to return JSON status and package version+\ No newline at end of filediff --git a/docker-compose.yml b/docker-compose.ymlindex 4033f7a66..0b3f3224b 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -70,7 +70,7 @@ services:condition: service_healthyredis:condition: service_healthy- # Probes GET /healthz (plain text OK!); node is already in the image.+ # Probes GET /healthz; node is already in the image.healthcheck:test:[diff --git a/packages/trueforge/src/app.ts b/packages/trueforge/src/app.tsindex 69a55d3a9..59229ba10 100644--- a/packages/trueforge/src/app.ts+++ b/packages/trueforge/src/app.ts@@ -167,7 +167,7 @@ export function createServerApp<TTransaction>(deps: ServerDeps<TTransaction>) {app.use('*', createRequestBodyLimitMiddleware(configuration.MAX_REQUEST_BODY_BYTES));- app.get('/healthz', c => c.text('OK!'));+ app.get('/healthz', c => c.json({ status: 'ok', version: PACKAGE_VERSION }));app.route('/api/v1/auth', createAuthRouter({ oidcClient: deps.oidcClient, logger: deps.logger }));app.route(