Commit d2588e7
committed
fix: harden WorkflowRegistry against corrupted JSON
- Normalize 'workflows' field to dict in _load() (handles corrupted
registry where 'workflows' is a list/string/null)
- Validate top-level loaded data is a dict before using it
- Guard enable/disable commands against non-dict metadata from get()1 parent 71c5171 commit d2588e7
2 files changed
Lines changed: 16 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5478 | 5478 | | |
5479 | 5479 | | |
5480 | 5480 | | |
| 5481 | + | |
| 5482 | + | |
| 5483 | + | |
5481 | 5484 | | |
5482 | 5485 | | |
5483 | 5486 | | |
| |||
5506 | 5509 | | |
5507 | 5510 | | |
5508 | 5511 | | |
| 5512 | + | |
| 5513 | + | |
| 5514 | + | |
5509 | 5515 | | |
5510 | 5516 | | |
5511 | 5517 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
78 | | - | |
| 79 | + | |
79 | 80 | | |
80 | | - | |
81 | | - | |
82 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
83 | 89 | | |
84 | 90 | | |
85 | 91 | | |
| |||
0 commit comments