wip(#1970): github-token injection path (priv wire + hive-priv handler + priv_client + hivectl github set-token)

This commit is contained in:
damocles 2026-07-11 10:45:09 +02:00 committed by mara
commit 80ef7d8151
4 changed files with 102 additions and 0 deletions

View file

@ -289,6 +289,14 @@ async fn exec(req: PrivRequest, writer: &mut OwnedWriteHalf) -> Result<(String,
Ok(res)
}
PrivRequest::WriteAgentGithubToken {
ref agent_name,
ref token,
} => {
validate_agent_name(agent_name)?;
write_agent_state_file(agent_name, "github-token", &format!("{token}\n"))
}
PrivRequest::RestartMatrixDaemon { ref agent_name } => {
restart_matrix_daemon(agent_name).await
}