fix(status): report beta registry channel

This commit is contained in:
Vincent Koc
2026-05-02 14:30:06 -07:00
parent cb9a97f211
commit d68ca425bd
10 changed files with 163 additions and 7 deletions

View File

@@ -6,12 +6,14 @@ import {
import { readConfigFileSnapshot } from "../../config/config.js";
import {
normalizeUpdateChannel,
resolveRegistryUpdateChannel,
resolveUpdateChannelDisplay,
} from "../../infra/update-channels.js";
import { checkUpdateStatus } from "../../infra/update-check.js";
import { defaultRuntime } from "../../runtime.js";
import { getTerminalTableWidth, renderTable } from "../../terminal/table.js";
import { theme } from "../../terminal/theme.js";
import { VERSION } from "../../version.js";
import { parseTimeoutMsOrExit, resolveUpdateRoot, type UpdateStatusOptions } from "./shared.js";
function formatGitStatusLine(params: {
@@ -47,10 +49,15 @@ export async function updateStatusCommand(opts: UpdateStatusOptions): Promise<vo
timeoutMs: timeoutMs ?? 3500,
fetchGit: true,
includeRegistry: true,
registryChannel: resolveRegistryUpdateChannel({
configChannel,
currentVersion: VERSION,
}),
});
const channelInfo = resolveUpdateChannelDisplay({
configChannel,
currentVersion: VERSION,
installKind: update.installKind,
gitTag: update.git?.tag ?? null,
gitBranch: update.git?.branch ?? null,