MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / is_eligible_memory

Function is_eligible_memory

atomic-cli/src/commands/vault/context.rs:669–679  ·  view source on GitHub ↗
(entry: &VaultEntry)

Source from the content-addressed store, hash-verified

667}
668
669fn is_eligible_memory(entry: &VaultEntry) -> bool {
670 if entry.entry_type != VaultEntryType::Memory {
671 return false;
672 }
673 let kind = frontmatter_kind(&entry.frontmatter_json);
674 if EXCLUDED_MEMORY_TYPES.contains(&kind.as_str()) {
675 return false;
676 }
677 frontmatter_status(&entry.frontmatter_json)
678 .is_some_and(|status| status.eq_ignore_ascii_case("active"))
679}
680
681/// Identify the exact stored knowledge revision, not only its Markdown body.
682/// Length-prefixing keeps the hash input unambiguous while preserving the raw

Callers 3

gather_candidatesMethod · 0.85
scan_memory_bodiesMethod · 0.85
resolve_and_rankFunction · 0.85

Calls 4

frontmatter_kindFunction · 0.85
frontmatter_statusFunction · 0.85
containsMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected