mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-12-01 02:20:07 +08:00
docs(agents): define dependencies between capability crates
This commit is contained in:
@@ -16,6 +16,12 @@
|
||||
dependency, portability, testing, or ownership boundary. Keep a module when
|
||||
the proposed boundary only relocates implementation or introduces a
|
||||
pass-through API.
|
||||
- Keep capability crates independent by default. Compose peer capabilities in
|
||||
the application and pass inputs or callbacks through the consumer's API.
|
||||
Depend on another workspace crate for foundational mechanisms such as logging
|
||||
and task primitives, or for a shared domain contract required to enforce the
|
||||
same invariant. Keep tightly coupled rules together when separating them
|
||||
would duplicate that contract or split its ownership.
|
||||
- Keep dependencies pointing toward domain and application contracts. Resolve
|
||||
app paths and read current settings at the application boundary. Pass in the
|
||||
required values, resources, or callbacks. For example,
|
||||
|
||||
Reference in New Issue
Block a user