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

Function parse_frontmatter

libatomic/src/daemon/services_agent.rs:669–678  ·  view source on GitHub ↗
(
    entry: &atomic_core::pristine::VaultEntry,
)

Source from the content-addressed store, hash-verified

667}
668
669fn parse_frontmatter(
670 entry: &atomic_core::pristine::VaultEntry,
671) -> Result<Map<String, Value>, Status> {
672 serde_json::from_str(&entry.frontmatter_json).map_err(|error| {
673 domain_status(
674 ErrorCode::Repository,
675 format!("vault frontmatter is not valid JSON: {error}"),
676 )
677 })
678}
679
680fn body_of(entry: &atomic_core::pristine::VaultEntry) -> String {
681 String::from_utf8_lossy(&entry.content_bytes).into_owned()

Callers 7

update_vault_entityMethod · 0.85
get_vault_entryMethod · 0.85
list_vault_entriesMethod · 0.85
validate_vault_entityMethod · 0.85
prepare_attestationMethod · 0.85
record_attestationMethod · 0.85
verify_attestationMethod · 0.85

Calls 1

domain_statusFunction · 0.85

Tested by

no test coverage detected