Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(storage): compose owner schemas, boot migration, scope move and generated module grants

Steven Enamakel2fb81a66fc17
diff --git a/crates/openhuman-core/src/modules/storage_host_watching.rs b/crates/openhuman-core/src/modules/storage_host_watching.rs
index eaa45908bf..f3ad29f1d3 100644
--- a/crates/openhuman-core/src/modules/storage_host_watching.rs
+++ b/crates/openhuman-core/src/modules/storage_host_watching.rs
@@ -112,6 +112,19 @@ impl DocumentStore for Documents {
Ok(version)
}
+ async fn put_with(
+ &self,
+ c: &str,
+ id: &str,
+ doc: Value,
+ p: Precondition,
+ options: tinystoragedrivers::WriteOptions,
+ ) -> Result<Version> {
+ let version = self.inner.put_with(c, id, doc, p, options).await?;
+ let _ = self.changed.send(());
+ Ok(version)
+ }
+
async fn delete(&self, c: &str, id: &str, p: Precondition) -> Result<bool> {
let deleted = self.inner.delete(c, id, p).await?;
let _ = self.changed.send(());