fix: restore tsc build and plugin install tests

This commit is contained in:
Peter Steinberger
2026-01-31 07:51:26 +00:00
parent c4feb7a457
commit a42e1c82d9
26 changed files with 90 additions and 86 deletions

View File

@@ -254,8 +254,7 @@ export function registerGatewayCli(program: Command) {
return;
}
const rich = isRich();
const obj =
result && typeof result === "object" ? (result as Record<string, unknown>) : {};
const obj: Record<string, unknown> = result && typeof result === "object" ? result : {};
const durationMs = typeof obj.durationMs === "number" ? obj.durationMs : null;
defaultRuntime.log(colorize(rich, theme.heading, "Gateway Health"));
defaultRuntime.log(

View File

@@ -107,10 +107,8 @@ export function registerNodesStatusCommands(nodes: Command) {
const connectedOnly = Boolean(opts.connected);
const sinceMs = parseSinceMs(opts.lastConnected, "Invalid --last-connected");
const result = await callGatewayCli("node.list", opts, {});
const obj =
typeof result === "object" && result !== null
? (result as Record<string, unknown>)
: {};
const obj: Record<string, unknown> =
typeof result === "object" && result !== null ? result : {};
const { ok, warn, muted } = getNodesTheme();
const tableWidth = Math.max(60, (process.stdout.columns ?? 120) - 1);
const now = Date.now();
@@ -227,10 +225,8 @@ export function registerNodesStatusCommands(nodes: Command) {
return;
}
const obj =
typeof result === "object" && result !== null
? (result as Record<string, unknown>)
: {};
const obj: Record<string, unknown> =
typeof result === "object" && result !== null ? result : {};
const displayName = typeof obj.displayName === "string" ? obj.displayName : nodeId;
const connected = Boolean(obj.connected);
const paired = Boolean(obj.paired);