Skip to content

feat(0.10.1): AgentsClient filterAgentsByCapability + 5 mocha tests#48

Merged
tbitcs merged 1 commit intodevelopfrom
feat/0.10.1-followup
May 4, 2026
Merged

feat(0.10.1): AgentsClient filterAgentsByCapability + 5 mocha tests#48
tbitcs merged 1 commit intodevelopfrom
feat/0.10.1-followup

Conversation

@tbitcs
Copy link
Copy Markdown
Contributor

@tbitcs tbitcs commented May 4, 2026

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.

* 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 tbitcs merged commit b93f333 into develop May 4, 2026
3 checks passed
@tbitcs tbitcs deleted the feat/0.10.1-followup branch May 4, 2026 20:01
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>
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