Skip to main content

Module fetch

Module fetch 

Source
Expand description

Engine provisioning for the managed local-model server.

On first use we fetch the prebuilt server engine for the host’s OS/arch and unpack it into the data dir (engines/), so there is zero external setup. This replaces the old Node fetch script.

The release coordinates - which distribution, and which artifact per platform - live in engine_catalog.json (operator/API data, kept out of source). This module holds only the generic resolve → download → extract → install logic, reporting progress so a long first download is never a silent wait.

Structs§

EngineFetchProgress
A progress update emitted while fetching the engine.

Enums§

EngineStage
Coarse phase of the engine fetch.

Functions§

ensure_engine
Ensure a managed engine binary exists under dest (the data-dir engines/), fetching the release for this host’s OS/arch if absent. Returns the path to the engine binary; reports progress through on_progress.