pub fn read_contribution_resource(
package: &AgentPackage,
contribution_id: &str,
) -> Result<Option<AgentPackageResource>, Error>Expand description
Read one contribution’s declared resource from inside package storage.
Ok(None) means either the contribution has no resource declaration or
the agent has not created the declared file yet. Existing resources must be
regular bounded UTF-8 files whose canonical path remains under the package
storage directory. This function is read-only and never creates storage.