Function: searchContractors()
searchContractors(
query):Promise<ContractorSearchResult[]>
Defined in: src/server/actions/search.ts:19
Command-palette contractor search. Returns up to 8 active contractors whose name matches the query, scoped to the caller's company. Reads through the user-scoped (RLS) client so the database — not just this code — enforces the company boundary (ADR-0004). An empty or blank query, or no authenticated admin, yields an empty list rather than an error.
Parameters
query
string
Returns
Promise<ContractorSearchResult[]>