agent/php/tests/Feature/Api
Snider a13f4c4bbd feat(brain): add GET /v1/brain/tags + /v1/brain/scopes
Two introspection endpoints for OpenBrain:
- GET /v1/brain/tags — ES terms aggregation over tags.keyword, returns
  {tag: count} pairs for UI filter chips
- GET /v1/brain/scopes — composite aggregation over {org, project},
  returns the scope hierarchy present in the index

Sits under the existing brain.read-auth group in Routes/api.php. New
BrainService helpers for aggregation shape; reuses the elasticSearch
HTTP path added in #59.

Pest coverage with Http::fake for ES.

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

Closes tasks.lthn.sh/view.php?id=65
2026-04-23 13:52:50 +01:00
..
BrainRecallExtendedTest.php feat(brain): extend /v1/brain/recall with org + keywords + boost_keywords 2026-04-23 13:51:37 +01:00
BrainTagsScopesTest.php feat(brain): add GET /v1/brain/tags + /v1/brain/scopes 2026-04-23 13:52:50 +01:00