Skip to content

feat(api,web): add fleet metadata to GET /api/health - #29

Merged
rvegajr merged 1 commit into
mainfrom
cursor/fleet-health-metadata-f360
Oct 4, 2026
Merged

rvegajr merged 1 commit into
mainfrom
cursor/fleet-health-metadata-f360

Conversation

@rvegajr

@rvegajr rvegajr commented Oct 4, 2026

Copy link
Copy Markdown
Member

Summary

Extends the lightweight GET /api/health endpoints on API and web with fleet build metadata (ok, service, commit, env, utc) per the cloud-agents health contract. Existing fields and HTTP 200 behavior are unchanged; /api/health/version is untouched.

Changes

  • API (packages/api/src/routes/health/health.ts): adds fleet fields alongside existing status and timestamp.
  • Web (packages/web/app/api/health/route.ts): adds fleet fields alongside existing status.
  • Tests for commit from RAILWAY_GIT_COMMIT_SHA and "unknown" when unset.

Verified

corepack enable && pnpm install --frozen-lockfile
pnpm --filter @scholaracle/contracts build
pnpm build   # required in this VM before full type-check (workspace packages)
pnpm type-check
pnpm lint:strict
pnpm format:check
pnpm --filter @scholaracle/api test
pnpm --filter @scholaracle/web test

All commands exited 0.

Not changed

  • /api/health/version, auth, CORS, CI, README, CHANGELOG (none in repo).
Open in Web Open in Cursor 

Co-authored-by: Ricardo Vega <github@noctusoft.com>
@rvegajr
rvegajr marked this pull request as ready for review October 4, 2026 15:05
@rvegajr
rvegajr enabled auto-merge (squash) October 4, 2026 15:05
@rvegajr
rvegajr merged commit 6529e95 into main Oct 4, 2026
17 checks passed
@rvegajr
rvegajr deleted the cursor/fleet-health-metadata-f360 branch October 4, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants