Skip to main content

vela_cli/cli/
surface.rs

1//! The compact product help and advanced command reference.
2
3pub(crate) fn print_product_help() {
4    println!(
5        "Vela {}\nVersion control for scientific state.\n",
6        env!("CARGO_PKG_VERSION")
7    );
8    println!("Usage: vela <COMMAND>\n");
9    println!("  init       status     next       start");
10    println!("  submit     show       why        review");
11    println!("  check      reproduce  log        doctor\n");
12    println!("Run `vela help advanced` for setup and verification commands.");
13}
14
15pub(crate) fn print_strict_help() {
16    print!("{}", strict_help_text());
17}
18
19/// The curated, grouped command reference (`vela help advanced`). Kept
20/// hand-curated for legibility — clap's flat alphabetical dump is worse UX —
21/// but `mod surface_tests` asserts every released subcommand appears here,
22/// so it can never silently omit a newly-added command (the drift the old
23/// hand-maintained allowlist suffered, now caught at the help layer too).
24pub(crate) fn strict_help_text() -> String {
25    format!(
26        r#"Vela {}
27Version control for scientific state.
28Agents submit evidence. Verifiers establish scoped results. Authorized
29Decisions change Standing. Git preserves and publishes bytes.
30
31Usage:
32  vela <COMMAND>
33
34Daily product:
35  init          Create a minimal Git-native frontier
36  status        Compact frontier identity, roots, counts, and next action
37  next          Ranked Target Offers
38  start         Start one bounded Attempt against an exact Target
39  submit        Register authenticated producer input for review
40  show          One exact object, its root, era, and authority effect
41  why           Root-bound explanation of one Claim's Standing
42  review        Inspect or perform one exact authorized Proposal action
43  check         Replay, signatures, parity, and strict signals
44  reproduce     Re-run stored witnesses with frozen verifiers
45  log           Recent signed events or one finding's history
46  doctor        Blockers plus one safe next action
47
48Nouns and setup:
49  claim         record, standing, evidence, and attribution views
50  id            optional file-backed producer identity
51  agents        regenerate agent adapters from VELA.md
52  config        closed local/frontier configuration
53
54Advanced verification and integration:
55  verification  Retain non-authorizing scoped Verification Records
56
57Advanced setup:
58  authority     initialize standard repository authority for a fresh Frontier
59  target-index  inspect, diagnose, or seal derived producer targets
60  repository    verify the current repository origin and authority boundary
61
62Hidden utility:
63  completions   generate shell completion scripts
64"#,
65        env!("CARGO_PKG_VERSION"),
66    )
67}