UNPKG

everything-dev

Version:

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

36 lines • 1.94 kB
import { BosConfig, RuntimeConfig } from "../../types.cjs"; //#region src/services/registry/fingerprint.d.ts /** * The registry's fingerprint module — every identity hash lives here so the * planes can't drift apart: * * - `pointerFingerprint` — THE composition identity: a hash over every * remote's pin coordinates (digest manifest + integrity, or the direct * entry integrity). It is the lockfile's fingerprint (ADR 0042), the * watch's change-detection hash, and what deployment records name. * - `deploymentFingerprint` — the serving-generation payload hash * (atomic-deploys 10): entryUrl + entry integrity (+ SSR integrity) per * remote, stamped into the client config as the soft-refresh signal and * used by the host's adopt comparison for derived generations. Derived * from the same remotes AFTER entry resolution, so it changes whenever * the composition changes — plus when only resolved entry coordinates * change. Semantic merge of the two hashes is a recorded future seam: * both sides of every existing comparison must move together. */ /** * The published pointer's version identity (atomic-deploys 08/12): a hash * over every remote's `digest` — cheap to compute (no version-manifest * fetch), and stable exactly when the deployed set is. Shared so the CLI and * the host compute the same identity for the same pointer. */ declare function pointerFingerprint(config: BosConfig): string; /** Per-remote digest ids for display (remote → versioned manifest filename). */ declare function remoteDigests(config: BosConfig): Record<string, string>; /** * The serving-generation payload hash — see the module docstring for its * identity contract versus `pointerFingerprint`. */ declare function deploymentFingerprint(config: RuntimeConfig): string; //#endregion export { deploymentFingerprint, pointerFingerprint, remoteDigests }; //# sourceMappingURL=fingerprint.d.cts.map