Expand description
§Air Start Module
Spawns and connects to the Air daemon sidecar.
Mirror of CocoonStart.rs. Air is the long-lived background daemon
responsible for updates, downloads, crypto signing, file indexing,
system monitoring, and other off-the-hot-path work that should not
tax the workbench. Mountain spawns Air at boot, connects via gRPC
over [::1]:50053, and registers it as a sidecar in the same
Vine pool as Cocoon.
Lifecycle parity with Cocoon:
- Resolve binary path from the Tauri sidecar resolver. The Air binary ships next to Mountain in the bundle (release builds); in dev mode the Cargo target dir is searched.
- Spawn as a background tokio task with stdout/stderr captured.
- Wait for the gRPC server to become available, then create an
AirClientand store it in the environment for handlers to consume. - On failure: log a degraded-mode warning and return Ok(()) - the workbench works without Air, just without update / index / system-monitor capability.
Constants§
- AIR_
GRPC_ 🔒ADDRESS - Default gRPC address used by Air. Mirror of
AirClient::DEFAULT_AIR_SERVER_ADDRESSfor the connect step.
Functions§
- AirStart
- Spawn and connect to the Air daemon. Returns Ok(()) regardless of outcome - Air is non-essential for workbench operation; Mountain gracefully degrades when Air is unavailable.
- Launch
AndConnect 🔒Air