Commit a868e77
Comprehensive code audit: decompose large files, remove V25Features flags, fix identity key persistence, add DI support
- Decompose GroupSession.cs (1610 lines) into 8 partial class files by region
- Decompose DeviceManager.cs (992 lines) into 5 partial class files by region
- Decompose LibEmiddleClient.cs (1344 lines) into 8 partial class files by region
- Remove all V25Features feature flags and FeatureFlags.cs — all features always-on
- Remove IV25FeaturesBuilder, V25FeaturesBuilder, WithV25Features, EnableStableBeta from builder system
- Remove enableAdvancedGroupManagement constructor param from GroupSession; advanced management always enabled
- Fix LoadOrGenerateIdentityKey to persist/load via CryptoProvider with scoped key IDs (fixes multi-client key collision)
- Add ILibEmiddleClient interface and LibEmiddleServiceCollectionExtensions for DI registration
- Fix CreateGroupAsync to route through SessionManager.CreateSessionAsync for consistency
- Fix SendChatMessageAsync to delegate to SessionManager.GetOrCreateChatSessionAsync
- Add SessionManager.GetOrCreateChatSessionAsync to avoid duplicate session creation
- SEC-007: Add MessageRecord.SecureWipe() to zero sensitive bytes on history eviction
- Always create LibEmiddleDiagnostics (no EnableHealthMonitoring gate)
- Remove FeatureFlagsStatus from DiagnosticReport; remove PopulateFeatureFlagsStatus
- Add Microsoft.Extensions.DependencyInjection.Abstractions 9.0.4 package reference
- Add new test files: StubInfrastructureTests, SessionManagerBundleTests, and others
- Clean up v2.5 doc comment labels and Requires V25Features references throughout
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent ec2b124 commit a868e77
65 files changed
Lines changed: 6484 additions & 4156 deletions
File tree
- LibEmiddle.Abstractions
- LibEmiddle.Domain
- Diagnostics
- LibEmiddle.Tests.Unit
- LibEmiddle
- API
- Builders
- Core
- Crypto
- Diagnostics
- KeyManagement
- Messaging
- Batching
- Chat
- Group
- Transport
- MultiDevice
- Protocol
- Sessions
- Storage
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| 255 | + | |
255 | 256 | | |
256 | 257 | | |
257 | 258 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | | - | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
121 | 123 | | |
122 | | - | |
| 124 | + | |
123 | 125 | | |
124 | | - | |
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
| |||
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
133 | | - | |
134 | | - | |
| 134 | + | |
| 135 | + | |
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
140 | | - | |
141 | | - | |
| 141 | + | |
| 142 | + | |
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | | - | |
| 151 | + | |
153 | 152 | | |
154 | 153 | | |
155 | 154 | | |
156 | 155 | | |
157 | 156 | | |
158 | | - | |
159 | | - | |
| 157 | + | |
160 | 158 | | |
161 | 159 | | |
162 | 160 | | |
163 | 161 | | |
164 | 162 | | |
165 | 163 | | |
166 | | - | |
167 | | - | |
| 164 | + | |
168 | 165 | | |
169 | 166 | | |
170 | 167 | | |
| |||
173 | 170 | | |
174 | 171 | | |
175 | 172 | | |
176 | | - | |
177 | | - | |
| 173 | + | |
178 | 174 | | |
179 | 175 | | |
180 | 176 | | |
| |||
183 | 179 | | |
184 | 180 | | |
185 | 181 | | |
186 | | - | |
187 | | - | |
| 182 | + | |
188 | 183 | | |
189 | 184 | | |
190 | 185 | | |
| |||
193 | 188 | | |
194 | 189 | | |
195 | 190 | | |
196 | | - | |
197 | | - | |
| 191 | + | |
198 | 192 | | |
199 | 193 | | |
200 | 194 | | |
| |||
204 | 198 | | |
205 | 199 | | |
206 | 200 | | |
207 | | - | |
208 | | - | |
| 201 | + | |
209 | 202 | | |
210 | 203 | | |
211 | 204 | | |
212 | 205 | | |
213 | 206 | | |
214 | 207 | | |
215 | 208 | | |
216 | | - | |
217 | | - | |
| 209 | + | |
218 | 210 | | |
219 | 211 | | |
220 | 212 | | |
| |||
224 | 216 | | |
225 | 217 | | |
226 | 218 | | |
227 | | - | |
228 | | - | |
| 219 | + | |
229 | 220 | | |
230 | 221 | | |
231 | 222 | | |
| |||
235 | 226 | | |
236 | 227 | | |
237 | 228 | | |
238 | | - | |
239 | | - | |
| 229 | + | |
240 | 230 | | |
241 | 231 | | |
242 | 232 | | |
243 | 233 | | |
244 | 234 | | |
245 | 235 | | |
246 | 236 | | |
247 | | - | |
248 | | - | |
| 237 | + | |
249 | 238 | | |
250 | 239 | | |
251 | 240 | | |
252 | 241 | | |
253 | 242 | | |
254 | 243 | | |
255 | 244 | | |
256 | | - | |
257 | | - | |
| 245 | + | |
258 | 246 | | |
259 | 247 | | |
260 | 248 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | 61 | | |
67 | 62 | | |
68 | 63 | | |
| |||
140 | 135 | | |
141 | 136 | | |
142 | 137 | | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | 138 | | |
161 | 139 | | |
162 | 140 | | |
| |||
This file was deleted.
0 commit comments