Skip to content

Commit d012fa2

Browse files
refactor(Track): consolidate command dispatchers and enhance error handling
- Remove standalone `notificatons.rs` and integrate its logic directly into `track.rs` as part of Mountain's core command routing system - Implement centralized error utilities (`error_utils`) for structured JSON error responses across frontend and extension host communications - Streamline effect creation patterns with generic wrappers for common return types (u32 handles, void operations) - Expand language feature registration coverage with 20+ provider types mapped to effect-based implementations - Improve RPC method routing with explicit fallback handling for unprocessed methods - Add parametric type checking and error context propagation for extension host requests - Normalize terminal API handling between direct notifications and RPC-style commands This refactoring reduces architectural fragmentation in the command dispatch system while improving maintainability and error reporting capabilities for both user-facing operations and extension host communications. The changes directly support Cocoon's extension shim requirements by ensuring consistent parameter validation and error formatting.
1 parent 179a51b commit d012fa2

3 files changed

Lines changed: 597 additions & 1405 deletions

File tree

Source/Library.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,5 @@ pub mod handlers {
5151
pub mod Entry;
5252

5353
pub mod mist;
54+
55+
pub mod track;

0 commit comments

Comments
 (0)