feat(0.10.1): AgentsClient filterAgentsByCapability + 5 mocha tests#48
Merged
feat(0.10.1): AgentsClient filterAgentsByCapability + 5 mocha tests#48
Conversation
* AgentsClient.filterAgentsByCapability(profiles, capability) returns the subset of profiles whose `capabilities` array contains the requested string (case-insensitive, whitespace-trimmed). Empty input returns [] rather than every profile so callers can distinguish "no filter" (don't call this) from "filter for empty value" (always empty). * 5 new mocha tests in src/test/agents-client.test.ts cover the helper end-to-end: matching, case-insensitivity, empty handling, no-match, and immutability. Total mocha now 144 passing.
tbitcs
added a commit
that referenced
this pull request
May 4, 2026
Bumps `package.json` from 0.10.0 to 0.10.1 and renames the existing `[Unreleased]` CHANGELOG section to `[0.10.1] - 2026-05-04`. The 0.10.0 tag captured the multi-agent + BYOE work (PRs #45/#47/#48); this point release rolls in the security hardening from #49 (17 CodeQL alerts closed) and the regex follow-up. Validation: - npm run lint: clean. - npm test: 144 passing. Co-Authored-By: Oz <oz-agent@warp.dev>
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.
Sister-PR to BitConcepts/specsmith follow-up. Adds AgentsClient.filterAgentsByCapability(profiles, capability) mirroring the new ProfileStore.filter_by_capability and the specsmith agents list --capability CLI flag.Empty/whitespace input returns [] so callers can distinguish 'no filter' from 'filter for empty value'. Five new mocha tests cover matching, case-insensitivity, empty handling, no-match, and immutability. tsc clean; mocha 144 passing.