tools: add journal tools to main registry, fix journal MCP access
journal_tools() was only in memory_and_journal_tools() for subconscious agents — not in the main tools() registry. Added so consciousness and MCP server can use journal_new/tail/update. Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
parent
1554d88694
commit
e9d803c4ea
3 changed files with 1 additions and 8 deletions
|
|
@ -712,11 +712,6 @@ fn deserialize_path<'de, D: serde::Deserializer<'de>>(d: D) -> Result<PathBuf, D
|
|||
Ok(expand_home(&s))
|
||||
}
|
||||
|
||||
fn deserialize_path_opt<'de, D: serde::Deserializer<'de>>(d: D) -> Result<Option<PathBuf>, D::Error> {
|
||||
let s: Option<String> = serde::Deserialize::deserialize(d)?;
|
||||
Ok(s.map(|s| expand_home(&s)))
|
||||
}
|
||||
|
||||
pub fn expand_home(path: &str) -> PathBuf {
|
||||
if let Some(rest) = path.strip_prefix("~/") {
|
||||
dirs::home_dir().unwrap_or_default().join(rest)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue