The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(config): track document versions in config source
Steven Enamakeldfb90d25db08
diff --git a/crates/openhuman-core/src/config/schema/load/source/mod.rs b/crates/openhuman-core/src/config/schema/load/source/mod.rsindex 5eb601dbb9..03400bd591 100644--- a/crates/openhuman-core/src/config/schema/load/source/mod.rs+++ b/crates/openhuman-core/src/config/schema/load/source/mod.rs@@ -54,6 +54,7 @@ pub(crate) struct ConfigRead {/// including the file a document source falls back to when the scope has/// no document yet: that text keeps the file's corruption recovery.pub from_document: bool,+ pub document_version: Option<tinystoragedrivers::Version>,}/// A place a config's TOML text is read from and written to.@@ -82,7 +83,7 @@ pub(crate) trait ConfigSource: Send + Sync {/// Replace the config text. Returns `Err` only while the previous config is/// still the live one, so callers may roll back in-memory state on `Err`.- async fn write(&self, toml: &str) -> Result<()>;+ async fn write(&self, toml: &str, expected: Option<tinystoragedrivers::Version>) -> Result<Option<tinystoragedrivers::Version>>;}/// The source for the config at `config_path`.