You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(Mountain/Vine): Standardize gRPC protocol field names and error handling
This commit refactors the Vine gRPC protocol definitions and implementation to establish consistent naming conventions and improve type safety across the IPC layer. Key changes include:
1. **Proto Field Standardization**:
- Updated all field names in `Vine.proto` to PascalCase (e.g., `request_id` → `RequestIdentifier`, `params` → `Parameter`)
- Renamed `RpcError` to `RPCError` for consistency
- Added clearer comments for serialization expectations
2. **Rust Implementation Alignment**:
- Updated `Mountain`'s Vine client/server code to match new proto field names
- Renamed `VineError::RpcError` variant to `RPCError`
- Improved error handling during JSON deserialization in gRPC handlers
3. **Build Process Enhancement**:
- Added `compile_well_known_types(true)` in `build.rs` to support future protocol extensions
4. **Minor Refinements**:
- Capitalized `IPCProvider` variable in shutdown sequence
- Updated cancellation logic comments to reference new field names
These changes strengthen the foundation of the Vine IPC layer by:
- Ensuring field naming consistency between Mountain and Cocoon
- Preparing for advanced gRPC features through well-known type support
- Maintaining alignment with Land's core architecture where Vine serves as the critical communication channel between Mountain and Cocoon
BREAKING CHANGE: Requires corresponding updates in Cocoon to match new field names (`RequestIdentifier`, `Parameter`, `RPCError` etc.) in Vine.proto
0 commit comments