Commit 5a152ea
fix(extensions): canonicalize hook alias refs and fix docstrings (#2017)
- Hook refs in alias form (ext.cmd) are now lifted to canonical
speckit.{ext}.cmd so _skill_name_from_command maps them correctly
in skill-mode invocation; non-dict hook entries are skipped safely
- Validate that 'hooks' is a mapping; raise ValidationError for
non-dict hooks value instead of AttributeError
- Update _collect_manifest_command_names docstring to reflect that
aliases now use {extension}.{command}, not speckit.{extension}.{command}
- Fix test docstring to name the concrete alias value used in the test
- Add tests for hook alias canonicalization and non-dict hooks validation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 240f715 commit 5a152ea
2 files changed
Lines changed: 57 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
251 | 253 | | |
252 | 254 | | |
253 | 255 | | |
254 | 256 | | |
255 | 257 | | |
256 | 258 | | |
257 | | - | |
258 | | - | |
259 | | - | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
260 | 269 | | |
261 | | - | |
262 | | - | |
| 270 | + | |
| 271 | + | |
263 | 272 | | |
264 | 273 | | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
265 | 283 | | |
266 | 284 | | |
267 | 285 | | |
| |||
601 | 619 | | |
602 | 620 | | |
603 | 621 | | |
604 | | - | |
| 622 | + | |
| 623 | + | |
605 | 624 | | |
606 | 625 | | |
607 | 626 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
308 | | - | |
| 308 | + | |
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
358 | 388 | | |
359 | 389 | | |
360 | 390 | | |
| |||
0 commit comments