MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / remove_memory_digest_export

Function remove_memory_digest_export

src/automation/memory_digest.rs:724–738  ·  view source on GitHub ↗

Removes the digest artifact for one host channel and forgets the recorded export target so refreshes stop re-creating it.

(
    profile_root: &Path,
    target: SkillInstallTarget,
    output: &Path,
)

Source from the content-addressed store, hash-verified

722/// Removes the digest artifact for one host channel and forgets the recorded
723/// export target so refreshes stop re-creating it.
724pub fn remove_memory_digest_export(
725 profile_root: &Path,
726 target: SkillInstallTarget,
727 output: &Path,
728) -> Result<()> {
729 if target == SkillInstallTarget::Hermes {
730 return Ok(());
731 }
732 if target.is_native_overlay() {
733 remove_native_digest(target, output)?;
734 } else {
735 remove_memory_digest_prompt_block(output)?;
736 }
737 unrecord_digest_target(profile_root, target, output)
738}
739
740/// Install-path entry point: exports when the config gate is enabled,
741/// otherwise removes any previously exported digest for this channel.

Calls 4

remove_native_digestFunction · 0.85
unrecord_digest_targetFunction · 0.85
is_native_overlayMethod · 0.80