Commit 84cf586
fix(hooks): fold conflict resolution and security-faithful display_payloads
- Rebase feat/hook-install-transparency-316 onto current main
- Adapt hook transparency from old monolithic install.py to refactored
services.py + dispatch table architecture
- Add display_payloads field to IntegrationResult (base_integrator.py)
so all integrator results carry the field; HookIntegrator populates it
- Add _iter_hook_entries, _summarize_command, _build_display_payload to
HookIntegrator; _build_display_payload takes the post-path-rewrite
'rewritten' dict so display_payloads faithfully reflects what is
actually written to disk and executed (security requirement from #316)
- Extract _log_hook_display_payloads helper in services.py to keep
integrate_package_primitives below C901 complexity threshold
- Rewrite test suite to assert display_payloads == on-disk content
(the security-critical invariant the panel prior raised)
Co-authored-by: harshitlarl <zipdemonharshits012@gmail.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent a0ebc7f commit 84cf586
2 files changed
Lines changed: 40 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
118 | 144 | | |
119 | 145 | | |
120 | 146 | | |
| |||
344 | 370 | | |
345 | 371 | | |
346 | 372 | | |
347 | | - | |
348 | | - | |
349 | | - | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
350 | 376 | | |
351 | 377 | | |
352 | 378 | | |
| |||
391 | 417 | | |
392 | 418 | | |
393 | 419 | | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
407 | 426 | | |
408 | 427 | | |
409 | 428 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | 103 | | |
105 | 104 | | |
106 | 105 | | |
107 | 106 | | |
108 | 107 | | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
154 | 153 | | |
155 | 154 | | |
156 | 155 | | |
157 | 156 | | |
158 | 157 | | |
159 | 158 | | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
184 | 183 | | |
185 | 184 | | |
186 | 185 | | |
187 | 186 | | |
188 | 187 | | |
| 188 | + | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
203 | 202 | | |
204 | 203 | | |
205 | 204 | | |
206 | 205 | | |
207 | 206 | | |
| 207 | + | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| |||
0 commit comments