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

Function prov_input_bundle

libatomic/src/daemon/services_agent.rs:5218–5234  ·  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

5216/// The ProvActivityInput as the versioned bundle JSON (schema
5217/// "atomic.prov.input.v1") — the CLI deserializes the same shape.
5218fn prov_input_bundle(input: &atomic_canonical::prov::ProvActivityInput) -> Vec<u8> {
5219 serde_json::json!({
5220 "change_id_base32": input.change_id_base32,
5221 "activity_id": input.activity_id,
5222 "started_at": input.started_at,
5223 "ended_at": input.ended_at,
5224 "agent_slug": input.agent_slug,
5225 "agent_display_name": input.agent_display_name,
5226 "agent_vendor": input.agent_vendor,
5227 "person_did": input.person_did,
5228 "generated": input.generated,
5229 "used": input.used,
5230 "turn_parent": input.turn_parent,
5231 })
5232 .to_string()
5233 .into_bytes()
5234}
5235
5236/// The ExportProvenance domain: resolve the target (URN/prefix/hash with
5237/// 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