plugin
AppKit extension plugin (registered name: search) around a sibling
aiSearch provider. Native AppKit owns Vector Search query execution; this
plugin adds the surfaces that remain useful across native and Lakebase
providers:
- a
search/universal_search/ (opt-in)add_documentstool set for both Mastra and AppKit agents (autocomplete is a small-limitsearch); - compatibility and extension routes under
/api/search(POST /search,POST /universalfederated,GET /indexescatalogue, andPOST /documentswhen writes are enabled); - a
clientConfig()payload so a UI knows the indexes, default, and page size at boot with no round-trip; exports()so app code canappkit.search.search(...)directly.
Vector Search reads delegate to the registered native AppKit aiSearch
plugin, preserving its OBO, caching, reranking, and response handling. The
alternative lakebaseAiSearch provider supplies the same query contract
over PostgreSQL full-text search.