Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1cbfacda20 | ||
|
|
d07f5eadaa |
3 changed files with 11 additions and 2 deletions
|
|
@ -225,9 +225,11 @@ fn render_containers(
|
|||
let port = lifecycle::agent_web_port(name);
|
||||
let claude_dir = Coordinator::agent_claude_dir(name);
|
||||
let login_badge = if claude_has_session(&claude_dir) {
|
||||
""
|
||||
String::new()
|
||||
} else {
|
||||
" <span class=\"role role-pending\">needs login</span>"
|
||||
format!(
|
||||
" <a class=\"role role-pending\" href=\"http://{hostname}:{port}/\">needs login →</a>",
|
||||
)
|
||||
};
|
||||
let _ = writeln!(
|
||||
out,
|
||||
|
|
|
|||
|
|
@ -15,6 +15,10 @@
|
|||
description = "hive-ag3nt harness";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "network.target" ];
|
||||
# The harness shells out to `claude` (turn loop + login flow). systemd
|
||||
# units get a minimal PATH by default, so we have to put claude-code on
|
||||
# it explicitly even though it's in environment.systemPackages above.
|
||||
path = [ pkgs.claude-code ];
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.hyperhive}/bin/hive-ag3nt serve";
|
||||
Restart = "on-failure";
|
||||
|
|
|
|||
|
|
@ -27,6 +27,9 @@
|
|||
HIVE_PORT = "8000";
|
||||
HIVE_LABEL = "hm1nd";
|
||||
};
|
||||
# See note in agent-base.nix — `claude` has to be on the service PATH
|
||||
# explicitly for the harness to shell out to it.
|
||||
path = [ pkgs.claude-code ];
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.hyperhive}/bin/hive-m1nd serve";
|
||||
Restart = "on-failure";
|
||||
|
|
|
|||
Loading…
Reference in a new issue