Skip to main content

Module models

Module models 

Source
Expand description

Ergonomic re-exports of generated model types plus small helpers.

Structs§

Build
One run of a pipeline, identified by its pipeline-scoped number.
CreateBuildRequest
Creates a build for a pipeline. Two paths: supply pre-rendered v0 IR JSON in pipeline_ir (the hm run / API path), or omit pipeline_ir to have the engine render the registered pipeline’s IR in a sandbox VM (decision #5 — rendering never happens on the API host). The IR is then parsed and planned in-process; on a plan/render rejection the build row is created with its error fields set and the request returns 422.
CreateRepoBuildRequest
Creates a build by addressing the pipeline through its repo-natural identity — repo_name (owner/repo) plus source_slug (the in-repo @hm.pipeline("…") name) — rather than the org-global slug. This is the hm run path: a repo-local client knows its git remote and its pipeline name but not the namespaced slug. Build semantics are otherwise identical to createBuild.
Job
One job (DAG node) of a build.

Functions§

build_is_terminal
Whether a build state is terminal (no further transitions).
job_is_terminal
Whether a job state is terminal.