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
docs(Common): Update architecture documentation to reflect final naming and structure
Updated `Deep Dive.md` and `README.md` to align with the finalized architecture and naming conventions established in recent refactors. Key changes include:
- Renamed core traits (`FsReader` → `FileSystemReader`, `AppRuntime` → `ApplicationRunTime`) to improve clarity
- Updated module references (`effect/` → `Effect/`, `dto/` → `DTO/`) to match actual source structure
- Revised `ActionEffect` type parameters (`RuntimeAccess`→`TCapability`) to emphasize capability-focused design
- Simplified effect constructor examples by removing generic runtime constraints
- Corrected directory paths throughout to reflect current project layout
- Enhanced explanations of dependency injection and service provider patterns
These updates ensure documentation accurately reflects the abstract core architecture defined in `Common`, which serves as the foundation for `Mountain`'s implementation and `Cocoon`'s gRPC contracts. The changes support all implemented workflows by providing clear guidance for extending capabilities through the established `ActionEffect` and DI systems.
|**Abstraction**| Define every application capability as an abstract `async trait`. Never include concrete implementation logic. | All `*Provider.rs` and `*Manager.rs` files |
69
-
|**Declarativism**| Represent every operation as an `ActionEffect` value. The crate provides constructor functions for these effects. |`effect/*`, all `*Effect.rs` files |
70
-
|**Composability**| The `ActionEffect` system and trait-based DI are designed to be composed, allowing complex workflows to be built from simple, reusable pieces. |`environment/*`, `effect/*`|
71
-
|**Contract-First**| Define all data structures (`dto/*`) and error types (`error/*`) first. These form the stable contract for all other components. |`dto/`, `error/`|
69
+
|**Declarativism**| Represent every operation as an `ActionEffect` value. The crate provides constructor functions for these effects. |`Effect/*`, all effect constructor files|
70
+
|**Composability**| The `ActionEffect` system and trait-based DI are designed to be composed, allowing complex workflows to be built from simple, reusable pieces. |`Environment/*`, `Effect/*`|
71
+
|**Contract-First**| Define all data structures (`DTO/*`) and error types (`Error/*`) first. These form the stable contract for all other components. |`DTO/`, `Error/`|
72
72
|**Purity**| This crate has minimal dependencies and is completely independent of Tauri, gRPC, or any specific application logic. |`Cargo.toml`|
73
73
74
74
---
@@ -82,21 +82,24 @@ _returns a description of that effect_.
0 commit comments