pub struct WorkFacts {Show 17 fields
pub agent: String,
pub block_id: String,
pub channel: String,
pub status: String,
pub goal: Option<String>,
pub working_folder: Option<String>,
pub repo: Option<String>,
pub repo_root: Option<String>,
pub branch: Option<String>,
pub dirty_files: Vec<String>,
pub dirty_count: usize,
pub recent_files: Vec<FactFile>,
pub todos: Vec<TodoItem>,
pub current_tool: Option<String>,
pub git_checked_ms: Option<u64>,
pub build_slot: Option<BuildSlotHold>,
pub runs_in: Option<String>,
}Expand description
Everything known about one agent’s current work.
Fields§
§agent: String§block_id: String§channel: StringThe AgentMux channel the agent runs in (stable, dev, …).
status: Stringbusy (a turn is running), idle, or stopped.
goal: Option<String>§working_folder: Option<String>§repo: Option<String>§repo_root: Option<String>§branch: Option<String>§dirty_files: Vec<String>Repository-relative, at most a few hundred; dirty_count is the total.
dirty_count: usize§recent_files: Vec<FactFile>Newest first.
todos: Vec<TodoItem>§current_tool: Option<String>§git_checked_ms: Option<u64>When git was last asked; None before the first probe or outside a
repository.
build_slot: Option<BuildSlotHold>Set while this agent holds the host’s build slot (agentmux_common::build_slot): other
agents’ builds and tests wait behind it.
runs_in: Option<String>Where the agent runs: RUNS_ON_HOST or RUNS_IN_CONTAINER. None from an AgentMux that does
not say.
Implementations§
Source§impl WorkFacts
impl WorkFacts
Sourcepub fn repo_key(&self) -> Option<String>
pub fn repo_key(&self) -> Option<String>
The key two agents share when they work in the same repository: the
owner/repo of its origin, else (no remote) the clone’s own folder.
Sourcepub fn clone_is_read_by(&self, channel: &str) -> bool
pub fn clone_is_read_by(&self, channel: &str) -> bool
Whether the AgentMux of channel may run git in this agent’s clone. It does for its own agents,
whose folders it knows (a container agent’s is read inside its container), and for an agent of
another AgentMux only when that one says it runs on the host.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WorkFacts
impl<'de> Deserialize<'de> for WorkFacts
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for WorkFacts
impl StructuralPartialEq for WorkFacts
Auto Trait Implementations§
impl Freeze for WorkFacts
impl RefUnwindSafe for WorkFacts
impl Send for WorkFacts
impl Sync for WorkFacts
impl Unpin for WorkFacts
impl UnsafeUnpin for WorkFacts
impl UnwindSafe for WorkFacts
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more