Expand description
Active-version resolution for a working directory.
Resolution order for a tool, walking up from the start dir:
- project config (
osdk.toml)[tools]entry .tool-versionsentry- idiomatic version files (
.nvmrc,.node-version, …) — per backend - structured project metadata (
package.jsonfor Node) - user global config
[tools]entry
This module is intentionally synchronous and dependency-light so the
osdk-shim launcher can use it on the hot path without a tokio runtime.
Structs§
- Active
Version - A resolved active version for a tool, plus where it came from.
- Package
Manager Request
Enums§
Functions§
- package_
manager_ from_ package_ json - Read the package-manager declaration from one specific
package.json. - resolve_
active - Resolve the active spec for
tool, walking up fromstart_dir. Global config pins are consulted last.idiomaticmaps a tool to its idiomatic filenames. - resolve_
package_ manager