Search Packages Route
Row-level package search. Used by level 3 (minions with one specific name+version) and as a power-user query endpoint (version comparison, multi-field filter).
Documentation Index
Fetch the complete documentation index at: https://www.halite-app.com/llms.txt
Use this file to discover all available pages before exploring further.
Body
Filter for GET /api/inventory/packages.
At least one of name or minion_id MUST be supplied — we don't
want to accidentally let the UI fetch the entire fleet's package list
in one request. (A future "browse all" endpoint can lift this rule.)
A name-side filter. op="eq" becomes name = ?;
op="prefix" becomes name LIKE ? || '%' (cheap, hits the index);
op="contains" becomes name LIKE '%' || ? || '%' (slower, full scan
of the (name)-indexed range but acceptable at our fleet size).
A version comparison applied per-row in Python after SQL narrowing.
apt, rpm, pacman 2551 <= x <= 5000x >= 0