Commit a800d1e
committed
Refactor PatchManager and enhance validation infrastructure
- Refactored `PatchManager` to reduce complexity and improve readability.
- Implemented `RollbackManager` for Git-based safe patching and rollback capabilities.
- Added `SandboxValidator` for isolated code validation (syntax, tests).
- Enhanced `PatchManager` with fuzzy matching (Exact, Semantic) and text-based replacement driven by AST location to preserve comments.
- Updated `JulesBridge` to include `extract_patch_context` helper.
- Added comprehensive tests for new functionalities.1 parent de74c83 commit a800d1e
File tree
5 files changed
+702
-86
lines changed- codesage
- governance
- sandbox
- tests/unit/governance
5 files changed
+702
-86
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
0 commit comments