Skip to main content

Module installer

Module installer 

Source
Expand description

Extension lifecycle management: install, update, and remove extensions.

Re-exportsยง

pub use error::InstallerError;

Modulesยง

error ๐Ÿ”’
Error types for the extension installer.
manifest ๐Ÿ”’
Release manifest fetching and validation.
platform ๐Ÿ”’
Platform detection and binary path utilities.
skill ๐Ÿ”’
Agent skill installation and removal across coding assistants.
verify ๐Ÿ”’
Minisign signature verification and SHA-256 checksums for release artifacts.

Structsยง

InstallResult ๐Ÿ”’
Returned after a successful install with the version and description from the release manifest.
InstallSource ๐Ÿ”’
Where to fetch and verify an extension release from.
Installer ๐Ÿ”’
Handles downloading, verifying, and placing extension binaries.
ResolvedInstall ๐Ÿ”’
Fully resolved install plan: all paths and verification material ready.

Constantsยง

HTTP_TIMEOUT ๐Ÿ”’

Functionsยง

download_extension ๐Ÿ”’
Downloads an extension binary, verifies its checksum and signature, and returns the path to the verified file in download_dir.
fallback_bin_dir ๐Ÿ”’
The fallback install directory: TEMPO_HOME/bin if set, else ~/.local/bin.
file_url_to_path ๐Ÿ”’
Parses a file:// URL into a local path using the url crate.
http_client ๐Ÿ”’
Builds an HTTP client with a 30-second timeout for manifest/binary fetches.
is_newer ๐Ÿ”’
Returns true if manifest_version is strictly newer than installed_version. Uses semver comparison when both parse as semver (with optional v prefix). For non-semver strings, returns true unless they are identical.