Commit d012fa2
committed
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
0 commit comments