Skip to content

feat(cli): add cache clear command#18

Merged
indexzero merged 1 commit intomainfrom
cli/cache-clear
Feb 1, 2026
Merged

feat(cli): add cache clear command#18
indexzero merged 1 commit intomainfrom
cli/cache-clear

Conversation

@indexzero
Copy link
Copy Markdown
Owner

Add _all_docs cache clear command to selectively clear cache entries with support for filtering by cache type, origin, package name, and age.

  • Add clear.js with full implementation supporting:
    • Target specific cache types (--packuments, --partitions, --checkpoints)
    • Filter by registry URL or origin key (--registry, --match-origin)
    • Clear specific package cache (--package)
    • Age-based filtering (--older-than with duration syntax)
    • Dry-run mode and interactive confirmation
  • Add clear() and info() methods to NodeStorageDriver
  • Update jack.js with new CLI flags and options
  • Update outputCommand to handle string usage exports
  • Add comprehensive test suite (26 tests) for cache clear functionality
  • Update doc/cli-reference.md with accurate command documentation

Add `_all_docs cache clear` command to selectively clear cache entries
with support for filtering by cache type, origin, package name, and age.

- Add clear.js with full implementation supporting:
  - Target specific cache types (--packuments, --partitions, --checkpoints)
  - Filter by registry URL or origin key (--registry, --match-origin)
  - Clear specific package cache (--package)
  - Age-based filtering (--older-than with duration syntax)
  - Dry-run mode and interactive confirmation
- Add clear() and info() methods to NodeStorageDriver
- Update jack.js with new CLI flags and options
- Update outputCommand to handle string usage exports
- Add comprehensive test suite (26 tests) for cache clear functionality
- Update doc/cli-reference.md with accurate command documentation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@indexzero indexzero merged commit 33b8c7a into main Feb 1, 2026
1 check passed
@indexzero indexzero deleted the cli/cache-clear branch February 2, 2026 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant