From c37e7111f728ab77effe120b0b9e2552551fe083 Mon Sep 17 00:00:00 2001 From: BrowserOS Coding Agent Date: Wed, 11 Feb 2026 13:05:45 +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 c55edd8b77530626cf4c8d12b407cc9b3aaf4a55 Mon Sep 17 00:00:00 2001 From: BrowserOS Coding Agent Date: Wed, 11 Feb 2026 13:09:51 +0000 Subject: [PATCH 2/2] feat(agent): Add a GET /health endpoint that returns { status: 'ok', uptime: process.uptime() Task ID: dPDII2OA --- 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) }) })