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/falsedisables the background check, and it is read before the config so a brokenmagi.tomlcannot 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.