domain

package
v0.221.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultNames = []Name{WhisperCLI, FFmpeg, LlamaTTS}

DefaultNames is the install.sh default set, used when no names are given.

Functions

This section is empty.

Types

type Name

type Name string

Name identifies one prebuilt binary published by the github.com/inference-gateway/binaries release.

const (
	WhisperCLI Name = "whisper-cli"
	FFmpeg     Name = "ffmpeg"
	LlamaTTS   Name = "llama-tts"
)

type State

type State string

State compares a local binary against the latest release's checksums.txt.

const (
	Missing State = "missing"
	Stale   State = "stale"
	Current State = "current"
)

type Status

type Status struct {
	Name   Name
	Path   string
	State  State
	Detail string
}

Status is the result of checking one local prebuilt binary.

type Store

type Store interface {
	// Ensure returns the local path to the named binary under
	// ~/.infer/bin/tools, installing it via install.sh when it is missing or
	// its sha256 no longer matches the release. An unreachable release keeps
	// an existing binary.
	Ensure(ctx context.Context, name Name) (string, error)

	// Install runs install.sh for the named binaries (nil = the default set)
	// into ~/.infer/bin/tools with VERSION pinned ("" = latest), upgrading
	// anything whose sha256 differs from the release.
	Install(ctx context.Context, version string, names []Name) error

	// Status reports each named binary (nil = the default set) as missing,
	// stale or current against the latest release. It never downloads.
	Status(ctx context.Context, names []Name) ([]Status, error)
}

Store is the CLI's single owner of the prebuilt tools on a local machine: it keeps the shared ~/.infer/bin/tools cache current with the binaries release. Speech, computer-use and the binaries commands consume it.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL