Commit b0019c5
fix(extensions): raise ValidationError for non-dict hook entries; fix wording
Raise ValidationError instead of silently skipping hook entries that
are not mappings. The silent skip allowed malformed manifests to pass
validation and crash later in HookExecutor.register_hooks() with an
AttributeError. Added test_hook_entry_non_dict_value_raises.
Change 'from AI agent' to 'across AI agents' in the extension remove
confirmation message — cmd_count is summed across all registered agents,
so the singular 'agent' was misleading. Updated CLI tests accordingly.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 426d28e commit b0019c5
File tree
3 files changed
+24
-7
lines changed- src/specify_cli
- tests
3 files changed
+24
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3140 | 3140 | | |
3141 | 3141 | | |
3142 | 3142 | | |
3143 | | - | |
| 3143 | + | |
3144 | 3144 | | |
3145 | 3145 | | |
3146 | 3146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
302 | | - | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
303 | 305 | | |
304 | 306 | | |
305 | 307 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
451 | 466 | | |
452 | 467 | | |
453 | 468 | | |
| |||
3185 | 3200 | | |
3186 | 3201 | | |
3187 | 3202 | | |
3188 | | - | |
3189 | | - | |
| 3203 | + | |
| 3204 | + | |
3190 | 3205 | | |
3191 | 3206 | | |
3192 | 3207 | | |
| |||
3239 | 3254 | | |
3240 | 3255 | | |
3241 | 3256 | | |
3242 | | - | |
3243 | | - | |
3244 | | - | |
| 3257 | + | |
| 3258 | + | |
| 3259 | + | |
3245 | 3260 | | |
3246 | 3261 | | |
3247 | 3262 | | |
| |||
0 commit comments