Skip to main content

Module updater

Module updater 

Source
Expand description

Self-update, via kaishin.

A magi run takes minutes of agent latency, so a background release check costs nothing measurable: it is spawned on the same tokio runtime as the command, overlaps it, and is drained with a bounded wait at shutdown. It never delays the graph.

Structs§

Checker
Throttled release checker.

Enums§

Pending
A background update check, resolved at shutdown.

Constants§

NO_AUTOUPDATE_ENV
Env kill-switch. Any non-empty value other than 0 / false disables the background check, and it is read before the config so a broken magi.toml cannot force a network call.

Functions§

default_interval
Default interval between checks.
disabled_by_env
Is the background check switched off by the environment?
finalize
Drain a pending check and print at most one line.
run_self_update
magi self-update.
spawn
Spawn the background check for cfg, unless it is switched off.