Metakit / @doeixd/metakit/tooling
manifest
function · packages/metakit/src/toolingManifest.ts:174
function manifest(
entries: ReadonlyArray<DefinitionEntry>,
): Effect.Effect<Manifest, DuplicateDeclarationError | EncodeError>Describe entries as a Manifest: each definition's executable and
contract hashes, kind, references and canonical form, and each name's
contract hash. The definitions a named one refers to are listed too (a
derived operation it calls, a machine's transitions), named id@version
and <machine>.<tag> where no entry names them. References come from the
definitions themselves; dependsOn is not read. Two entries named alike,
or a reference whose name is taken by another definition, fail with
DuplicateDeclarationError; a definition with no hash is listed in
unhashable with its reason.