Repository navigation
feat(core): unify service binding precedence - #98
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
|
Caution Review failedThe pull request is closed. Walkthrough
Merge Risk:
|
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
Use declaration-order replacement consistently across Context construction, Context merging, Layer outputs, and local provision. Later bindings win, inputs remain immutable, and
Context.addinserts or replaces a single binding:Remove
Context.replace,DuplicateService, and the separate internal overlay operation. Layer completion order does not change output precedence; replaced resources keep their owning lifetime, and existing dependants are not rebuilt.Related issues
Closes #15
Validation
dart pub getdart format --output=none --set-exit-if-changed .dart analyze --fatal-infosdart test— 1,349 tests passedSummary by CodeRabbit
Context.addto insert a service binding or update an existing one, including with anullvalue.Context.replaceand theDuplicateServiceexception.