chore: /api/health reports version + platformAi (v0.3.1)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XStQKxPfEjrTvWo83KFCxG
This commit is contained in:
2026-08-16 19:57:33 -05:00
parent 9cf378e15a
commit 0088b7f8ac
3 changed files with 13 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "names-poweredbyotm", "name": "names-poweredbyotm",
"version": "0.3.0", "version": "0.3.1",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev --port 3000", "dev": "next dev --port 3000",

View File

@@ -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 const dynamic = "force-dynamic";
export function GET() { export function GET() {
return Response.json({ ok: true, service: "names" }); return Response.json({ ok: true, service: "names", version: VERSION, platformAi: platformAiEnabled() });
} }

View File

@@ -2,7 +2,7 @@
// /changelog. Bump VERSION and prepend an entry when shipping a user-facing // /changelog. Bump VERSION and prepend an entry when shipping a user-facing
// change. Same convention as rpo. // change. Same convention as rpo.
export const VERSION = "0.3.0"; export const VERSION = "0.3.1";
export interface ChangelogEntry { export interface ChangelogEntry {
version: string; version: string;
@@ -11,6 +11,11 @@ export interface ChangelogEntry {
} }
export const CHANGELOG: 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", version: "0.3.0",
date: "2026-08-16", date: "2026-08-16",