Repository navigation
fix: keep config and other files when select() has no filters - #37
Open
musher-dagger[bot] wants to merge 1 commit into
Open
musher-dagger[bot] wants to merge 1 commit into
musher-dagger[bot] wants to merge 1 commit into
Conversation
Bundle.select() built its files from the typed handles alone, so a select() with no filters, which reads as everything, dropped every config and other asset from files(). With no filters the selection now holds every file in the bundle; a filter still selects only the files of the resources it names. Fixes #19 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
In short:
bundle.select()with no filters now returns every file in the bundle. Before, it silently droppedconfigandotherfiles, so code usingselect().files()to mean "all files" missed them. Filtered selections behave as before. Merging cuts a patch release, 0.3.6.For a person
Summary
Bundle.select()with no filters reads as "everything", butselection.files()dropped everyconfigandotherasset. It built the file set only from the files of typed handles (skills, prompts, toolsets, agent specs).select(skills=["search"])still leaves out aconfigfile.export_claude_pluginandinstall_claude_skillscallselect(skills=...)but read onlyskills(), so their output is unchanged.Tests
TestBundle::test_select_with_no_filters_keeps_untyped_files. A bundle with aconfigand anotherasset gets back every file fromselect().files(), and a filtered selection still excludes them.uv run ruff check .,uv run basedpyrightanduv run pytestpass: 232 tests, 94.8% coverage.Release
fix:cuts a patch release (0.3.6) through release-please.Fixes #19
🤖 Generated with Claude Code