Skip to content

Add search-then-download workflow for patch CLI - #8

Merged
Mikola Lysenko (mikolalysenko) merged 1 commit into
mainfrom
feature/patch-search-download-workflow
Dec 9, 2025
Merged

Mikola Lysenko (mikolalysenko) merged 1 commit into
mainfrom
feature/patch-search-download-workflow

Conversation

@mikolalysenko

Copy link
Copy Markdown
Collaborator
  • 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

- 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 <noreply@anthropic.com>
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