feat: enhance hook templates management by adding protection category and improving command safety

This commit is contained in:
catlog22
2026-03-03 11:33:00 +08:00
parent 9cfd5c05fc
commit 08564d487a
6 changed files with 117 additions and 132 deletions

View File

@@ -745,8 +745,8 @@ async function templateAction(subcommand: string, args: string[], options: HookO
listTemplatesByCategory,
executeTemplate,
installTemplateToSettings,
type HookInputData,
} = await import('../core/hooks/hook-templates.js');
type HookInputData = import('../core/hooks/hook-templates.js').HookInputData;
switch (subcommand) {
case 'list': {