Watch
0
0
Fork
You've already forked hyperhive
0

hive-agent: keep an own /knowledge clone current from the swarm knowledge event

This commit is contained in:
damocles 2026-11-22 17:09:48 +01:00 • committed by mara
commit 989d1d578c

View file

@ -39,6 +39,13 @@ pub fn harness_dir() -> PathBuf {
hive_agent_sock::paths::harness_dir()
}
/// This agent's own clone of the hive-wide `internal/knowledge` repo, kept
/// current by [`crate::knowledge_sync`].
#[must_use]
pub fn knowledge_dir() -> PathBuf {
harness_dir().join("knowledge")
}
/// Consolidated harness-local state db — todos + reminders, one table
/// each — mutable per-agent state the harness owns, kept apart
/// from the usage db. Each store's `open()` only