Repository navigation
feat(cache): add launch:cache:purge to purge an environment's CDN cache (+Claude) - #255
Merged
Merged
Conversation
Raise the express range to ^4.22.3 and refresh the lockfile so body-parser resolves to 1.20.9 and qs to 6.17.0, clearing the Snyk qs and body-parser advisories. #claude_code# 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Sakshi Koli <sakshi.koli@contentstack.com> Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RRzARBNPiGXBj5RQsYpVvQ
Add the cache resource (CacheApi, inputs, errors, presenter) and the launch:cache:purge command, which reads the environment and sends one revalidate-cdn-cache POST for exactly one of --path, --tags or --hosts. Registers the launch:cache topic and the cache layering edge. #claude_code# 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Sakshi Koli <sakshi.koli@contentstack.com> Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RRzARBNPiGXBj5RQsYpVvQ
Add RestRequest.noRetryCodes (a src/transport change) so a 429 carrying a listed code is final; only CacheApi.purge opts out, for the daily purge quota, which a retry cannot clear. Word the quota 429, the 403, a missing environment and the CLI-bug code, and report a 404 on the environment read as a usage error before any POST. #claude_code# 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Sakshi Koli <sakshi.koli@contentstack.com> Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RRzARBNPiGXBj5RQsYpVvQ
Refreshed the checksum of the existing .talismanrc entries for: AGENTS.md, README.md, src/transport/rest-client.ts, src/transport/rest-client.test.ts, test/guards/layering.test.ts, test/integration/retired-commands.test.ts. Talisman flagged only low-severity prose, test titles and key/value identifiers already on v2-dev; no credentials. #claude_code# 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Sakshi Koli <sakshi.koli@contentstack.com> Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RRzARBNPiGXBj5RQsYpVvQ
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
✅ BUILD PASSED - All security checks passed |
rohan-agrawal-cs
approved these changes
Oct 28, 2026
chhavi-mandowara-cstk
approved these changes
Oct 28, 2026
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.
Jira: https://contentstack.atlassian.net/browse/CL-7172
Summary.
csdx launch:cache:purge --org --project --envwith exactly one of--path,--tags,--hostspurges an environment's CDN cache: it reads the environment, then sends onePOST …/revalidate-cdn-cache.--path /blogis an exact match; a trailing/*setsisPrefix: true(/*alone purges/as a prefix). A path must start with/.--tags/--hostsare trimmed, de-duplicated (first-seen order); an empty list exits 2.exactlyOneOf('path','tags','hosts')is the only guard (exit 2, names the flags supplied).--envwas a UID.launch.ORGANIZATION.REVALIDATE_RATE_LIMIT_EXCEEDED) gets the daily-limit message, exit 1, exactly one POST; 403 gets a permission message; foreign project/environment gets the generic not-found wording, exit 2, before any POST.launch:cachetopic added tocsdx launch --help.src/transportchange. NewRestRequest.noRetryCodes: a 429 carrying a listed code is final. OnlyCacheApi.purgesets it; all other requests and 429s retry as before. Recorded inAGENTS.md.Also in this PR.
fix(deps): express 4.22.3 (qs 6.17.0, body-parser 1.20.9) clears two Snyk advisories..talismanrcchecksums refreshed for 6 edited files (low-severity prose and test titles on v2-dev; no credentials).Known gaps.
--fail-on=allpasses.--path "/*";docs/launch-cli-manual-tests/run.shcases (that path is not in this repo).upload.archivetests fail as root in the sandbox, identically onv2-dev.QA: the Launch QA agent tests CL-7172 in the repos once it is in QA; GoCD sanity covers dev11.
🤖 Authored by an AI agent (Claude Code).
Generated by Claude Code