agent/php/tests/Feature/Api
Snider 296ed59b1b feat(brain): add GET /v1/brain/search — ES full-text endpoint
New endpoint GET /v1/brain/search?q=<query>&org=<>&project=<>&limit=<N>
that full-text-searches brain_memories via Elasticsearch using
BrainService::elasticSearch(). Separate from /v1/brain/recall (which is
vector/semantic via Qdrant) — this one is keyword/lexical.

Sits under the existing brain.read-auth middleware group.

Pest coverage (Http::fake for ES): Good (matches), Bad (invalid limit),
Ugly (empty query + filters).

Co-authored-by: Codex <noreply@openai.com>

Closes tasks.lthn.sh/view.php?id=64
2026-04-23 13:54:11 +01:00
..
BrainRecallExtendedTest.php feat(brain): extend /v1/brain/recall with org + keywords + boost_keywords 2026-04-23 13:51:37 +01:00
BrainSearchTest.php feat(brain): add GET /v1/brain/search — ES full-text endpoint 2026-04-23 13:54:11 +01:00
BrainTagsScopesTest.php feat(brain): add GET /v1/brain/tags + /v1/brain/scopes 2026-04-23 13:52:50 +01:00