Expand description
Component registry and installed component detection.
Provides:
- Component registry — 21 known components with display names and installer mappings (VAL-PLAT-009, VAL-PLAT-010)
- Installed component detection — path-based, Python module, and git-based strategies (VAL-PLAT-011, VAL-PLAT-012, VAL-PLAT-013)
- Version querying — per-component-type version retrieval (VAL-PLAT-014)
- Batch Python operations — single-subprocess module detection and version queries (VAL-PLAT-015, VAL-PLAT-016)
Structs§
- Component
Info - Metadata for a known component in the registry.
- Version
Info - Result of querying a component’s version.
Enums§
- Detection
Method - How a component’s installation status is detected.
Functions§
- detect_
all_ installed - Detect all installed components using the full detection pipeline.
- detect_
all_ installed_ with_ home - Detect all installed components with explicit home directory (testable).
- detect_
python_ modules - Detect all installed Python ML modules using a single subprocess.
- detect_
python_ modules_ with_ interpreters - Detect Python modules using the provided interpreter list (testable).
- display_
name - Return the human-readable display name for a component ID.
- display_
name_ to_ id_ map - Build a lookup map from display name back to component ID.
- get_
component - Look up a component by ID.
- get_
version - Query the version of a single installed component.
- get_
version_ with_ home - Query version with explicit home directory (testable).
- get_
versions_ batch - Query versions of multiple Python modules in a single subprocess.
- get_
versions_ batch_ with_ interpreters - Batch version query with provided interpreters (testable).
- git_
component_ has_ updates - Check if a git-based component has updates available.
- is_
component_ installed - Check whether a specific component is installed.
- is_
component_ installed_ with_ home - Check whether a component is installed using an explicit home directory.
- is_
known_ component - Check whether a component ID is recognized (VAL-PLAT-009).
- known_
components - Returns the canonical list of all 21 known components.