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

Function intent_key

libatomic/src/review/incremental.rs:220–232  ·  view source on GitHub ↗
(repo: &Repository, reference: &str)

Source from the content-addressed store, hash-verified

218}
219
220fn intent_key(repo: &Repository, reference: &str) -> CliResult<String> {
221 if reference.trim() != reference || reference.is_empty() {
222 return Err(invalid(
223 "Intent selector must not be empty or padded with whitespace",
224 ));
225 }
226 let key = repo
227 .resolve_intent_key(reference)
228 .map_err(CliError::Repository)?;
229 // resolve_intent_key intentionally permits not-yet-created human keys.
230 repo.vault_intent_show(&key).map_err(CliError::Repository)?;
231 Ok(key)
232}
233
234fn same_intent(repo: &Repository, reference: &str, key: &str) -> bool {
235 repo.resolve_intent_key(reference)

Callers 3

current_planFunction · 0.85
manifest_planFunction · 0.85
resolve_with_sessionFunction · 0.85

Calls 4

resolve_intent_keyMethod · 0.80
vault_intent_showMethod · 0.80
invalidFunction · 0.70
is_emptyMethod · 0.45

Tested by

no test coverage detected