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

Function read_intent

atomic-cli/src/commands/intent/bridge.rs:75–78  ·  view source on GitHub ↗

Read an intent by ID from the vault and return its lift inputs. `vault_intent_show` normalizes the ID (`"PIMO-1"` / `"pimo-1"` / `"1"`) and resolves the stored entry.

(repo: &Repository, id: &str)

Source from the content-addressed store, hash-verified

73/// `vault_intent_show` normalizes the ID (`"PIMO-1"` / `"pimo-1"` / `"1"`) and
74/// resolves the stored entry.
75pub fn read_intent(repo: &Repository, id: &str) -> CliResult<LiftInputs> {
76 let entry = repo.vault_intent_show(id).map_err(CliError::Repository)?;
77 inputs_from_entry(&entry)
78}
79
80/// Lift the given inputs into a canonical node, mapping a lift failure (unknown
81/// directive, missing `id`, malformed `:::ref`, …) to a clean argument error so

Callers 8

repo_with_intentFunction · 0.85
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
compute_rowFunction · 0.85
attest_withFunction · 0.85
write_trackedFunction · 0.85

Calls 2

vault_intent_showMethod · 0.80
inputs_from_entryFunction · 0.70

Tested by 1

runMethod · 0.68