Skip to content

feat: align worlds search flags with the hosted search contract (wazoo-cli#9) - #10

Merged
EthanThatOneKid merged 1 commit into
mainfrom
chore/search-contract-cli
Sep 2, 2026
Merged

EthanThatOneKid merged 1 commit into
mainfrom
chore/search-contract-cli

Conversation

@EthanThatOneKid

Copy link
Copy Markdown
Contributor

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 → contract filter with SDK QuadFilter semantics ({ include?, exclude? } × optional subjects/predicates/graphs string arrays). Invalid JSON or malformed shape fails fast with a clear error.
  • --limit stays as the contract's sole count (1–100; default 5 unchanged).
  • Output — default (non---json) rendering now prints the mode that actually ran (keyword/hybrid/semantic/fallback) and per-result score + scoreType (e.g. 1.0000 (rrf); — for fallback's null score), instead of dumping the raw response and implying vector search. --json output is untouched (raw contract response).
  • Command description updated: "Hybrid vector + graph search" → "Search world memory (keyword, vector, or hybrid; automatic fallback)".

Verification

npm run typecheck, npm run lint, npm run format:check all green (single-file change).

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>
@EthanThatOneKid
EthanThatOneKid merged commit d54df63 into main Sep 2, 2026
1 check passed
@EthanThatOneKid
EthanThatOneKid deleted the chore/search-contract-cli branch September 2, 2026 06:48
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.

Align worlds search CLI flags with the hosted search contract (add --min-score, --filter)

1 participant