Skip to content

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

refactor(redact): replace external crate import with local module

Steven Enamakel8c66a236c64e
diff --git a/src/openhuman/memory/guard/audit.rs b/src/openhuman/memory/guard/audit.rs
index da8c67c9a7..094dab2fec 100644
--- a/src/openhuman/memory/guard/audit.rs
+++ b/src/openhuman/memory/guard/audit.rs
@@ -32,7 +32,7 @@ use crate::openhuman::memory::api::capabilities::Capability;
use crate::core::bus::BUS;
use crate::core::events::DomainEvent;
-use tinymemory_core::util::redact::redact;
+use crate::openhuman::util::redact::redact;
use super::policy::GuardPolicy;
diff --git a/src/openhuman/memory/read_rpc/admin.rs b/src/openhuman/memory/read_rpc/admin.rs
index 2f29c9a400..ad77cc38a3 100644
--- a/src/openhuman/memory/read_rpc/admin.rs
+++ b/src/openhuman/memory/read_rpc/admin.rs
@@ -418,7 +418,7 @@ pub async fn delete_source_rpc(
let log = format!(
// Redact the source id: it can embed user-linked identifiers.
"memory_tree::read: delete_source source_id_hash={} deleted={} chunks_removed={} tree_cleaned={}",
- tinymemory_core::util::redact::redact(&source_id),
+ crate::openhuman::util::redact::redact(&source_id),
resp.deleted,
resp.chunks_removed,
tree_cleaned
diff --git a/src/openhuman/memory/read_rpc/entities.rs b/src/openhuman/memory/read_rpc/entities.rs
index 302ad581a4..4ec8add948 100644
--- a/src/openhuman/memory/read_rpc/entities.rs
+++ b/src/openhuman/memory/read_rpc/entities.rs
@@ -251,7 +251,7 @@ pub async fn delete_chunk_rpc(
if e.kind() != std::io::ErrorKind::NotFound {
log::warn!(
"[memory_tree::read::delete] failed to remove chunk file path_hash={}: {e}",
- tinymemory_core::util::redact::redact(&rel),
+ crate::openhuman::util::redact::redact(&rel),
);
}
}
diff --git a/src/openhuman/memory/read_rpc/graph.rs b/src/openhuman/memory/read_rpc/graph.rs
index b46043eb98..4cf5699f9b 100644
--- a/src/openhuman/memory/read_rpc/graph.rs
+++ b/src/openhuman/memory/read_rpc/graph.rs
@@ -84,7 +84,7 @@ pub async fn graph_export_rpc(
mode,
resp.nodes.len(),
resp.edges.len(),
- tinymemory_core::util::redact::redact(&resp.content_root_abs),
+ crate::openhuman::util::redact::redact(&resp.content_root_abs),
);
Ok(RpcOutcome::single_log(resp, log))
}
diff --git a/src/openhuman/memory/read_rpc/vault.rs b/src/openhuman/memory/read_rpc/vault.rs
index d75967535e..eeb4703f05 100644
--- a/src/openhuman/memory/read_rpc/vault.rs
+++ b/src/openhuman/memory/read_rpc/vault.rs
@@ -33,7 +33,7 @@ pub async fn obsidian_vault_status_rpc(
"memory_tree::read: obsidian_vault_status registered={} config_found={} root_hash={}",
resp.registered,
resp.config_found,
- tinymemory_core::util::redact::redact(&resp.content_root_abs),
+ crate::openhuman::util::redact::redact(&resp.content_root_abs),
);
Ok(RpcOutcome::single_log(resp, log))
}
@@ -96,7 +96,7 @@ pub async fn vault_health_check_rpc(
resp.obsidian_registered,
resp.pipeline_healthy,
resp.last_sync_ms,
- tinymemory_core::util::redact::redact(&resp.content_root_abs),
+ crate::openhuman::util::redact::redact(&resp.content_root_abs),
);
Ok(RpcOutcome::single_log(resp, log))
}
diff --git a/src/openhuman/util/redact.rs b/src/openhuman/util/redact.rs
index e05798fba0..2bf0519ed2 100644
--- a/src/openhuman/util/redact.rs
+++ b/src/openhuman/util/redact.rs
@@ -61,7 +61,7 @@ mod tests {
assert!(out.chars().all(|c| c.is_ascii_hexdigit()), "{out}");
}
- /// Pins byte-parity with `tinymemory_core::util::redact::redact`, which this
+ /// Pins byte-parity with `crate::openhuman::util::redact::redact`, which this
/// replaced at five call sites. The two are independent going forward, but
/// a silent change on day one would make old and new log lines for the same
/// id fail to match while both looked correct.
@@ -69,7 +69,7 @@ mod tests {
fn matches_the_engine_helper_it_replaced() {
assert_eq!(
redact("gmail:[email protected]"),
- tinymemory_core::util::redact::redact("gmail:[email protected]")
+ crate::openhuman::util::redact::redact("gmail:[email protected]")
);
}
}