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

Function prov_input_bundle

libatomic/src/daemon/services_agent.rs:5270–5286  ·  view source on GitHub ↗

The ProvActivityInput as the versioned bundle JSON (schema "atomic.prov.input.v1") — the CLI deserializes the same shape.

(input: &atomic_canonical::prov::ProvActivityInput)

Source from the content-addressed store, hash-verified

5268/// The ProvActivityInput as the versioned bundle JSON (schema
5269/// "atomic.prov.input.v1") — the CLI deserializes the same shape.
5270fn prov_input_bundle(input: &atomic_canonical::prov::ProvActivityInput) -> Vec<u8> {
5271 serde_json::json!({
5272 "change_id_base32": input.change_id_base32,
5273 "activity_id": input.activity_id,
5274 "started_at": input.started_at,
5275 "ended_at": input.ended_at,
5276 "agent_slug": input.agent_slug,
5277 "agent_display_name": input.agent_display_name,
5278 "agent_vendor": input.agent_vendor,
5279 "person_did": input.person_did,
5280 "generated": input.generated,
5281 "used": input.used,
5282 "turn_parent": input.turn_parent,
5283 })
5284 .to_string()
5285 .into_bytes()
5286}
5287
5288/// The ExportProvenance domain: resolve the target (URN/prefix/hash with
5289/// the CLI resolver's exact semantics), load the explaining graphs (the

Callers 1

export_provenance_implFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected