move journal types from agent/journal.rs to thought/context.rs

JournalEntry, parse_journal, parse_journal_text, parse_header_timestamp,
and default_journal_path consolidated into thought/context.rs. Delete
the duplicate agent/journal.rs (235 lines). Update all references.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
Kent Overstreet 2026-04-02 15:25:07 -04:00
parent e0a54a3b43
commit 01bfbc0dad
6 changed files with 82 additions and 247 deletions

View file

@ -44,7 +44,7 @@ pub fn write_entry(args: &serde_json::Value) -> Result<String> {
.as_str()
.context("entry is required")?;
let journal_path = crate::agent::journal::default_journal_path();
let journal_path = crate::thought::context::default_journal_path();
// Ensure parent directory exists
if let Some(parent) = journal_path.parent() {