Add BM25 command search#1
Merged
vakovalskii merged 3 commits intomainfrom Mar 13, 2026
Merged
Conversation
Port BM25 ranking engine from picoclaw and integrate command search into the CLI, enabling discovery when --help is insufficient for large API surfaces. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add js-yaml dependency for YAML spec parsing - openapi-loader: auto-detect JSON/YAML by extension and content - GitHub API test: 845 endpoints, BM25 search, regex search - Box API test: 258 endpoints loaded from YAML format - openapi-loader tests: YAML from file, HTTP, auto-detection - Drift test results preserved in tests/results/ - Fixtures download script (tests/fixtures/download.sh) - Tests skip gracefully when fixtures not downloaded Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
4e3297d to
4afa4ff
Compare
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
pkg/utils/bm25.go→src/bm25.ts)CommandSearchclass with two search modes: BM25 (natural language) and regex (pattern matching)ocli searchcommand into CLI for endpoint discovery on large API surfacesUsage
Test plan
🤖 Generated with Claude Code