Add apt generator for available repo packages#207
Merged
lucieleblanc merged 1 commit intoApr 1, 2026
Conversation
Add a new list_available_packages generator using 'apt-cache pkgnames' to suggest packages available from configured repositories, not just installed ones. - Add list_available_packages generator to apt.rs for both apt-get and aptitude command families - Update apt-get.json and aptitude.json install subcommands to use the new generator instead of list_all_packages (which only lists installed packages via dpkg-query) - Keep list_all_packages for remove/purge subcommands where only installed packages are relevant Co-Authored-By: Oz <oz-agent@warp.dev>
APP-3505 Add apt generator for available repo packages
Spec + generator exist ( Remaining work: Add generator for available repo packages (e.g. via |
Contributor
Author
Generator Validation ScreenshotsTested the
|
peicodes
approved these changes
Apr 1, 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.


Summary
Add a new
list_available_packagesgenerator for apt-based package managers that suggests packages available from configured repositories usingapt-cache pkgnames, rather than only installed packages.Changes
command-signatures/src/generators/apt.rs: Addlist_available_packagesgenerator (usesapt-cache pkgnames) and register it in bothapt_get_generators()andaptitude_generators()command-signatures/json/apt-get.json: Updateinstallsubcommand to uselist_available_packagesinstead oflist_all_packagescommand-signatures/json/aptitude.json: Same update forinstallsubcommandThe existing
list_all_packagesgenerator (viadpkg-query) is retained forremove/purgesubcommands where only installed packages are relevant.Conversation: https://staging.warp.dev/conversation/ec0771ee-86a6-413c-8a30-8e6a893cc578
Run: https://oz.staging.warp.dev/runs/019d473b-73ec-7aa9-8fb2-cd5efefccc49
This PR was generated with Oz.