1
0
Fork 0

feat(version): expose build metadata

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
Jason Fraley 2026-08-27 18:36:11 -04:00
parent 7490f34267
commit 7ca8cd8551
3 changed files with 13 additions and 4 deletions

View file

@ -29,6 +29,8 @@ type VersionInfo = {
commitHash: string | null;
commitDate: string | null;
commitSubject: string | null;
lastUpdated: string | null;
commitMessage: string | null;
buildTime: string | null;
};

View file

@ -14,6 +14,8 @@ const EMPTY: VersionInfo = {
commitHash: null,
commitDate: null,
commitSubject: null,
lastUpdated: null,
commitMessage: null,
buildTime: null,
};

View file

@ -10,6 +10,8 @@ const EMPTY: VersionInfo = {
commitHash: null,
commitDate: null,
commitSubject: null,
lastUpdated: null,
commitMessage: null,
buildTime: null,
};
@ -50,11 +52,14 @@ const VersionOverlay = ({ canSeeCommit }: { canSeeCommit: boolean }) => {
const resolved = info ?? EMPTY;
const versionLabel = resolveVersionLabel(resolved);
const lastUpdated = formatCommitDate(resolved.commitDate);
const lastUpdated = formatCommitDate(
resolved.lastUpdated ?? resolved.commitDate ?? resolved.buildTime,
);
const commitMessage = resolved.commitMessage ?? resolved.commitSubject;
const commitInfo =
resolved.commitHash && resolved.commitSubject
? `${resolved.commitHash} · ${resolved.commitSubject}`
: (resolved.commitHash ?? resolved.commitSubject ?? null);
resolved.commitHash && commitMessage
? `${resolved.commitHash} · ${commitMessage}`
: (resolved.commitHash ?? commitMessage ?? null);
const showSecondary = lastUpdated !== null || commitInfo !== null;
return (