hive-agent: the agent has no login flow of its own, credentials come from the swarm
This commit is contained in:
parent
52d26dd067
commit
ac3b3cfcd3
1 changed files with 46 additions and 844 deletions
|
|
@ -97,7 +97,8 @@ pub enum LoginState {
|
|||
/// `~/.claude/` has credentials; turn loop is running.
|
||||
Online,
|
||||
/// `~/.claude/` is empty; harness is up, web UI is bound, turn loop is NOT
|
||||
/// running. Operator needs to complete login from the web UI.
|
||||
/// running. The operator logs in from the swarm UI; the credentials then
|
||||
/// arrive from the swarm secret store.
|
||||
NeedsLogin,
|
||||
}
|
||||
|
||||
|
|
@ -378,7 +379,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn has_fresh_credentials_rewrite_after_failure_resumes() {
|
||||
// The operator's `/login/code` flow rewrites the stale file in
|
||||
// A fresh login from the swarm rewrites the stale file in
|
||||
// place; its mtime bumps strictly past the failure baseline.
|
||||
let dir = tempfile::tempdir().unwrap();
|
||||
fs::write(dir.path().join(".credentials.json"), b"{}").unwrap();
|
||||
|
|
|
|||
Loading…
Reference in a new issue