Expand description
Runtime version validation for Limitless CLI.
Checks an installed runtime version against per-stack requirements and
returns a VersionReport carrying a CheckStatus plus actionable
feedback. Thresholds follow the Limitless spec:
| Stack | Minimum | Recommended |
|---|---|---|
| Node | 14.0.0 (warn) | >= 18.0.0 |
| Python | 3.8.0 (warn) | >= 3.9.0 |
| Rust | 1.56.0 | — |
Project-specific requirements are honoured when available:
package.json engines.node, pyproject.toml requires-python, and
the rust-toolchain / rust-toolchain.toml channel.
§Example outputs
PASS "Node v18.12.0 meets the recommended version (>= 18.0.0)."
WARN "Node v16.3.1 works, but Node >= 18.0.0 is recommended."
FAIL "Node v12.22.0 is too old. Node 14.0.0 or newer is required."
FAIL "engines.node requires Node 20.0.0+, but v18.12.0 is installed."Structs§
- SemVer
- A strict
major.minor.patchsemantic version with ordering support. - Version
Report - The outcome of a
validate_runtime_versioncall.
Functions§
- validate_
installed_ runtime - Convenience wrapper for
limit check: detects the current directory’s stack, probes the installed tool, and validates it against the repo. ReturnsNonewhen there is nothing to validate (unknown/Docker stack or the relevant tool binary is not installed). - validate_
project_ runtime - Validates an installed version against a repository’s own requirements
files (
engines.node,requires-python,rust-toolchain) in addition to the spec thresholds. - validate_
runtime_ version - Core validation. Applies the spec thresholds for the given stack using only the installed version — no project files are consulted.