Skip to main content

Module WindAirCommands

Module WindAirCommands 

Source
Expand description

Legacy Wind Air Commands.

§Wind ↔ Air delegation commands

Tauri commands the Wind frontend invokes to delegate background work (updates, downloads, auth, indexing, search, metrics) to the Air gRPC daemon. Each command + DTO lives in its own sibling file; the wire-bound names (CheckForUpdates, DownloadUpdate, etc.) are preserved so the front-end invoke() calls don’t change.

Modules§

AirClientWrapper
gRPC client wrapper around Air::AirClient::AirClient - adds reconnect support and PascalCase logging consistent with the WindAirCommands surface.
AirMetricsDTO
Air daemon resource metrics DTO returned by GetAirMetrics.
AirServiceStatusDTO
Air daemon status DTO returned by GetAirStatus.
ApplyUpdate
ApplyUpdate Tauri command - tell Air to install a previously downloaded update package.
AuthResponseDTO
Authentication response DTO returned by AuthenticateUser.
AuthenticateUser
AuthenticateUser Tauri command - delegate sign-in to Air’s auth service for the named provider (GitHub / GitLab / Microsoft / etc).
CheckForUpdates
CheckForUpdates Tauri command - delegate the update probe to Air’s gRPC service and shape the response into UpdateInfoDTO::Struct.
DownloadFile
DownloadFile Tauri command - generic URL download routed through Air’s download service.
DownloadResultDTO
Download-completion DTO returned by DownloadUpdate and DownloadFile.
DownloadUpdate
DownloadUpdate Tauri command - hand off update-package download to Air, returning a DownloadResultDTO::Struct.
FileResultDTO
Single search hit returned inside SearchResultsDTO::Struct.
GetAirAddress
Resolve the Air daemon’s gRPC address. Currently hard-coded to DEFAULT_AIR_SERVER_ADDRESS; future revisions will read a runtime config slot.
GetAirMetrics
GetAirMetrics Tauri command - pull memory / CPU / disk / network counters from Air, optionally filtered by metric type (“performance”, “resources”, “requests”).
GetAirStatus
GetAirStatus Tauri command - call Air’s status RPC and its health probe, fold both into an AirServiceStatusDTO::Struct.
GetOrCreateAirClient
Connect-on-each-call helper. TODO: replace with a state- managed singleton once Air-side connection pooling lands.
IndexFiles
IndexFiles Tauri command - kick off a directory index pass on the Air daemon, with include / exclude globs and a depth cap.
IndexResultDTO
File-indexing summary DTO returned by IndexFiles.
RegisterWindAirCommands
Wire all 9 WindAirCommands Tauri commands into a Tauri Builder. The dispatcher itself is kept here so the command list stays a single source of truth. Each command is referenced by its full path so the tauri::command accessor macro resolves in its own module.
SearchFiles
SearchFiles Tauri command - query Air’s full-text index and shape hits into SearchResultsDTO::Struct.
SearchResultsDTO
Search-results envelope returned by SearchFiles.
UpdateInfoDTO
Update-availability DTO returned by CheckForUpdates.