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

Function read_intent

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

151/// `vault_intent_show` normalizes the ID (`"PIMO-1"` / `"pimo-1"` / `"1"`) and
152/// resolves the stored entry.
153pub fn read_intent(repo: &Repository, id: &str) -> BridgeResult<LiftInputs> {
154 let entry = repo.vault_intent_show(id)?;
155 inputs_from_entry(&entry)
156}
157
158/// Lift the given inputs into a canonical node, mapping a lift failure (unknown
159/// directive, missing `id`, malformed `:::ref`, …) to a clean argument error so

Callers 15

view_intent_sourcesFunction · 0.70
repo_with_intentFunction · 0.70
read_contextFunction · 0.70
prepareFunction · 0.70
intent_graphMethod · 0.70
new_defaults_to_featureFunction · 0.50
new_kind_bug_sets_bugFunction · 0.50
runMethod · 0.50
runMethod · 0.50
bind_work_startMethod · 0.50

Calls 2

vault_intent_showMethod · 0.80
inputs_from_entryFunction · 0.70