Skip to content

Reason Network: your team's coding agents, talking to each other. The engine behind `reason network`.

team info says the engine takes files

Lars Talian1fa46a3c043c
diff --git a/src/daemon/teamops.rs b/src/daemon/teamops.rs
index 597bf0a..6b143df 100644
--- a/src/daemon/teamops.rs
+++ b/src/daemon/teamops.rs
@@ -215,6 +215,7 @@ impl Daemon {
person,
machine: self.machine.clone(),
machines: Vec::new(),
+ features: vec![crate::files::FEATURE.into()],
})
}
@@ -311,6 +312,7 @@ impl Daemon {
person: person.clone(),
machine: self.machine.clone(),
machines: Vec::new(),
+ features: vec![crate::files::FEATURE.into()],
};
{
let mut g = self.inner.lock().unwrap();
@@ -449,6 +451,7 @@ impl Daemon {
person: self.person.clone(),
machine: self.machine.clone(),
machines: self.machines(),
+ features: vec![crate::files::FEATURE.into()],
})
}
diff --git a/src/proto.rs b/src/proto.rs
index 45139f7..88e3e3b 100644
--- a/src/proto.rs
+++ b/src/proto.rs
@@ -384,6 +384,10 @@ pub struct TeamInfo {
pub person: String,
pub machine: String,
pub machines: Vec<MachineInfo>,
+ /// What this engine takes beyond what every version does (`files`), for local clients that pass such things on
+ /// for others. Older engines leave it out.
+ #[serde(default)]
+ pub features: Vec<String>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]