cache:orphans
List cache entries that no product references in its pyproject.toml.
Usage
splent cache:orphans
Example output
🗑 Orphaned cache entries (3):
- splent_io/splent_feature_auth@v1.0.0
- splent_io/splent_feature_redis@v1.0.0
- splent_io/splent_feature_profile@v1.0.0
Description
Scans every product directory in the workspace for pyproject.toml files and collects all feature references declared under [tool.splent].features. It then compares them against every entry in .splent_cache/features/.
A cache entry is considered orphaned if no product references it — either as a versioned snapshot (feature@version) or as an editable entry (no version suffix).
This command is read-only. To remove orphaned entries, run cache:prune.
Feature references in pyproject.toml can omit the namespace (splent_feature_auth@v1.2.7) or include it (splent_io/splent_feature_auth@v1.2.7). Both formats are handled correctly.