abla/xtensa/companion/native
Generated from source.
Import with import "abla/xtensa/companion/native".
Source: abla/xtensa/companion/native/entry.ab
NativeSelection (class)
class NativeSelection(val pins: CompanionPins, val url: string, val error: string)
Carries the pins and download URL for the selected companion, or a selection error.
NativeDownload (class)
class NativeDownload(val bytes: string, val error: string)
Carries downloaded bytes or an error from fetching the companion.
NativeUrl (class)
class NativeUrl(val host: string, val target: string, val error: string)
Carries a parsed download host and request target, or a URL validation error.
nativeDownloadDiagnostic (fun)
fun nativeDownloadDiagnostic(error: string): string
Adds archive download guidance to generic download failure and timeout messages and returns other errors unchanged.
nativeDownloadCleanupError (fun)
fun nativeDownloadCleanupError(temporary: string, installed: CompanionExtractResult): string
Formats a cleanup error with the temporary download and remaining installation artifacts.
nativeInstallError (fun)
fun nativeInstallError(installed: CompanionExtractResult): string
Formats an extraction failure with any leftover paths, cause and system error.
nativeSelectCatalog (fun)
fun nativeSelectCatalog(text: string, version: string, host: string): NativeSelection
Validate all catalog records, including ones other than the selected release.
nativeDownloadUrl (fun)
fun nativeDownloadUrl(url: string, first: bool): NativeUrl
The first host is fixed by the pinned catalog URL. Redirects may only land on GitHub's release or asset hosts. No credentials, ports or fragments.
nativeDownload (fun)
fun nativeDownload(url: string, timeoutMilliseconds: int = 30000): NativeDownload
Downloads the companion into memory within the configured deadline, returning an error on an invalid URL or failed request.
nativeCheckTools (fun)
fun nativeCheckTools(tree: string, llvmVersion: string, timeoutMilliseconds: int = 30000): string
Helpers have already passed the pinned file hash. Output is captured in a private directory; size polling is best-effort between observations.
nativeDownloadTo (fun)
fun nativeDownloadTo(url: string, output: SecureFile, timeoutMilliseconds: int = 30000): string
Streams an HTTPS response into an already private file. Only a 200 body is written; redirect targets are rechecked against the fixed host allow-list.
Built from Abla v0.2.79 source ba5d6b7d. Examples and generated signatures follow that source revision.