Commit d6e0773
fix: address code review feedback
- Use Path.anchor to reject drive-relative/UNC paths in script
validation, not just os.path.isabs + normpath
- chmod only adds execute bits (0o111) and is gated to POSIX
- Command filter treats missing extensions dir as empty (filters
out all extension-scoped commands), matching preset behavior
- list_available() rejects unsupported template_type with ValueError
- CLI list-templates validates --type before calling resolver
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent de2d9e6 commit d6e0773
3 files changed
Lines changed: 36 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2743 | 2743 | | |
2744 | 2744 | | |
2745 | 2745 | | |
2746 | | - | |
| 2746 | + | |
| 2747 | + | |
| 2748 | + | |
| 2749 | + | |
| 2750 | + | |
| 2751 | + | |
| 2752 | + | |
| 2753 | + | |
2747 | 2754 | | |
2748 | 2755 | | |
2749 | 2756 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
| 175 | + | |
175 | 176 | | |
176 | | - | |
177 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
178 | 184 | | |
179 | 185 | | |
180 | 186 | | |
| |||
622 | 628 | | |
623 | 629 | | |
624 | 630 | | |
625 | | - | |
626 | | - | |
627 | | - | |
628 | | - | |
629 | | - | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
630 | 637 | | |
631 | 638 | | |
632 | 639 | | |
| |||
1092 | 1099 | | |
1093 | 1100 | | |
1094 | 1101 | | |
1095 | | - | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
1096 | 1105 | | |
1097 | 1106 | | |
1098 | 1107 | | |
1099 | 1108 | | |
1100 | 1109 | | |
1101 | 1110 | | |
1102 | 1111 | | |
1103 | | - | |
1104 | | - | |
1105 | 1112 | | |
1106 | 1113 | | |
1107 | 1114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1681 | 1681 | | |
1682 | 1682 | | |
1683 | 1683 | | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
1684 | 1687 | | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
1685 | 1694 | | |
1686 | 1695 | | |
1687 | 1696 | | |
| |||
1691 | 1700 | | |
1692 | 1701 | | |
1693 | 1702 | | |
1694 | | - | |
| 1703 | + | |
1695 | 1704 | | |
1696 | | - | |
1697 | | - | |
1698 | 1705 | | |
1699 | 1706 | | |
1700 | 1707 | | |
| |||
0 commit comments