Lockspire.Install.Manifest (lockspire v1.6.1)

Copy Markdown

Manifest storage for Lockspire-managed generated scaffolding.

Summary

Functions

Builds a v1-compatible install manifest with an optional migration audit inventory.

Returns the exact bytes written for a manifest transaction.

Functions

build(assigns, rendered_templates)

@spec build(map(), [map()]) :: map()

build(assigns, rendered_templates, migrations)

@spec build(map(), [map()], [map()]) :: map()

Builds a v1-compatible install manifest with an optional migration audit inventory.

Migration entries document the packaged artifacts approved for delivery. They never grant overwrite authority: install and upgrade always preflight the package and host filesystem again before copying a migration.

checksum(contents)

@spec checksum(binary()) :: String.t()

encode(manifest)

@spec encode(map()) :: String.t()

Returns the exact bytes written for a manifest transaction.

load(project_root)

@spec load(String.t()) :: {:ok, map()} | {:error, term()}

path(project_root)

@spec path(String.t()) :: String.t()

write(project_root, manifest)

@spec write(String.t(), map()) :: :ok