UNPKG

everything-dev

Version:

A consolidated product package for building Module Federation apps with oRPC APIs.

43 lines • 1.91 kB
import { BosEnv } from "../services/resolution/merge.cjs"; //#region src/ui/remote-entry.d.ts /** * The host's entry-URL EntryResolver: one pure derivation from a stamped * config remote to the URLs each surface loads. `RemoteEntry` is structural — * the version-manifest derivation (atomic-deploys 04) stamps exactly these * fields onto `RuntimeConfig` remotes, so they satisfy it as-is. Each surface * of `entryUrls` resolves (and throws) lazily — a caller reading only `ui` * never trips the ssr surface's resolution, and vice versa. */ interface RemoteEntry { /** remote identity, verbatim in resolution errors */ name: string; url?: string; /** browser-facing base (ADR 0011) — the base rule is publicUrl ?? url, inside this module */ publicUrl?: string; /** pin-derived hashed browser entry (absent in development) */ entryUrl?: string; ssrUrl?: string; /** pin-derived hashed SSR entry */ ssrEntryUrl?: string; integrity?: string; ssrIntegrity?: string; /** dev-only freshness token (localUiRemoteEntry's container mtime) */ containerVersion?: string; /** pin-derived hashed browser manifest — absent for local remotes, which no * pin derivation ever stamps (atomic-deploys 08) and the resolver drops * even if one were stamped */ browserManifestUrl?: string; localPath?: string; } interface EntryUrls { /** browser script src / registration entry — bustered fixed name in dev, hashed in prod */ readonly ui: string; /** server container entry; undefined when the remote has no SSR coordinates */ readonly ssr?: string; /** pin-derived hashed mf-manifest; undefined ⟺ local remote (atomic-deploys 08, STRUCTURAL) */ readonly browserManifest?: string; } declare function entryUrls(remote: RemoteEntry, env: BosEnv): EntryUrls; //#endregion export { EntryUrls, RemoteEntry, entryUrls }; //# sourceMappingURL=remote-entry.d.cts.map