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:
parent
e0a54a3b43
commit
01bfbc0dad
6 changed files with 82 additions and 247 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue