Home

Packages

This page lists the safe and destructive patterns in the Package Registries shell guard pack. See Shell Tool for how these patterns are evaluated.

Package Registries

Pack ID: packages.registries

Guards against destructive package manager operations affecting registries

Destructive patterns

Rule IDReasonSuggestionConfidence
packages.registries.npm_unpublishUnpublishing removes a package version from the public registry, potentially breaking dependentsUse npm deprecate to mark versions as deprecated insteadHigh
packages.registries.npm_deprecateDeprecating a package version affects all consumersVerify the package name and version before deprecatingMedium
packages.registries.npm_cache_cleanRemoves the local package cache, requiring full re-downloadUse npm cache verify to check cache integrity insteadMedium
packages.registries.cargo_publishPublishing a crate to crates.io is a public, irreversible actionVerify package metadata with cargo package --list first; ensure version and contents are correctHigh
packages.registries.npm_publishPublishing a package to a registry is a public, irreversible actionVerify package contents with npm pack --dry-run first; ensure version and contents are correctHigh

This documentation was generated from rust/agents/src/tool_guard/shell/packs/packages.rs.

© 2026 Stencila