Expand description
§Library
Library root module for the Mountain application, declaring all subsystem modules and providing the main entry point for the Tauri desktop framework.
§RESPONSIBILITIES
§Module Organization
- Declare and export all Mountain subsystem modules
- Provide clean module boundaries and visibility rules
- Enable dependency management between components
- Support both library and binary builds
§Entry Point
- Provide mobile build entry point required by Tauri
- Delegate to Binary module for main application logic
§ARCHITECTURAL ROLE
§Position in Mountain
- Library root for the Mountain crate
- Central module declaration point
- Provides module visibility control
§Dependencies
- Common: Shared infrastructure
- Tauri: Desktop framework integration
§Dependents
- Binary: Uses all modules for application initialization
§MODULE STRUCTURE
§Core Infrastructure
- ApplicationState: Centralized state management
- Environment: Capability provider and dependency injection
- RunTime: Effect execution engine
§Communication
- IPC: Inter-process communication
- Air: AI/integration service client
- Vine: gRPC inter-service communication
§Service Management
- ProcessManagement: Sidecar process lifecycle
- FileSystem: File system operations
- ExtensionManagement: Extension discovery
§Commands & Features
- Command: Native command implementations
- Track: Command tracking and dispatch
- Workspace: Workspace file parsing
§Entry Point
- Binary: Main application entry point
Modules§
- Air
- Air (Air Integration Module)
- Application
State - ApplicationState Module
- Binary
- Binary Module
- Command
- Command Module
- Environment
- Environment Module
- Error
- Centralized error handling system
- Extension
Management - Extension Management Module
- File
System - FileSystem Module
- IPC
- IPC Module
- Process
Management - Process Management Module
- RPC
- Mountain RPC Services
- RunTime
- RunTime Module
- Track
- Track Module
- Vine
- Vine gRPC Module
- Workspace
- Workspace Module
Macros§
- Trace
Step - Logs a checkpoint message at TRACE level (for “every step” tracing).
- impl_
provider - Macro to generate
Requires<T>trait implementations for MountainEnvironment.
Functions§
- main 🔒
- Main entry point for mobile builds, which is required by Tauri but delegates to the primary binary logic in the Binary module.