Expand description
Migration Wave 1 — Rust equivalents of shell logic.
This module provides consolidated Rust implementations of the read-heavy
shell logic from update_helper.sh and update_stack.sh:
- Version lookup —
up_get_version()equivalent (VAL-MIGR-001, VAL-MIGR-002) - Selection plan —
update_stack.shmenu logic (VAL-MIGR-003, VAL-MIGR-004) - Manifest freshness — TTL and offline tolerance (VAL-MIGR-005, VAL-MIGR-006)
- Consolidated detection —
up_detect_installed()equivalent (VAL-MIGR-007) - Partial installation — recognition of partially installed state (VAL-MIGR-008)
§Shell Parity
Each function in this module is designed to produce identical output to its
shell counterpart. The tests in tests/migration_wave1.rs verify this parity.
Re-exports§
pub use crate::orchestrator::planner::PlannerItem;
Structs§
- Detection
Result - Detection result for a single component.
- Freshness
Result - Result of a manifest freshness check.
Enums§
- Component
Install Status - Installation status of a component, with partial installation recognition.
Functions§
- build_
plan_ from_ system - Build a selection plan with automatic system detection.
- check_
manifest_ freshness - Check manifest freshness and resolve using the fallback chain.
- detect_
component_ status - Detect a single component’s installation status.
- detect_
component_ status_ with_ home - Detect a single component’s status with explicit home directory.
- migrated_
build_ selection_ plan - Rust equivalent of the
update_stack.shmenu construction logic. - migrated_
detect_ all - Rust equivalent of
up_detect_installed()fromupdate_helper.sh. - migrated_
detect_ all_ with_ home - Detect all installed components with explicit home directory (testable).
- migrated_
get_ version - Rust equivalent of
up_get_version()fromupdate_helper.sh. - migrated_
get_ version_ with_ home - Rust equivalent of
up_get_version()with explicit home directory. - migrated_
get_ versions_ batch - Rust equivalent of
up_get_versions_batch()fromupdate_helper.sh. - resolve_
with_ freshness - Resolve manifest with freshness checking.