docs(memory): fix knowledge dir path in collect_resident_knowledge doc

This commit is contained in:
Keisuke Hirata 2026-05-12 15:07:39 +09:00
parent 7b8eb3af8d
commit f7f59dd30c
No known key found for this signature in database

View File

@ -23,9 +23,9 @@ pub struct ResidentKnowledgeEntry {
pub description: String, pub description: String,
} }
/// Walk `<workspace>/knowledge/*.md` and return entries whose /// Walk `<workspace>/.insomnia/knowledge/*.md` and return entries whose
/// frontmatter has `model_invokation: true`, sorted by slug. A missing /// frontmatter has `model_invokation: true`, sorted by slug. A missing
/// `knowledge/` directory yields an empty vec. /// directory yields an empty vec.
pub fn collect_resident_knowledge(layout: &WorkspaceLayout) -> Vec<ResidentKnowledgeEntry> { pub fn collect_resident_knowledge(layout: &WorkspaceLayout) -> Vec<ResidentKnowledgeEntry> {
let mut out: Vec<ResidentKnowledgeEntry> = Vec::new(); let mut out: Vec<ResidentKnowledgeEntry> = Vec::new();
walk_knowledge(layout, |slug, fm| { walk_knowledge(layout, |slug, fm| {