From 4d45ca040568d8e4ce2092cafa68a3902e653d2e Mon Sep 17 00:00:00 2001 From: BrowserOS Coding Agent Date: Wed, 11 Feb 2026 12:54:25 +0000 Subject: [PATCH 1/2] chore: baseline setup --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 13dcca1b..111787bd 100644 --- a/.gitignore +++ b/.gitignore @@ -181,3 +181,6 @@ log.txt # Testing iteration temp files tmp/ + +# Coding agent artifacts +.agent/ From de161f0328e04a6f9c862b36e523eaea4b9e3409 Mon Sep 17 00:00:00 2001 From: BrowserOS Coding Agent Date: Wed, 11 Feb 2026 12:58:28 +0000 Subject: [PATCH 2/2] feat(agent): Add a GET /health endpoint that returns { status: 'ok', uptime: process.uptime() Task ID: 0RfOvyri --- apps/server/src/api/routes/health.ts | 2 +- apps/server/tests/api/routes/health.test.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/server/src/api/routes/health.ts b/apps/server/src/api/routes/health.ts index 61471ee2..9d559b71 100644 --- a/apps/server/src/api/routes/health.ts +++ b/apps/server/src/api/routes/health.ts @@ -8,6 +8,6 @@ import { Hono } from 'hono' export function createHealthRoute() { return new Hono().get('/', (c) => { - return c.json({ status: 'ok' }) + return c.json({ status: 'ok', uptime: process.uptime() }) }) } diff --git a/apps/server/tests/api/routes/health.test.ts b/apps/server/tests/api/routes/health.test.ts index 56cdd537..de842b39 100644 --- a/apps/server/tests/api/routes/health.test.ts +++ b/apps/server/tests/api/routes/health.test.ts @@ -15,6 +15,8 @@ describe('createHealthRoute', () => { assert.strictEqual(response.status, 200) const body = await response.json() - assert.deepStrictEqual(body, { status: 'ok' }) + assert.strictEqual(body.status, 'ok') + assert.strictEqual(typeof body.uptime, 'number') + assert.ok(body.uptime >= 0) }) })