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

Function lift

atomic-cli/src/commands/memory/bridge.rs:114–118  ·  view source on GitHub ↗

Lift the given inputs into a canonical `MemoryNode`, mapping a lift failure (missing `uid`, missing `memoryKind`, …) to a clean argument error.

(inputs: &MemLiftInputs)

Source from the content-addressed store, hash-verified

112/// Lift the given inputs into a canonical `MemoryNode`, mapping a lift failure
113/// (missing `uid`, missing `memoryKind`, …) to a clean argument error.
114pub fn lift(inputs: &MemLiftInputs) -> CliResult<MemoryNode> {
115 lift_memory(&inputs.frontmatter, &inputs.body).map_err(|e| CliError::InvalidArgument {
116 message: format!("could not lift memory: {e}"),
117 })
118}
119
120/// Whether this is a freeform memory rather than a malformed canonical one.
121///

Callers 5

runMethod · 0.70
runMethod · 0.70
runMethod · 0.70
kind_status_aboutFunction · 0.70

Calls 1

lift_memoryFunction · 0.85

Tested by 2

runMethod · 0.56