Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
export function formatAppDisplayName(input: {
readonly baseName: string;
readonly stageLabel: string;
}): string {
if (input.stageLabel.trim().toLowerCase() === "latest") {
return input.baseName;
}
return `${input.baseName} (${input.stageLabel})`;
}
export function resolveServerBackedAppStageLabel(input: {
readonly primaryServerVersion: string | null | undefined;
readonly fallbackStageLabel: string;
}): string {
return input.fallbackStageLabel;
}
export function resolveServerBackedAppDisplayName(input: {
readonly baseName: string;
readonly fallbackDisplayName: string;
readonly fallbackStageLabel: string;
readonly primaryServerVersion: string | null | undefined;
}): string {
const stageLabel = resolveServerBackedAppStageLabel({
primaryServerVersion: input.primaryServerVersion,
fallbackStageLabel: input.fallbackStageLabel,
});
return stageLabel === input.fallbackStageLabel
? input.fallbackDisplayName
: formatAppDisplayName({ baseName: input.baseName, stageLabel });
}