Watch
0
0
Fork
You've already forked hyperhive
0

hive-agent: correct doc comments that describe sentinel files, session flags and outcomes the code no longer has

This commit is contained in:
damocles 2026-10-21 22:13:54 +02:00 • committed by mara
commit ac0bed47e9
11 changed files with 40 additions and 38 deletions

View file

@ -30,10 +30,10 @@ pub fn hive_domain() -> Option<String> {
/// Human display name of this hive (e.g. `pr1ma`). Distinct from
/// [`hive_domain`] — the domain is the machine-readable DNS address;
/// this is the prose label humans use in conversation. Returns None
/// when `/etc/hyperhive-hive-facts` carries no name (the host's
/// `services.hyperhive.hiveName` is unset), in which case callers fall
/// back to the domain or the short label at their discretion.
/// this is the prose label humans use in conversation. Reads the
/// `HYPERHIVE_HIVE_NAME` env var; returns None when it is unset or empty
/// (the host's `services.hyperhive.hiveName` is unset), in which case
/// callers fall back to the domain or the short label at their discretion.
#[must_use]
pub fn hive_name() -> Option<String> {
non_empty_env("HYPERHIVE_HIVE_NAME")