Expand description
AgentMux’s own copy of an agent CLI that is not on npm: the pinned release
file is fetched straight from the vendor’s origin, checked against a
SHA-256 compiled into this registry, and unpacked next to the npm installs
(<shared>/cli/<provider>/<pin>/, same lock, same completion marker).
SPEC_ISOLATED_INSTALL_FOR_NON_NPM_CLIS_2026_11_05.md.
No vendor script is ever run, and a caller names only a provider id: the
URL, the hash and the size all come from SPECS, so the vendor’s origin
cannot swap the file and a request cannot point the install elsewhere.
The layout is <dir>/bin/<cli>[.exe]; crate::backend::cli_install
finds it the same way it finds an npm shim.
Structs§
- Asset
- One downloadable file for one platform.
- Download
Spec
Enums§
Statics§
- SPECS
- Grok and Muse Code are pinned below: each asset carries the hash taken for it.
Functions§
- download_
bin <dir>/bin/<cli>,.exeon Windows.- download_
spec - The download install for
provider_id, if AgentMux has one. - install_
into - Download, verify, unpack and publish into the install dir. The caller holds the install lock and has cleared leftovers. A failure removes the partial dir, so nothing unmarked is left behind.
- install_
managed_ cli - Install
provider_id’s pinned copy, async: take the cross-instance lock (blocking, off the runtime), reuse a finished install another instance made while this one waited, otherwise clear leftovers and install.resolvecli’s path;install.startpolls the lock itself (it must stay cancellable) and callsinstall_managed_intoonce it holds it. - install_
managed_ into - Install into the install dir; the caller holds the lock and has cleared leftovers. A failure removes the partial dir, so nothing unmarked is left.
- is_
managed_ install - Whether AgentMux installs
provider_iditself without npm: a pinned release download.