From eab5a17b6d9b1bef2ed2041fc173323033be32ae Mon Sep 17 00:00:00 2001 From: James Babcock Date: Sun, 16 Aug 2026 22:38:58 -0700 Subject: [PATCH] Centralized version number; bump to 0.4.0 --- app/assistant/mcp-server.ts | 3 ++- app/ui/dashboard/settings-menus.ts | 3 ++- app/version.ts | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 app/version.ts diff --git a/app/assistant/mcp-server.ts b/app/assistant/mcp-server.ts index 4057cf27..d63b9831 100644 --- a/app/assistant/mcp-server.ts +++ b/app/assistant/mcp-server.ts @@ -1,4 +1,5 @@ import { toolRegistry, type ToolRegistry } from "./tool-registry"; +import { FACECLAW_VERSION } from "../version"; /** * Minimal MCP (Model Context Protocol) server surface over the assistant @@ -51,7 +52,7 @@ export class AssistantMcpServer { ? msg.params.protocolVersion : MCP_PROTOCOL_VERSION, capabilities: { tools: { listChanged: true } }, - serverInfo: { name: "faceclaw", version: "0.3.0" }, + serverInfo: { name: "faceclaw", version: FACECLAW_VERSION }, }); return; case "notifications/initialized": diff --git a/app/ui/dashboard/settings-menus.ts b/app/ui/dashboard/settings-menus.ts index 08abfc12..4406ea22 100644 --- a/app/ui/dashboard/settings-menus.ts +++ b/app/ui/dashboard/settings-menus.ts @@ -3,6 +3,7 @@ import { getDefaultSmallFont } from "../../graphics/bdffont"; import type { GrayImage } from "../../graphics/image"; import { getDashboardLogo } from "../../graphics/logo"; import { wrapText } from "../../graphics/textwrap"; +import { FACECLAW_VERSION } from "../../version"; import { cancelLocalModelDownload, deleteLocalModel, @@ -276,7 +277,7 @@ function renderAbout(args: { image: GrayImage; x: number; y: number; width: numb } const textX = logo ? x + logo.width + 12 : x; image.drawText(font, textX, y + 8, "Faceclaw", 220); - image.drawText(font, textX, y + 24, "v0.3.0", 170); + image.drawText(font, textX, y + 24, `v${FACECLAW_VERSION}`, 170); const blurb = "By James Babcock. Distributed under the GNU General Public License, version 3."; const blurbY = y + Math.max(64, logo ? logo.height + 12 : 0); const blurbLines = wrapText(font, blurb, width); diff --git a/app/version.ts b/app/version.ts new file mode 100644 index 00000000..03b7b1ff --- /dev/null +++ b/app/version.ts @@ -0,0 +1 @@ +export const FACECLAW_VERSION = "0.4.0";