mixin

RemoteRepo

@Js
const mixin RemoteRepo : LibRepo

RemoteRepo is the abstract base class for network-accessible Xeto lib repositories. RemoteRepos are used to install/update to the local repo. Subclasses map to specific backends such as the xeto.dev registry or the GitHub HTTP API.

methods fetch

Download the xetolib zip for given name and version

latest

Get the latest version of the library name available

latestMatch

Get the latest version that matches the given dependency

ping

Ping the remote repo and return metadata

search

Perform search request on the remote repo

version

Get the info for a specific library name and version

versions

List the verions available for given library name

fetch abstract Buf fetch(Str name, Version version)

Download the xetolib zip for given name and version

latest abstract LibVersion? latest(Str name, Bool checked := true)

Get the latest version of the library name available. If no versions are available then raise exception or return null based on check flag.

latestMatch abstract LibVersion? latestMatch(LibDepend depend, Bool checked := true)

Get the latest version that matches the given dependency. If no matches are available, then raise exception or return null based on check flag.

ping abstract Dict? ping(Bool checked := true)

Ping the remote repo and return metadata; if not reachable raise an exception or return null based on checked flag.

search abstract RemoteRepoSearchRes search(RemoteRepoSearchReq req)

Perform search request on the remote repo

version abstract LibVersion? version(Str name, Version version, Bool checked := true)

Get the info for a specific library name and version. If the given library or version is not available then raise exception or return null based on the checked flag.

versions abstract LibVersion[] versions(Str name, Dict? opts := null)

List the verions available for given library name. The library versions are sorted from latest to oldest. If the library is not available always return empty list.

Options:

  • limit: max number to return
  • versions: constraints as LibDependVersions instance

Haxall 4.0.6 ∙ 21-Jul-2026 09:48 EDT