Skip to main content

install_artifacts

Function install_artifacts 

Source
pub fn install_artifacts(
    agents: &[AgentId],
    scope: Scope,
    home: &Path,
    cwd: &Path,
    force: bool,
) -> Vec<ArtifactResult>
Expand description

Render frontmatter (if any) and a managed-section block for agent, then install it under the resolved (scope, home, cwd) path. The result vector has one entry per input agent in selection order.

Agents without a writer (see has_artifact_writer) produce ArtifactResult::Skipped without touching the filesystem. Per-agent errors are captured as ArtifactResult::Failed and do NOT abort the remaining agents.

force = true overwrites the target file fresh (see module docs).

This function is log-free by design (repograph-core is pure-value domain code per .claude/rules/logging.md). The binary-side caller iterates the returned vector and emits one tracing line per result on stderr.