move the builder and claude login wire contracts into swarm-wire
This commit is contained in:
parent
f99e502634
commit
0c3d128de1
23 changed files with 224 additions and 81 deletions
|
|
@ -2,7 +2,7 @@
|
|||
//!
|
||||
//! Connects to the swarm queue as its own OIDC client, takes an operator's
|
||||
//! login steps from swarm-controller on
|
||||
//! [`swarm_queue_client::claude_login::SUBJECT`], runs `claude auth login`
|
||||
//! [`swarm_wire::claude_login::SUBJECT`], runs `claude auth login`
|
||||
//! for the agent named ([`login`]), and writes the credentials it produces to
|
||||
//! that agent's store leaf, a new version over any stored before. The agent's
|
||||
//! harness takes a version newer than the one it last installed.
|
||||
|
|
@ -16,10 +16,10 @@ use std::sync::Arc;
|
|||
|
||||
use anyhow::{Context, Result, bail};
|
||||
use futures_util::StreamExt as _;
|
||||
use swarm_queue_client::claude_login::{Reply, Request, SESSION_DEADLINE, STEP_DEADLINE, SUBJECT};
|
||||
use swarm_queue_client::{ClientSecret, QueueConfig};
|
||||
use swarm_secret_client::claude_login::{Credentials, client_secret_path, credentials_path};
|
||||
use swarm_secret_client::stored_secret::StoredSecret;
|
||||
use swarm_wire::claude_login::{Reply, Request, SESSION_DEADLINE, STEP_DEADLINE, SUBJECT};
|
||||
|
||||
mod login;
|
||||
|
||||
|
|
@ -190,7 +190,7 @@ mod tests {
|
|||
use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
|
||||
use swarm_queue_client::claude_login::{Reply, Request};
|
||||
use swarm_wire::claude_login::{Reply, Request};
|
||||
|
||||
use super::{handle, login};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue