Skip to main content

resolve_capabilities_roots

Function resolve_capabilities_roots 

Source
pub fn resolve_capabilities_roots(explicit: &[String]) -> Vec<PathBuf>
Expand description

Resolve the list of capability roots atlas should load. Priority:

  1. explicit CLI/env paths (any non-empty entries from --capabilities a,b,c or ROBONIX_ATLAS_CAPABILITIES=a,b,c)
  2. $ROBONIX_SOURCE_PATH/capabilities as a single fallback root

Returns an empty vec if nothing is configured; atlas then runs with an empty registry (handlers return found=false on every query).

Per-package <pkg>/capabilities/ dirs aren’t included here — those can be added at deploy time by the rbnx CLI walking installed package paths and passing the merged list via --capabilities.