Skip to main content

Module WindServiceAdapters

Module WindServiceAdapters 

Source
Expand description

Legacy Wind Service Adapters.

§Wind service adapters

Mountain → Wind bridge: takes Mountain’s sandbox config and runtime providers, exposes them in Wind’s expected shape (WindDesktopConfiguration::Struct, WindFileService::Struct, WindStorageService::Struct, WindConfigurationService::Struct, WindEnvironmentService::Struct). The WindServiceAdapter::Struct factory holds the runtime handle and produces the per-domain wrappers on demand.

Modules§

FileToDiff
Single diff target URI used by Wind’s --diff launch flag. Mirrors vscode.IDiffEditorInput::resource.
FileToOpenOrCreate
One file URI scheduled for open / create. Carried inside WindDesktopConfiguration::Struct::files_to_open_or_create.
FilesToWait
--wait payload: marker file URI plus the path list whose close events the launcher is blocked on.
Logger
Single registered logger - resource URI inside Wind’s log registry payload.
MountainSandboxConfiguration
Mountain’s own sandbox-config payload (input to WindServiceAdapter::convert_to_wind_configuration). Private to this module; the trio of nested DTOs (Versions, NLSConfiguration, ProductConfiguration) lives inline because they’re consumed only here and never constructed externally.
OsInfo
Minimal OS slice surfaced to Wind - just the release / OS identifier string.
Profiles
Wind profile-state slice: every known profile, the home directory, and the active profile descriptor.
WindConfigurationService
Wind-shaped configuration service - read / write of configuration values via the injected ConfigurationProvider trait. Defaults to user-target writes; ConfigurationOverridesDTO::default() resolves to the active scope.
WindDesktopConfiguration
Mirror of Wind’s IDesktopConfiguration interface - the shape Sky deserialises on boot. Built by WindServiceAdapter::convert_to_wind_configuration from Mountain’s sandbox config.
WindEnvironmentService
Wind-shaped environment-variable accessor. Reads APP_ROOT / USER_DATA_PATH from the process env so Wind’s desktop bootstrap can stay agnostic to the Tauri side.
WindFileService
Wind-shaped file service: read / write / stat over the injected FileSystemReader / FileSystemWriter traits.
WindServiceAdapter
Bridge between Mountain’s runtime and Wind’s expected service interfaces. convert_to_wind_configuration turns Mountain’s sandbox config into the WindDesktopConfiguration::Struct Sky deserialises; get_*_service factories produce the per-domain wrappers (env, file, storage, configuration) Wind needs.
WindStorageService
Wind-shaped storage service: get / set against the injected StorageProvider trait.