feat(cache): add cache management API#16
Merged
Conversation
…validation Expose list, has, remove, stats, and invalidate methods on client.cache so users can inspect cached bundles, selectively remove entries, check freshness, compute disk usage, and force re-fetches without purging the entire cache. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
961b3bc to
bba048b
Compare
58ddfe2 to
bba048b
Compare
Use dorny/paths-filter to detect changes in .devcontainer/ and the workflow file itself. ShellCheck, Compose Config, and Devcontainer Build jobs now only run when those paths are modified, saving ~7 minutes on commits that only touch source code. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
client.cachefor granular cache management:list,has,remove,stats, andinvalidateCacheEntry,CacheStats, andCacheManagertypesBundleCacheinternals to extractreadMetahelper and reduce cognitive complexitypackage.json(pre-existing CI failure)validate.yamlworkflow: skip devcontainer build (~7min) when only source code changes, usingdorny/paths-filter@v3New Cache Methods
list()CacheEntry[]has(ns, slug, version?){ cached, fresh }remove(ns, slug, version?)numberstats()CacheStatsinvalidate(ns, slug, version?)numberTest plan
listreturns entries with correct metadata, scoped to current hosthasdetects cached/fresh/missing/stale statesremovedeletes selectively by version or all versions (including refs)statscounts entries, blobs, refs across all hostsinvalidateforces stale without removing data, invalidates refs.devcontainer/changes🤖 Generated with Claude Code