UNPKG

@mesh-tech/mesh-cli

Version:

CLI for Mesh platform development utilities

29 lines (28 loc) 1.33 kB
import { type RegistryTokenState } from "../../utils/auth-preflight.js"; export declare const HUB_IMAGES: readonly ["mesh-local-hub-api", "mesh-local-hub-ui"]; export declare function ensureHubAuthImage(): void; export declare function hasRegistryAuth(): boolean; export declare function localHubVersion(): string | undefined; export type WithHubPlan = { action: "refresh"; } | { action: "use-local"; version: string; warning: string; } | { action: "fail"; message: string; remediation: string; }; export declare function planWithHubRefresh(probeState: RegistryTokenState, builtVersion: string | undefined): WithHubPlan; export declare function ensureHubImages(): Promise<string>; export declare const HUB_COMPILED_AUTHZ_REL = "api/dist/authz/compiled.json"; export type HubCompiledAuthz = { zed: string; metadata: Record<string, unknown>; }; export declare function tarballNameForImageVersion(version: string): string | null; export declare function readHubCompiledAuthz(version: string): HubCompiledAuthz | null; export declare function readWorkspaceCatalog(repoRoot: string): Record<string, string>; export declare function normalizeHubManifests(contextDir: string, catalog: Record<string, string>): string[]; export declare function buildHubImagesFromSource(repoRoot: string): Promise<string>;