Commit fcf0e8e
refactor(extensions): add public update() method to ExtensionRegistry
Add a proper public API for updating registry metadata while preserving
installed_at timestamp, instead of directly mutating internal registry
data and calling private _save() method.
Changes:
- Add ExtensionRegistry.update() method that preserves installed_at
- Update enable/disable commands to use registry.update()
- Update rollback logic to use registry.update()
This decouples the CLI from registry internals and maintains proper
encapsulation.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 82dda14 commit fcf0e8e
2 files changed
+22
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2839 | 2839 | | |
2840 | 2840 | | |
2841 | 2841 | | |
2842 | | - | |
2843 | | - | |
| 2842 | + | |
2844 | 2843 | | |
2845 | 2844 | | |
2846 | 2845 | | |
| |||
2895 | 2894 | | |
2896 | 2895 | | |
2897 | 2896 | | |
2898 | | - | |
2899 | | - | |
2900 | | - | |
| 2897 | + | |
2901 | 2898 | | |
2902 | 2899 | | |
2903 | 2900 | | |
| |||
2941 | 2938 | | |
2942 | 2939 | | |
2943 | 2940 | | |
2944 | | - | |
2945 | | - | |
2946 | | - | |
| 2941 | + | |
2947 | 2942 | | |
2948 | 2943 | | |
2949 | 2944 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
231 | 250 | | |
232 | 251 | | |
233 | 252 | | |
| |||
0 commit comments