Skip to main content

status_document

Function status_document 

Source
pub fn status_document(
    registry: &Registry,
    repos: &[RepoStatusEntry],
    daemon: &str,
    hooks: &str,
    top: Option<usize>,
) -> Value
Expand description

The document emitted by devp status --json.

daemon and hooks are the same strings the dashboard shows; they describe the state of the machine’s integrations, which is what an agent needs to decide whether to suggest devp setup.

top trims the repositories array only. totals is always computed over every registered repository, and top is echoed back so a consumer can tell a short list from a tidy machine.