Commit d5c0ebf
Add search-then-download workflow for patch CLI
- Update api-client.ts with new search interfaces (PatchSearchResult, SearchResponse)
- Rename methods to searchPatchesByCVE, searchPatchesByGHSA, searchPatchesByPackage
- Update download.ts to implement two-phase workflow:
- First search for patches by identifier (UUID, CVE, GHSA, or package)
- Display search results with tier labels
- Filter based on canAccessPaidPatches flag
- Prompt user for confirmation when multiple patches found
- Fetch full patch details via view endpoint for each selected patch
- Add --yes/-y flag to skip confirmation prompt
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent bf1b018 commit d5c0ebf
2 files changed
+451
-66
lines changed
0 commit comments