Skip to main content

Module init

Module init 

Source
Expand description

outrig init – three-phase orchestrator for end-to-end setup.

Each phase is independently idempotent:

  1. Global config – defer to [config::init::run_with] when ~/.outrig/config.toml is absent; log + skip when present.
  2. Repo configrepo::ensure writes .agents/outrig/config.toml against cwd if missing. Also reused by outrig image add as a fallback when run in an uninitialized repo.
  3. Image loop – offer to scaffold image-configs by delegating to [image::add::run_with] in a loop.

One PromptSource is threaded through all three phases so scripted tests can drive the entire flow with a single byte stream.

Modules§

prompt
Interactive prompts with [default: ...] rendering and ?-help.
repo
Repo-config phase of outrig init, plus the bootstrap fallback used by outrig image add when run in an uninitialized repo.

Constants§

DOC_SYNC_FIELDS
Slice of every Field declared in this module, for prompt_doc_sync.rs.

Functions§

run
run_with
Drives the three-phase flow against an arbitrary PromptSource. cwd anchors the repo-config phase (no walk-up; init is meant for initial setup of the directory you’re standing in). hf is the HuggingFace tree-listing client used by mistralrs model-id prompts.