#pragma once #include "kappa/dsl/system.hpp" #include #include namespace kappa::fetch { struct RecipeResult { bool ok = false; std::string path; // path to the cached .kap file std::string version; // version of the fetched package bool updated = false; // true if the cache was updated (remote was newer) std::string error; }; // Legacy: flat URL list (backward compat with remotes = [...]) RecipeResult fetch_recipe(const std::string& name, const std::vector& remotes); // Index-aware: named repos with channels, mirrors, and cached indexes RecipeResult fetch_recipe_from_repos(const std::string& name, const std::vector& repos); } // namespace kappa::fetch