#pragma once #include #include struct sqlite3; struct OdrRegistry { sqlite3* db = nullptr; }; struct RegistryRow { std::string id; std::string name; std::string kind; // function | pipeline | component std::string lang; // go | py | bash | ts | cpp std::string domain; std::string purity; // pure | impure std::string signature; std::string description; }; bool registry_open(OdrRegistry& r, const std::string& db_path); void registry_close(OdrRegistry& r); // Lista las N funciones mas recientes (ORDER BY updated_at DESC). bool registry_list_recent(OdrRegistry& r, int limit, std::vector& out); // FTS5 search sobre name + description + tags + signature + code. bool registry_search(OdrRegistry& r, const std::string& query, int limit, std::vector& out);