Repository navigation
feat: align worlds search flags with the hosted search contract (wazoo-cli#9) - #10
Merged
Merged
Conversation
Adds --min-score (normalized 0–1 floor, default = world default) and --filter (quad include/exclude JSON) to `wazoo worlds search`, with validation. Default output now surfaces the search mode that actually ran and each result's score + scoreType instead of implying vector search; --json keeps the raw contract response. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.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.
Summary
Aligns
wazoo worlds search(src/commands/worlds.ts) with the hosted search contract (decision: worlds-api#30, route: worlds-api#74). Closes #9.Changes
--min-score <0-1>— new flag →minScore(normalized-score floor; omitted when unset so the world default applies). Validated to [0, 1].--filter <json>— new flag → contractfilterwith SDK QuadFilter semantics ({ include?, exclude? }× optionalsubjects/predicates/graphsstring arrays). Invalid JSON or malformed shape fails fast with a clear error.--limitstays as the contract's sole count (1–100; default 5 unchanged).--json) rendering now prints themodethat actually ran (keyword/hybrid/semantic/fallback) and per-resultscore+scoreType(e.g.1.0000 (rrf);—for fallback's null score), instead of dumping the raw response and implying vector search.--jsonoutput is untouched (raw contract response).Verification
npm run typecheck,npm run lint,npm run format:checkall green (single-file change).