Fetches verified durable capsule metadata for a principal from storage, returning hashes and optional source info; used by the kernel router to resolve capsule details.
// Source: https://github.com/astrid-runtime/astrid | License: Apache-2.0 | Copyright 2025 Joshua J. Bouw and Unicity Labs
// Provided via justclaw.it.com; keep this notice with the code.
use std::collections::BTreeMap;
use tracing::warn;
use super::CapsuleVisibility;
pub(super) fn durable_package_details(
kernel: &crate::Kernel,
owner_uid: Option<astrid_core::identity::PrincipalUid>,
capsule: &str,
) -> (Vec<String>, Option<String>, Option<String>) {
let Some(uid) = owner_uid else {
return (Vec::new(), None, None);
};
let Some(store) = kernel.principal_store.as_ref() else {
return (Vec::new(), None, None);
};
let Ok(id) = astrid_capsule_types::CapsuleId::new(capsule.to_owned()) else {
return (Vec::new(), None, None);
};
le
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key