pub fn merge_entry_metadata(
metadata: Option<Value>,
dependency_kind: Option<String>,
) -> RuntimeResult<Option<Value>>Expand description
Merge a caller-supplied top-level dependency_kind param into an edge’s
metadata object, filling the key only if metadata doesn’t already
carry one. This is distinct from merge_dependency_kind above (which
infers a default from endpoint entity kinds when no explicit value was
given at all) — this one folds in an EXPLICIT dependency_kind argument
the caller passed alongside metadata.
pub: the single source both khive-pack-kg::handlers::link::handle_link
(via khive_runtime::merge_entry_metadata) and
crate::atomic_prepare::prepare_link call. Lives in khive-runtime (not
pack-kg) because packs depend on khive-runtime, never the reverse: the
only direction that lets both call sites share one copy instead of a
hand-duplicated block.