style: treefmt main — fix CI formatting check
Full `nix flake check` (CI) runs the treefmt formatting derivation. While the hive-ci runner was offline (#1221), PRs merged without it, leaving 5 files unformatted: hive-ag3nt/src/web_ui.rs, hive-c0re/src/bin/hivectl.rs, hive-c0re/src/knowledge.rs, hive-c0re/src/matrix.rs, hive-forge/src/verbs/attachment_get.rs. `nix fmt` output, pure formatting.
This commit is contained in:
parent
c70823755b
commit
20c5039156
5 changed files with 62 additions and 44 deletions
|
|
@ -14,9 +14,9 @@
|
|||
//! dirs) and reuse the `forge` / `matrix` modules from the
|
||||
//! `hive-c0re` lib — single source of truth, no duplication.
|
||||
|
||||
use std::path::{Path, PathBuf};
|
||||
#[cfg(unix)]
|
||||
use std::os::unix::process::CommandExt as _;
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
use anyhow::{Context as _, Result, bail};
|
||||
use clap::{Parser, Subcommand};
|
||||
|
|
@ -339,9 +339,7 @@ fn is_agent(name: &str) -> bool {
|
|||
/// fully interactive. Requires root and a running container.
|
||||
fn choom(name: &str, fresh: bool) -> Result<()> {
|
||||
if !is_agent(name) {
|
||||
bail!(
|
||||
"no such agent: '{name}' (no state dir under /var/lib/hyperhive/agents/)"
|
||||
);
|
||||
bail!("no such agent: '{name}' (no state dir under /var/lib/hyperhive/agents/)");
|
||||
}
|
||||
let container = hive_c0re::lifecycle::container_name(name);
|
||||
let claude = "/run/current-system/sw/bin/claude";
|
||||
|
|
|
|||
Loading…
Reference in a new issue