fix(#1970): address argus review — # Errors doc, regen hivectl-cli.md, GET /api/github-account status

This commit is contained in:
damocles 2026-07-11 10:58:35 +02:00 committed by mara
commit 3e5aff39eb
4 changed files with 67 additions and 1 deletions

View file

@ -286,6 +286,12 @@ pub async fn write_agent_matrix_token(
/// user so the `gh` wrapper / git credential helper can read it from inside the
/// container. Single account per agent — no account suffix. The token value is
/// operator-supplied (for the agent's `hyperhive.githubAccount`).
///
/// # Errors
///
/// Returns an error if the hive-priv call fails — the socket is unreachable,
/// `agent_name` is rejected by the root-side validation, or the file
/// write/chown fails.
pub async fn write_agent_github_token(agent_name: &str, token: &str) -> Result<()> {
ok(call(&PrivRequest::WriteAgentGithubToken {
agent_name: agent_name.to_owned(),