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

Function evidence_context_json

atomic-cli/src/commands/rpc.rs:1295–1310  ·  view source on GitHub ↗
(context: &pb::EvidenceContext)

Source from the content-addressed store, hash-verified

1293}
1294
1295fn evidence_context_json(context: &pb::EvidenceContext) -> serde_json::Value {
1296 serde_json::json!({
1297 "intent_id": context.intent_id,
1298 "intent_substance_hash": context.intent_substance_hash,
1299 "intent_source_hash": context.intent_source_hash,
1300 "view_chain": context
1301 .view_chain
1302 .iter()
1303 .map(|pin| serde_json::json!({
1304 "name": pin.name,
1305 "merkle": pin.merkle,
1306 "scope": pin.scope,
1307 }))
1308 .collect::<Vec<_>>(),
1309 })
1310}
1311
1312fn evidence_replay_json(replay: &pb::EvidenceReplay) -> serde_json::Value {
1313 serde_json::json!({

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected