diff --git a/package.json b/package.json index f465de7..fef64f1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "names-poweredbyotm", - "version": "0.3.0", + "version": "0.3.1", "private": true, "scripts": { "dev": "next dev --port 3000", diff --git a/src/app/api/health/route.ts b/src/app/api/health/route.ts index 8652ecc..a8f3b94 100644 --- a/src/app/api/health/route.ts +++ b/src/app/api/health/route.ts @@ -1,5 +1,10 @@ +// Deploy verification target: the platform's list_apps can lie about what's +// running, so a deploy is confirmed by the version THIS container serves. +import { VERSION } from "@/lib/version"; +import { platformAiEnabled } from "@/lib/session"; + export const dynamic = "force-dynamic"; export function GET() { - return Response.json({ ok: true, service: "names" }); + return Response.json({ ok: true, service: "names", version: VERSION, platformAi: platformAiEnabled() }); } diff --git a/src/lib/version.ts b/src/lib/version.ts index e936168..4e8ae7b 100644 --- a/src/lib/version.ts +++ b/src/lib/version.ts @@ -2,7 +2,7 @@ // /changelog. Bump VERSION and prepend an entry when shipping a user-facing // change. Same convention as rpo. -export const VERSION = "0.3.0"; +export const VERSION = "0.3.1"; export interface ChangelogEntry { version: string; @@ -11,6 +11,11 @@ export interface ChangelogEntry { } export const CHANGELOG: ChangelogEntry[] = [ + { + version: "0.3.1", + date: "2026-08-16", + changes: ["/api/health now reports the running version (and whether platform AI is wired), so a deploy can be verified against the live site."], + }, { version: "0.3.0", date: "2026-08-16",