Repository navigation
feat(bundle): task_images lists the images a task's import writes, downloading nothing - #407
Merged
Merged
Conversation
…wnloading nothing An export that names a task's images by their copies in another registry has to push them before it imports the task with image_refs. task_images(task_id, version=, include_scopes=) runs the import's walk with no destination and returns each image a folder would name, once, in the order the import reaches them, without downloading anything; it raises the import's BundleError when the walk already finds the task can't be written, so an export refuses before pushing. Co-Authored-By: Claude Opus 5.5 <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.
What
task_images(task_id, version=, include_scopes=)inagent_env.bundle.importerreturns the imagesimport_taskwrites for a stored task, each once, in the order the import reaches them. It downloads nothing. It runs the import's own walk with no destination, so its list is exactly the setimage_refsaccepts.Its use: an export that names a task's images by their copies in another registry has to push them first. It lists them, pushes each one, and calls
import_task(..., image_refs=...)with the digests it pushed. Only the second call downloads anything. When the walk already finds the task can't be written, such as an image stored only as a tarball under a bare name,task_imagesraises the sameBundleErrorthe import would, so the export refuses before it pushes anything.Testing
tst/unit/bundleandtst/unit/clipass (1569), and lint is clean.🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge.Summary
Adds
task_images()to list a stored task’s images through the existing import walk without downloading their files.Reviews (1) · Last reviewed commit: "feat(bundle): task_images lists the imag..." · Reviewed by Greptile