Skip to main content

Module pack

Module pack 

Source
Expand description

harn pack <entrypoint> — build a signed-ready .harnpack from a Harn entrypoint.

Walks the entrypoint’s transitive imports, precompiles every module into a .harnbc artifact, snapshots the provider catalog and stdlib pin, generates a minimal SBOM, assembles a v2 WorkflowBundle manifest, and emits a deterministic tar.zst archive. Signing lands in E6.3; SBOM body and CLI --json polish in E6.4.

Structs§

PackError
PackJsonData
JSON payload emitted under JsonEnvelope.data for harn pack.
PackOutcome
Outcome of build. Used by tests; the dispatcher consumes it directly via run.

Constants§

PACK_SCHEMA_VERSION
Stable schema version for the harn pack --json envelope. Bump when PackJsonData changes shape in a way that agents need to detect.

Functions§

build
run
run_to_envelope
Programmatic entrypoint used by tests and other CLI command code that needs the JSON envelope without going through stdout.