From 7490f342672e4b7aaa564bc671d24d8282a6fd1a Mon Sep 17 00:00:00 2001 From: Z8MB1E Date: Thu, 27 Aug 2026 18:36:11 -0400 Subject: [PATCH] feat(version): add build metadata fields Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- src/lib/versionInfo.ts | 2 ++ src/scripts/generateVersionInfo.ts | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/versionInfo.ts b/src/lib/versionInfo.ts index 5434255..afc91d8 100644 --- a/src/lib/versionInfo.ts +++ b/src/lib/versionInfo.ts @@ -5,5 +5,7 @@ export interface VersionInfo { commitHash: string | null; commitDate: string | null; commitSubject: string | null; + lastUpdated: string | null; + commitMessage: string | null; buildTime: string | null; } \ No newline at end of file diff --git a/src/scripts/generateVersionInfo.ts b/src/scripts/generateVersionInfo.ts index 9a271b7..7472e5e 100644 --- a/src/scripts/generateVersionInfo.ts +++ b/src/scripts/generateVersionInfo.ts @@ -72,6 +72,8 @@ function main(): void { commitHash, commitDate, commitSubject, + lastUpdated: commitDate ?? buildTime, + commitMessage: commitSubject, buildTime, }; @@ -89,4 +91,4 @@ function main(): void { console.log(`[version-info] wrote src/generated/versionInfo.json (${label})`); } -main(); \ No newline at end of file +main();