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

Function read_intent

atomic-repository/src/intent_bridge.rs:80–83  ·  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

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

Callers 15

new_defaults_to_featureFunction · 0.85
new_kind_bug_sets_bugFunction · 0.85
runMethod · 0.85
runMethod · 0.85
bind_work_startMethod · 0.85
runMethod · 0.85
executeMethod · 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 5

new_defaults_to_featureFunction · 0.68
new_kind_bug_sets_bugFunction · 0.68
runMethod · 0.68