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

Function get

libatomic/src/review/workflow.rs:138–152  ·  view source on GitHub ↗

Read the stored review and its retained evidence, including the source hash an editor must retain when requesting approval after judgment authoring/sync.

(repo: &Repository, id: &str)

Source from the content-addressed store, hash-verified

136/// Read the stored review and its retained evidence, including the source hash
137/// an editor must retain when requesting approval after judgment authoring/sync.
138pub fn get(repo: &Repository, id: &str) -> ReviewResult<ReviewDetail> {
139 let intent = repo.resolve_intent_key(id)?;
140 let inputs = bridge::read_intent(repo, &intent)?;
141 Ok(ReviewDetail {
142 path: repo
143 .vault_intent_path(&intent)?
144 .ok_or_else(|| invalid("review path is missing"))?,
145 source_hash: bridge::source_content_hash(&inputs),
146 node: bridge::lift(&inputs)?,
147 subject: repo.review_intent_subject(&intent)?,
148 frontmatter: inputs.frontmatter,
149 body: inputs.body,
150 intent,
151 })
152}
153
154/// Secrets stay in the injected local store and are never part of the response.
155pub fn approve(

Callers 4

approveFunction · 0.70
get_reviewMethod · 0.50
startMethod · 0.50

Calls 7

resolve_intent_keyMethod · 0.80
vault_intent_pathMethod · 0.80
review_intent_subjectMethod · 0.80
invalidFunction · 0.70
read_intentFunction · 0.50
source_content_hashFunction · 0.50
liftFunction · 0.50

Tested by

no test coverage detected